示例#1
0
        public ActionResult PatientLifeStyleDetails()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            LifeStyleDetails  Ls             = new LifeStyleDetails();

            //Load lime always null not requird get data
            Ls = BM.GetLifeStyleDetails(patientDETAILS.CasePapaerNo);
            if (Ls.Diat != null)
            {
                Ls.Diat = Ls.Diat.Trim();
            }
            if (Ls.Alcohol != null)
            {
                Ls.Alcohol = Ls.Alcohol.Trim();
            }
            if (Ls.Bladder != null)
            {
                Ls.Bladder = Ls.Bladder.Trim();
            }
            if (Ls.Bowel != null)
            {
                Ls.Bowel = Ls.Bowel.Trim();
            }
            if (Ls.Sleep != null)
            {
                Ls.Sleep = Ls.Sleep.Trim();
            }
            if (Ls.Smoting != null)
            {
                Ls.Smoting = Ls.Smoting.Trim();
            }
            return(View("LifeStyle", Ls));
        }
示例#2
0
 public ActionResult GetColorcode(string btnColorcode)
 {
     try
     {
         PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
         DentalExamination MD             = new DentalExamination();
         Session["btnColorcode"] = btnColorcode;
         //if (Session["PageDetails"] == null)
         //{
         //    MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
         //    return View("DentalExaminationPage", MD);
         //}
         //else
         //{
         //    if (Session["PageDetails"].ToString() == "A")
         //    {
         //        MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
         //        return View("DentalExaminationPage", MD);
         //    }
         //    else if (Session["PageDetails"].ToString() == "P")
         //    {
         //        MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "P");
         //        return View("DentalExaminationPage", MD);
         //    }
         //}
         //return View("DentalExaminationPage", MD);
         return(View());
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#3
0
        public ActionResult DentalExaminationPage()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            DentalExamination MD             = new DentalExamination();

            //Load lime always null not requird get data
            // Adult
            //Adult
            if (Session["PageDetails"] == null)
            {
                MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
            }
            else
            {
                if (Session["PageDetails"].ToString() == "A")
                {
                    MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
                }
                else if (Session["PageDetails"].ToString() == "P")
                {
                    MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "P");
                }
            }


            //foreach (var item in MD)
            //{
            //    item.CpExpiryDate = Convert.ToDateTime(item.\).Date.ToString("dd/MM/yyyy");
            //}

            return(View("DentalExaminationPage", MD));


            //return View("DentalExaminationPage");
        }
        public ActionResult ManageMedication(Medication Ob)
        {
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            Ob.QueueId     = patientDETAILS.QueueId;
            Ob.HospitalId  = patientDETAILS.HospitalId.ToString();
            Ob.CreatedBy   = admObj.UserId.ToString();
            Ob.PatientId   = patientDETAILS.Id.ToString();
            Ob.CasePaperNo = patientDETAILS.CasePapaerNo;
            ModelState.Clear();
            int Flag = BM.ManageMedicationDetails(Ob);

            if (Flag > 0)
            {
                Medication        ob             = new Medication();
                List <Medication> lstObservation = new List <Medication>();
                ob             = BM.GetMedicationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                lstObservation = ob.lst;
                return(Json(lstObservation, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json("", JsonRequestBehavior.AllowGet));
            }
        }
示例#5
0
        public PatientAllDetails GetPatientDetailsByCPno(string CPno)
        {
            try
            {
                SqlParameter[] sqlparam;
                sqlparam    = new SqlParameter[1];
                sqlparam[0] = new SqlParameter("@CPno", CPno);

                DataTable         ds  = CommonFunction.GetDataTable("USP_Get_PatientDetailsByCPno", sqlparam, "");
                PatientAllDetails lst = new PatientAllDetails();
                if (ds != null && ds.Rows.Count > 0)
                {
                    DataTable dt = ds;
                    foreach (DataRow dr in dt.Rows)
                    {
                        //PatientDetails Model = new PatientDetails();
                        CommonFunction.ReflectSingleData(lst, dr);
                    }
                }
                return(lst);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }
示例#6
0
        public ActionResult MyOPD(string CPno, int QueueID)
        {
            PatientAllDetails patientDetails = new PatientAllDetails();

            patientDetails = PD.GetPatientDetailsByCPno(CPno);
            //----------------Precriptopn tempalate--------
            Session["P_DrName"]    = patientDetails.FirstName ?? " ";
            Session["P_HosName"]   = patientDetails.HostClincName ?? " ";
            Session["P_HosAdd"]    = patientDetails.HospClinicAddess ?? " ";
            Session["P_HosNo"]     = patientDetails.HospClinicNumber ?? " ";
            Session["P_Specality"] = patientDetails.Speciality ?? " ";
            Session["P_DrEdu"]     = patientDetails.Education ?? " ";
            Session["P_RegNo"]     = patientDetails.RegNumber;
            Session["P_WhtAppNo"]  = patientDetails.WhatsAppNumber ?? " ";
            Session["P_HosEmail"]  = patientDetails.DrEmailId ?? " ";
            Session["P_HoliDay"]   = patientDetails.Holiday ?? " ";

            //--------------END---------------
            patientDetails.QueueId    = QueueID;
            Session["CPno"]           = CPno;
            Session["QueueID"]        = QueueID;
            Session["patientDetails"] = patientDetails;
            Session["PatientName"]    = patientDetails.PatientName;
            Session["PatientGender"]  = patientDetails.Gender;
            Session["CPno"]           = CPno;
            DateTime AppoinmentDate = DateTime.Now;
            string   dt             = AppoinmentDate.ToString("dd/MMM/yyyy");

            Session["AppDate"] = dt;
            if (patientDetails.Age == null || patientDetails.Age == "")
            {
                Session["PatientAge"] = "-";
            }
            else
            {
                Session["PatientAge"] = patientDetails.Age;
            }

            Session["PatientVisit"] = patientDetails.VisitCount;
            if (patientDetails.DueAmount == null || patientDetails.DueAmount == "")
            {
                Session["PatientPrvBalance"] = "0";
            }
            else
            {
                Session["PatientPrvBalance"] = patientDetails.DueAmount;
            }
            if (patientDetails.BloodGroup == null || patientDetails.BloodGroup == "0" || patientDetails.BloodGroup == "Select Blood Group")
            {
                Session["BloodGroup"] = "-";
            }
            else
            {
                Session["BloodGroup"] = patientDetails.BloodGroup;
            }
            return(View("MyOPD"));
        }
示例#7
0
        public ActionResult CommonPrec()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            Common            Cm             = new Common();

            //Load lime always null not requird get data
            Cm = BM.GetCommonDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
            return(View("PrecCommon", Cm));
        }
示例#8
0
        public ActionResult MedicationPrec()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            Medication        MD             = new Medication();

            //Load lime always null not requird get data
            MD = BM.GetMedicationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);

            return(View("PrecMedication", MD));
        }
