Ejemplo n.º 1
0
        private void gridDiseases_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormDiseaseEdit FormD = new FormDiseaseEdit(DiseaseList[e.Row]);

            FormD.ShowDialog();
            FillProblems();
        }
Ejemplo n.º 2
0
        private void butAddDisease_Click(object sender, EventArgs e)
        {
            Disease disease = new Disease();

            disease.PatNum = PatCur.PatNum;
            FormDiseaseEdit FormD = new FormDiseaseEdit(disease);

            FormD.IsNew = true;
            FormD.ShowDialog();
            FillDiseases();
        }
Ejemplo n.º 3
0
		private void gridDiseases_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormDiseaseEdit FormD=new FormDiseaseEdit(DiseaseList[e.Row]);
			FormD.ShowDialog();
			if(FormD.DialogResult==DialogResult.OK 
				&& CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowCDS 
				&& CDSPermissions.GetForUser(Security.CurUser.UserNum).ProblemCDS) 
			{
				FormCDSIntervention FormCDSI=new FormCDSIntervention();
				FormCDSI.ListCDSI=EhrTriggers.TriggerMatch(DiseaseDefs.GetItem(DiseaseList[e.Row].DiseaseDefNum),PatCur);
				FormCDSI.ShowIfRequired(false);
			}
			FillProblems();
		}
Ejemplo n.º 4
0
		private void butChangeDefault_Click(object sender,EventArgs e) {
			if(butChangeDefault.Text=="Go to Problem") {//text is "To Problem" only when vital sign has a valid PregDiseaseNum and the preg box is checked
				Disease disCur=Diseases.GetOne(VitalsignCur.PregDiseaseNum);
				if(disCur==null) {//should never happen, the only way the button will say "To Problem" is if this exam is pointing to a valid problem
					butChangeDefault.Text="Change Default";
					labelPregNotice.Visible=false;
					textPregCode.Clear();
					textPregCodeDescript.Clear();
					VitalsignCur.PregDiseaseNum=0;
					checkPregnant.Checked=false;
					return;
				}
				FormDiseaseEdit FormDis=new FormDiseaseEdit(disCur);
				FormDis.IsNew=false;
				FormDis.ShowDialog();
				if(FormDis.DialogResult==DialogResult.OK) {
					VitalsignCur.PregDiseaseNum=Vitalsigns.GetOne(VitalsignCur.VitalsignNum).PregDiseaseNum;//if unlinked in FormDiseaseEdit, refresh PregDiseaseNum from db
					if(VitalsignCur.PregDiseaseNum==0) {
						butChangeDefault.Text="Change Default";
						labelPregNotice.Visible=false;
						textPregCode.Clear();
						textPregCodeDescript.Clear();
						checkPregnant.Checked=false;
						return;
					}
					SetPregCodeAndDescript();
					if(pregDisDefNumCur==0) {
						labelPregNotice.Visible=false;
						butChangeDefault.Text="Change Default";
					}
				}
			}
			else {
				if(!Security.IsAuthorized(Permissions.SecurityAdmin,false)) {
					return;
				}
				FormEhrSettings FormEhr=new FormEhrSettings();
				FormEhr.ShowDialog();
				if(FormEhr.DialogResult!=DialogResult.OK || checkPregnant.Checked==false) {
					return;
				}
				labelPregNotice.Visible=false;
				SetPregCodeAndDescript();
				if(pregDisDefNumCur>0) {
					labelPregNotice.Visible=true;
				}
			}
		}
Ejemplo n.º 5
0
 private void gridDiseases_CellDoubleClick(object sender,ODGridClickEventArgs e)
 {
     FormDiseaseEdit FormD=new FormDiseaseEdit(DiseaseList[e.Row]);
     FormD.ShowDialog();
     FillProblems();
 }