public static Dictionary <string, string> GetDynamicParameters(this PhysicalExam physicalExam)
        {
            if (physicalExam == null)
            {
                return(new Dictionary <string, string>());
            }

            return(new Dictionary <string, string>
            {
                { "D002", physicalExam.Code?.Value },
                { "D003", physicalExam.Code?.DisplayName },
                { "D004", physicalExam.Code?.CodeSystem?.Value },
                { "D005", physicalExam.Code?.CodeSystemName },
                { "D006", physicalExam.DateRange?.DateLow?.Value },
                { "D007", physicalExam.DateRange?.DateHigh?.Value },
                { "D008", physicalExam.DataSubType },
                { "D009", physicalExam.Reason?.Value },
                { "D010", physicalExam.Reason?.DisplayName },
                { "D011", physicalExam.Reason?.CodeSystem?.Value },
                { "D013", physicalExam.ResultValue?.Value },
                { "D014", physicalExam.ResultValue?.Unit },
                { "D015", physicalExam.ResultValue?.Code?.Value },
                { "D016", physicalExam.ResultValue?.Code?.CodeSystem?.Value },
                { "D017", physicalExam.ResultValue?.Type.ToString() }
            });
        }
Exemplo n.º 2
0
 [HttpPost]// עדכון הנתונים במסד
 public ActionResult SavevPhyicalExam(PhysicalExam p)
 {
     try
     {
         Session.Timeout += 10;
         BLPhyicalExam bl     = new BLPhyicalExam();
         int           result = bl.AddOrUpdatePhysicalExam1(DateTime.Today, Session["Patiant"].ToString(),
                                                            p.ApearsWell, p.ApearsWellT, p.PupilsEqual, p.PupilsEqualT, p.TmNormal, p.TmNormalT, p.Oropharynx,
                                                            p.OropharynxT, p.Atraumatic, p.AtraumaticT, p.HeentMucosa, p.HeentMucosaT, p.Supple,
                                                            p.SuppleT, p.thyromegaly, p.thyromegalyT, p.HeartsoundsRegular, p.HeartsoundsRegularT, p.Murmur,
                                                            p.MurmurT, p.GoodAir, p.GoodAirT, p.ClearToAuscultation, p.ClearToAuscultationT, p.SymmetricalBreast,
                                                            p.SymmetricalBreastT, p.Palpable, p.PalpableT, p.SkinChanges, p.SkinChangesT, p.Nipple,
                                                            p.NippleT, p.Axillary, p.AxillaryT, p.Soft, p.SoftT, p.Tender, p.TenderT,
                                                            p.ABDdescription, p.BowelSounds, p.BowelSoundsT, p.RenalArtery, p.RenalArteryT,
                                                            p.Masses, p.MassesT, p.Organomegaly, p.OrganomegalyT, p.SkinAbnormalities, p.SkinAbnormalitiesT,
                                                            p.SignificantScoliosis, p.SignificantScoliosisT, p.Kyphosis, p.KyphosisT, p.Edema, p.EdemaT,
                                                            p.EXTRash, p.EXTRashT, p.Varicosities, p.VaricositiesT, p.Pppx4, p.Pppx4T, p.PedalEdema, p.PedalEdemaT,
                                                            p.Toes, p.ToesT, p.Pattelar, p.PattelarT, p.Gait, p.GaitT, p.Speech, p.SpeechT,
                                                            p.Female, p.FemaleT, p.PelvicMucosa, p.Kegels, p.Cervix, p.VaginalWalls, p.VaginalWallsT, p.Pap, p.PapT);
         if (result == 0)// שמירת הנתונים צלחה
         {
             return(Json("הנתונים נשמרו בהצלחה", JsonRequestBehavior.AllowGet));
         }
         else// כשל בשמירת הנתונים
         {
             return(Json("התרחשה שגיאה", JsonRequestBehavior.AllowGet));
         }
     }
     catch
     {
         return(View(p));
     }
 }
Exemplo n.º 3
0
        public async Task <PhysicalExamViewModel> GetPhysicalExamViewModelByEpiRowIdAsync(long epiRowId)
        {
            var hn    = "";
            var epiNo = "";

            var antiAging = await GetExamAntiAgingByEpiRowIdAsync(epiRowId);

            var patient = await _patientAdmissionRepository.GetPatientHnByEpiRowIdAsync(epiRowId);

            if (patient != null)
            {
                hn    = patient.PAPMI_No;
                epiNo = patient.PAADM_ADMNo;
            }

            var physicalExam = new PhysicalExam()
            {
                PhysicalExamAntiAgings = antiAging.ToList(),
                PhysicalExamGIs        = new List <PhysicalExamGIViewModel>(),
                PhysicalExamHearts     = new List <PhysicalExamHeartViewModel>(),
                PhysicalExamNEUROs     = new List <PhysicalExamNEUROViewModel>(),
                PhysicalExamSports     = new List <PhysicalExamSportViewModel>()
            };

            var results = new PhysicalExamViewModel()
            {
                PAPMI_No      = hn,
                PAADM_ADMNo   = epiNo,
                PhysicalExams = physicalExam
            };

            return(results);
        }
