示例#1
0
 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.");
     }
 }
示例#2
0
 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();
 }
示例#3
0
 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.");
     //}
 }
示例#4
0
        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();
        }
示例#5
0
		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.");
			}
		}
示例#6
0
		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();
		}
示例#7
0
		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();
		}
示例#8
0
文件: FormEHR.cs 项目: mnisl/OD
		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.");
			//}
		}