Esempio n. 1
0
        public void getSCRAFFTData(int PatientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId);

            //.GetPatientScreening(PatientId);
            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    screenTypeId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rblPC1Qs = (RadioButtonList)PHCRAFFTFrequency.FindControl("crafft" + value.ScreeningCategoryId.ToString());
                    if (rblPC1Qs != null)
                    {
                        rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId);

            //.getPatientClinicalNotes(PatientId);
            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    TextBox ntb = (TextBox)PHCRAFFTAlcoholScreening.FindControl("crafft" + value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }
        public string GetDepressionScreeningData(int PatientMasterVisitId, int PatientId)
        {
            var         PSM    = new PatientScreeningManager();
            LookupLogic lookUp = new LookupLogic();

            List <PatientScreening> screeningList       = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId);
            List <LookupItemView>   DepressionQuestions = new List <LookupItemView>();
            List <LookupItemView>   lasttwoweeksqlist   = lookUp.getQuestions("DepressionScreeningQuestions");
            List <LookupItemView>   ph9qlist            = lookUp.getQuestions("PHQ9Questions");

            DepressionQuestions.AddRange(ph9qlist);
            DepressionQuestions.AddRange(lasttwoweeksqlist);
            var DepressionSeverity  = IQCare.CCC.UILogic.LookupLogic.GetLookupItemId("DepressionSeverity");
            var DepressionTota      = IQCare.CCC.UILogic.LookupLogic.GetLookupItemId("DepressionTotal");
            var RecommendManagement = IQCare.CCC.UILogic.LookupLogic.GetLookupItemId("ReccommendedManagement");

            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId);
            List <ScreeningData>        ScreeningDepressionData = new List <ScreeningData>();

            if (notesList != null)
            {
                if (DepressionSeverity != null)
                {
                    var           item = notesList.Find(x => x.NotesCategoryId == Convert.ToInt32(DepressionSeverity));
                    ScreeningData sc   = new ScreeningData();
                    if (item != null)
                    {
                        sc.ItemId = item.NotesCategoryId;
                        sc.value  = item.ClinicalNotes;
                        ScreeningDepressionData.Add(sc);
                    }
                }
            }

            List <PatientScreening> DepressionData = new List <PatientScreening>();



            foreach (var depression in DepressionQuestions)
            {
                var item = screeningList.Find(x => x.ScreeningCategoryId == depression.ItemId);
                if (item != null)
                {
                    ScreeningData sc = new ScreeningData();

                    sc.ItemId = item.ScreeningCategoryId;
                    sc.value  = item.ScreeningValueId.ToString();
                    ScreeningDepressionData.Add(sc);
                }
            }


            string jsonScreeningObject = "[]";

            jsonScreeningObject = new JavaScriptSerializer().Serialize(ScreeningDepressionData);
            return(jsonScreeningObject);
        }
Esempio n. 3
0
        public string getPatientNotesByVisitId(int PatientId, int PatientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();

            //PatientClinicalNotes[] patientNotesData = (PatientClinicalNotes[])Session["patientNotesData"];
            PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId).ToArray();
            string jsonNotesObject = "[]";

            jsonNotesObject = new JavaScriptSerializer().Serialize(patientNotesData);
            return(jsonNotesObject);
        }
Esempio n. 4
0
        public string getPatientNotesByVisitId(int PatientId, int PatientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();

            PatientId = int.Parse(HttpContext.Current.Session["PatientPK"].ToString());
            //PatientClinicalNotes[] patientNotesData = (PatientClinicalNotes[])Session["patientNotesData"];
            PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotesByVisitId(Convert.ToInt32(Session["PatientPK"]), PatientMasterVisitId).ToArray();
            string jsonNotesObject = "[]";

            jsonNotesObject = new JavaScriptSerializer().Serialize(patientNotesData);
            return(jsonNotesObject);
        }
        protected void getEvaluation(int PatientId, int PatientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId);

            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    PCId = Convert.ToInt32(value.NotesCategoryId);
                    TextBox ntb = (TextBox)QuestionsPlaceholder.FindControl("notes" + value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }

            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    PCId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rbl = (RadioButtonList)QuestionsPlaceholder.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }

            //var PCNs = new PatientClinicalNotesLogic();
            //List<PatientClinicalNotes> notesLists = PCNs.getPatientClinicalNotes(PatientId);
            //if (notesLists.Any())
            //{
            //    foreach (var value in notesList)
            //    {
            //        PCId = Convert.ToInt32(value.NotesCategoryId);
            //        TextBox ntbs = (TextBox)QuestionsPlaceholder.FindControl(value.NotesCategoryId.ToString());
            //        if (ntbs != null)
            //        {
            //            ntbs.Text = value.ClinicalNotes;
            //        }
            //    }
            //}
        }
Esempio n. 6
0
        public void getPatientNotesandScreening()
        {
            var PCN = new PatientClinicalNotesLogic();
            var PSM = new PatientScreeningManager();

            //get screening data
            PatientScreening[] patientScreeningData = PSM.GetPatientScreeningByVisitId(PatientId, PmVisitId).ToArray();
            //GetPatientScreening(PatientId).ToArray();
            //(PatientId).ToArray();
            Session["patientScreeningData"] = patientScreeningData;
            //get notes data
            PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotesByVisitId(PatientId, PmVisitId).ToArray();
            // (PatientId).ToArray();
            //.getPatientClinicalNotes(PatientId).ToArray();
            Session["patientNotesData"] = patientNotesData;
        }
Esempio n. 7
0
        protected void getCaseSummaries(int PatientId, int PatientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PatientMasterVisitId);

            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    caseSummaryId = Convert.ToInt32(value.NotesCategoryId);
                    TextBox ntb = (TextBox)QuestionsPlaceholder.FindControl(value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }
Esempio n. 8
0
        public void getDepressionScreeningData()
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PmVisitId);

            //.GetPatientScreening(PatientId);
            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    depressionId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rblPC1Qs = (RadioButtonList)PlaceHolder1.FindControl("uds" + value.ScreeningCategoryId.ToString());
                    if (rblPC1Qs != null)
                    {
                        rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString();
                    }
                    RadioButtonList rblPC2Qs = (RadioButtonList)PlaceHolder2.FindControl("uds" + value.ScreeningCategoryId.ToString());
                    if (rblPC2Qs != null)
                    {
                        rblPC2Qs.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotesByVisitId(PatientId, PmVisitId);

            //.getPatientClinicalNotes(PatientId);
            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    TextBox ntb = (TextBox)PlaceHolder2.FindControl("uds" + value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }