public PatientDetailsViewModel() { notePop = new DoctorsNote(); //Analytics pop up instance analyticsPopUp = new AnalyticsPopUp(); tileMedicalDetailPopUp = new TilePopMedicalDetails(); upperTileMedicalDetails = new UpperTilePopUpMedicalDetails(); PatientAnaylticsPortal = new Command(() => PatientAnaylicsPopUpPage()); PrescriptionCommand = new Command( execute: () => { NavigateToPrescriptionForms(); }, canExecute: () => { if (IsButtonEnabled.Equals(true)) { return(true); } else { return(false); } }); AddMedicalFiles = new Command(NavigateToAddMedFiles); DoctorsNoteCommand = new Command(NavigateToDoctorsNote); ChronicDiseasePopUp = new Command(GenerateChronicDiseasePopUp); MedicalFilesNotePopUp = new Command(GenerateMedicalFilesNotePopUp); MedicationPopUp = new Command(GenerateMedicationPopUp); AllergiesPopUp = new Command(GenerateAllergiesPopUp); AgePopUp = new Command(GenerateAgePopUp); BloodTypePopUp = new Command(GenerateBloodTypePopUp); BloodPressurePopUp = new Command(GenerateBloodPressurePopUp); GenderPopUp = new Command(GenerateGenderPopUp); }
private async Task SaveDocNoteAsync() { //Closes the pop up and adds the note to the current patient DoctorsNote note = new DoctorsNote() { DateOfNote = TodaysDate, Note = PatientsNote, //Get from the config file DoctorsName = "" }; MessagingCenter.Instance.Send <AddDoctorsNoteViewModel, DoctorsNote>(this, MessagingKeys.MedicalNoteAndFile, note); await Task.FromResult(PopupNavigation.Instance.PopAllAsync(true)); }