public PatientVital GetLastestPatientVital(long patientid) { IEnumerable <Visit> visit = Db.Visits.Where(a => a.PatientId == patientid).Include(a => a.PatientVital).OrderByDescending(c => c.VisitId); PatientVital pv = visit.Where(b => b.PatientVital != null).Select(a => a.PatientVital).FirstOrDefault(); return(pv); }
public List <PatientVital> GetAllPatientVitals(int patientId) { lock (this) { ClsObject PatientEncounter = new ClsObject(); ClsUtility.Init_Hashtable(); ClsUtility.AddParameters("@PatientId", SqlDbType.Int, patientId.ToString()); DataTable theDT = (DataTable)PatientEncounter.ReturnObject(ClsUtility.theParams, "sp_getAllPatientVitals", ClsUtility.ObjectEnum.DataTable); List <PatientVital> list = new List <PatientVital>(); for (int i = 0; i < theDT.Rows.Count; i++) { PatientVital pv = new PatientVital(); pv.PatientId = Convert.ToInt32(theDT.Rows[i]["patientid"]); pv.Height = Convert.ToDecimal(theDT.Rows[i]["height"]); pv.Weight = Convert.ToDecimal(theDT.Rows[i]["weight"]); pv.BMI = Convert.ToDecimal(theDT.Rows[i]["bmi"]); pv.CreateDate = Convert.ToDateTime(theDT.Rows[i]["createdate"]); list.Add(pv); } return(list); } }
public int UpdatePatientVitals(PatientVital p) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { var vitals = new PatientVital() { Temperature = p.Temperature, RespiratoryRate = p.RespiratoryRate, HeartRate = p.HeartRate, BpSystolic = p.BpSystolic, Bpdiastolic = p.Bpdiastolic, Height = p.Height, Weight = p.Weight, Muac = p.Muac, SpO2 = p.SpO2, BMIZ = p.BMIZ, WeightForAge = p.WeightForAge, WeightForHeight = p.WeightForHeight, VisitDate = p.VisitDate }; unitOfWork.PatientVitalsRepository.Update(vitals); _result = unitOfWork.Complete(); unitOfWork.Dispose(); return(_result); } }
private void OnAddClick(object sender, EventArgs e) { PatientVital obj = new PatientVital(); if (PatientVitalForm.ShowForm(obj)) { this.LoadListData(obj); } }
public IActionResult AddPatientVitals([FromBody] PatientVital models) { vital_repo.Add(models); Visit vs = visit_repo.Find(models.VisitId); vs.PatientVitalId = models.PatientVitalId; visit_repo.Update(vs); return(new OkObjectResult(new { PatientVitalID = models.PatientVitalId })); }
public int AddPatientVitals(PatientVital p) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { unitOfWork.PatientVitalsRepository.Add(p); _result = unitOfWork.Complete(); unitOfWork.Dispose(); return(p.Id); } }
public void DeletePatientVitals(int id) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { PatientVital vital = unitOfWork.PatientVitalsRepository.GetById(id); unitOfWork.PatientVitalsRepository.Remove(vital); unitOfWork.Complete(); unitOfWork.Dispose(); } }
public PatientVital GetByPatientVisitId(int patientVisitId) { using (UnitOfWork unitOfWork = new UnitOfWork(new GreencardContext())) { PatientVital vital = unitOfWork.PatientVitalsRepository.FindBy(x => x.PatientMasterVisitId == patientVisitId & !x.DeleteFlag) .OrderByDescending(x => x.Id) .FirstOrDefault(); unitOfWork.Dispose(); return(vital); } }
public IActionResult DeletePatientVital(long id) { PatientVital patientVital = vital_repo.Find(id); if (patientVital == null) { return(NotFound()); } vital_repo.Delete(patientVital); return(Ok()); }
private PatientVital GetRandomDataForPatient(string pid) { var vital = new PatientVital { PId = pid, VitalBpm = GetRandomBpm(), VitalRespRate = GetRandomRespRate(), VitalSpo2 = GetRandomSpo2() }; return(vital); }
public bool AddPatientVital(PatientVital model) { try { entities.PatientVitals.Add(model); entities.SaveChanges(); return true; } catch (Exception x) { FileLogger.LogError(x); return false; } }
public static bool ShowForm(PatientVital obj) { bool r = false; if (!Objectbase.IsNullOrEmpty(obj)) { using (PatientVitalForm frm = new PatientVitalForm(obj)) { r = frm.ShowDialog() == DialogResult.OK; } } return(r); }
private void OnOpenClick(object sender, EventArgs e) { PatientVital obj = this.GetSelected(); if (obj != null) { obj.RefershData(); } if (PatientVitalForm.ShowForm(obj)) { this.LoadListData(obj); } this.LoadListData(obj); }
public string AddpatientVitals(int patientId, int bpSystolic, int bpDiastolic, decimal heartRate, decimal height, decimal muac, int patientMasterVisitId, decimal respiratoryRate, decimal spo2, decimal tempreture, decimal weight, decimal bmi, decimal headCircumference, string bmiz, string weightForAge, string weightForHeight, DateTime visitDate) { try { PatientEncounterManager patientEncounterManager = new PatientEncounterManager(); int facilityId = Convert.ToInt32(Session["AppPosID"]); PatientVital patientVital = new PatientVital() { PatientId = patientId, BpSystolic = bpSystolic, Bpdiastolic = bpDiastolic, HeartRate = heartRate, Height = height, Muac = muac, PatientMasterVisitId = patientMasterVisitId, RespiratoryRate = respiratoryRate, SpO2 = spo2, Temperature = tempreture, Weight = weight, BMI = bmi, HeadCircumference = headCircumference, VisitDate = visitDate, BMIZ = bmiz, WeightForAge = weightForAge, WeightForHeight = weightForHeight, }; var vital = new PatientVitalsManager(); Result = vital.AddPatientVitals(patientVital, facilityId); int userId = Convert.ToInt32(Session["AppUserId"]); if (Result > 0) { Result = patientEncounterManager.AddpatientEncounter(patientId, patientMasterVisitId, patientEncounterManager.GetPatientEncounterId("EncounterType", "Triage-encounter".ToLower()), 204, userId); if (Result > 0) { Msg = "Patient Vitals Added Successfully!"; } } } catch (Exception e) { Msg = e.Message; } return(Msg); }
public IActionResult AddPatientVitalsByVisitId([FromBody] PatientVital model) { try { PatientVital Vital = vital_repo.GetFirst(a => a.VisitId == model.VisitId); if (Vital != null) { vital_repo.Delete(Vital); } vital_repo.Add(model); return(Ok(model.PatientVitalId)); } catch (NullReferenceException e) { return(BadRequest(e)); } }
public int AddPatientVitals(PatientVital p, int facilityId) { PatientVital patientVital = new PatientVital() { PatientId = p.PatientId, BpSystolic = p.BpSystolic, Bpdiastolic = p.Bpdiastolic, HeartRate = p.HeartRate, Height = p.Height, Muac = p.Muac, PatientMasterVisitId = p.PatientMasterVisitId, RespiratoryRate = p.RespiratoryRate, SpO2 = p.SpO2, Temperature = p.Temperature, Weight = p.Weight, BMI = p.BMI, HeadCircumference = p.HeadCircumference, BMIZ = p.BMIZ, WeightForHeight = p.WeightForHeight, WeightForAge = p.WeightForAge, VisitDate = p.VisitDate, CreatedBy = p.CreatedBy, AgeforZ = p.AgeforZ, NursesComments = p.NursesComments }; int vitalsId = _vitals.AddPatientVitals(patientVital); if (vitalsId > 1) { MessageEventArgs args = new MessageEventArgs() { PatientId = p.PatientId, PatientMasterVisitId = p.PatientMasterVisitId, EntityId = vitalsId, MessageType = MessageType.ObservationResult, EventOccurred = "Observation Result Unsolicited = ", FacilityId = facilityId, ObservationType = ObservationType.Vitals }; Publisher.RaiseEventAsync(this, args).ConfigureAwait(false); } return(vitalsId); }
private void LoadListData(PatientVital selected) { int count = 0; DateTime fromDate = dtpDateFrom.Checked == true ? dtpDateFrom.Value : DateTime.MinValue; DateTime toDate = dtpDateTo.Checked == true ? dtpDateTo.Value : DateTime.MaxValue; this.LoadEntityList <PatientVital>(this.dgvData, this.clmPatientName.Index, new PatientVitalCollection(tstSearch.Text, fromDate, toDate), selected, delegate(DataGridViewRow row, PatientVital obj) { count++; row.Cells[this.clmPatientName.Index].Value = obj.DisplayName; row.Cells[this.clmDate.Index].Value = Common.DateToString(obj.Date); row.Cells[this.clmTime.Index].Value = obj.Time; } ); bool hasRows = count > 0; this.tsbOpen.Enabled = hasRows; }
public int UpdatePatientVitals(PatientVital p) { PatientVital patientVital = new PatientVital() { PatientId = p.PatientId, BpSystolic = p.BpSystolic, Bpdiastolic = p.Bpdiastolic, HeartRate = p.HeartRate, Height = p.Height, Muac = p.Muac, PatientMasterVisitId = p.PatientMasterVisitId, RespiratoryRate = p.RespiratoryRate, SpO2 = p.SpO2, Temperature = p.Temperature, Weight = p.Weight, BMI = p.BMI, HeadCircumference = p.HeadCircumference, VisitDate = p.VisitDate }; return(_vitals.UpdatePatientVitals(patientVital)); }
public IActionResult UpdatePatientVital([FromBody] PatientVital model) { vital_repo.Update(model); return(new OkObjectResult(new { PatientVitalId = model.PatientVitalId })); }
public PatientVital GetPatientVitalByVisitId(long id) { PatientVital x = vital_repo.GetFirst(a => a.VisitId == id, b => b.Visit); return(x); }
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); }
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 { } }
public PatientVitalForm(PatientVital patientvital) : base(patientvital) { this.mEntry = patientvital; this.InitializeComponent(); this.UserInitialize(); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["visitId"] != null) { Session["ExistingRecordPatientMasterVisitID"] = Request.QueryString["visitId"].ToString(); } else { Session["ExistingRecordPatientMasterVisitID"] = "0"; } if (Session["DosageFrequency"] != null) { DosageFrequency = Convert.ToInt32(Session["DosageFrequency"]); } PatientVitalsManager pvm = new PatientVitalsManager(); PatientVital patientvital = pvm.GetPatientVitals(PatientId); if (patientvital != null) { patientweight = patientvital.Weight.ToString(); } else { patientweight = ""; } if (!IsPostBack) { if (Session["SCMModule"] != null) { PMSCM = Session["SCMModule"].ToString(); } if (Session["SCMSamePointDispense"] != null) { PMSCMSAmePointDispense = Session["SCMSamePointDispense"].ToString(); } LookupLogic lookUp = new LookupLogic(); PatientTreatmentTrackerManager treatmentTrackerManager = new PatientTreatmentTrackerManager(); StartTreatment = treatmentTrackerManager.HasPatientTreatmentStarted(Convert.ToInt32(Session["PatientPK"].ToString())); int patientType = Convert.ToInt32(Session["PatientType"].ToString()); patType = LookupLogic.GetLookupNameById(patientType).ToLower(); if (patType == "transit") { StartTreatment = true; } //lookUp.populateDDL(ddlTreatmentProgram, "TreatmentProgram"); lookUp.populateDDL(ddlPeriodTaken, "PeriodDrugsTaken"); lookUp.populateDDL(ddlTreatmentPlan, "TreatmentPlan"); if (Convert.ToInt32(Session["Age"]) > 14) { lookUp.populateDDL(regimenLine, "RegimenClassificationAdult", "RegimenClassificationPaeds"); } else { lookUp.populateDDL(regimenLine, "RegimenClassificationPaeds"); } lookUp.getPharmacyDrugFrequency(ddlFreq); PatientEncounterLogic pel = new PatientEncounterLogic(); pel.getPharmacyTreatmentProgram(ddlTreatmentProgram); LoadExistingData(); var patientEnrollment = new PatientEnrollmentManager(); var enrolDate = patientEnrollment.GetPatientEnrollmentDate(Convert.ToInt32(Session["PatientPK"])); enrolmentDate = enrolDate.Date.ToString(); } }
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(); } }