Ejemplo n.º 1
0
        private void SaveVitals()
        {
            string             sUserName  = Session["User"].ToString();
            PatientVitalsDAL   vitalDAL   = new PatientVitalsDAL();
            PatientVitalsModel vitalModel = new PatientVitalsModel();

            vitalModel.EncounterNo = EncounterNo.Value;
            vitalModel.PatientNo   = PatientNo.Value;
            vitalModel.Temperature = Convert.ToDouble(txtTemperature.Value);
            vitalModel.Systolic    = Convert.ToDouble(txtSystolic.Value);
            vitalModel.Diastolic   = Convert.ToDouble(txtDiastolic.Value);
            vitalModel.PulseRate   = Convert.ToDouble(txtPulseRate.Value);
            vitalModel.Height      = Convert.ToDouble(txtHeight.Value);
            vitalModel.Weight      = Convert.ToDouble(txtWeight.Value);
            vitalModel.BloodSugar  = Convert.ToDouble(txtBloodSugar.Value);
            vitalModel.Notes       = txtOther.Value;

            string id = "";// EncounterID.Value;

            if (id == "")
            {
                vitalDAL.InsertData(sUserName, vitalModel);
                //lblMsg.Text = "New Record has been saved";
            }
            else
            {
                oClass.ID = Convert.ToInt16(id);
                vitalDAL.UpdateData(sUserName, vitalModel);
                // lblMsg.Text = "Record has been updated";
            }
        }
Ejemplo n.º 2
0
        private void SaveEncounterData(int statusID)
        {
            string sUserName = Session["User"].ToString();

            oDAL   = new PatientEncounterDAL();
            oClass = new PatientEncounterModel();

            oClass.ID            = Convert.ToInt16(EncounterID.Value);
            oClass.EncounterNo   = EncounterNo.Value;
            oClass.DispositionID = Convert.ToInt16(ddlDisposition.SelectedValue);
            if (RestDays.Value != "")
            {
                oClass.NoOfDays = Convert.ToInt16(RestDays.Value);
            }

            if (FollowUpDate.Value != "")
            {
                oClass.FollowUpDate = Convert.ToDateTime(FollowUpDate.Value);
            }

            oClass.WorkRestriction = Recommendation.InnerHtml;

            oClass.StatusID = statusID;

            oDAL.UpdateEncounterDoctorData(sUserName, oClass);

            PatientVitalsModel vitalModel = new PatientVitalsModel();
            PatientVitalsDAL   vitalDAL   = new PatientVitalsDAL();

            vitalModel.ID          = Convert.ToInt16(hfVitalsID.Value);
            vitalModel.PatientNo   = PatientNo.Value;
            vitalModel.EncounterNo = EncounterNo.Value;
            vitalModel.Temperature = VitalValue(txtTemperature.Value);
            vitalModel.Systolic    = VitalValue(txtSystolic.Value);
            vitalModel.Diastolic   = VitalValue(txtDiastolic.Value);
            vitalModel.PulseRate   = VitalValue(txtPulseRate.Value);
            vitalModel.Height      = VitalValue(txtHeight.Value);
            vitalModel.Weight      = VitalValue(txtWeight.Value);
            vitalModel.BloodSugar  = VitalValue(txtBloodSugar.Value);
            vitalModel.Notes       = txtOther.Value;

            vitalDAL.UpdateData(sUserName, vitalModel);

            PatientAssessmentModel assessmentModel = new PatientAssessmentModel();
            PatientAssessmentDAL   assessmentDAL   = new PatientAssessmentDAL();

            assessmentModel.ID             = Convert.ToInt16(hfAssessmentID.Value);
            assessmentModel.EncounterNo    = EncounterNo.Value;
            assessmentModel.PatientNo      = PatientNo.Value;
            assessmentModel.ChiefComplaint = txtCC.InnerText;
            assessmentModel.HPI            = txtHPI.InnerText;
            assessmentModel.ROS            = txtROS.InnerText;
            assessmentModel.PFSC           = txtPFSC.InnerText;
            assessmentModel.PhysicalExam   = txtPhysicalExam.InnerText;
            assessmentModel.PhysicianNote  = txtDoctorNote.InnerText;


            assessmentDAL.UpdateData(sUserName, assessmentModel);
        }
        private void SaveEncounterData()
        {
            string sUserName = Session["User"].ToString();

            oDAL   = new PatientEncounterDAL();
            oClass = new PatientEncounterModel();

            oClass.EncounterNo        = EncounterNo.Value;
            oClass.EncounterDate      = Convert.ToDateTime(EncounterDate.Value);
            oClass.PatientNo          = PatientNo.Value;
            oClass.EncounterType      = ServiceType.Value;
            oClass.InsuranceCompanyID = Convert.ToInt16(ddlCompany.SelectedValue);
            oClass.InsuranceNo        = InsuranceNo.Value;
            oClass.HospitalID         = 0;//Convert.ToInt16(ddlHospitalName.SelectedValue);
            oClass.PhysicianID        = Convert.ToInt16(ddlPhysician.SelectedValue);

            oClass.Remarks  = Remarks.InnerText;
            oClass.StatusID = Convert.ToInt16(ddlStatus.SelectedValue);

            PatientVitalsModel vitalModel = new PatientVitalsModel();

            vitalModel.PatientNo   = PatientNo.Value;
            vitalModel.Temperature = VitalValue(txtTemperature.Value);
            vitalModel.Systolic    = VitalValue(txtSystolic.Value);
            vitalModel.Diastolic   = VitalValue(txtDiastolic.Value);
            vitalModel.PulseRate   = VitalValue(txtPulseRate.Value);
            vitalModel.Height      = VitalValue(txtHeight.Value);
            vitalModel.Weight      = VitalValue(txtWeight.Value);
            vitalModel.BloodSugar  = VitalValue(txtBloodSugar.Value);
            vitalModel.Notes       = txtOther.Value;

            PatientAssessmentModel assessmentModel = new PatientAssessmentModel();

            assessmentModel.EncounterNo    = EncounterNo.Value;
            assessmentModel.PatientNo      = PatientNo.Value;
            assessmentModel.ChiefComplaint = txtCC.InnerText;

            string id = Request.QueryString["id"].ToString();

            if (id == "")
            {
                oDAL.InsertNewEncounterData(sUserName, oClass, assessmentModel, vitalModel);
            }
            else
            {
                oDAL.UpdateEncounterData(sUserName, oClass);

                var patientVitalDAL = new PatientVitalsDAL();
                vitalModel.EncounterNo = EncounterNo.Value;
                patientVitalDAL.UpdateDataByEncounter(sUserName, vitalModel);

                var patientAssessmentDAL = new PatientAssessmentDAL();
                patientAssessmentDAL.UpdateDataByEncounter(sUserName, assessmentModel);
            }
        }
