示例#1
0
        private void LoadData()
        {
            this.txtPatientAge.Text = patientRepos.GetPatientAge(patientID);

            List <Domain.PatientQuestion> lst = visRepos.GetVisit1Screen2(patientID);

            if (lst != null && lst.Count > 0)
            {
                this.txtVisit1Date.Text          = lst[0].Answer[0].Value;
                this.chkGender.SelectedValue     = lst[1].Answer[0].ID.ToString();
                this.ddEthinicity.SelectedValue  = lst[2].Answer[0].ID.ToString();
                this.ddMedCoverage.SelectedValue = lst[3].Answer[0].ID.ToString();

                this.txtSystolic.Text  = lst[4].Answer[0].Value;
                this.txtDiastolic.Text = lst[5].Answer[0].Value;

                if (lst[6].Answer[0].ID == 33)
                {
                    //chkKg.Checked = true;
                    //chkLbs.Checked = false;

                    rdoWeightType.SelectedIndex = 0;
                }
                else
                if (lst[6].Answer[0].ID == 34)
                {
                    //chkKg.Checked = false;
                    //chkLbs.Checked = true;

                    rdoWeightType.SelectedIndex = 1;
                }


                if (lst[7].Answer[0].ID == 35)
                {
                    //chkCM.Checked = true;
                    //chkInch.Checked = false;

                    rdoHeightType.SelectedIndex = 0;
                }
                else
                if (lst[7].Answer[0].ID == 36)
                {
                    //chkCM.Checked = false;
                    //chkInch.Checked = true;

                    rdoHeightType.SelectedIndex = 1;
                }


                this.txtWeight.Text = lst[6].Answer[0].Value;
                this.txtHeight.Text = lst[7].Answer[0].Value;

                this.chkNeverSmoked.Checked   = lst[8].Answer[0].Value == "1";
                this.chkPastSmoker.Checked    = lst[9].Answer[0].Value == "1";
                this.chkCurrentSmoker.Checked = lst[10].Answer[0].Value == "1";

                this.chkDepressionYes.Checked        = lst[11].Answer[0].Value == "1";
                this.chkErectleYes.Checked           = lst[12].Answer[0].Value == "1";
                this.chkHypoglycemiaYes.Checked      = lst[13].Answer[0].Value == "1";
                this.chkMacroalbuminuriaYes.Checked  = lst[14].Answer[0].Value == "1";
                this.chkMicroalbuminuriaYes.Checked  = lst[15].Answer[0].Value == "1";
                this.chkRetinopathyYes.Checked       = lst[16].Answer[0].Value == "1";
                chkDiabetesComplicationsNone.Checked = lst[17].Answer[0].Value == "1";


                chkCurrentMedicationNone.Checked          = lst[18].Answer[0].Value == "1";
                this.chkASAYes.Checked                    = lst[19].Answer[0].Value == "1";
                this.chkOtherAntiplateletAgentYes.Checked = lst[20].Answer[0].Value == "1";
                this.chkACEInhibitorYes.Checked           = lst[21].Answer[0].Value == "1";
                this.chkARBYes.Checked                    = lst[22].Answer[0].Value == "1";
                this.chkBetaBlockerYes.Checked            = lst[23].Answer[0].Value == "1";
                this.chkCalciumChannelBlockerYes.Checked  = lst[24].Answer[0].Value == "1";
                this.chkDiureticYes.Checked               = lst[25].Answer[0].Value == "1";


                this.ddPatientAdherence.SelectedValue = lst[26].Answer[0].ID.ToString();

                this.chkPatientCaregiver.Checked = lst[27].Answer[0].Value == "1";
                this.chkPhramacyRenewal.Checked  = lst[28].Answer[0].Value == "1";
                this.chkMedicationCount.Checked  = lst[29].Answer[0].Value == "1";
                this.chkGuessedEstimated.Checked = lst[30].Answer[0].Value == "1";
                this.chkDidNotEvaluate.Checked   = lst[31].Answer[0].Value == "1";

                //chkDiabetesComplicationsNone.Checked = lst[30].Answer[0].Value == "1";
                //chkCurrentMedicationNone.Checked = lst[31].Answer[0].Value == "1";
                //chkEstimateMedicationNo.Checked = lst[32].Answer[0].Value == "1";
            }
        }
示例#2
0
 public List <Domain.PatientQuestion> GetVisit1Screen2(int patientID)
 {
     return(visRepos.GetVisit1Screen2(patientID));
 }