Exemplo n.º 4
0
        public async Task <PhysicalExam> GetPhysicalExamsByEpiRowIdAsync(long epiRowId)
        {
            var antiAging = await GetExamAntiAgingByEpiRowIdAsync(epiRowId);

            var physicalExams = new PhysicalExam()
            {
                PhysicalExamAntiAgings = antiAging.ToList(),
                PhysicalExamGIs        = new List <PhysicalExamGIViewModel>(),
                PhysicalExamHearts     = new List <PhysicalExamHeartViewModel>(),
                PhysicalExamNEUROs     = new List <PhysicalExamNEUROViewModel>(),
                PhysicalExamSports     = new List <PhysicalExamSportViewModel>()
            };

            return(physicalExams);
        }
Exemplo n.º 5
0
 public ActionResult PhyicalExam() // כניסה ללשונית בדיקה רפואית של מטופלת
 {
     try
     {
         if (Session["UserName"] == null || Session["UserPasswerd"] == null)
         {
             return(RedirectToAction("Login", "Account"));
         }
         if (Session["Patiant"] == null)
         {
             return(RedirectToAction("Login", "Account"));
         }
         string        id = Session["Patiant"].ToString();
         BLPhyicalExam b  = new BLPhyicalExam();
         PhysicalExam  p  = b.GetPhyicalExam(DateTime.Today, id);// שליפת נתוני המטופלת מהמסד
         return(View(p));
     }
     catch (Exception)
     {
         return(View());
     }
 }