Ejemplo n.º 4
0
        private void SaveEncounterData()
        {
            string sUserName = Session["User"].ToString();

            oDAL   = new PatientEncounterDAL();
            oClass = new PatientEncounterModel();

            oClass.ID                 = Convert.ToInt16(EncounterID.Value);
            oClass.EncounterNo        = EncounterNo.Value;
            oClass.EncounterDate      = Convert.ToDateTime(EncounterDate.Value);
            oClass.PatientNo          = PatientNo.Value;
            oClass.EncounterType      = ServiceType.Value;
            oClass.InsuranceCompanyID = Convert.ToInt16(ddlCompany.SelectedValue);
            oClass.InsuranceNo        = InsuranceNo.Value;
            oClass.HospitalID         = 0;// Convert.ToInt16(ddlHospitalName.SelectedValue);
            oClass.PhysicianID        = Convert.ToInt16(ddlPhysician.SelectedValue);

            oClass.Remarks  = Remarks.InnerText;
            oClass.StatusID = Convert.ToInt16(ddlStatus.SelectedValue);

            oDAL.UpdateData(sUserName, oClass);

            PatientVitalsModel vitalModel = new PatientVitalsModel();
            PatientVitalsDAL   vitalDAL   = new PatientVitalsDAL();

            vitalModel.ID          = Convert.ToInt16(hfVitalsID.Value);
            vitalModel.PatientNo   = PatientNo.Value;
            vitalModel.EncounterNo = EncounterNo.Value;
            vitalModel.Temperature = VitalValue(txtTemperature.Value);
            vitalModel.Systolic    = VitalValue(txtSystolic.Value);
            vitalModel.Diastolic   = VitalValue(txtDiastolic.Value);
            vitalModel.PulseRate   = VitalValue(txtPulseRate.Value);
            vitalModel.Height      = VitalValue(txtHeight.Value);
            vitalModel.Weight      = VitalValue(txtWeight.Value);
            vitalModel.BloodSugar  = VitalValue(txtBloodSugar.Value);
            vitalModel.Notes       = txtOther.Value;

            vitalDAL.UpdateData(sUserName, vitalModel);

            PatientAssessmentModel assessmentModel = new PatientAssessmentModel();
            PatientAssessmentDAL   assessmentDAL   = new PatientAssessmentDAL();

            assessmentModel.ID             = Convert.ToInt16(hfAssessmentID.Value);
            assessmentModel.EncounterNo    = EncounterNo.Value;
            assessmentModel.PatientNo      = PatientNo.Value;
            assessmentModel.ChiefComplaint = txtCC.InnerText;
            assessmentModel.HPI            = txtHPI.InnerText;
            assessmentModel.ROS            = txtROS.InnerText;
            assessmentModel.PFSC           = txtPFSC.InnerText;
            assessmentModel.PhysicalExam   = txtPhysicalExam.InnerText;
            assessmentModel.PhysicianNote  = txtDoctorNote.InnerText;


            assessmentDAL.UpdateData(sUserName, assessmentModel);
        }
Ejemplo n.º 5
0
        private void PopulateVitals(string encounterNo)
        {
            PatientVitalsDAL   vitalDAL   = new PatientVitalsDAL();
            PatientVitalsModel vitalModel = new PatientVitalsModel();

            oDs = new DataSet();

            vitalModel.EncounterNo = encounterNo;

            oDs = vitalDAL.SelectByEncounterNo(vitalModel);
            hfVitalsID.Value     = oDs.Tables[0].Rows[0]["id"].ToString();
            txtTemperature.Value = (oDs.Tables[0].Rows[0]["Temperature"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["Temperature"].ToString();
            txtSystolic.Value    = (oDs.Tables[0].Rows[0]["Systolic"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["Systolic"].ToString();
            txtDiastolic.Value   = (oDs.Tables[0].Rows[0]["Diastolic"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["Diastolic"].ToString();
            txtPulseRate.Value   = (oDs.Tables[0].Rows[0]["PulseRate"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["PulseRate"].ToString();
            txtHeight.Value      = (oDs.Tables[0].Rows[0]["Height"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["Height"].ToString();
            txtWeight.Value      = (oDs.Tables[0].Rows[0]["Weight"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["Weight"].ToString();
            txtBloodSugar.Value  = (oDs.Tables[0].Rows[0]["BloodSugar"].ToString() == "0.00") ? "" : oDs.Tables[0].Rows[0]["BloodSugar"].ToString();
            txtOther.Value       = oDs.Tables[0].Rows[0]["notes"].ToString();
        }
 public PatientVitalsServices(IMapper mapper)
 {
     _PatientVitalsDAL = new PatientVitalsDAL(mapper);
     _mapper           = mapper;
 }