public ValidationMed SetToReviewed(ValidationMed validation) { ValidationMed validationToChange = validationMedicationRepository.GetObject(validation.Id); validationToChange.Reviewed = true; return(validationMedicationRepository.Update(validationToChange)); }
public ValidationMed AddValidationMedication(ValidationMed medication) { ValidationMed fullValidation = medication; validationMedicationRepository.Create(medication); notificationService.MedicationValidatedNotification(fullValidation.Doctor); return(medication); }
private void Success_Click(object sender, RoutedEventArgs e) { if ((bool)Yes.IsChecked) { ModelHCI.MedicationData.meds.Add(Medications.SelectedRow); ModelHCI.MedicationData.medsToValidate.Remove(Medications.SelectedRow); ValidationMed validationMed = new ValidationMed(); validationMed.Approved = true; validationMed.DateOfValidation = DateTime.Today; validationMed.Medication = Medications.SelectedRow.medication; validationMed.Reviewed = false; validationMed.Doctor = MainWindow.doctor; validationMed.SideNotes = Napomene.Text; validationMedicationController.AddValidationMedication(validationMed); } MyEvents.OpenRecord.RaiseMyCustomEvent(this, new MyEvents.CloseAddArticle()); NavigationService.Navigate(new Uri("/Pages/Medications.xaml", UriKind.Relative)); }
public bool DeleteValidationMedication(ValidationMed medication) => validationMedicationService.DeleteValidationMedication(medication);
public ValidationMed UpdateValidationMedication(ValidationMed medication) => validationMedicationService.UpdateValidationMedication(medication);
public ValidationMed AddValidationMedication(ValidationMed medication) => validationMedicationService.AddValidationMedication(medication);
public ValidationMed SetToReviewed(ValidationMed validation) => validationMedicationService.SetToReviewed(validation);
public bool DeleteValidationMedication(ValidationMed medication) => validationMedicationRepository.Delete(medication);
public ValidationMed UpdateValidationMedication(ValidationMed medication) => validationMedicationRepository.Update(medication);