コード例 #1
0
        public PatientVital GetByPatientId()
        {
            var patientVitalsManager = new PatientVitalsManager();
            int patient = Convert.ToInt32(Session["PatientPK"].ToString());

            return(patientVitalsManager.GetByPatientId(patient));
        }
コード例 #2
0
        public string GetCurrentPatientVitalsByPatientId()
        {
            var patientVitalsManager = new PatientVitalsManager();
            int patient = Convert.ToInt32(Session["PatientPK"].ToString());
            var vitals  = patientVitalsManager.GetByPatientId(patient);

            return(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(vitals));
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            age                  = Convert.ToInt32(HttpContext.Current.Session["Age"]);
            PatientId            = Convert.ToInt32(HttpContext.Current.Session["PatientPK"]);
            PatientMasterVisitId = Convert.ToInt32(Request.QueryString["visitId"] != null ? Request.QueryString["visitId"] : HttpContext.Current.Session["PatientMasterVisitId"]);
            userId               = Convert.ToInt32(Session["AppUserId"]);
            if (Request.QueryString["visitId"] != null)
            {
                Session["ExistingRecordPatientMasterVisitID"] = Request.QueryString["visitId"].ToString();
                PatientEncounterExists = Convert.ToInt32(Request.QueryString["visitId"].ToString());
            }
            else
            {
                Session["ExistingRecordPatientMasterVisitID"] = "0";

                ///////Check if visit is scheduled
                if (PEL.isVisitScheduled(HttpContext.Current.Session["PatientPK"].ToString()) > 0)
                {
                    vsYes.Checked = true;
                }
                else
                {
                    vsNo.Checked = true;
                }
            }

            // Get Gender
            PatientLookup genderId = _patientLookupmanager.GetGenderID(Convert.ToInt32(HttpContext.Current.Session["PatientPK"]));

            if (genderId != null)
            {
                genderID = genderId.Sex;
            }

            LookupItemView genderType = _lookupItemManager.GetPatientGender(genderID);

            gender = genderType.ItemName;

            ILookupManager        mgr      = (ILookupManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.BLookupManager, BusinessProcess.CCC");
            List <LookupItemView> statuses = mgr.GetLookItemByGroup("AppointmentStatus");

            if (statuses != null && statuses.Count > 0)
            {
                status.Items.Add(new ListItem("select", "0"));
                foreach (var k in statuses)
                {
                    status.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
                status.SelectedIndex = 1;
                status.Enabled       = false;
            }


            List <LookupItemView> whoStage = mgr.GetLookItemByGroup("WHOStage");

            if (whoStage != null && whoStage.Count > 0)
            {
                WHOStage.Items.Add(new ListItem("select", ""));
                foreach (var k in whoStage)
                {
                    WHOStage.Items.Add(new ListItem(k.ItemName, k.ItemId.ToString()));
                }
            }

            List <LookupItemView> areas = mgr.GetLookItemByGroup("ServiceArea");

            if (areas != null && areas.Count > 0)
            {
                ServiceArea.Items.Add(new ListItem("select", "0"));
                foreach (var k in areas)
                {
                    ServiceArea.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
            }

            List <LookupItemView> reasons = mgr.GetLookItemByGroup("AppointmentReason");

            if (reasons != null && reasons.Count > 0)
            {
                Reason.Items.Add(new ListItem("select", "0"));
                foreach (var k in reasons)
                {
                    Reason.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
            }

            List <LookupItemView> care = mgr.GetLookItemByGroup("DifferentiatedCare");

            if (care != null && care.Count > 0)
            {
                DifferentiatedCare.Items.Add(new ListItem("select", "0"));
                foreach (var k in care)
                {
                    DifferentiatedCare.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
            }

            if (!IsPostBack)
            {
                LookupLogic lookUp = new LookupLogic();
                //lookUp.populateDDL(tbscreeningstatus, "TBStatus");
                lookUp.populateDDL(nutritionscreeningstatus, "NutritionStatus");
                lookUp.populateDDL(AdverseEventAction, "AdverseEventsActions");
                lookUp.populateDDL(ddlAdverseEventSeverity, "ADRSeverity");
                lookUp.populateDDL(ddlVisitBy, "VisitBy");
                lookUp.populateDDL(ChronicIllnessName, "ChronicIllness");
                lookUp.populateDDL(ddlVaccine, "Vaccinations");
                lookUp.populateDDL(ddlVaccineStage, "VaccinationStages");
                lookUp.populateDDL(ddlExaminationType, "ReviewOfSystems");
                //lookUp.populateDDL(ddlExamination, "PhysicalExamination");
                lookUp.populateCBL(cblGeneralExamination, "GeneralExamination");
                lookUp.populateCBL(cblPHDP, "PHDP");
                lookUp.populateDDL(arvAdherance, "ARVAdherence");
                lookUp.populateDDL(ctxAdherance, "CTXAdherence");
                lookUp.populateDDL(ddlAllergySeverity, "ADRSeverity");
                lookUp.populateDDL(stabilityStatus, "StabilityAssessment");
                lookUp.populateDDL(ddlPartnerStatus, "HivStatus");
                lookUp.populateDDL(ddlPartnerGender, "Gender");
                lookUp.populateDDL(ddlSexualOrientation, "SexualOrientation");

                var ddlHighRiskBehaviour = this.FindControl("ddlHighRiskBehaviour") as System.Web.UI.HtmlControls.HtmlSelect;
                // lookUp.populateDDL(ddlHighRiskBehaviour, "HighRisk");
                //lookUp.populateDDL(WHOStage, "WHOStage");
                //Patient Nutrition assessment notes and screening
                lookUp.populateDDL(ddlOnAntiTBDrugs, "GeneralYesNo");
                lookUp.populateDDL(ddlICFCough, "GeneralYesNo");
                lookUp.populateDDL(ddlICFFever, "GeneralYesNo");
                lookUp.populateDDL(ddlICFWeight, "GeneralYesNo");
                lookUp.populateDDL(ddlICFNightSweats, "GeneralYesNo");
                lookUp.populateDDL(ddlICFRegimen, "TBRegimen");
                lookUp.populateDDL(ddlICFCurrentlyOnIPT, "GeneralYesNo");
                lookUp.populateDDL(ddlICFStartIPT, "GeneralYesNo");
                lookUp.populateDDL(ddlICFTBScreeningOutcome, "TBFindings");

                lookUp.populateDDL(ddlSputumSmear, "SputumSmear");
                lookUp.populateDDL(ddlGeneXpert, "GeneExpert");
                lookUp.populateDDL(ddlChestXray, "ChestXray");
                lookUp.populateDDL(ddlStartAntiTB, "GeneralYesNo");
                lookUp.populateDDL(ddlInvitationofContacts, "GeneralYesNo");
                lookUp.populateDDL(ddlEvaluatedforIPT, "GeneralYesNo");
                getPatientNotesandScreening();
                populatePNS();
                getPNSData();

                //List<LookupItemView> highriskorientation = mgr.GetLookItemByGroup("HighRisk");
                //if (highriskorientation != null && highriskorientation.Count > 0)
                //{
                //    DifferentiatedCare.Items.Add(new ListItem("select", "0"));
                //    foreach (var k in highriskorientation)
                //    {
                //        ddlHighRiskBehaviour.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                //    }
                //}
                //ddlHighRiskBehaviour.Attributes["multiple"] = "multiple";
                var          patientVitals = new PatientVitalsManager();
                PatientVital patientTriage = patientVitals.GetByPatientId(Convert.ToInt32(Session["PatientPK"].ToString()));
                if (patientTriage != null)
                {
                    Weight         = patientTriage.Weight.ToString();
                    txtWeight.Text = Weight;
                    txtHeight.Text = patientTriage.Height.ToString();
                    txtBMI.Text    = patientTriage.BMI.ToString();
                    if (patientTriage.BMIZ != null)
                    {
                        txtBMIZ.Text = patientTriage.BMIZ.ToString();
                    }
                }


                //if (Convert.ToInt32(Session["PatientMasterVisitId"]) > 0)
                loadPatientEncounter();
            }

            Control NeonatalHistoryCtrl = Page.LoadControl("~/CCC/UC/ucNeonatalHistory.ascx");

            NeonatalHistoryPH.Controls.Add(NeonatalHistoryCtrl);

            Control TannerStagingCtrl = Page.LoadControl("~/CCC/UC/ucTannerStaging.ascx");

            TannersStagingPH.Controls.Add(TannerStagingCtrl);

            Control SocialHoistoryCtrl = Page.LoadControl("~/CCC/UC/ucSocialHistory.ascx");

            SocialHistoryPH.Controls.Add(SocialHoistoryCtrl);
        }
コード例 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            double       bmi = 0.0;
            string       bmiZ;
            decimal      diastolic     = 0;
            decimal      systolic      = 0;
            string       bmiAnalysis   = "";
            string       bpAnalysis    = "";
            var          patientVitals = new PatientVitalsManager();
            PatientVital patientTriage;

            if (Request.QueryString["visitId"] != null)
            {
                Session["ExistingRecordPatientMasterVisitID"] = Request.QueryString["visitId"].ToString();
                patientTriage = patientVitals.GetByPatientVisitId(Convert.ToInt32(Session["ExistingRecordPatientMasterVisitID"]));
            }
            else
            {
                Session["ExistingRecordPatientMasterVisitID"] = "0";
                patientTriage = patientVitals.GetByPatientId(PatientId);
            }

            PatientLookupManager pMgr = new PatientLookupManager();
            //PatientVital patientTriage = patientVitals.GetByPatientId(PatientId);
            PatientLookup thisPatient = pMgr.GetPatientDetailSummary(PatientId);
            int           age         = Convert.ToInt32(HttpContext.Current.Session["Age"]);
            DateTime      DoB         = Convert.ToDateTime(thisPatient.DateOfBirth);
            var           patientAge  = PatientManager.CalculateYourAge(DoB);

            lblAge.Text = "<strong><i>" + patientAge.Replace("Age:", "") + "</i></strong>";
            string notTaken = "<span class='label label-danger'>Not Taken!</span>";

            if (patientTriage != null)
            {
                lblDatetaken.Text = Convert.ToDateTime(patientTriage.VisitDate).ToString("dd-MMM-yyyy");
                bmi       = Convert.ToDouble(patientTriage.BMI);
                bmiZ      = Convert.ToString(patientTriage.BMIZ);
                diastolic = Convert.ToDecimal(patientTriage.Bpdiastolic);
                systolic  = Convert.ToDecimal(patientTriage.BpSystolic);

                bpDiastolic = Convert.ToInt32(diastolic);
                bpSystloic  = Convert.ToInt32(systolic);

                bgSystolicT.Text  = bpSystloic.ToString() + " (Systolic)";
                pgDiastolicT.Text = bpDiastolic.ToString() + " (Diastolic)";

                if (patientTriage.Temperature > 0)
                {
                    if (patientTriage.Temperature > 40)
                    {
                        lblTemperature.Text = "<span class='label label-danger'>" +
                                              Convert.ToString(patientTriage.Temperature) +
                                              "°C | Possible Hyperpyrexia‎";
                    }
                    else if (Convert.ToDouble(patientTriage.Temperature) >= 36.0 &&
                             Convert.ToDouble(patientTriage.Temperature) <= 38)
                    {
                        lblTemperature.Text = "<span class='label label-success'>" +
                                              Convert.ToString(patientTriage.Temperature) + "°C | Normal‎";
                    }
                    else if (Convert.ToDouble(patientTriage.Temperature) > 38 &&
                             Convert.ToDouble(patientTriage.Temperature) <= 40.0)
                    {
                        lblTemperature.Text = "<span class='label label-danger'>" +
                                              Convert.ToString(patientTriage.Temperature) +
                                              "°C | Possible Hyperpyrexia‎";
                    }
                    else if (patientTriage.Temperature < 32)
                    {
                        lblTemperature.Text = "<span class='label label-danger'>" +
                                              Convert.ToString(patientTriage.Temperature) + "°C | Medical Emergency‎";
                    }
                    else if (patientTriage.Temperature >= 32 && patientTriage.Temperature < 36)
                    {
                        lblTemperature.Text = "<span class='label label-danger'>" +
                                              Convert.ToString(patientTriage.Temperature) + "°C | Hypothermia ‎";
                    }
                }
                else
                {
                    lblTemperature.Text = "<span class='label label-danger'>" +
                                          Convert.ToString(patientTriage.Temperature) + "NO Temperature Readings ‎";
                }



                if (diastolic < 1 & systolic < 1)
                {
                    lblbloodpressure.Text = "<span class='label label-danger'> NOT TAKEN </span>";
                }
                else
                {
                    if (systolic < 120 & diastolic < 80)
                    {
                        bpAnalysis = "<span class='label label-success'>" + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + "mm[Hg] | Normal </span>";
                    }
                    else if (systolic >= 120 | systolic < 129 & diastolic < 80)
                    {
                        bpAnalysis = "<span class='label label-success'>" + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + "mm[Hg]  | Elavated </span>";
                    }
                    else if (systolic > 130 || systolic < 139 && diastolic > 80 || diastolic < 89)
                    {
                        bpAnalysis = "<span class='label label-warning'> " + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + "mm[Hg]  | HYPERTENSION STAGE 1</span>";
                    }
                    else if (systolic > 140 && diastolic > 90)
                    {
                        bpAnalysis = "<span class='label label-danger'> " + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + " |mm[Hg] | HYPERTENSION STAGE 2</span>";
                    }
                    else if (systolic > 180 && diastolic > 120)
                    {
                        bpAnalysis = "<span class='label label-warning'> " + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + " |mm[Hg] | HYPERTENSIVE CRISIS </span>";
                    }

                    lblbloodpressure.Text = bpAnalysis;
                }

                if (age > 15 & patientTriage.Muac > 0)
                {
                    lblMuac.Text = Convert.ToString(patientTriage.Muac) + "cms";
                    lblMuac.Text = "<span class='label label-warning'> " + Convert.ToString(patientTriage.Muac) + " | CMs " + "</span>";
                }
                else
                {
                    lblMuac.Text = "<span class='label label-danger'>  0 | Cms </span>";
                }
                if (age > 15)
                {
                    if (bmi < 18.5)
                    {
                        bmiAnalysis = "<span class='label label-danger'>" + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Under weight</span>";
                    }
                    else if (bmi >= 18.5 & bmi < 25.0)
                    {
                        bmiAnalysis = "<span class='label label-success'> " + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Normal weight</span>";
                    }
                    else if (bmi >= 25 & bmi < 30.0)
                    {
                        bmiAnalysis = "<span class='label label-warning'> " + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Over weight<span>";
                    }
                    else
                    {
                        bmiAnalysis = "<span class='label label-danger'> " + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Obese<span>";
                    }
                }
                else
                {
                    bmiAnalysis = bmiZ;
                }



                lblBMI.Text = bmiAnalysis;
                if ((int)patientTriage.HeartRate == 0)
                {
                    lblPulseRate.Text = notTaken;
                }
                else
                {
                    lblPulseRate.Text = "<span class='label label-info'>" + patientTriage.HeartRate + " beats/min</span>";
                }
                if ((int)patientTriage.SpO2 == 0)
                {
                    lblOxygenSaturation.Text = notTaken;
                }
                else
                {
                    lblOxygenSaturation.Text = "<span class='label label-info'>" + patientTriage.SpO2 + " %</span>";
                }
                if ((int)patientTriage.RespiratoryRate == 0)
                {
                    lblRespiratoryRate.Text = notTaken;
                }
                else
                {
                    lblRespiratoryRate.Text = "<span class='label label-info'>" + patientTriage.RespiratoryRate + " breaths/min</span>";
                }

                lblNurseComments.Text = "<span class='label label-info'>" + patientTriage.NursesComments + "</span>";
            }
            else
            {
                lblTemperature.Text      = notTaken;
                lblbloodpressure.Text    = notTaken;
                lblBMI.Text              = notTaken;
                lblPulseRate.Text        = notTaken;
                lblOxygenSaturation.Text = notTaken;
                lblRespiratoryRate.Text  = notTaken;
            }

            var patientAppointment = new PatientAppointmentManager();
            var pa = patientAppointment.GetByPatientId(PatientId);

            if (pa != null)
            {
                foreach (var item in pa)
                {
                    lblappointmentDate.Text   = "<span class='pull-right'>" + Convert.ToDateTime(item.AppointmentDate).ToString("dd-MMM-yyyy") + "</span>";
                    lblAppointmentReason.Text = "<span class='pull-right'>" + LookupLogic.GetLookupNameById(item.ReasonId) + "</span>";
                    lblappointmentStatus.Text = "<span class='pull-right'>" + LookupLogic.GetLookupNameById(item.StatusId) + "</span>";
                    lblcareStatus.Text        = "<span class='pull-right'>" + LookupLogic.GetLookupNameById(item.DifferentiatedCareId) + "</span>";
                }
            }
        }
コード例 #5
0
 protected void getVitals(int PatientId)
 {
     var PVM    = new PatientVitalsManager();
     var Vitals = PVM.GetByPatientId(PatientId);
 }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var patientVitals   = new PatientVitalsManager();
            var pregnancyStatus = new PatientPregnancyManager();

            double  bmi = 0.0;
            string  bmiZ;
            decimal diastolic   = 0;
            decimal systolic    = 0;
            string  bmiAnalysis = "";
            string  bpAnalysis  = "";
            int     bpDiastolic = 0;
            int     bpSystloic  = 0;

            PatientVital patientTriage = patientVitals.GetByPatientId(PatientId);

            if (patientTriage != null)
            {
                ////////////////////////////////////////////////
                bmi         = Convert.ToDouble(patientTriage.BMI);
                bmiZ        = Convert.ToString(patientTriage.BMIZ);
                diastolic   = Convert.ToDecimal(patientTriage.Bpdiastolic);
                systolic    = Convert.ToDecimal(patientTriage.BpSystolic);
                bpDiastolic = Convert.ToInt32(diastolic);
                bpSystloic  = Convert.ToInt32(systolic);
                int age = Convert.ToInt32(HttpContext.Current.Session["Age"]);
                /////////////////////////////////////////////////////

                lblVitalsDate.Text = "<span class='label label-primary'>Date Taken :" + Convert.ToDateTime(patientTriage.VisitDate).ToString("dd-MMM-yyyy") + "</span>";
                vitalHeight.Text   = "<span class='label label-primary'>" + Convert.ToString(patientTriage.Height) + "</span>";
                vitalsWeight.Text  = "<span class='label label-primary'>" + patientTriage.Weight.ToString() + "</span>";
                if (patientTriage.HeadCircumference > 0)
                {
                    vitalsCircumference.Text = patientTriage.HeadCircumference.ToString();
                }
                else
                {
                    dvHeadCircum.Visible = false;
                }
                if (patientTriage.Muac > 0)
                {
                    vitalsMUAC.Text = patientTriage.Muac.ToString();
                }
                else
                {
                    dvMuac.Visible = false;
                }
                vitalBloodPressure.Text = patientTriage.BpSystolic.ToString() + '/' +
                                          patientTriage.Bpdiastolic.ToString();
                vitalTemperature.Text     = patientTriage.Temperature.ToString();
                vitalRespiratoryRate.Text = patientTriage.RespiratoryRate.ToString();
                lblOxygenSaturation.Text  = patientTriage.SpO2.ToString();

                ///////////////////

                if (patientTriage.Temperature > 0)
                {
                    if (patientTriage.Temperature > 40)
                    {
                        vitalTemperature.Text = "<span class='label label-danger'>" +
                                                Convert.ToString(patientTriage.Temperature) +
                                                "°C | Possible Hyperpyrexia‎";
                    }
                    else if (Convert.ToDouble(patientTriage.Temperature) >= 36.0 &&
                             Convert.ToDouble(patientTriage.Temperature) <= 38)
                    {
                        vitalTemperature.Text = "<span class='label label-success'>" +
                                                Convert.ToString(patientTriage.Temperature) + "°C | Normal‎";
                    }
                    else if (Convert.ToDouble(patientTriage.Temperature) > 38 &&
                             Convert.ToDouble(patientTriage.Temperature) <= 40.0)
                    {
                        vitalTemperature.Text = "<span class='label label-danger'>" +
                                                Convert.ToString(patientTriage.Temperature) +
                                                "°C | Possible Hyperpyrexia‎";
                    }
                    else if (patientTriage.Temperature < 32)
                    {
                        vitalTemperature.Text = "<span class='label label-danger'>" +
                                                Convert.ToString(patientTriage.Temperature) + "°C | Medical Emergency‎";
                    }
                    else if (patientTriage.Temperature >= 32 && patientTriage.Temperature < 36)
                    {
                        vitalTemperature.Text = "<span class='label label-danger'>" +
                                                Convert.ToString(patientTriage.Temperature) + "°C | Hypothermia ‎";
                    }
                }
                else
                {
                    vitalTemperature.Text = "<span class='label label-danger'>" +
                                            Convert.ToString(patientTriage.Temperature) + "NO Temperature Readings ‎";
                }


                if (diastolic < 1 & systolic < 1)
                {
                    vitalBloodPressure.Text = "<span class='label label-danger'> NOT TAKEN </span>";
                }
                else
                {
                    if (systolic < 120 & diastolic < 80)
                    {
                        bpAnalysis = "<span class='label label-success'>" + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + "mm[Hg] | Normal </span>";
                    }
                    else if (systolic >= 120 | systolic < 129 & diastolic < 80)
                    {
                        bpAnalysis = "<span class='label label-success'>" + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + "mm[Hg]  | Elavated </span>";
                    }
                    else if (systolic > 130 || systolic < 139 && diastolic > 80 || diastolic < 89)
                    {
                        bpAnalysis = "<span class='label label-warning'> " + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + "mm[Hg]  | HYPERTENSION STAGE 1</span>";
                    }
                    else if (systolic > 140 && diastolic > 90)
                    {
                        bpAnalysis = "<span class='label label-danger'> " + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + " |mm[Hg] | HYPERTENSION STAGE 2</span>";
                    }
                    else if (systolic > 180 && diastolic > 120)
                    {
                        bpAnalysis = "<span class='label label-warning'> " + Convert.ToString(systolic) + "/" + Convert.ToString(diastolic) + " |mm[Hg] | HYPERTENSIVE CRISIS </span>";
                    }

                    vitalBloodPressure.Text = bpAnalysis;
                }


                if (age > 15)
                {
                    if (bmi < 18.5)
                    {
                        bmiAnalysis = "<span class='label label-danger'>" + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Under weight</span>";
                    }
                    else if (bmi >= 18.5 & bmi < 25.0)
                    {
                        bmiAnalysis = "<span class='label label-success'> " + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Normal weight</span>";
                    }
                    else if (bmi >= 25 & bmi < 30.0)
                    {
                        bmiAnalysis = "<span class='label label-warning'> " + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Over weight<span>";
                    }
                    else
                    {
                        bmiAnalysis = "<span class='label label-danger'> " + Convert.ToString(patientTriage.BMI) +
                                      "Kg/M2" +
                                      " | Obese<span>";
                    }
                }
                else
                {
                    bmiAnalysis = bmiZ;
                }

                vitalsBMI.Text = bmiAnalysis;

                //if ((int)patientTriage.HeartRate == 0)
                //    lblPulseRate.Text = notTaken;
                //else
                //    lblPulseRate.Text = "<span class='label label-info'>" + patientTriage.HeartRate + " beats/min</span>";
                if ((int)patientTriage.SpO2 == 0)
                {
                    lblOxygenSaturation.Text = "<span class='label label-danger'>Not Taken!</span>";
                }
                else
                {
                    lblOxygenSaturation.Text = "<span class='label label-info'>" + patientTriage.SpO2 + " %</span>";
                }
                if ((int)patientTriage.RespiratoryRate == 0)
                {
                    vitalRespiratoryRate.Text = "<span class='label label-danger'>Not Taken!</span>";
                }
                else
                {
                    vitalRespiratoryRate.Text = "<span class='label label-info'>" + patientTriage.RespiratoryRate + " breaths/min</span>";
                }
                ///////////////////
            }
            else
            {
                lblVitalsDate.Text = "<span class='label label-danger'> VITAL SIGNS NOT TAKEN </span>";
            }

            string gender = PatientGender;

            if (gender == "Female")
            {
                int pgStatus      = pregnancyStatus.CheckIfPatientPregnancyExisists(PatientId);
                var pregnancyList = pregnancyStatus.GetPatientPregnancy(PatientId);
                if (pgStatus > 0)
                {
                    lblPregnancyStatus.Text = "<span class='label label-info'> Pregnant </span> ";
                    if (pregnancyList != null)
                    {
                        foreach (var item in pregnancyList)
                        {
                            lblLMP.Text = "<span class='label label-info'>LMP : " + item.LMP.ToString("dd-MMM-yyyy") + "</span>";

                            lblEDD.Text = "<span class='label label-info'>EDD : " + Convert.ToDateTime(item.EDD).ToString("dd-MMM-yyyy") + "</span>";
                        }
                    }
                }
                else
                {
                    //lblLMP.Text = "N/A";
                    //lblEDD.Text = "N/A";
                    lblPregnancyStatus.Text = "<span class='label label-success'> Not Pregnant </span>";
                }
            }
            else
            {
            }
        }
コード例 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            age                  = Convert.ToInt32(HttpContext.Current.Session["Age"]);
            PatientId            = Convert.ToInt32(HttpContext.Current.Session["PatientPK"]);
            PatientMasterVisitId = Convert.ToInt32(Request.QueryString["visitId"] != null ? Request.QueryString["visitId"] : HttpContext.Current.Session["PatientMasterVisitId"]);
            if (Request.QueryString["visitId"] != null)
            {
                Session["ExistingRecordPatientMasterVisitID"] = Request.QueryString["visitId"].ToString();
                PatientEncounterExists = Convert.ToInt32(Request.QueryString["visitId"].ToString());
            }
            else
            {
                Session["ExistingRecordPatientMasterVisitID"] = "0";

                ///////Check if visit is scheduled
                if (PEL.isVisitScheduled(HttpContext.Current.Session["PatientPK"].ToString()) > 0)
                {
                    vsYes.Checked = true;
                }
                else
                {
                    vsNo.Checked = true;
                }
            }

            // Get Gender
            PatientLookup genderId = _patientLookupmanager.GetGenderID(Convert.ToInt32(HttpContext.Current.Session["PatientPK"]));

            if (genderId != null)
            {
                genderID = genderId.Sex;
            }

            LookupItemView genderType = _lookupItemManager.GetPatientGender(genderID);

            gender = genderType.ItemName;

            ILookupManager        mgr      = (ILookupManager)ObjectFactory.CreateInstance("BusinessProcess.CCC.BLookupManager, BusinessProcess.CCC");
            List <LookupItemView> statuses = mgr.GetLookItemByGroup("AppointmentStatus");

            if (statuses != null && statuses.Count > 0)
            {
                status.Items.Add(new ListItem("select", "0"));
                foreach (var k in statuses)
                {
                    status.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
                status.SelectedIndex = 1;
                status.Enabled       = false;
            }


            List <LookupItemView> whoStage = mgr.GetLookItemByGroup("WHOStage");

            if (whoStage != null && whoStage.Count > 0)
            {
                WHOStage.Items.Add(new ListItem("select", ""));
                foreach (var k in whoStage)
                {
                    WHOStage.Items.Add(new ListItem(k.ItemName, k.ItemId.ToString()));
                }
            }

            List <LookupItemView> areas = mgr.GetLookItemByGroup("ServiceArea");

            if (areas != null && areas.Count > 0)
            {
                ServiceArea.Items.Add(new ListItem("select", "0"));
                foreach (var k in areas)
                {
                    ServiceArea.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
            }

            List <LookupItemView> reasons = mgr.GetLookItemByGroup("AppointmentReason");

            if (reasons != null && reasons.Count > 0)
            {
                Reason.Items.Add(new ListItem("select", "0"));
                foreach (var k in reasons)
                {
                    Reason.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
            }

            List <LookupItemView> care = mgr.GetLookItemByGroup("DifferentiatedCare");

            if (care != null && care.Count > 0)
            {
                DifferentiatedCare.Items.Add(new ListItem("select", "0"));
                foreach (var k in care)
                {
                    DifferentiatedCare.Items.Add(new ListItem(k.ItemDisplayName, k.ItemId.ToString()));
                }
            }

            if (!IsPostBack)
            {
                LookupLogic lookUp = new LookupLogic();
                lookUp.populateDDL(tbscreeningstatus, "TBStatus");
                lookUp.populateDDL(nutritionscreeningstatus, "NutritionStatus");
                lookUp.populateDDL(AdverseEventAction, "AdverseEventsActions");
                lookUp.populateDDL(ddlAdverseEventSeverity, "ADRSeverity");
                lookUp.populateDDL(ddlVisitBy, "VisitBy");
                lookUp.populateDDL(ChronicIllnessName, "ChronicIllness");
                lookUp.populateDDL(ddlVaccine, "Vaccinations");
                lookUp.populateDDL(ddlVaccineStage, "VaccinationStages");
                lookUp.populateDDL(ddlExaminationType, "ReviewOfSystems");
                //lookUp.populateDDL(ddlExamination, "PhysicalExamination");
                lookUp.populateCBL(cblGeneralExamination, "GeneralExamination");
                lookUp.populateCBL(cblPHDP, "PHDP");
                lookUp.populateDDL(arvAdherance, "ARVAdherence");
                lookUp.populateDDL(ctxAdherance, "CTXAdherence");
                lookUp.populateDDL(ddlAllergySeverity, "ADRSeverity");
                lookUp.populateDDL(stabilityStatus, "StabilityAssessment");
                //lookUp.populateDDL(WHOStage, "WHOStage");

                var          patientVitals = new PatientVitalsManager();
                PatientVital patientTriage = patientVitals.GetByPatientId(Convert.ToInt32(Session["PatientPK"].ToString()));
                if (patientTriage != null)
                {
                    Weight         = patientTriage.Weight.ToString();
                    txtWeight.Text = Weight;
                    txtHeight.Text = patientTriage.Height.ToString();
                    txtBMI.Text    = patientTriage.BMI.ToString();
                    txtBMIZ.Text   = patientTriage.BMIZ.ToString();
                }


                //if (Convert.ToInt32(Session["PatientMasterVisitId"]) > 0)
                loadPatientEncounter();
            }
        }