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);
        }
Beispiel #2
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);
        }
        private void SaveAssessment()
        {
            string sUserName = Session["User"].ToString();
            PatientAssessmentDAL   assessmentDAL   = new PatientAssessmentDAL();
            PatientAssessmentModel assessmentModel = new PatientAssessmentModel();

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

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

            if (id == "")
            {
                assessmentDAL.InsertData(sUserName, assessmentModel);
                //lblMsg.Text = "New Record has been saved";
            }
            else
            {
                oClass.ID = Convert.ToInt16(id);
                assessmentDAL.UpdateData(sUserName, assessmentModel);
                // lblMsg.Text = "Record has been updated";
            }
        }