private void butIcd9_Click(object sender, EventArgs e)
        {
            FormIcd9s FormI = new FormIcd9s();

            FormI.IsSelectionMode = true;
            FormI.ShowDialog();
            if (FormI.DialogResult != DialogResult.OK)
            {
                return;
            }
            if (DiseaseDefs.ContainsICD9(FormI.SelectedIcd9.ICD9Code, DiseaseDefCur.DiseaseDefNum))
            {
                MsgBox.Show(this, "ICD-9 code already exists in the problems list.");
                return;
            }
            DiseaseDefCur.ICD9Code = FormI.SelectedIcd9.ICD9Code;
            string i9descript = ICD9s.GetCodeAndDescription(FormI.SelectedIcd9.ICD9Code);

            if (i9descript == "")
            {
                textICD9.Text = FormI.SelectedIcd9.ICD9Code;
            }
            else
            {
                textICD9.Text = i9descript;
            }
        }
Exemple #2
0
        private void butSelectFK_Click(object sender, EventArgs e)
        {
            switch ((EhrCriterion)comboReminderCriterion.SelectedIndex)
            {
            case EhrCriterion.Problem:
                FormDiseaseDefs formD = new FormDiseaseDefs();
                formD.IsSelectionMode = true;
                formD.ShowDialog();
                if (formD.DialogResult != DialogResult.OK)
                {
                    RuleCur.CriterionFK = -1;
                    return;
                }
                RuleCur.CriterionFK = formD.SelectedDiseaseDefNum;
                break;

            case EhrCriterion.Medication:
                FormMedications formM = new FormMedications();
                formM.IsSelectionMode = true;
                formM.ShowDialog();
                if (formM.DialogResult != DialogResult.OK)
                {
                    RuleCur.CriterionFK = -1;
                    return;
                }
                RuleCur.CriterionFK = formM.SelectedMedicationNum;
                break;

            case EhrCriterion.Allergy:
                FormAllergySetup formA = new FormAllergySetup();
                formA.IsSelectionMode = true;
                formA.ShowDialog();
                if (formA.DialogResult != DialogResult.OK)
                {
                    RuleCur.CriterionFK = -1;
                    return;
                }
                RuleCur.CriterionFK = formA.SelectedAllergyDefNum;
                break;

            case EhrCriterion.ICD9:
                FormIcd9s FormICD9Select = new FormIcd9s();
                FormICD9Select.IsSelectionMode = true;
                FormICD9Select.ShowDialog();
                if (FormICD9Select.DialogResult != DialogResult.OK)
                {
                    RuleCur.CriterionFK = -1;
                    return;
                }
                RuleCur.CriterionFK = FormICD9Select.SelectedIcd9Num;
                break;

            default:
                MessageBox.Show("You should never see this error message. Something has stopped working properly.");
                break;
            }
            FillFK();
        }
        private void butAddIcd9_Click(object sender, EventArgs e)
        {
            FormIcd9s FormI9 = new FormIcd9s();

            FormI9.IsSelectionMode = true;
            FormI9.ShowDialog();
            if (FormI9.DialogResult != DialogResult.OK)
            {
                return;
            }
            EhrTriggerCur.ProblemIcd9List += " " + FormI9.SelectedIcd9.ICD9Code + " ";
            FillGrid();
        }
        private void butPickValueIcd9_Click(object sender, EventArgs e)
        {
            FormIcd9s formI = new FormIcd9s();

            formI.IsSelectionMode = true;
            if (formI.ShowDialog() == DialogResult.OK)
            {
                _icd9Value        = formI.SelectedIcd9;
                textValue.Text    = _icd9Value.Description;
                _strValCodeSystem = "ICD9";
                labelValue.Text   = _strValCodeSystem + " Value";
            }
        }
Exemple #5
0
        private void butIcd9_Click(object sender, EventArgs e)
        {
            FormIcd9s formI = new FormIcd9s();

            formI.IsSelectionMode = true;
            formI.ShowDialog();
            if (formI.DialogResult != DialogResult.OK)
            {
                return;
            }
            Disease disease = new Disease();

            disease.PatNum  = PatCur.PatNum;
            disease.ICD9Num = formI.SelectedIcd9Num;
            Diseases.Insert(disease);
            FillProblems();
        }
