Example #1
0
 public List <Domain.PatientQuestion> GetVisit1Screen4(int patientID)
 {
     return(visRepos.GetVisit1Screen4(patientID));
 }
Example #2
0
        private void LoadData()
        {
            List <Domain.PatientQuestion> lst = visRepos.GetVisit1Screen4(patientID);


            //string choles = txtTotalCholesterol.Text + "." + txtTotalCholesterol2.Text;
            //string LDL_C = txtLDL_C1.Text + "." + this.txtLDL_C2.Text;
            //string HDL_C = txtHDLC1.Text + "." + this.txtHDLC2.Text;
            //string nonHDLC = txtNonHDLC1.Text + "." + txtNonHDLC2.Text;
            //string Triglycerides = txtTriglycerides1.Text + "." + txtTriglycerides2.Text;


            if (lst != null && lst.Count > 0)
            {
                this.ddLDLC.SelectedValue           = lst[0].Answer[0].ID.ToString();
                this.txtMostRecentLipidLabDate.Text = lst[1].Answer[0].Value;

                string cholest = lst[2].Answer[0].Value.ToString();
                txtTotalCholesterol.Text = cholest;
                //txtTotalCholesterol.Text = cholest.Split(".".ToCharArray())[0];
                //txtTotalCholesterol2.Text = cholest.Split(".".ToCharArray())[1];


                string LDLc = lst[3].Answer[0].Value.ToString();
                txtLDL_C1.Text = LDLc;
                //txtLDL_C1.Text = LDLc.Split(".".ToCharArray())[0];
                //txtLDL_C2.Text = LDLc.Split(".".ToCharArray())[1];

                string HDLc = lst[4].Answer[0].Value.ToString();
                txtHDLC1.Text = HDLc;
                //txtHDLC1.Text = HDLc.Split(".".ToCharArray())[0];
                //txtHDLC2.Text = HDLc.Split(".".ToCharArray())[1];

                string nonHDLc = lst[5].Answer[0].Value.ToString();
                txtNonHDLC1.Text = nonHDLc;
                //txtNonHDLC1.Text = nonHDLc.Split(".".ToCharArray())[0];
                //txtNonHDLC2.Text = nonHDLc.Split(".".ToCharArray())[1];

                string triglycerides = lst[6].Answer[0].Value.ToString();
                txtTriglycerides1.Text = triglycerides;
                //txtTriglycerides1.Text = triglycerides.Split(".".ToCharArray())[0];
                //txtTriglycerides2.Text = triglycerides.Split(".".ToCharArray())[1];

                SelectStatinTherapy(lst[7].Answer[0].ID.ToString());

                chkLipidBileAcidSequestrant.Checked = lst[8].Answer[0].Value.ToString() == "1";
                chkLipidEzetimibe.Checked           = lst[9].Answer[0].Value.ToString() == "1";
                chkLipidFibrate.Checked             = lst[10].Answer[0].Value.ToString() == "1";
                chkLipidNiacin.Checked = lst[11].Answer[0].Value.ToString() == "1";
                chkLipidOmega.Checked  = lst[12].Answer[0].Value.ToString() == "1";
                chkLipidNone.Checked   = lst[13].Answer[0].Value.ToString() == "1";

                this.ddDiabetesDuration.SelectedValue = lst[14].Answer[0].Value.ToString();

                this.ddACITarget.SelectedValue = lst[15].Answer[0].ID.ToString();

                this.txtRecentA1CLabDate.Text = lst[16].Answer[0].Value.ToString();

                string A1c = lst[17].Answer[0].Value.ToString();
                txtAIC1.Text = A1c;
                //txtAIC1.Text = A1c.Split(".".ToCharArray())[0];
                //txtAIC2.Text = A1c.Split(".".ToCharArray())[1];

                string glucose = lst[18].Answer[0].Value.ToString();
                txtFastingPlasmaGlucose1.Text = glucose;
                //txtFastingPlasmaGlucose1.Text = glucose.Split(".".ToCharArray())[0];
                //txtFastingPlasmaGlucose2.Text = glucose.Split(".".ToCharArray())[1];

                SelectMetforminTherapy(lst[19].Answer[0].ID.ToString());

                chk_Antihyperglycemic_Glucosidase.Checked       = lst[20].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_DPP4.Checked              = lst[21].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_GLP1.Checked              = lst[22].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_Insulin.Checked           = lst[23].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_Meglitinide.Checked       = lst[24].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_SGLT2.Checked             = lst[25].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_Sulfonylurea.Checked      = lst[26].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_Thiazolidinedione.Checked = lst[27].Answer[0].Value.ToString() == "1";
                chk_Antihyperglycemic_None.Checked              = lst[28].Answer[0].Value.ToString() == "1";

                ddBileAcidSequestrant.SelectedValue = lst[29].Answer[0].Value.ToString();

                ddDailyDoseMetformin.SelectedValue = lst[30].Answer[0].Value.ToString();
                ddDailyFreqMetformin.SelectedValue = lst[31].Answer[0].Value.ToString();

                ddDailyDoseGlumetza.SelectedValue = lst[32].Answer[0].Value.ToString();

                ddDailyDoseLinagliptin.SelectedValue = lst[33].Answer[0].Value.ToString();

                ddDailyDoseSaxagliptin.SelectedValue = lst[34].Answer[0].Value.ToString();

                ddDailyDoseSitagliptin.SelectedValue = lst[35].Answer[0].Value.ToString();

                ddDailyDoseSitagliptinExt.SelectedValue = lst[36].Answer[0].Value.ToString();

                ddNumInjections.SelectedValue = lst[37].Answer[0].Value.ToString();

                this.txtLDLCareGap.Text = lst[38].Answer[0].Value.ToString();

                chkLimitLife.Checked             = lst[39].Answer[0].Value.ToString() == "1";
                chkHighFunc.Checked              = lst[40].Answer[0].Value.ToString() == "1";
                chkIschemic.Checked              = lst[41].Answer[0].Value.ToString() == "1";
                chkMultiMorbid.Checked           = lst[42].Answer[0].Value.ToString() == "1";
                chkRecuGlycemia.Checked          = lst[43].Answer[0].Value.ToString() == "1";
                chkHypoglycemiaAwareness.Checked = lst[44].Answer[0].Value.ToString() == "1";
                chkLongDia.Checked       = lst[45].Answer[0].Value.ToString() == "1";
                chkClinicalJudge.Checked = lst[46].Answer[0].Value.ToString() == "1";
                chkNone.Checked          = lst[47].Answer[0].Value.ToString() == "1";

                //chkLipidNone.Checked = lst[46].Answer[0].Value.ToString() == "1";
            }
        }