public Patient(string p_unitnum) { unitnum = p_unitnum; relativeID = 1; relationship = "Self"; FHx = new FamilyHistory(this); owningFHx = FHx; MedHx = new MedicationHx(this); SocialHx = new SocialHistory(this); PhysicalExam = new PhysicalExamination(this); ObGynHx = new ObGynHistory(this); // deprecated diet = new Diet(this); procedureHx = new ProcedureHx(this); breastImagingHx = new BreastImagingHx(this); transvaginalImagingHx = new TransvaginalImagingHx(this); labsHx = new LabsHx(this); follupSatus = new FollowupStatus(unitnum, apptid); Tasks = new TaskList(this); Providers = new ProviderList(this); cdsBreastOvary = new CDSBreastOvary(this); guiPreferences = new GUIPreferenceList(this); PediatricCDS = new PediatricConsiderations(this); SurveyReponses = new SurveyResponseList(this); MammographyHx = new MammographyHx(this); }
private ProviderList SaveProvider(VM.Appointment Appt) { ProviderList pl = new ProviderList(); //SessionManager.Instance.MetaData.AllProviders.BackgroundListLoad(); //AllProviders allproviders= SessionManager.Instance.MetaData.AllProviders; //Provider providerRef = allproviders.Where(p => p.providerID == Appt.RefPhysician).FirstOrDefault(); //providerRef.refPhys = true; //providerRef.PCP = false; //providerRef.apptid = Appt.Id; //Provider providerPCP = allproviders.Where(p => p.providerID == Appt.PCP).FirstOrDefault(); //providerPCP.refPhys = false; //providerPCP.PCP = true; //providerPCP.apptid = Appt.Id; //ProviderList pl = new ProviderList(); //pl.Add(providerPCP); //pl.Add(providerRef); return pl; }
private static List<ViewModels.Provider> GetProviders(ProviderList providerList) { List<ViewModels.Provider> provider = new List<ViewModels.Provider>(); foreach (var p in providerList) { provider.Add(new ViewModels.Provider() { //PCP = p.PCP, //providerIDString=p.providerID.ToString(), //refPhys=p.refPhys, //role=p.defaultRole }); } return provider; }
public void setPatient(Patient proband) { if (proband != null) { PCP.Text = ""; if (patient != null) { patient.ReleaseListeners(this); patient.Providers.ReleaseListeners(this); } patient = proband; Providers = patient.Providers; if (patient != null) { patient.AddHandlersWithLoad(activePatientChanged, activePatientLoaded, null); patient.Providers.AddHandlersWithLoad(null, ProvidersLoaded, null); } } else { PatientName.Text = ""; HomePhone.Text = ""; age.Text = ""; MRN.Text = ""; CellPhone.Text = ""; DOB.Text = ""; WorkPhone.Text = ""; PCP.Text = ""; if (patient != null) { patient.ReleaseListeners(this); patient.Providers.ReleaseListeners(this); } patient = proband; } }