Ejemplo n.º 1
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));
        }
 public ActionResult DeleteCommon(int Id)
 {
     try
     {
         BAL_MyOPD     BL  = new BAL_MyOPD();
         List <Common> LST = new List <Common>();
         LST = BL.DeleteCommon(Id);
         return(Json(LST, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 3
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 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));
        }
Ejemplo n.º 5
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;
            }
        }
Ejemplo n.º 6
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;
     }
 }