示例#9
0
        public ActionResult PatientMedicalDetails()
        {
            PatientAllDetails         patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            MedicalInformationDetails MD             = new MedicalInformationDetails();

            //Load lime always null not requird get data
            MD = BM.GetMedicalInfoDetails(patientDETAILS.CasePapaerNo);

            return(View("MedicalInformation", MD));
        }
示例#10
0
        public ActionResult PatientVitalInformation()
        {
            BAL_MyOPD VI = new BAL_MyOPD();
            List <VitalInformation> vi             = new List <VitalInformation>();
            VitalInformation        v              = new VitalInformation();
            PatientAllDetails       patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            vi = VI.GetVitalInformation(patientDETAILS.CasePapaerNo);


            var viralInfo = vi.FirstOrDefault(x => x.CasePaperNo == patientDETAILS.CasePapaerNo);

            if (viralInfo != null)
            {
                v.BloodPressure            = viralInfo.BloodPressure;
                v.Temperature              = viralInfo.Temperature;
                v.BloodGlucosePostPrandial = viralInfo.BloodGlucosePostPrandial;
                v.Weight = viralInfo.Weight;
                v.Height = viralInfo.Height;
                v.BloodGlucoseFasting = viralInfo.BloodGlucoseFasting;
                v.BloodlucoseRandom   = viralInfo.BloodlucoseRandom;
                v.BloodUrea           = viralInfo.BloodUrea;
                v.Creatinine          = viralInfo.Creatinine;
                v.UricAcidM           = viralInfo.UricAcidM;
                v.HB                  = viralInfo.HB;
                v.PCV                 = viralInfo.PCV;
                v.WBCCount            = viralInfo.WBCCount;
                v.PlateletCount       = viralInfo.PlateletCount;
                v.ESR                 = viralInfo.ESR;
                v.RBCCount            = viralInfo.RBCCount;
                v.MCH                 = viralInfo.MCH;
                v.MCHC                = viralInfo.MCHC;
                v.Lymphocyte          = viralInfo.Lymphocyte;
                v.Eosinophil          = viralInfo.Eosinophil;
                v.SerumBilirubin      = viralInfo.SerumBilirubin;
                v.SGPTALT             = viralInfo.SGPTALT;
                v.GGPT                = viralInfo.GGPT;
                v.TotalProtein        = viralInfo.TotalProtein;
                v.SerumAlbumin        = viralInfo.SerumAlbumin;
                v.Globulin            = viralInfo.Globulin;
                v.AlkalinePhosphatase = viralInfo.AlkalinePhosphatase;
                v.SGOT                = viralInfo.SGOT;
                v.TotalCholesterol    = viralInfo.TotalCholesterol;
                v.HDLCholestero       = viralInfo.HDLCholestero;
                v.LDLCholesterol      = viralInfo.LDLCholesterol;
                v.Triglycerides       = viralInfo.Triglycerides;
                v.NonHDL              = viralInfo.NonHDL;
                v.HbA1c               = viralInfo.HbA1c;
                v.TSH                 = viralInfo.TSH;
                v.SPO2                = viralInfo.SPO2;
                v.RR                  = viralInfo.RR;
                v.HeadCircumference   = viralInfo.HeadCircumference;
            }
            return(View("VitalInformation", viralInfo));
        }