Exemplo n.º 6
0
        public PhysicalExam GetPhyicalExam(DateTime dt, string id)
        {
            DAPhyicalExam  dap    = new DAPhyicalExam();
            ListDictionary Params = new ListDictionary();

            Params.Add("@date", dt);
            Params.Add("@id", id);
            DataSet      ds = dap.GetPhyicalExam(Params);
            PhysicalExam p  = new PhysicalExam();

            p.PupilsEqualT         = BLCtrl.getString(ds.Tables[0].Rows[0], "PupilsEqualT", "");
            p.UpdateCode           = BLCtrl.getInt(ds.Tables[0].Rows[0], "UpdateCode", 0);
            p.ApearsWell           = BLCtrl.getBool(ds.Tables[0].Rows[0], "ApearsWell", false);
            p.ApearsWellT          = BLCtrl.getString(ds.Tables[0].Rows[0], "ApearsWellT", "");
            p.PupilsEqual          = BLCtrl.getBool(ds.Tables[0].Rows[0], "PupilsEqual", false);
            p.TmNormal             = BLCtrl.getBool(ds.Tables[0].Rows[0], "TmNormal", false);
            p.TmNormalT            = BLCtrl.getString(ds.Tables[0].Rows[0], "TmNormalT", "");
            p.Oropharynx           = BLCtrl.getBool(ds.Tables[0].Rows[0], "Oropharynx", false);
            p.OropharynxT          = BLCtrl.getString(ds.Tables[0].Rows[0], "OropharynxT", "");
            p.Atraumatic           = BLCtrl.getBool(ds.Tables[0].Rows[0], "Atraumatic", false);
            p.AtraumaticT          = BLCtrl.getString(ds.Tables[0].Rows[0], "AtraumaticT", "");
            p.HeentMucosa          = BLCtrl.getBool(ds.Tables[0].Rows[0], "HeentMucosa", false);
            p.HeentMucosaT         = BLCtrl.getString(ds.Tables[0].Rows[0], "HeentMucosaT", "");
            p.Supple               = BLCtrl.getBool(ds.Tables[0].Rows[0], "Supple", false);
            p.SuppleT              = BLCtrl.getString(ds.Tables[0].Rows[0], "SuppleT", "");
            p.thyromegaly          = BLCtrl.getBool(ds.Tables[0].Rows[0], "thyromegaly", false);
            p.thyromegalyT         = BLCtrl.getString(ds.Tables[0].Rows[0], "thyromegalyT", "");
            p.HeartsoundsRegular   = BLCtrl.getBool(ds.Tables[0].Rows[0], "HeartsoundsRegular", false);
            p.HeartsoundsRegularT  = BLCtrl.getString(ds.Tables[0].Rows[0], "HeartsoundsRegularT", "");
            p.Murmur               = BLCtrl.getBool(ds.Tables[0].Rows[0], "Murmur", false);
            p.MurmurT              = BLCtrl.getString(ds.Tables[0].Rows[0], "MurmurT", "");
            p.GoodAir              = BLCtrl.getBool(ds.Tables[0].Rows[0], "GoodAir", false);
            p.GoodAirT             = BLCtrl.getString(ds.Tables[0].Rows[0], "GoodAirT", "");
            p.ClearToAuscultation  = BLCtrl.getBool(ds.Tables[0].Rows[0], "ClearToAuscultation", false);
            p.ClearToAuscultationT = BLCtrl.getString(ds.Tables[0].Rows[0], "ClearToAuscultationT", "");
            p.SymmetricalBreast    = BLCtrl.getBool(ds.Tables[0].Rows[0], "SymmetricalBreast", false);
            p.SymmetricalBreastT   = BLCtrl.getString(ds.Tables[0].Rows[0], "SymmetricalBreastT", "");
            p.Palpable             = BLCtrl.getBool(ds.Tables[0].Rows[0], "Palpable", false);
            p.PalpableT            = BLCtrl.getString(ds.Tables[0].Rows[0], "PalpableT", "");
            p.SkinChanges          = BLCtrl.getBool(ds.Tables[0].Rows[0], "SkinChanges", false);
            p.SkinChangesT         = BLCtrl.getString(ds.Tables[0].Rows[0], "SkinChangesT", "");
            p.Nipple               = BLCtrl.getBool(ds.Tables[0].Rows[0], "Nipple", false);
            p.NippleT              = BLCtrl.getString(ds.Tables[0].Rows[0], "NippleT", "");
            p.Axillary             = BLCtrl.getBool(ds.Tables[0].Rows[0], "Axillary", false);
            p.AxillaryT            = BLCtrl.getString(ds.Tables[0].Rows[0], "AxillaryT", "");
            p.Soft                  = BLCtrl.getBool(ds.Tables[0].Rows[0], "Soft", false);
            p.SoftT                 = BLCtrl.getString(ds.Tables[0].Rows[0], "SoftT", "");
            p.Tender                = BLCtrl.getBool(ds.Tables[0].Rows[0], "Tender", false);
            p.TenderT               = BLCtrl.getString(ds.Tables[0].Rows[0], "TenderT", "");
            p.ABDdescription        = BLCtrl.getString(ds.Tables[0].Rows[0], "ABDdescription", "");
            p.BowelSounds           = BLCtrl.getBool(ds.Tables[0].Rows[0], "BowelSounds", false);
            p.BowelSoundsT          = BLCtrl.getString(ds.Tables[0].Rows[0], "BowelSoundsT", "");
            p.RenalArtery           = BLCtrl.getBool(ds.Tables[0].Rows[0], "RenalArtery", false);
            p.RenalArteryT          = BLCtrl.getString(ds.Tables[0].Rows[0], "RenalArteryT", "");
            p.Masses                = BLCtrl.getBool(ds.Tables[0].Rows[0], "Masses", false);
            p.MassesT               = BLCtrl.getString(ds.Tables[0].Rows[0], "MassesT", "");
            p.Organomegaly          = BLCtrl.getBool(ds.Tables[0].Rows[0], "Organomegaly", false);
            p.OrganomegalyT         = BLCtrl.getString(ds.Tables[0].Rows[0], "OrganomegalyT", "");
            p.SkinAbnormalities     = BLCtrl.getBool(ds.Tables[0].Rows[0], "SkinAbnormalities", false);
            p.SkinAbnormalitiesT    = BLCtrl.getString(ds.Tables[0].Rows[0], "SkinAbnormalitiesT", "");
            p.SignificantScoliosis  = BLCtrl.getBool(ds.Tables[0].Rows[0], "SignificantScoliosis", false);
            p.SignificantScoliosisT = BLCtrl.getString(ds.Tables[0].Rows[0], "SignificantScoliosisT", "");
            p.Kyphosis              = BLCtrl.getBool(ds.Tables[0].Rows[0], "Kyphosis", false);
            p.KyphosisT             = BLCtrl.getString(ds.Tables[0].Rows[0], "KyphosisT", "");
            p.Edema                 = BLCtrl.getBool(ds.Tables[0].Rows[0], "Edema", false);
            p.EdemaT                = BLCtrl.getString(ds.Tables[0].Rows[0], "EdemaT", "");
            p.EXTRash               = BLCtrl.getBool(ds.Tables[0].Rows[0], "EXTRash", false);
            p.EXTRashT              = BLCtrl.getString(ds.Tables[0].Rows[0], "EXTRashT", "");
            p.Varicosities          = BLCtrl.getBool(ds.Tables[0].Rows[0], "Varicosities", false);
            p.VaricositiesT         = BLCtrl.getString(ds.Tables[0].Rows[0], "VaricositiesT", "");
            p.Pppx4                 = BLCtrl.getBool(ds.Tables[0].Rows[0], "Pppx4", false);
            p.Pppx4T                = BLCtrl.getString(ds.Tables[0].Rows[0], "Pppx4T", "");
            p.PedalEdema            = BLCtrl.getBool(ds.Tables[0].Rows[0], "PedalEdema", false);
            p.PedalEdemaT           = BLCtrl.getString(ds.Tables[0].Rows[0], "PedalEdemaT", "");
            p.Toes                  = BLCtrl.getBool(ds.Tables[0].Rows[0], "Toes", false);
            p.ToesT                 = BLCtrl.getString(ds.Tables[0].Rows[0], "ToesT", "");
            p.Pattelar              = BLCtrl.getBool(ds.Tables[0].Rows[0], "Pattelar", false);
            p.PattelarT             = BLCtrl.getString(ds.Tables[0].Rows[0], "PattelarT", "");
            p.Gait                  = BLCtrl.getBool(ds.Tables[0].Rows[0], "Gait", false);
            p.GaitT                 = BLCtrl.getString(ds.Tables[0].Rows[0], "GaitT", "");
            p.Speech                = BLCtrl.getBool(ds.Tables[0].Rows[0], "Speech", false);
            p.SpeechT               = BLCtrl.getString(ds.Tables[0].Rows[0], "SpeechT", "");
            p.Female                = BLCtrl.getBool(ds.Tables[0].Rows[0], "Female", false);
            p.FemaleT               = BLCtrl.getString(ds.Tables[0].Rows[0], "FemaleT", "");
            p.PelvicMucosa          = BLCtrl.getInt(ds.Tables[0].Rows[0], "PelvicMucosa", 1);
            p.Kegels                = BLCtrl.getInt(ds.Tables[0].Rows[0], "Kegels", 1);
            p.Cervix                = BLCtrl.getString(ds.Tables[0].Rows[0], "Cervix", "");
            p.VaginalWalls          = BLCtrl.getBool(ds.Tables[0].Rows[0], "VaginalWalls", false);
            p.VaginalWallsT         = BLCtrl.getString(ds.Tables[0].Rows[0], "VaginalWallsT", "");
            p.Pap  = BLCtrl.getBool(ds.Tables[0].Rows[0], "Pap", false);
            p.PapT = BLCtrl.getString(ds.Tables[0].Rows[0], "PapT", "");
            return(p);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Creates an instance of a specific mcdt ,associates it with the current date and
        /// save to database by calling the auxilliary function below
        /// </summary>
        /// <param name="listPrsecribedMCDT">list of prescribed mcdts</param>
        public void SavePrescribedMCDT(List <string> listPrsecribedMCDT)
        {
            MCDT     newUnregularMcdt;
            LabExams labExam;

            foreach (string mcdt in listPrsecribedMCDT)
            {
                if (mcdt.Equals("Physical"))
                {
                    newUnregularMcdt = new PhysicalExam {
                        MCDT_date = DateTime.Now
                    };
                    SavePrescribedMcdtAUX(newUnregularMcdt);
                }
                else if (mcdt.Equals("Pyschiatric"))
                {
                    newUnregularMcdt = new PsychiatricExam {
                        MCDT_date = DateTime.Now
                    };
                    SavePrescribedMcdtAUX(newUnregularMcdt);
                }
                else if (mcdt.Equals("KFT"))
                {
                    labExam = new KFT {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.KFT
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("LFT"))
                {
                    labExam = new LFT {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.LFT
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("LymphocytesSubsets"))
                {
                    labExam = new LymphocytesSubsets {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.LymphocytesSubsets
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("RBCS"))
                {
                    labExam = new RBCS {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.RBCS
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("PlateletsCount"))
                {
                    labExam = new PlateletsCount {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.PlateletsCount
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("RBCIndices"))
                {
                    labExam = new RBCIndices {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.RBCIndices
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("WBCS"))
                {
                    labExam = new WBCS {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.WBCS
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
                else if (mcdt.Equals("ViralLoad"))
                {
                    labExam = new ViralLoad {
                        MCDT_date = DateTime.Now, MCDT_type = MCDTType.ViralLoad
                    };
                    SavePrescribedMcdtAUX(labExam);
                }
            }


            //LabExams  lab=  db.LabExams.Add(e);
            //CreateMCDT(lab);
        }