private void butMedicationSelect_Click(object sender, EventArgs e) { FormMedications FormM = new FormMedications(); FormM.IsSelectionMode = true; FormM.ShowDialog(); if (FormM.DialogResult != DialogResult.OK) { return; } EduResourceCur.DiseaseDefNum = 0; EduResourceCur.MedicationNum = FormM.SelectedMedicationNum; EduResourceCur.SmokingSnoMed = ""; EduResourceCur.LabResultID = ""; EduResourceCur.LabResultName = ""; EduResourceCur.LabResultCompare = ""; textProblem.Text = ""; textICD9.Text = ""; textSnomed.Text = ""; textMedication.Text = Medications.GetDescription(FormM.SelectedMedicationNum); textTobaccoAssessment.Text = ""; textLabResultsID.Text = ""; textLabTestName.Text = ""; textCompareValue.Text = ""; }
private void FillGridEdu() { gridEdu.BeginUpdate(); gridEdu.Columns.Clear(); ODGridColumn col = new ODGridColumn("Criteria", 300); gridEdu.Columns.Add(col); col = new ODGridColumn("Link", 100); gridEdu.Columns.Add(col); eduResourceList = EduResources.GenerateForPatient(patCur.PatNum); gridEdu.Rows.Clear(); ODGridRow row; for (int i = 0; i < eduResourceList.Count; i++) { row = new ODGridRow(); if (eduResourceList[i].DiseaseDefNum != 0) { row.Cells.Add("Problem: " + DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).DiseaseName); //row.Cells.Add("ICD9: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).ICD9Code); } else if (eduResourceList[i].MedicationNum != 0) { row.Cells.Add("Medication: " + Medications.GetDescription(eduResourceList[i].MedicationNum)); } else { row.Cells.Add("Lab Results: " + eduResourceList[i].LabResultName); } row.Cells.Add(eduResourceList[i].ResourceUrl); gridEdu.Rows.Add(row); } gridEdu.EndUpdate(); }
private void butMedicationSelect_Click(object sender, EventArgs e) { FormMedications FormM = new FormMedications(); FormM.IsSelectionMode = true; FormM.ShowDialog(); if (FormM.DialogResult != DialogResult.OK) { return; } AllergyDefCur.MedicationNum = FormM.SelectedMedicationNum; textMedication.Text = Medications.GetDescription(AllergyDefCur.MedicationNum); }
private void FormAllergyEdit_Load(object sender, EventArgs e) { if (!AllergyDefCur.IsNew) { textDescription.Text = AllergyDefCur.Description; checkHidden.Checked = AllergyDefCur.IsHidden; } for (int i = 0; i < Enum.GetNames(typeof(SnomedAllergy)).Length; i++) { comboSnomedAllergyType.Items.Add(Enum.GetNames(typeof(SnomedAllergy))[i]); } comboSnomedAllergyType.SelectedIndex = (int)AllergyDefCur.Snomed; textMedication.Text = Medications.GetDescription(AllergyDefCur.MedicationNum); }
private void FormAllergyEdit_Load(object sender, EventArgs e) { textDescription.Text = AllergyDefCur?.Description ?? ""; //set description if available. New allergies can be added with descriptions. if (!AllergyDefCur.IsNew) { checkHidden.Checked = AllergyDefCur.IsHidden; } for (int i = 0; i < Enum.GetNames(typeof(SnomedAllergy)).Length; i++) { comboSnomedAllergyType.Items.Add(Enum.GetNames(typeof(SnomedAllergy))[i]); } comboSnomedAllergyType.SelectedIndex = (int)AllergyDefCur.SnomedType; textMedication.Text = Medications.GetDescription(AllergyDefCur.MedicationNum); textUnii.Text = AllergyDefCur.UniiCode; }
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 FillGridEdu() { gridEdu.BeginUpdate(); gridEdu.Columns.Clear(); ODGridColumn col = new ODGridColumn("Criteria", 300); gridEdu.Columns.Add(col); col = new ODGridColumn("Link", 100); gridEdu.Columns.Add(col); eduResourceList = EduResources.GenerateForPatient(patCur.PatNum); gridEdu.Rows.Clear(); ODGridRow row; foreach (EduResource eduResCur in eduResourceList) { row = new ODGridRow(); if (eduResCur.DiseaseDefNum != 0) { row.Cells.Add("Problem: " + DiseaseDefs.GetItem(eduResCur.DiseaseDefNum).DiseaseName); //row.Cells.Add("ICD9: "+DiseaseDefs.GetItem(eduResCur.DiseaseDefNum).ICD9Code); } else if (eduResCur.MedicationNum != 0) { row.Cells.Add("Medication: " + Medications.GetDescription(eduResCur.MedicationNum)); } else if (eduResCur.SmokingSnoMed != "") { Snomed sCur = Snomeds.GetByCode(eduResCur.SmokingSnoMed); string criteriaCur = "Tobacco Use Assessment: "; if (sCur != null) { criteriaCur += sCur.Description; } row.Cells.Add(criteriaCur); } else { row.Cells.Add("Lab Results: " + eduResCur.LabResultName); } row.Cells.Add(eduResCur.ResourceUrl); gridEdu.Rows.Add(row); } gridEdu.EndUpdate(); }
private void FormEduResourceEdit_Load(object sender, EventArgs e) { if (EduResourceCur.DiseaseDefNum != 0) { textProblem.Text = DiseaseDefs.GetName(EduResourceCur.DiseaseDefNum); } else if (EduResourceCur.Icd9Num != 0) { textICD9.Text = ICD9s.GetDescription(EduResourceCur.Icd9Num); } 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 butMedicationSelect_Click(object sender, EventArgs e) { FormMedications FormM = new FormMedications(); FormM.IsSelectionMode = true; FormM.ShowDialog(); if (FormM.DialogResult != DialogResult.OK) { return; } textProblem.Text = ""; EduResourceCur.DiseaseDefNum = 0; textICD9.Text = ""; EduResourceCur.Icd9Num = 0; textMedication.Text = Medications.GetDescription(FormM.SelectedMedicationNum); EduResourceCur.MedicationNum = FormM.SelectedMedicationNum; textLabResultsID.Text = ""; textLabTestName.Text = ""; textCompareValue.Text = ""; }
private void FillGrid() { gridEdu.BeginUpdate(); gridEdu.Columns.Clear(); ODGridColumn col = new ODGridColumn("Criteria", 300); gridEdu.Columns.Add(col); col = new ODGridColumn("Link", 700); gridEdu.Columns.Add(col); eduResourceList = EduResources.SelectAll(); gridEdu.Rows.Clear(); ODGridRow row; for (int i = 0; i < eduResourceList.Count; i++) { row = new ODGridRow(); if (eduResourceList[i].DiseaseDefNum != 0) { row.Cells.Add("Problem: " + DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).DiseaseName); } else if (eduResourceList[i].Icd9Num != 0) { row.Cells.Add("ICD9: " + ICD9s.GetDescription(eduResourceList[i].Icd9Num)); } else if (eduResourceList[i].MedicationNum != 0) { row.Cells.Add("Medication: " + Medications.GetDescription(eduResourceList[i].MedicationNum)); } else { row.Cells.Add("Lab Results: " + eduResourceList[i].LabResultName + " " + eduResourceList[i].LabResultCompare); } row.Cells.Add(eduResourceList[i].ResourceUrl); gridEdu.Rows.Add(row); } gridEdu.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn("Category", 80); gridMain.Columns.Add(col); col = new ODGridColumn("Code", 100); gridMain.Columns.Add(col); col = new ODGridColumn("CodeSystem", 120); gridMain.Columns.Add(col); //col=new ODGridColumn("Op+Value",80);//Example: >=150 //gridMain.Columns.Add(col); col = new ODGridColumn("Description", 250); //Also includes values for labloinc and demographics and vitals. Example: ">150, BP Systolic" gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; //EhrTriggerCur.ProblemDefNumList----------------------------------------------------------------------------------------------------------------------- string[] arrayString = EhrTriggerCur.ProblemDefNumList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Problem"); row.Cells.Add(arrayString[i]); row.Cells.Add("Problem Def"); row.Cells.Add(DiseaseDefs.GetItem(PIn.Long(arrayString[i])).DiseaseName); gridMain.Rows.Add(row); } //EhrTriggerCur.ProblemIcd9List--------------------------------------------------------------------------------------------------------------------------- arrayString = EhrTriggerCur.ProblemIcd9List.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Problem"); row.Cells.Add(arrayString[i]); row.Cells.Add("ICD9 CM"); row.Cells.Add(ICD9s.GetByCode(arrayString[i]).Description); gridMain.Rows.Add(row); } //EhrTriggerCur.ProblemIcd10List; arrayString = EhrTriggerCur.ProblemIcd10List.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Problem"); row.Cells.Add(arrayString[i]); row.Cells.Add("ICD10 CM"); row.Cells.Add(Icd10s.GetByCode(arrayString[i]).Description); gridMain.Rows.Add(row); } //EhrTriggerCur.ProblemSnomedList; arrayString = EhrTriggerCur.ProblemSnomedList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Problem"); row.Cells.Add(arrayString[i]); row.Cells.Add("SNOMED CT"); row.Cells.Add(Snomeds.GetByCode(arrayString[i]).Description); gridMain.Rows.Add(row); } //EhrTriggerCur.MedicationNumList arrayString = EhrTriggerCur.MedicationNumList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Medication"); row.Cells.Add(arrayString[i]); row.Cells.Add("Medication Def"); row.Cells.Add(Medications.GetDescription(PIn.Long(arrayString[i]))); gridMain.Rows.Add(row); } //EhrTriggerCur.RxCuiList arrayString = EhrTriggerCur.RxCuiList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Medication"); row.Cells.Add(arrayString[i]); row.Cells.Add("RxCui"); row.Cells.Add(RxNorms.GetByRxCUI(arrayString[i]).Description); gridMain.Rows.Add(row); } //EhrTriggerCur.CvxList arrayString = EhrTriggerCur.CvxList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Medication"); row.Cells.Add(arrayString[i]); row.Cells.Add("Cvx"); row.Cells.Add(Cvxs.GetByCode(arrayString[i]).Description); gridMain.Rows.Add(row); } //EhrTriggerCur.AllergyDefNumList arrayString = EhrTriggerCur.AllergyDefNumList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); row.Cells.Add("Allergy"); row.Cells.Add(arrayString[i]); row.Cells.Add("Allergy Def"); row.Cells.Add(AllergyDefs.GetOne(PIn.Long(arrayString[i])).Description); gridMain.Rows.Add(row); } //EhrTriggerCur.DemographicsList arrayString = EhrTriggerCur.DemographicsList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); string[] arrayStringElements = arrayString[i].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries); switch (arrayStringElements[0]) { case "age": row.Cells.Add("Demographic"); row.Cells.Add("30525-0"); row.Cells.Add("LOINC"); row.Cells.Add("Age" + arrayStringElements[1]); //Example "Age>55" gridMain.Rows.Add(row); break; case "gender": row.Cells.Add("Demographic"); row.Cells.Add("46098-0"); row.Cells.Add("LOINC"); row.Cells.Add("Gender:" + arrayString[i].Replace("gender,", "")); //Example "Gender:Male, Female, Unknown/Undifferentiated" gridMain.Rows.Add(row); break; default: //should never happen continue; //next trigger } } //EhrTriggerCur.LabLoincList arrayString = EhrTriggerCur.LabLoincList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); Loinc _loincTemp = Loincs.GetByCode(arrayString[i]); //.Split(new string[] { ";" },StringSplitOptions.None)[0]); if (_loincTemp == null) { continue; } row.Cells.Add("Laboratory"); row.Cells.Add(_loincTemp.LoincCode); row.Cells.Add("LOINC"); row.Cells.Add(_loincTemp.NameShort); //switch(arrayString[i].Split(new string[] { ";" },StringSplitOptions.RemoveEmptyEntries).Length) { // case 1://loinc only comparison // row.Cells.Add(_loincTemp.NameShort); // break; // case 2://microbiology or unitless lab. // Snomed _snomedTemp=Snomeds.GetByCode(arrayString[i].Split(new string[] { ";" },StringSplitOptions.None)[1]); // row.Cells.Add(_loincTemp.NameShort+", " // +(_snomedTemp==null?arrayString[i].Split(new string[] { ";" },StringSplitOptions.None)[1]:_snomedTemp.Description));//Example: Bacteria Identified, Campylobacter jenuni // break; // case 3://"traditional lab results" // row.Cells.Add(_loincTemp.NameShort+" " // +arrayString[i].Split(new string[] { ";" },StringSplitOptions.None)[1]+" "//example: >150 or a snomed code if microbiology // +arrayString[i].Split(new string[] { ";" },StringSplitOptions.None)[2] //example: mg/dL or blank // ); // break; // default://should never happen. Will display blank. // row.Cells.Add(""); // break; //} gridMain.Rows.Add(row); } //EhrTriggerCur.VitalLoincList arrayString = EhrTriggerCur.VitalLoincList.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arrayString.Length; i++) { row = new ODGridRow(); string[] arrayStringElements = arrayString[i].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries); switch (arrayStringElements[0]) { case "height": row.Cells.Add("Vitals"); row.Cells.Add("8302-2"); row.Cells.Add("LOINC"); row.Cells.Add("Height" + arrayString[i].Replace("height,", "") + " in."); //Example "Age>55" gridMain.Rows.Add(row); break; case "weight": row.Cells.Add("Vitals"); row.Cells.Add("29463-7"); row.Cells.Add("LOINC"); row.Cells.Add("Weight:" + arrayString[i].Replace("weight,", "")); //Example "Gender:Male, Female, Unknown/Undifferentiated" gridMain.Rows.Add(row); break; case "bp???": row.Cells.Add("Vitals"); row.Cells.Add("???There are two."); row.Cells.Add("LOINC"); row.Cells.Add("???"); //Example "Gender:Male, Female, Unknown/Undifferentiated" gridMain.Rows.Add(row); break; case "BMI": row.Cells.Add("Vitals"); row.Cells.Add("39156-5"); row.Cells.Add("LOINC"); row.Cells.Add("BMI" + arrayString[i].Replace("BMI,", "").Replace("%", "") + "%"); //Example "Gender:Male, Female, Unknown/Undifferentiated" gridMain.Rows.Add(row); break; default: //should never happen continue; //next trigger } } //End trigger fields. gridMain.EndUpdate(); }
private void FormFormularyMedEdit_Load(object sender, EventArgs e) { textMedication.Text = Medications.GetDescription(FormularyMedCur.MedicationNum); }