Esempio n. 1
0
 private void FormRxAlertEdit_Load(object sender, EventArgs e)
 {
     textRxName.Text = RxDefCur.Drug;
     if (RxAlertCur.DiseaseDefNum > 0)
     {
         labelName.Text = Lan.g(this, "If the patient already has this Problem");
         textName.Text  = DiseaseDefs.GetName(RxAlertCur.DiseaseDefNum);
     }
     if (RxAlertCur.AllergyDefNum > 0)
     {
         labelName.Text = Lan.g(this, "If the patient already has this Allergy");
         textName.Text  = AllergyDefs.GetOne(RxAlertCur.AllergyDefNum).Description;
     }
     if (RxAlertCur.MedicationNum > 0)
     {
         labelName.Text = Lan.g(this, "If the patient is already taking this medication");
         textName.Text  = Medications.GetMedicationFromDb(RxAlertCur.MedicationNum).MedName;
     }
     textMessage.Text = RxAlertCur.NotificationMsg;
     checkIsHighSignificance.Checked = RxAlertCur.IsHighSignificance;
 }
Esempio n. 2
0
 private void FormRxAlertEdit_Load(object sender, EventArgs e)
 {
     textRxName.Text = RxDefCur.Drug;
     if (RxAlertCur.DiseaseDefNum > 0)
     {
         labelName.Text = Lan.g(this, "If the patient already has this Problem");
         textName.Text  = DiseaseDefs.GetName(RxAlertCur.DiseaseDefNum);
     }
     if (RxAlertCur.AllergyDefNum > 0)
     {
         labelName.Text = Lan.g(this, "If the patient already has this Allergy");
         textName.Text  = AllergyDefs.GetOne(RxAlertCur.AllergyDefNum).Description;
     }
     if (RxAlertCur.MedicationNum > 0)
     {
         labelName.Text = Lan.g(this, "If the patient is already taking this medication");
         textName.Text  = Medications.GetMedicationFromDb(RxAlertCur.MedicationNum).MedName;
     }
     if (RxDefCur.RxCui != 0)
     {
         textRxNorm.Text = RxDefCur.RxCui.ToString() + " - " + RxNorms.GetDescByRxCui(RxDefCur.RxCui.ToString());
     }
     textMessage.Text = RxAlertCur.NotificationMsg;
 }