Exemple #6
0
 private void butICD9Select_Click(object sender,EventArgs e)
 {
     FormIcd9s FormICD9=new FormIcd9s();
     FormICD9.IsSelectionMode=true;
     FormICD9.ShowDialog();
     if(FormICD9.DialogResult!=DialogResult.OK) {
         return;
     }
     textProblem.Text="";
     EduResourceCur.DiseaseDefNum=0;
     textICD9.Text="ICD9: "+ICD9s.GetDescription(FormICD9.SelectedIcd9Num);
     EduResourceCur.Icd9Num=FormICD9.SelectedIcd9Num;
     textMedication.Text="";
     EduResourceCur.MedicationNum=0;
     textLabResultsID.Text="";
     textLabTestName.Text="";
     textCompareValue.Text="";
 }
Exemple #7
0
        private void butICD9Select_Click(object sender, EventArgs e)
        {
            FormIcd9s FormICD9 = new FormIcd9s();

            FormICD9.IsSelectionMode = true;
            FormICD9.ShowDialog();
            if (FormICD9.DialogResult != DialogResult.OK)
            {
                return;
            }
            textProblem.Text             = "";
            EduResourceCur.DiseaseDefNum = 0;
            textICD9.Text                = "ICD9: " + ICD9s.GetDescription(FormICD9.SelectedIcd9Num);
            EduResourceCur.Icd9Num       = FormICD9.SelectedIcd9Num;
            textMedication.Text          = "";
            EduResourceCur.MedicationNum = 0;
            textLabResultsID.Text        = "";
            textLabTestName.Text         = "";
            textCompareValue.Text        = "";
        }
        private void butPregIcd9_Click(object sender, EventArgs e)
        {
            FormIcd9s FormI9 = new FormIcd9s();

            if (!Security.IsAuthorized(Permissions.SecurityAdmin, false))
            {
                FormI9.IsSelectionMode = false;
            }
            else
            {
                FormI9.IsSelectionMode = true;
            }
            FormI9.ShowDialog();
            if (FormI9.DialogResult == DialogResult.OK)
            {
                NewPregCodeSystem            = "ICD9CM";
                comboPregCodes.SelectedIndex = -1;
                textPregCodeValue.Text       = FormI9.SelectedIcd9.ICD9Code;
                textPregCodeDescript.Text    = FormI9.SelectedIcd9.Description;
                labelPregWarning.Visible     = true;
            }
        }
Exemple #9
0
        private void butICD9s_Click(object sender, EventArgs e)
        {
            FormIcd9s FormE = new FormIcd9s();

            FormE.ShowDialog();
        }
		private void butPicker_Click(object sender,EventArgs e) {
			switch(listRestriction.SelectedIndex) {
				case 0://Birthdate
					//Not visible
					break;
				case 1://problem
					if(sender.Equals(butPicker)) {
						FormIcd9s FormI9=new FormIcd9s();
						FormI9.IsSelectionMode=true;
						FormI9.ShowDialog();
						if(FormI9.DialogResult!=DialogResult.OK) {
							return;
						}
						textCompareString.Text=FormI9.SelectedIcd9.ICD9Code;
						textSNOMED.Text="";
					}
					else if(sender.Equals(butSNOMED)) {
						FormSnomeds FormS=new FormSnomeds();
						FormS.IsSelectionMode=true;
						FormS.ShowDialog();
						if(FormS.DialogResult!=DialogResult.OK) {
							return;
						}
						textSNOMED.Text=FormS.SelectedSnomed.SnomedCode;
						textCompareString.Text="";
					}
					break;
				case 2://Medication
					FormMedications FormM=new FormMedications();
					FormM.IsSelectionMode=true;
					FormM.ShowDialog();
					if(FormM.DialogResult!=DialogResult.OK) {
						return;
					}
					textCompareString.Text=Medications.GetNameOnly(FormM.SelectedMedicationNum);
					break;
				case 3://LabResult
					FormLoincs FormL=new FormLoincs();
					FormL.IsSelectionMode=true;
					FormL.ShowDialog();
					if(FormL.DialogResult!=DialogResult.OK) {
						return;
					}
					textCompareString.Text=FormL.SelectedLoinc.LoincCode;
					comboUnits.Text=FormL.SelectedLoinc.UnitsUCUM;//may be valued, may be blank.
					break;
				case 4://Gender
					//Not visible
					break;
				case 5://Comm preference
					FormCommPrefPicker FormCPP = new FormCommPrefPicker();
					FormCPP.ShowDialog();
					if(FormCPP.DialogResult!=DialogResult.OK) {
						return;
					}
					textCompareString.Text=Enum.GetName(typeof(ContactMethod),FormCPP.ContMethCur);
					break;
				case 6://Alergy
					FormAllergySetup FormAS=new FormAllergySetup();
					FormAS.IsSelectionMode=true;
					FormAS.ShowDialog();
					if(FormAS.DialogResult!=DialogResult.OK) {
						return;
					}
					textCompareString.Text=AllergyDefs.GetDescription(FormAS.SelectedAllergyDefNum);
					break;
				default://should never happen
					break;
			}
		}
