Пример #1
0
        private void butAddRxNorm_Click(object sender, EventArgs e)
        {
            FormRxNorms FormRXN = new FormRxNorms();

            FormRXN.IsMultiSelectMode = true;
            FormRXN.ShowDialog();
            if (FormRXN.DialogResult != DialogResult.OK)
            {
                return;
            }
            for (int i = 0; i < FormRXN.ListSelectedRxNorms.Count; i++)
            {
                EhrTriggerCur.RxCuiList += " " + FormRXN.ListSelectedRxNorms[i].RxCui + " ";
            }
            FillGrid();
        }
Пример #2
0
        //New Crop now handles formulary checks

        /*private void butFormulary_Click(object sender,EventArgs e) {
         *      FormFormularies FormF=new FormFormularies();
         *      FormF.IsSelectionMode=true;
         *      FormF.ShowDialog();
         *      Cursor=Cursors.WaitCursor;
         *      if(FormF.DialogResult!=DialogResult.OK) {
         *              Cursor=Cursors.Default;
         *              return;
         *      }
         *      List<FormularyMed> ListMeds=FormularyMeds.GetMedsForFormulary(FormF.SelectedFormularyNum);
         *      bool medIsInFormulary=false;
         *      for(int i=0;i<ListMeds.Count;i++) {
         *              if(ListMeds[i].MedicationNum==MedicationPatCur.MedicationNum) {
         *                      medIsInFormulary=true;
         *              }
         *      }
         *      Cursor=Cursors.Default;
         *      if(medIsInFormulary){
         *              MsgBox.Show(this,"This medication is in the selected formulary.");
         *      }
         *      else {
         *              MsgBox.Show(this,"This medication is not in the selected forumulary.");
         *      }
         * }*/

        private void butRxNormSelect_Click(object sender, EventArgs e)
        {
            FormRxNorms FormRN = new FormRxNorms();

            FormRN.IsSelectionMode = true;
            FormRN.ShowDialog();
            if (FormRN.DialogResult != DialogResult.OK)
            {
                return;
            }
            MedicationPatCur.RxCui = PIn.Long(FormRN.SelectedRxNorm.RxCui);
            textRxNormDesc.Text    = RxNorms.GetDescByRxCui(MedicationPatCur.RxCui.ToString());
            if (IsNew)
            {
                textMedName.Text = RxNorms.GetDescByRxCui(MedicationPatCur.RxCui.ToString());
            }
        }
Пример #3
0
        private void gridAllMedications_CellClick(object sender, ODGridClickEventArgs e)
        {
            Medication med = (Medication)gridAllMedications.Rows[e.Row].Tag;

            if (CultureInfo.CurrentCulture.Name.EndsWith("US") && e.Col == 3)           //United States RxNorm Column
            {
                FormRxNorms formRxNorm = new FormRxNorms();
                formRxNorm.IsSelectionMode          = true;
                formRxNorm.InitSearchCodeOrDescript = med.MedName;
                formRxNorm.ShowDialog();
                if (formRxNorm.DialogResult == DialogResult.OK)
                {
                    med.RxCui = PIn.Long(formRxNorm.SelectedRxNorm.RxCui);
                    //The following behavior mimics FormMedicationEdit OK click.
                    Medications.Update(med);
                    MedicationPats.UpdateRxCuiForMedication(med.MedicationNum, med.RxCui);
                    DataValid.SetInvalid(InvalidType.Medications);
                }
                FillTab();
            }
        }
Пример #4
0
        private void butRxNorm_Click(object sender, EventArgs e)
        {
            FormRxNorms formR = new FormRxNorms();

            formR.ShowDialog();
        }
Пример #5
0
 private void butRxNorm_Click(object sender,EventArgs e)
 {
     FormRxNorms FormRN=new FormRxNorms();
     FormRN.ShowDialog();
     if(FormRN.DialogResult!=DialogResult.OK) {
         return;
     }
     MedicationCur.RxCui=PIn.Long(FormRN.SelectedRxNorm.RxCui);
     textRxNormDesc.Text=RxNorms.GetDescByRxCui(MedicationCur.RxCui.ToString());
     if(IsNew) {
         textMedName.Text=RxNorms.GetDescByRxCui(MedicationCur.RxCui.ToString());
     }
 }
Пример #6
0
		private void butAddRxNorm_Click(object sender,EventArgs e) {
			FormRxNorms FormRXN=new FormRxNorms();
			FormRXN.IsMultiSelectMode=true;
			FormRXN.ShowDialog();
			if(FormRXN.DialogResult!=DialogResult.OK) {
				return;
			}
			for(int i=0;i<FormRXN.ListSelectedRxNorms.Count;i++) {
				ListObjects.Add(FormRXN.ListSelectedRxNorms[i]);
			}
			fillKnowledgeRequestitems();
		}
Пример #7
0
 private void butRxNorm_Click(object sender,EventArgs e)
 {
     FormRxNorms formR=new FormRxNorms();
     formR.ShowDialog();
 }
Пример #8
0
		private void butRxNormSelect_Click(object sender,EventArgs e) {
			FormRxNorms FormRN=new FormRxNorms();
			FormRN.IsSelectionMode=true;
			FormRN.ShowDialog();
			if(FormRN.DialogResult!=DialogResult.OK) {
				return;
			}
			RxDefCur.RxCui=PIn.Long(FormRN.SelectedRxNorm.RxCui);
			FillRxCui();
		}
Пример #9
0
		private void butAddRxNorm_Click(object sender,EventArgs e) {
			FormRxNorms FormRXN=new FormRxNorms();
			FormRXN.IsMultiSelectMode=true;
			FormRXN.ShowDialog();
			if(FormRXN.DialogResult!=DialogResult.OK) {
				return;
			}
			for(int i=0;i<FormRXN.ListSelectedRxNorms.Count;i++) {
				EhrTriggerCur.RxCuiList+=" "+FormRXN.ListSelectedRxNorms[i].RxCui+" ";
			}
			FillGrid();
		}
Пример #10
0
 private void butRxNormSelect_Click(object sender,EventArgs e)
 {
     FormRxNorms FormRN=new FormRxNorms();
     FormRN.ShowDialog();
     if(FormRN.DialogResult!=DialogResult.OK) {
         return;
     }
     RxPatCur.RxCui=PIn.Long(FormRN.SelectedRxNorm.RxCui);
     textRxNorm.Text=RxPatCur.RxCui.ToString();
 }