Example #1
0
        protected void getPsychosocialCircumstances(int patientId, int patientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId);

            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();
                    }
                }
            }
        }
Example #2
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);
        }
Example #4
0
        public string getScreeningByIdandMasterVisit(int PatientId, int PatientMasterVisitId)
        {
            var PSM = new PatientScreeningManager();

            PatientScreening[] patientScreeningData = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId).ToArray();
            string             jsonScreeningObject  = "[]";

            jsonScreeningObject = new JavaScriptSerializer().Serialize(patientScreeningData);
            return(jsonScreeningObject);
        }
        public string getScreeningByIdandMasterVisit(int PatientId, int PatientMasterVisitId)
        {
            PatientId = int.Parse(HttpContext.Current.Session["PatientPK"].ToString());
            var PSM = new PatientScreeningManager();

            PatientScreening[] patientScreeningData = PSM.GetPatientScreeningByVisitId(Convert.ToInt32(Session["PatientPK"]), PatientMasterVisitId).ToArray();
            string             jsonScreeningObject  = "[]";

            jsonScreeningObject = new JavaScriptSerializer().Serialize(patientScreeningData);
            return(jsonScreeningObject);
        }
        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;
            //        }
            //    }
            //}
        }
Example #7
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;
        }
        protected void getUnderstanding(int patientId, int patientMasterVisitId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(patientId, patientMasterVisitId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    understandingId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rbl = (RadioButtonList)QuestionsPlaceholder.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Example #9
0
        public void getHIVAwareness(int PatientId, int PatientMasterVisitId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(PatientId, PatientMasterVisitId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    HIVStatusId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rbl = (RadioButtonList)QuestionsPlaceholder.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Example #10
0
        private void getFrequencyData(int patientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreeningByVisitId(patientId, PmVisitId);

            //PSM.GetPatientScreening(patientId);
            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    RadioButtonList rbl = (RadioButtonList)PHCageFrequency.FindControl("cage" + value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Example #11
0
        public void getGbvScreeningData(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)PHgbvquestions.FindControl("gbv" + value.ScreeningCategoryId.ToString());
                    if (rblPC1Qs != null)
                    {
                        rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Example #12
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;
                    }
                }
            }
        }