示例#1
0
        ///<summary>This can happen when clicking in the grid, or when the form is Shown.  The latter would happen after user unknowingly exited ehr in order to use FormMedPat.  Popping back to the Orders window makes the experience seamless.  This can be recursive if the user edits a series of medicationpats.</summary>
        private void LaunchOrdersWindow()
        {
            FormEhrMedicalOrders FormOrd = new FormEhrMedicalOrders();

            FormOrd._patCur = PatCur;
            FormOrd.ShowDialog();
            //if(FormOrd.DialogResult!=DialogResult.OK) {//There is no ok button
            //	return;
            //}

            /*not currently used, but might be if we let users generate Rx from med order.
             * if(FormOrd.LaunchRx) {
             *      if(FormOrd.LaunchRxNum==0) {
             *              ResultOnClosing=EhrFormResult.RxSelect;
             *      }
             *      else {
             *              ResultOnClosing=EhrFormResult.RxEdit;
             *              LaunchRxNum=FormOrd.LaunchRxNum;
             *      }
             *      Close();
             * }
             * else*/
            if (FormOrd.LaunchMedicationPat)
            {
                //if(FormOrd.LaunchMedicationPatNum==0) {
                //	ResultOnClosing=EhrFormResult.MedicationPatNew;//This cannot happen unless a provider is logged in with a valid ehr key
                //}
                //else {
                FormMedPat FormMP = new FormMedPat();
                FormMP.MedicationPatCur = MedicationPats.GetOne(FormOrd.LaunchMedicationPatNum);
                FormMP.ShowDialog();
                //ResultOnClosing=EhrFormResult.MedicationPatEdit;
                //LaunchMedicationPatNum=FormOrd.LaunchMedicationPatNum;
                //}
                //Close();
                //}
                //else {
                FillGridMu();
            }
        }
示例#2
0
		///<summary>This can happen when clicking in the grid, or when the form is Shown.  The latter would happen after user unknowingly exited ehr in order to use FormMedPat.  Popping back to the Orders window makes the experience seamless.  This can be recursive if the user edits a series of medicationpats.</summary>
		private void LaunchOrdersWindow() {
			FormEhrMedicalOrders FormOrd = new FormEhrMedicalOrders();
			FormOrd._patCur=PatCur;
			FormOrd.ShowDialog();
			//if(FormOrd.DialogResult!=DialogResult.OK) {//There is no ok button
			//	return;
			//}
			/*not currently used, but might be if we let users generate Rx from med order.
			if(FormOrd.LaunchRx) {
				if(FormOrd.LaunchRxNum==0) {
					ResultOnClosing=EhrFormResult.RxSelect;
				}
				else {
					ResultOnClosing=EhrFormResult.RxEdit;
					LaunchRxNum=FormOrd.LaunchRxNum;
				}
				Close();
			}
			else*/
			if(FormOrd.LaunchMedicationPat) {
				//if(FormOrd.LaunchMedicationPatNum==0) {
				//	ResultOnClosing=EhrFormResult.MedicationPatNew;//This cannot happen unless a provider is logged in with a valid ehr key
				//}
				//else {
				FormMedPat FormMP=new FormMedPat();
				FormMP.MedicationPatCur=MedicationPats.GetOne(FormOrd.LaunchMedicationPatNum);
				FormMP.ShowDialog();
					//ResultOnClosing=EhrFormResult.MedicationPatEdit;
					//LaunchMedicationPatNum=FormOrd.LaunchMedicationPatNum;
				//}
				//Close();
			//}
			//else {
				FillGridMu();
			}
		}