示例#11
0
        public ActionResult OpdHistory()
        {
            HistoryDetails        hd             = new HistoryDetails();
            PatientAllDetails     patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            List <HistoryDetails> Ld             = new List <HistoryDetails>();

            Ld       = BM.GetHistory(patientDETAILS.WhatsAppNo, patientDETAILS.CasePapaerNo);
            hd.lstHD = Ld;
            ////WebHistory Ld = new WebHistory();
            ////Ld = BM.GetWEBHistory(patientDETAILS.CasePapaerNo);
            return(View("History", hd));
        }
        // GET: Tab_Precreption


        public ActionResult ViewPreription()
        {
            Bal_Precription   bp             = new Bal_Precription();
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            Medication        MD             = new Medication();
            //Load lime always null not requird get data'
            Precription pd = new Precription();

            pd = bp.ViewPricripion(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);

            return(View("Examination", pd));
        }
 public ActionResult DeleteBilling(int Id)
 {
     try
     {
         PatientAllDetails     patientDETAILS = (PatientAllDetails)Session["patientDetails"];
         List <BillingDetails> lst            = new List <BillingDetails>();
         lst = BL.DeleteBilling(Id, patientDETAILS.QueueId);
         return(Json(lst, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         throw;
     }
 }
 public ActionResult SetBillAmount(float TotalAmt, float Discount, float NetAmt)
 {
     try
     {
         Discount = TotalAmt - NetAmt;
         PatientAllDetails     patientDETAILS = (PatientAllDetails)Session["patientDetails"];
         List <BillingDetails> lst            = new List <BillingDetails>();
         int i = BL.SetBillAmount(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, TotalAmt, Discount, NetAmt, 0);
         return(Json(i, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#15
0
        public ActionResult PrecObservation()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            string            Status         = "1";
            Observation       ob             = new Observation();
            BAL_MyOPD         BL             = new BAL_MyOPD();
            int flag = BL.SetStatus(patientDETAILS.QueueId, Status);

            if (flag != 0)
            {
                ob = BM.GetObservationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                return(View("Observation", ob));
            }

            return(View("Observation", ob));
        }
        public ActionResult ManageLifeStyleDetails(LifeStyleDetails LD)
        {
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            ModelState.Clear();
            LD.HospitalId  = patientDETAILS.HospitalId.ToString();
            LD.CreatedBy   = admObj.UserId;
            LD.PatientId   = patientDETAILS.Id;
            LD.CasePaperNo = patientDETAILS.CasePapaerNo;

            //Ob.CasePaperNo =
            int Flag = BM.ManageLifeStyleDetails(LD);

            return(RedirectToAction("PatientLifeStyleDetails", "MyOPD"));
        }
        public ActionResult StatusChange()
        {
            try
            {
                PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
                int flag = BM.Set_SatatusFlag(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                if (flag != 0)
                {
                    return(RedirectToAction("OpdExamination", "MyOPD"));
                }

                return(RedirectToAction("OpdPrescription", "MyOPD"));
            }
            catch (Exception)
            {
                throw;
            }
        }
 public ActionResult UploadFile(HttpPostedFileBase imgfile)
 {
     try
     {
         AdminDetails       admObj             = (AdminDetails)Session["UserDetails"];
         PatientAllDetails  patientDETAILS     = (PatientAllDetails)Session["patientDetails"];
         HistoryFileDetails historyFileDetails = new HistoryFileDetails();
         ModelState.Clear();
         string impPath = ConfigurationManager.AppSettings["HistoryDoc"];
         if (impPath != null)
         {
             if (imgfile != null)
             {
                 string path;
                 string extension = Path.GetExtension(imgfile.FileName);
                 path = Path.Combine(Server.MapPath(impPath), Path.GetFileName(imgfile.FileName));
                 imgfile.SaveAs(path);
             }
             else
             {
                 return(Json("Please upload file !"));
             }
         }
         else
         {
             return(Json("File Upload is not available folder !"));
         }
         historyFileDetails.QueueId     = patientDETAILS.QueueId;
         historyFileDetails.FileName    = imgfile.FileName;
         historyFileDetails.CasePaperNo = patientDETAILS.CasePapaerNo;
         historyFileDetails.HospitalId  = patientDETAILS.HospitalId;
         historyFileDetails.PatientId   = patientDETAILS.Id;
         historyFileDetails.CreatedBy   = admObj.UserId;
         int Flag = BM.UploadFile(historyFileDetails);
         //return Json(Flag, JsonRequestBehavior.AllowGet);
         List <Common> lstObservation = new List <Common>();
         //return Json(lstObservation, JsonRequestBehavior.AllowGet);
         return(Json("File Uploaded Successfully!"));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public ActionResult ManagePrecCommonDetails(Common co)
        {
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            ModelState.Clear();
            co.QueueId     = patientDETAILS.QueueId;
            co.HospitalId  = patientDETAILS.HospitalId.ToString();
            co.CreatedBy   = admObj.UserId.ToString();
            co.PatientId   = patientDETAILS.Id.ToString();
            co.CasePaperNo = patientDETAILS.CasePapaerNo;

            //if (imgfile != null)
            //{
            //    string path;
            //    string extension = Path.GetExtension(imgfile.FileName);
            //    string impPath = ConfigurationManager.AppSettings["HistoryDoc"];
            //    path = Path.Combine(Server.MapPath(impPath), Path.GetFileName(imgfile.FileName));
            //    imgfile.SaveAs(path);
            //    co.FileName = imgfile.FileName;
            //    // path = "/UploadImage/" + Path.GetFileName(imgfile.FileName);
            //}

            //else
            //{
            //    co.FileName = "";
            //}


            int Flag = BM.ManagePrecCommonDetails(co);

            if (Flag > 0)
            {
                Common        ob             = new Common();
                List <Common> lstObservation = new List <Common>();
                ob             = BM.GetCommonDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                lstObservation = ob.lst;
                return(Json(lstObservation, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json("", JsonRequestBehavior.AllowGet));
            }
        }
        public ActionResult ManageMedicalInfoDetails(MedicalInformationDetails MI)
        {
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            ModelState.Clear();
            MI.HospitalId  = Convert.ToInt16(patientDETAILS.HospitalId);
            MI.CreatedBy   = admObj.UserId;
            MI.PatientId   = patientDETAILS.Id;
            MI.CasePaperNo = patientDETAILS.CasePapaerNo;
            //Ob.CasePaperNo =
            int Flag = BM.ManageMedicalInfoDetails(MI);

            //MedicalInformationDetails ob = new MedicalInformationDetails();
            //List<MedicalInformationDetails> lstVI = new List<MedicalInformationDetails>();
            //ob = BM.GetMedicalInfoDetails(patientDETAILS.CasePapaerNo);
            //lstVI = ob.lst;
            return(RedirectToAction("PatientMedicalDetails", "MyOPD"));
        }
        public ActionResult ManageBilling(BillingDetails BD)
        {
            BAL_MyOPD         BM             = new BAL_MyOPD();
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            BD.CasePaperNo = patientDETAILS.CasePapaerNo;
            BD.HospitalId  = patientDETAILS.HospitalId;
            BD.PatientId   = patientDETAILS.Id;
            BD.CreatedBy   = patientDETAILS.Id;
            BD.QueueId     = patientDETAILS.QueueId;
            int                   i   = BL.ManageBilling(BD);
            BillingDetails        bd  = new BillingDetails();
            List <BillingDetails> lst = new List <BillingDetails>();

            bd  = BM.GetBillingDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
            lst = bd.lst;
            return(Json(lst, JsonRequestBehavior.AllowGet));
        }
示例#22
0
        public ActionResult PageSwitch(string Page)
        {
            try
            {
                PatientAllDetails        patientDETAILS = (PatientAllDetails)Session["patientDetails"];
                BAL_MyOPD                BL             = new BAL_MyOPD();
                List <DentalExamination> ObjLST         = new List <DentalExamination>();
                DentalExamination        MD             = new DentalExamination();

                //Session["btnColorcode"] = Page;
                if (Page == null)
                {
                    MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
                    //return View("DentalExaminationPage", MD);
                }
                else
                {
                    if (Page == "A")
                    {
                        MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
                        //return View("DentalExaminationPage", MD);
                    }
                    else if (Page == "P")
                    {
                        MD = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "P");
                        //return View("DentalExaminationPage", MD);
                    }
                }
                if (MD.lst.Count > 0)
                {
                    foreach (var item in MD.lst)
                    {
                        item.CreatedDate = Convert.ToDateTime(item.CreatedDate).Date.ToString("dd/MM/yyyy");
                    }
                }
                //return View("DentalExaminationPage", MD);
                return(Json(MD.lst, JsonRequestBehavior.AllowGet));
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#23
0
        public ActionResult OpdBilling()
        {
            ModelState.Clear();
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            BillingDetails    bd             = new BillingDetails();

            bd = BM.GetBillingDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
            double TotalBill    = 0;
            double TotalPaid    = 0;
            double TotalBalance = 0;

            foreach (var item in bd.lst)
            {
                TotalBalance = TotalBalance + item.Balance;
                TotalPaid    = TotalPaid + item.Paid;
                TotalBill    = TotalBill + item.Bill;
            }
            bd.TotalBalance = TotalBalance;
            bd.TotalBill    = TotalBill;
            bd.TotalPaid    = TotalPaid;
            bd.Total        = TotalBalance + TotalPaid + TotalBill;
            bd.NetAmount    = TotalBalance + TotalPaid + TotalBill;
            return(View("NewBilling", bd));
        }
示例#24
0
 public ActionResult DeleteDentalExamination(int Id)
 {
     try
     {
         PatientAllDetails        patientDETAILS = (PatientAllDetails)Session["patientDetails"];
         BAL_MyOPD                BL             = new BAL_MyOPD();
         List <DentalExamination> ObjLST         = new List <DentalExamination>();
         //need to check session empty or null
         //if (Session["PageDetails"].ToString() =="" || Session["PageDetails"].ToString() ==null)
         //{
         //    Session["PageDetails"] = "C";
         //}
         //Adult
         if (Session["PageDetails"].ToString() == "A")
         {
             ObjLST = BL.DeleteDentalExamination(Id, patientDETAILS.QueueId, "A");
         }
         //Pediatric
         else if (Session["PageDetails"].ToString() == "P")
         {
             ObjLST = BL.DeleteDentalExamination(Id, patientDETAILS.QueueId, "P");
         }
         if (ObjLST.Count > 0)
         {
             foreach (var item in ObjLST)
             {
                 item.CreatedDate = Convert.ToDateTime(item.CreatedDate).Date.ToString("dd/MM/yyyy");
             }
         }
         return(Json(ObjLST, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
        public ActionResult ManageVitalInformation(VitalInformation VI)
        {
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            ModelState.Clear();
            VI.HospitalId  = patientDETAILS.HospitalId.ToString();
            VI.CreatedBy   = admObj.UserId;
            VI.PatientId   = patientDETAILS.Id;
            VI.CasePaperNo = patientDETAILS.CasePapaerNo;

            //Ob.CasePaperNo =
            int Flag = BM.ManageVitalInformation(VI);

            //if (Flag > 0)
            //{
            //    List<VitalInformation> vi = new List<VitalInformation>();
            //    VitalInformation v = new VitalInformation();

            //    vi = BM.GetVitalInformation(patientDETAILS.CasePapaerNo);
            //    var viralInfo = vi.FirstOrDefault(x => x.CasePaperNo == patientDETAILS.CasePapaerNo);
            //    if (viralInfo != null)
            //    {
            //        v.BloodPressure = viralInfo.BloodPressure;
            //        v.Temperature = viralInfo.Temperature;
            //        v.BloodGlucosePostPrandial = viralInfo.BloodGlucosePostPrandial;
            //        v.Weight = viralInfo.Weight;
            //        v.Height = viralInfo.Height;
            //        v.BloodGlucoseFasting = viralInfo.BloodGlucoseFasting;
            //        v.BloodlucoseRandom = viralInfo.BloodlucoseRandom;
            //        v.BloodUrea = viralInfo.BloodUrea;
            //        v.Creatinine = viralInfo.Creatinine;
            //        v.UricAcidM = viralInfo.UricAcidM;
            //        v.HB = viralInfo.HB;
            //        v.PCV = viralInfo.PCV;
            //        v.WBCCount = viralInfo.WBCCount;
            //        v.PlateletCount = viralInfo.PlateletCount;
            //        v.ESR = viralInfo.ESR;
            //        v.RBCCount = viralInfo.RBCCount;
            //        v.MCH = viralInfo.MCH;
            //        v.MCHC = viralInfo.MCHC;
            //        v.Lymphocyte = viralInfo.Lymphocyte;
            //        v.Eosinophil = viralInfo.Eosinophil;
            //        v.SerumBilirubin = viralInfo.SerumBilirubin;
            //        v.SGPTALT = viralInfo.SGPTALT;
            //        v.GGPT = viralInfo.GGPT;
            //        v.TotalProtein = viralInfo.TotalProtein;
            //        v.SerumAlbumin = viralInfo.SerumAlbumin;
            //        v.Globulin = viralInfo.Globulin;
            //        v.AlkalinePhosphatase = viralInfo.AlkalinePhosphatase;
            //        v.SGOT = viralInfo.SGOT;
            //        v.TotalCholesterol = viralInfo.TotalCholesterol;
            //        v.HDLCholestero = viralInfo.HDLCholestero;
            //        v.LDLCholesterol = viralInfo.LDLCholesterol;
            //        v.Triglycerides = viralInfo.Triglycerides;
            //        v.NonHDL = viralInfo.NonHDL;
            //        v.HbA1c = viralInfo.HbA1c;
            //        v.TSH = viralInfo.TSH;
            //        v.SPO2 = viralInfo.SPO2;
            //        v.RR = viralInfo.RR;
            //        v.HeadCircumference = viralInfo.HeadCircumference;
            //       // return View("VitalInformation",v);
            //        //return RedirectToAction("OpdPrescription", "MyOPD");
            //    }
            //    return View("VitalInformation", viralInfo);


            //}
            //return View("VitalInformation");
            return(RedirectToAction("PatientVitalInformation", "MyOPD"));
        }
示例#26
0
        public ActionResult SaveDentalPage(int Id, string CreatedDate, string ToothProcedure, string Amount, string Notes)
        {
            List <DentalExamination> oblist = new List <DentalExamination>();

            try
            {
                PatientAllDetails        patientDETAILS = (PatientAllDetails)Session["patientDetails"];
                List <DentalExamination> lst            = new List <DentalExamination>();
                Bal_Precription          BL             = new Bal_Precription();
                string img = Session["Toothno"].ToString();
                if (img == null)
                {
                    //ScriptManager.RegisterClientScriptBlock(, this.GetType(), "alertMessage", "alert('Record Inserted Successfully')", true);
                    return(View("DentalExaminationPage"));
                }
                if (CreatedDate == null)
                {
                    return(View("DentalExaminationPage"));
                }
                if (ToothProcedure == null)
                {
                    return(View("DentalExaminationPage"));
                }
                if (Amount == null)
                {
                    return(View("DentalExaminationPage"));
                }
                else if (Notes == null)
                {
                    return(View("DentalExaminationPage"));
                }
                //DentalExamination
                img = img.Substring(3, img.Length - 3);
                string btnColorcode = Session["btnColorcode"].ToString();
                DE.ColorCode              = btnColorcode.ToString();
                Session["CreatedDate"]    = Convert.ToDateTime(CreatedDate);
                Session["ToothProcedure"] = ToothProcedure;
                Session["Amount"]         = Amount;
                Session["Notes"]          = Notes;
                DE.CreatedDate            = Convert.ToDateTime(CreatedDate).Date.ToString("dd/MM/yyyy");
                DE.ToothProcedure         = ToothProcedure;
                DE.Amount      = Amount;
                DE.Notes       = Notes;
                DE.QueueId     = patientDETAILS.QueueId;
                DE.HospitalId  = patientDETAILS.HospitalId;
                DE.CasePaperNo = patientDETAILS.CasePapaerNo;
                DE.PatientId   = patientDETAILS.Id;
                DE.CreatedBy   = patientDETAILS.DoctorReceptionId;
                DE.Id          = Id;



                if (Session["PageDetails"].ToString() == "A")
                {
                    AdultToothNumberSet();
                    int Flag = BL.SaveAdultDetails(DE);
                    // BAL_MyOPD BM = new BAL_MyOPD();
                    // int Flag = BM.GetDentalExamination(DE);

                    if (Flag > 0)
                    {
                        DentalExamination objDE = new DentalExamination();

                        objDE  = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "A");
                        oblist = objDE.lst;
                        if (oblist.Count > 0)
                        {
                            foreach (var item in oblist)
                            {
                                item.CreatedDate = Convert.ToDateTime(item.CreatedDate).Date.ToString("dd/MM/yyyy");
                            }
                        }
                        return(Json(oblist, JsonRequestBehavior.AllowGet));
                    }
                    else
                    {
                        return(Json("", JsonRequestBehavior.AllowGet));
                    }

                    //Bal_Precription bp = new Bal_Precription();

                    //AdultDetails pd = new AdultDetails();


                    //pd.T12 = img;
                    //pd = bp.SavePage(pd);

                    //return View();
                    // return View("DentalExamination", lstObservation);
                }

                else if (Session["PageDetails"].ToString() == "P")
                {
                    PediatricToothNumberSet();
                    int Flag = BL.SavePediatricDetails(DE);
                    // BAL_MyOPD BM = new BAL_MyOPD();
                    // int Flag = BM.GetDentalExamination(DE);

                    if (Flag > 0)
                    {
                        DentalExamination objDE = new DentalExamination();

                        objDE  = BM.GetDentalExamination(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo, "P");
                        oblist = objDE.lst;
                        if (oblist.Count > 0)
                        {
                            foreach (var item in oblist)
                            {
                                item.CreatedDate = Convert.ToDateTime(item.CreatedDate).Date.ToString("dd/MM/yyyy");
                            }
                        }
                        return(Json(oblist, JsonRequestBehavior.AllowGet));
                    }
                    else
                    {
                        return(Json("", JsonRequestBehavior.AllowGet));
                    }
                }
                return(Json(oblist, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#27
0
        public ActionResult OpdExamination()
        {
            Bal_Precription   bp             = new Bal_Precription();
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            Precription       pd             = new Precription();

            pd = bp.ViewPricripion(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
            var Advice          = "";
            var Complaints      = "";
            var Diagnosis       = "";
            var TestBeforeVisit = "";
            var NextVisit       = "";

            if (pd.clist.Count > 0)
            {
                foreach (var item in pd.clist)
                {
                    if (item.AddAdvice != "" && item.AddAdvice != null)
                    {
                        Advice = Advice + item.AddAdvice + "," + "  ";
                    }
                }
            }
            if (pd.clist.Count > 0)
            {
                foreach (var item in pd.olist)
                {
                    if (item.Complaints != "" && item.Complaints != null)
                    {
                        Complaints = Complaints + item.Complaints + "," + "  ";
                    }

                    if (item.Diagnosis != "" && item.Diagnosis != null)
                    {
                        Diagnosis = Diagnosis + item.Diagnosis + "," + "  ";
                    }
                }
            }
            if (pd.clist.Count > 0)
            {
                foreach (var item in pd.NextListlst)
                {
                    if (item.NestVisitDate != "" && item.NestVisitDate != null)
                    {
                        NextVisit = NextVisit + Convert.ToDateTime(item.NestVisitDate).Date.ToString("dd/MM/yyyy") + "," + "  ";
                    }
                }
            }
            if (pd.clist.Count > 0)
            {
                foreach (var item in pd.clist)
                {
                    if (item.InvSelectTests != "" && item.InvSelectTests != null)
                    {
                        TestBeforeVisit = TestBeforeVisit + item.InvSelectTests + "," + "  ";
                    }
                }
            }
            pd.HospClinicNumber = pd.HospClinicNumber + " ,+91 " + pd.OtherNumber;
            pd.HospClinicNumber = pd.HospClinicNumber.TrimEnd(',');
            pd.TestBeforeVisit  = TestBeforeVisit.TrimEnd(',');
            pd.NextVisit        = NextVisit.TrimEnd(',');

            pd.AdviceNote = Advice.TrimEnd(',');

            pd.Complaints = Complaints.TrimEnd(',');
            pd.Diagnosis  = Diagnosis.TrimEnd(',');
            return(View("Examination", pd));
        }