Exemple #11
0
		private void butAddIcd9_Click(object sender,EventArgs e) {
			FormIcd9s FormI9=new FormIcd9s();
			FormI9.IsSelectionMode=true;
			FormI9.ShowDialog();
			if(FormI9.DialogResult!=DialogResult.OK) {
				return;
			}
			EhrTriggerCur.ProblemIcd9List+=" "+FormI9.SelectedIcd9.ICD9Code+" ";
			FillGrid();
		}
        private void butPicker_Click(object sender, EventArgs e)
        {
            switch (listRestriction.SelectedIndex)
            {
            case 0:                    //Birthdate
                //Not visible
                break;

            case 1:                    //problem
                if (sender.Equals(butPicker))
                {
                    FormIcd9s FormI9 = new FormIcd9s();
                    FormI9.IsSelectionMode = true;
                    FormI9.ShowDialog();
                    if (FormI9.DialogResult != DialogResult.OK)
                    {
                        return;
                    }
                    textCompareString.Text = FormI9.SelectedIcd9.ICD9Code;
                    textSNOMED.Text        = "";
                }
                else if (sender.Equals(butSNOMED))
                {
                    FormSnomeds FormS = new FormSnomeds();
                    FormS.IsSelectionMode = true;
                    FormS.ShowDialog();
                    if (FormS.DialogResult != DialogResult.OK)
                    {
                        return;
                    }
                    textSNOMED.Text        = FormS.SelectedSnomed.SnomedCode;
                    textCompareString.Text = "";
                }
                break;

            case 2:                    //Medication
                FormMedications FormM = new FormMedications();
                FormM.IsSelectionMode = true;
                FormM.ShowDialog();
                if (FormM.DialogResult != DialogResult.OK)
                {
                    return;
                }
                textCompareString.Text = Medications.GetNameOnly(FormM.SelectedMedicationNum);
                break;

            case 3:                    //LabResult
                //Not visible
                break;

            case 4:                    //Gender
                //Not visible
                break;

            case 5:                    //Comm preference
                FormCommPrefPicker FormCPP = new FormCommPrefPicker();
                FormCPP.ShowDialog();
                if (FormCPP.DialogResult != DialogResult.OK)
                {
                    return;
                }
                textCompareString.Text = Enum.GetName(typeof(ContactMethod), FormCPP.ContMethCur);
                break;

            case 6:                    //Alergy
                FormAllergySetup FormAS = new FormAllergySetup();
                FormAS.IsSelectionMode = true;
                FormAS.ShowDialog();
                if (FormAS.DialogResult != DialogResult.OK)
                {
                    return;
                }
                textCompareString.Text = AllergyDefs.GetDescription(FormAS.SelectedAllergyDefNum);
                break;

            default:                    //should never happen
                break;
            }
        }
Exemple #13
0
 private void butICD9s_Click(object sender,EventArgs e)
 {
     FormIcd9s FormE=new FormIcd9s();
     FormE.ShowDialog();
 }
		private void butAddIcd9_Click(object sender,EventArgs e) {
			FormIcd9s FormI9=new FormIcd9s();
			FormI9.IsSelectionMode=true;
			FormI9.ShowDialog();
			if(FormI9.DialogResult!=DialogResult.OK) {
				return;
			}
			ListObjects.Add(FormI9.SelectedIcd9);
			fillKnowledgeRequestitems();
		}
