private void FormEHR_Shown(object sender, EventArgs e) { ResultOnClosing = EhrFormResult.None; PatCur = Patients.GetPat(PatNum); ProvPat = Providers.GetProv(PatCur.PriProv); labelProvPat.Text = ProvPat.GetLongDesc(); if (ProvPat.EhrKey == "") { labelProvPat.Text += " (no ehr provider key entered)"; } if (Security.CurUser.ProvNum == 0) { labelProvUser.Text = "none"; } else { Provider provUser = Providers.GetProv(Security.CurUser.ProvNum); labelProvUser.Text = Providers.GetLongDesc(provUser.ProvNum); if (provUser.EhrKey == "") { labelProvUser.Text += " (no ehr provider key entered)"; } } FillGridMu(); if (OnShowLaunchOrders) { //LaunchOrdersWindow(); OnShowLaunchOrders = false; } if (ProvPat.EhrKey == "") { MessageBox.Show("No ehr provider key entered for this patient's primary provider."); } }
private void butMeasures_Click(object sender, EventArgs e) { #if EHRTEST ObjFormEhrMeasures = new EHR.FormEhrMeasures(); ((EHR.FormEhrMeasures)ObjFormEhrMeasures).ShowDialog(); #else if (ObjFormEhrMeasures == null) { return; } Type type = AssemblyEHR.GetType("EHR.FormEhrMeasures"); //namespace.class //type.InvokeMember("ShowDialog",System.Reflection.BindingFlags.InvokeMethod,null,ObjFormEhrMeasures,null); Form FormEM = (Form)type.InvokeMember("FormEhrMeasures", System.Reflection.BindingFlags.CreateInstance, null, ObjFormEhrMeasures, null); //AssemblyEHR.GetModule("FormEhrMeasures"); FormEM.ShowDialog(); long patNum = 0; try { patNum = (long)type.InvokeMember("SelectedPatNum", System.Reflection.BindingFlags.GetProperty, null, FormEM, null); } catch { } if (FormEM.DialogResult == DialogResult.OK && patNum != 0) { PatNum = patNum; ResultOnClosing = EhrFormResult.PatientSelect; DialogResult = DialogResult.OK; Close(); return; } //long patNum; #endif FillGridMu(); }
private void FormEHR_Shown(object sender, EventArgs e) { ResultOnClosing = EhrFormResult.None; PatCur = Patients.GetPat(PatNum); ProvPat = Providers.GetProv(PatCur.PriProv); labelProvPat.Text = ProvPat.GetLongDesc(); if (EhrProvKeys.GetKeysByFLName(ProvPat.LName, ProvPat.FName).Count == 0) { labelProvPat.Text += " (no ehr provider key entered)"; } if (Security.CurUser.ProvNum == 0) { labelProvUser.Text = "none"; } else { Provider provUser = Providers.GetProv(Security.CurUser.ProvNum); labelProvUser.Text = Providers.GetLongDesc(provUser.ProvNum); if (EhrProvKeys.GetKeysByFLName(provUser.LName, provUser.FName).Count == 0) { labelProvUser.Text += " (no ehr provider key entered)"; } } FillGridMu(); if (OnShowLaunchOrders) { //LaunchOrdersWindow(); OnShowLaunchOrders = false; } //We already indicate that the patient's provider does not have an ehr key entered in labelProvPat. No need for a popup. //This is so that non-ehr providers can still use many of our ehr features. E.g. vital signs. //if(ProvPat.EhrKey=="") { // MessageBox.Show("No ehr provider key entered for this patient's primary provider."); //} }
private void but2014CQM_Click(object sender, EventArgs e) { FormEhrQualityMeasures2014 FormQ = new FormEhrQualityMeasures2014(); FormQ.ShowDialog(); if (FormQ.DialogResult == DialogResult.OK && FormQ.selectedPatNum != 0) { PatNum = FormQ.selectedPatNum; ResultOnClosing = EhrFormResult.PatientSelect; DialogResult = DialogResult.OK; Close(); return; } FillGridMu(); }
private void FormEHR_Shown(object sender,EventArgs e) { ResultOnClosing=EhrFormResult.None; PatCur=Patients.GetPat(PatNum); ProvPat=Providers.GetProv(PatCur.PriProv); labelProvPat.Text=ProvPat.GetLongDesc(); if(ProvPat.EhrKey=="") { labelProvPat.Text+=" (no ehr provider key entered)"; } if(Security.CurUser.ProvNum==0) { labelProvUser.Text="none"; } else { Provider provUser=Providers.GetProv(Security.CurUser.ProvNum); labelProvUser.Text=Providers.GetLongDesc(provUser.ProvNum); if(provUser.EhrKey=="") { labelProvUser.Text+=" (no ehr provider key entered)"; } } FillGridMu(); if(OnShowLaunchOrders) { //LaunchOrdersWindow(); OnShowLaunchOrders=false; } if(ProvPat.EhrKey=="") { MessageBox.Show("No ehr provider key entered for this patient's primary provider."); } }
private void but2014CQM_Click(object sender,EventArgs e) { FormEhrQualityMeasures2014 FormQ=new FormEhrQualityMeasures2014(); FormQ.ShowDialog(); if(FormQ.DialogResult==DialogResult.OK && FormQ.selectedPatNum!=0) { PatNum=FormQ.selectedPatNum; ResultOnClosing=EhrFormResult.PatientSelect; DialogResult=DialogResult.OK; Close(); return; } FillGridMu(); }
private void butMeasures_Click(object sender,EventArgs e) { #if EHRTEST ObjFormEhrMeasures=new EHR.FormEhrMeasures(); ((EHR.FormEhrMeasures)ObjFormEhrMeasures).ShowDialog(); #else if(ObjFormEhrMeasures==null) { return; } Type type=AssemblyEHR.GetType("EHR.FormEhrMeasures");//namespace.class //type.InvokeMember("ShowDialog",System.Reflection.BindingFlags.InvokeMethod,null,ObjFormEhrMeasures,null); Form FormEM=(Form)type.InvokeMember("FormEhrMeasures",System.Reflection.BindingFlags.CreateInstance,null,ObjFormEhrMeasures,null); //AssemblyEHR.GetModule("FormEhrMeasures"); FormEM.ShowDialog(); long patNum=0; try { patNum=(long)type.InvokeMember("SelectedPatNum",System.Reflection.BindingFlags.GetProperty,null,FormEM,null); } catch { } if(FormEM.DialogResult==DialogResult.OK && patNum!=0) { PatNum=patNum; ResultOnClosing=EhrFormResult.PatientSelect; DialogResult=DialogResult.OK; Close(); return; } //long patNum; #endif FillGridMu(); }
private void FormEHR_Shown(object sender,EventArgs e) { ResultOnClosing=EhrFormResult.None; PatCur=Patients.GetPat(PatNum); ProvPat=Providers.GetProv(PatCur.PriProv); labelProvPat.Text=ProvPat.GetLongDesc(); if(EhrProvKeys.GetKeysByFLName(ProvPat.LName,ProvPat.FName).Count==0) { labelProvPat.Text+=" (no ehr provider key entered)"; } if(Security.CurUser.ProvNum==0) { labelProvUser.Text="none"; } else { Provider provUser=Providers.GetProv(Security.CurUser.ProvNum); labelProvUser.Text=Providers.GetLongDesc(provUser.ProvNum); if(EhrProvKeys.GetKeysByFLName(provUser.LName,provUser.FName).Count==0) { labelProvUser.Text+=" (no ehr provider key entered)"; } } FillGridMu(); if(OnShowLaunchOrders) { //LaunchOrdersWindow(); OnShowLaunchOrders=false; } //We already indicate that the patient's provider does not have an ehr key entered in labelProvPat. No need for a popup. //This is so that non-ehr providers can still use many of our ehr features. E.g. vital signs. //if(ProvPat.EhrKey=="") { // MessageBox.Show("No ehr provider key entered for this patient's primary provider."); //} }