Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
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        = "";
        }
Exemplo n.º 3
0
        private void FillFK()
        {
            if (RuleCur.CriterionFK == -1 || RuleCur.CriterionFK == 0)
            {
                textCriterionFK.Text = "";
                return;
            }
            switch ((EhrCriterion)comboReminderCriterion.SelectedIndex)
            {
            case EhrCriterion.Problem:
                textCriterionFK.Text = DiseaseDefs.GetName(RuleCur.CriterionFK);
                break;

            case EhrCriterion.ICD9:
                textCriterionFK.Text = ICD9s.GetDescription(RuleCur.CriterionFK);
                break;

            case EhrCriterion.Medication:
                Medication tempMed = Medications.GetMedication(RuleCur.CriterionFK);
                if (tempMed.MedicationNum == tempMed.GenericNum)                       //handle generic medication names.
                {
                    textCriterionFK.Text = tempMed.MedName;
                }
                else
                {
                    textCriterionFK.Text = tempMed.MedName + " / " + Medications.GetGenericName(tempMed.GenericNum);
                }
                break;

            case EhrCriterion.Allergy:
                textCriterionFK.Text = AllergyDefs.GetOne(RuleCur.CriterionFK).Description;
                break;

            default:
                //Nothing should happen here.
                break;
            }
        }
Exemplo n.º 4
0
        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();
        }