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; } }
private void FormDiseaseDefEdit_Load(object sender, System.EventArgs e) { textName.Text = DiseaseDefCur.DiseaseName; string i9descript = ICD9s.GetCodeAndDescription(DiseaseDefCur.ICD9Code); if (i9descript == "") { textICD9.Text = DiseaseDefCur.ICD9Code; } else { textICD9.Text = i9descript; } Icd10 i10 = Icd10s.GetByCode(DiseaseDefCur.Icd10Code); if (i10 == null) { textIcd10.Text = DiseaseDefCur.Icd10Code; } else { textIcd10.Text = i10.Icd10Code + "-" + i10.Description; } string sdescript = Snomeds.GetCodeAndDescription(DiseaseDefCur.SnomedCode); if (sdescript == "") { textSnomed.Text = DiseaseDefCur.SnomedCode; } else { textSnomed.Text = sdescript; } checkIsHidden.Checked = DiseaseDefCur.IsHidden; }
private void butProblemSelect_Click(object sender, EventArgs e) { FormDiseaseDefs FormDD = new FormDiseaseDefs(); FormDD.IsSelectionMode = true; FormDD.ShowDialog(); if (FormDD.DialogResult != DialogResult.OK) { return; } DiseaseDef disCur = DiseaseDefs.GetItem(FormDD.SelectedDiseaseDefNum); if (disCur == null) { return; } EduResourceCur.DiseaseDefNum = FormDD.SelectedDiseaseDefNum; textProblem.Text = disCur.DiseaseName; textICD9.Text = ICD9s.GetCodeAndDescription(disCur.ICD9Code); textSnomed.Text = Snomeds.GetCodeAndDescription(disCur.SnomedCode); EduResourceCur.MedicationNum = 0; textLabResultsID.Text = ""; textLabTestName.Text = ""; textCompareValue.Text = ""; }
private void butProblemSelect_Click(object sender, EventArgs e) { FormDiseaseDefs FormDD = new FormDiseaseDefs(); FormDD.IsSelectionMode = true; FormDD.ShowDialog(); if (FormDD.DialogResult != DialogResult.OK) { return; } //the list should only ever contain one item. DiseaseDef disCur = FormDD.ListSelectedDiseaseDefs[0]; if (disCur == null) { return; } EduResourceCur.DiseaseDefNum = disCur.DiseaseDefNum; EduResourceCur.MedicationNum = 0; EduResourceCur.SmokingSnoMed = ""; EduResourceCur.LabResultID = ""; EduResourceCur.LabResultName = ""; EduResourceCur.LabResultCompare = ""; textProblem.Text = disCur.DiseaseName; textICD9.Text = ICD9s.GetCodeAndDescription(disCur.ICD9Code); textSnomed.Text = Snomeds.GetCodeAndDescription(disCur.SnomedCode); textMedication.Text = ""; textTobaccoAssessment.Text = ""; textLabResultsID.Text = ""; textLabTestName.Text = ""; textCompareValue.Text = ""; }
private void FormEduResourceEdit_Load(object sender, EventArgs e) { if (EduResourceCur.DiseaseDefNum != 0) { DiseaseDef def = DiseaseDefs.GetItem(EduResourceCur.DiseaseDefNum); textProblem.Text = def.DiseaseName; textICD9.Text = ICD9s.GetCodeAndDescription(def.ICD9Code); textSnomed.Text = Snomeds.GetCodeAndDescription(def.SnomedCode); } else if (EduResourceCur.MedicationNum != 0) { textMedication.Text = Medications.GetDescription(EduResourceCur.MedicationNum); } textLabResultsID.Text = EduResourceCur.LabResultID; textLabTestName.Text = EduResourceCur.LabResultName; textCompareValue.Text = EduResourceCur.LabResultCompare; textUrl.Text = EduResourceCur.ResourceUrl; }
private void FormDiseaseEdit_Load(object sender, EventArgs e) { DiseaseDef diseasedef = DiseaseDefs.GetItem(DiseaseCur.DiseaseDefNum); //guaranteed to have one textProblem.Text = diseasedef.DiseaseName; string i9descript = ICD9s.GetCodeAndDescription(diseasedef.ICD9Code); if (i9descript == "") { textIcd9.Text = diseasedef.ICD9Code; } else { textIcd9.Text = i9descript; } string sdescript = Snomeds.GetCodeAndDescription(diseasedef.SnomedCode); if (sdescript == "") { textSnomed.Text = diseasedef.SnomedCode; } else { textSnomed.Text = sdescript; } comboStatus.Items.Clear(); for (int i = 0; i < Enum.GetNames(typeof(ProblemStatus)).Length; i++) { comboStatus.Items.Add(Enum.GetNames(typeof(ProblemStatus))[i]); } comboStatus.SelectedIndex = (int)DiseaseCur.ProbStatus; textNote.Text = DiseaseCur.PatNote; if (DiseaseCur.DateStart.Year > 1880) { textDateStart.Text = DiseaseCur.DateStart.ToShortDateString(); } if (DiseaseCur.DateStop.Year > 1880) { textDateStop.Text = DiseaseCur.DateStop.ToShortDateString(); } comboSnomedProblemType.Items.Clear(); comboSnomedProblemType.Items.Add("Problem"); //0 - Default value. Problem (finding). 55607006 comboSnomedProblemType.Items.Add("Finding"); //1 - Clinical finding (finding). 404684003 comboSnomedProblemType.Items.Add("Complaint"); //2 - Complaint (finding). 409586006 comboSnomedProblemType.Items.Add("Diagnosis"); //3 - Diagnosis interpretation (observable entity). 282291009 comboSnomedProblemType.Items.Add("Condition"); //4 - Disease (disorder). 64572001 comboSnomedProblemType.Items.Add("FunctionalLimitation"); //5 - Finding of functional performance and activity (finding). 248536006 comboSnomedProblemType.Items.Add("Symptom"); //6 - Finding reported by subject or history provider (finding). 418799008 if (DiseaseCur.SnomedProblemType == "404684003") //Finding { comboSnomedProblemType.SelectedIndex = 1; } else if (DiseaseCur.SnomedProblemType == "409586006") //Complaint { comboSnomedProblemType.SelectedIndex = 2; } else if (DiseaseCur.SnomedProblemType == "282291009") //Diagnosis { comboSnomedProblemType.SelectedIndex = 3; } else if (DiseaseCur.SnomedProblemType == "64572001") //Condition { comboSnomedProblemType.SelectedIndex = 4; } else if (DiseaseCur.SnomedProblemType == "248536006") //FunctionalLimitation { comboSnomedProblemType.SelectedIndex = 5; } else if (DiseaseCur.SnomedProblemType == "418799008") //Symptom { comboSnomedProblemType.SelectedIndex = 6; } else //Problem { comboSnomedProblemType.SelectedIndex = 0; } comboEhrFunctionalStatus.Items.Clear(); string[] arrayFunctionalStatusNames = Enum.GetNames(typeof(FunctionalStatus)); for (int i = 0; i < arrayFunctionalStatusNames.Length; i++) { comboEhrFunctionalStatus.Items.Add(Lan.g(this, arrayFunctionalStatusNames[i])); } comboEhrFunctionalStatus.SelectedIndex = (int)DiseaseCur.FunctionStatus; //The default value is 'Problem' }