Exemple #15
0
 private void butSelectFK_Click(object sender,EventArgs e)
 {
     switch((EhrCriterion)comboReminderCriterion.SelectedIndex) {
         case EhrCriterion.Problem:
             FormDiseaseDefs formD=new FormDiseaseDefs();
             formD.IsSelectionMode=true;
             formD.ShowDialog();
             if(formD.DialogResult!=DialogResult.OK) {
                 RuleCur.CriterionFK=-1;
                 return;
             }
             RuleCur.CriterionFK=formD.SelectedDiseaseDefNum;
             break;
         case EhrCriterion.Medication:
             FormMedications formM=new FormMedications();
             formM.IsSelectionMode=true;
             formM.ShowDialog();
             if(formM.DialogResult!=DialogResult.OK) {
                 RuleCur.CriterionFK=-1;
                 return;
             }
             RuleCur.CriterionFK=formM.SelectedMedicationNum;
             break;
         case EhrCriterion.Allergy:
             FormAllergySetup formA=new FormAllergySetup();
             formA.IsSelectionMode=true;
             formA.ShowDialog();
             if(formA.DialogResult!=DialogResult.OK) {
                 RuleCur.CriterionFK=-1;
                 return;
             }
             RuleCur.CriterionFK=formA.SelectedAllergyDefNum;
             break;
         case EhrCriterion.ICD9:
             FormIcd9s FormICD9Select = new FormIcd9s();
             FormICD9Select.IsSelectionMode=true;
             FormICD9Select.ShowDialog();
             if(FormICD9Select.DialogResult!=DialogResult.OK){
                 RuleCur.CriterionFK=-1;
                 return;
             }
             RuleCur.CriterionFK=FormICD9Select.SelectedIcd9Num;
             break;
         default:
             MessageBox.Show("You should never see this error message. Something has stopped working properly.");
             break;
     }
     FillFK();
 }
		private void butPregIcd9_Click(object sender,EventArgs e) {
			FormIcd9s FormI9=new FormIcd9s();
			if(!Security.IsAuthorized(Permissions.SecurityAdmin,false)) {
				FormI9.IsSelectionMode=false;
			}
			else {
				FormI9.IsSelectionMode=true;
			}
			FormI9.ShowDialog();
			if(FormI9.DialogResult==DialogResult.OK) {
				NewPregCodeSystem="ICD9CM";
				comboPregCodes.SelectedIndex=-1;
				textPregCodeValue.Text=FormI9.SelectedIcd9.ICD9Code;
				textPregCodeDescript.Text=FormI9.SelectedIcd9.Description;
				labelPregWarning.Visible=true;
			}
		}
		private void butIcd9_Click(object sender,EventArgs e) {
			FormIcd9s FormI=new FormIcd9s();
			FormI.IsSelectionMode=true;
			FormI.ShowDialog();
			if(FormI.DialogResult!=DialogResult.OK) {
				return;
			}
			if(DiseaseDefs.ContainsICD9(FormI.SelectedIcd9.ICD9Code,DiseaseDefCur.DiseaseDefNum)) {
				MsgBox.Show(this,"ICD-9 code already exists in the problems list.");
				return;
			}
			DiseaseDefCur.ICD9Code=FormI.SelectedIcd9.ICD9Code;
			string i9descript=ICD9s.GetCodeAndDescription(FormI.SelectedIcd9.ICD9Code);
			if(i9descript=="") {
				textICD9.Text=FormI.SelectedIcd9.ICD9Code;
			}
			else {
				textICD9.Text=i9descript;
			}
		}
Exemple #18
0
 private void butIcd9_Click(object sender,EventArgs e)
 {
     FormIcd9s formI=new FormIcd9s();
     formI.IsSelectionMode=true;
     formI.ShowDialog();
     if(formI.DialogResult!=DialogResult.OK) {
         return;
     }
     Disease disease=new Disease();
     disease.PatNum=PatCur.PatNum;
     disease.ICD9Num=formI.SelectedIcd9Num;
     Diseases.Insert(disease);
     FillProblems();
 }
Exemple #19
0
		private void butPickValueIcd9_Click(object sender,EventArgs e) {
			FormIcd9s formI=new FormIcd9s();
			formI.IsSelectionMode=true;
			if(formI.ShowDialog()==DialogResult.OK) {
				_icd9Value=formI.SelectedIcd9;
				textValue.Text=_icd9Value.Description;
				_strValCodeSystem="ICD9";
				labelValue.Text=_strValCodeSystem+" Value";
			}
		}
Exemple #20
0
		private void butDiagnosisCode4_Click(object sender,EventArgs e) {
			FormIcd9s formI=new FormIcd9s();
			formI.IsSelectionMode=true;
			if(formI.ShowDialog()==DialogResult.OK) {
				textDiagnosticCode4.Text=formI.SelectedIcd9.ICD9Code;
			}
		}