Esempio n. 1
0
        public void getCageaidData(int PatientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    screenTypeId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rblPC1Qs = (RadioButtonList)PHCageFrequency.FindControl("cage" + value.ScreeningCategoryId.ToString());
                    if (rblPC1Qs != null)
                    {
                        rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId);

            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    TextBox ntb = (TextBox)PHCAGEAIDScore.FindControl("cage" + value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }
        public void getPNSData()
        {
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId);

            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    //RefId = Convert.ToInt32(value.NotesCategoryId);
                    TextBox ntb = (TextBox)PHNutritionScreeningNotes.FindControl("nutritionatb" + value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }

            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    //RefId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rbl = (RadioButtonList)PHNutritionScreeningNotes.FindControl("nutritionarb" + value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Esempio n. 3
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();
                    }
                }
            }
        }
        public void getPatientNotesandScreening()
        {
            var PCN = new PatientClinicalNotesLogic();
            var PSM = new PatientScreeningManager();

            //get screening data
            PatientScreening[] patientScreeningData = PSM.GetPatientScreening(PatientId).ToArray();
            Session["patientScreeningData"] = patientScreeningData;
            //get notes data
            PatientClinicalNotes[] patientNotesData = PCN.getPatientClinicalNotes(PatientId).ToArray();
            Session["patientNotesData"] = patientNotesData;
        }
Esempio n. 5
0
        protected void getEvaluation(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.GetPatientScreening(PatientId);

            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
        protected void getScreening(int patientId, int patientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId);

            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    TextBox ntb = (TextBox)PHDepressionTotal.FindControl("sc" + value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }
Esempio n. 7
0
        protected void getDailyRoutine(int PatientId, int PatientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> notesList = PCN.getPatientClinicalNotes(PatientId);

            if (notesList.Any())
            {
                foreach (var value in notesList)
                {
                    dailyRoutineId = Convert.ToInt32(value.NotesCategoryId);
                    TextBox ntb = (TextBox)QuestionsPlaceholder.FindControl(value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }
        public void getDepressionScreeningData()
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

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

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