Beispiel #1
0
        private void gridAllergies_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormAllergyEdit FAE = new FormAllergyEdit();

            FAE.AllergyCur = allergyList[gridAllergies.GetSelectedIndex()];
            FAE.ShowDialog();
            FillAllergies();
        }
Beispiel #2
0
 private void butAddAllergy_Click(object sender,EventArgs e)
 {
     FormAllergyEdit formA=new FormAllergyEdit();
     formA.AllergyCur=new Allergy();
     formA.AllergyCur.StatusIsActive=true;
     formA.AllergyCur.PatNum=PatCur.PatNum;
     formA.AllergyCur.IsNew=true;
     formA.ShowDialog();
     FillAllergies();
 }
Beispiel #3
0
        private void butAddAllergy_Click(object sender, EventArgs e)
        {
            FormAllergyEdit formA = new FormAllergyEdit();

            formA.AllergyCur = new Allergy();
            formA.AllergyCur.StatusIsActive = true;
            formA.AllergyCur.PatNum         = PatCur.PatNum;
            formA.AllergyCur.IsNew          = true;
            formA.ShowDialog();
            FillAllergies();
        }
Beispiel #4
0
		private void butAddAllergy_Click(object sender,EventArgs e) {
			FormAllergyEdit formA=new FormAllergyEdit();
			formA.AllergyCur=new Allergy();
			formA.AllergyCur.StatusIsActive=true;
			formA.AllergyCur.PatNum=PatCur.PatNum;
			formA.AllergyCur.IsNew=true;
			formA.ShowDialog();
			if(formA.DialogResult!=DialogResult.OK) {
				return;
			}
			if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS && CDSPermissions.GetForUser(Security.CurUser.UserNum).AllergyCDS) {
				FormCDSIntervention FormCDSI=new FormCDSIntervention();
				FormCDSI.ListCDSI=EhrTriggers.TriggerMatch(AllergyDefs.GetOne(formA.AllergyCur.AllergyDefNum),PatCur);
				FormCDSI.ShowIfRequired(false);
			}
			FillAllergies();
		}
Beispiel #5
0
		private void gridAllergies_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormAllergyEdit FAE=new FormAllergyEdit();
			FAE.AllergyCur=allergyList[gridAllergies.GetSelectedIndex()];
			FAE.ShowDialog();
			if(FAE.DialogResult==DialogResult.OK 
				&& CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS 
				&& CDSPermissions.GetForUser(Security.CurUser.UserNum).AllergyCDS) 
			{
				FormCDSIntervention FormCDSI=new FormCDSIntervention();
				FormCDSI.ListCDSI=EhrTriggers.TriggerMatch(AllergyDefs.GetOne(FAE.AllergyCur.AllergyDefNum),PatCur);
				FormCDSI.ShowIfRequired(false);
			}
			FillAllergies();
		}
Beispiel #6
0
 private void gridAllergies_CellDoubleClick(object sender,ODGridClickEventArgs e)
 {
     FormAllergyEdit FAE=new FormAllergyEdit();
     FAE.AllergyCur=allergyList[gridAllergies.GetSelectedIndex()];
     FAE.ShowDialog();
     FillAllergies();
 }