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;
                    }
                }
            }
        }
Esempio n. 2
0
        private void getNeonatalScreeningData(int PatientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

            if (screeningList != null)
            {
                screeningValue = 1;
                foreach (var value in screeningList)
                {
                    neonatalscreeningvalue = neonatalscreeningvalue + 1;
                    RadioButtonList rbl = (RadioButtonList)PHNeonatalHistory.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
            var PCN = new PatientClinicalNotesLogic();
            List <PatientClinicalNotes> neonatalNotesList = PCN.getPatientClinicalNotesById(PatientId, Convert.ToInt32(LookupLogic.GetLookupItemId("NeonatalNotes")));

            if (neonatalNotesList.Any())
            {
                screeningValue = 1;
                foreach (var value in neonatalNotesList)
                {
                    immscreeningvalue = immscreeningvalue + 0;
                    TextBox ntb = (TextBox)PHNeonatalHistoryNotes.FindControl(value.NotesCategoryId.ToString());
                    if (ntb != null)
                    {
                        ntb.Text = value.ClinicalNotes;
                    }
                }
            }
        }
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();
                    }
                }
            }
        }
Esempio n. 4
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();
                    }
                }
            }
        }
        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. 7
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);
        }
        public string getScreeningByStatus(string Status)
        {
            var PSM       = new PatientScreeningManager();
            int statusId  = Convert.ToInt32(LookupLogic.GetLookupItemId(Status));
            int patientId = Convert.ToInt32(Session["PatientPK"]);

            PatientScreening[] patientScreeningData = PSM.GetPatientScreeningStatus(patientId, statusId).ToArray();
            string             jsonScreeningObject  = "[]";

            jsonScreeningObject = new JavaScriptSerializer().Serialize(patientScreeningData);
            return(jsonScreeningObject);
        }
        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. 11
0
        protected void getSessionData(int patientId, int patientMasterVisitId)
        {
            var PCN = new PatientClinicalNotesLogic();

            //PatientClinicalNotes[] notesList = PCN.getPatientClinicalNotes(PatientId).ToArray();
            PatientClinicalNotes[] notesList = (PatientClinicalNotes[])Session["PatientNotesData"];
            if (notesList != null)
            {
                if (notesList.Any())
                {
                    foreach (var value in notesList)
                    {
                        //PCId = Convert.ToInt32(value.NotesCategoryId);
                        TextBox ntb = (TextBox)FindControl("session1tb" + value.NotesCategoryId.ToString());
                        if (ntb != null)
                        {
                            ntb.Text = value.ClinicalNotes;
                        }
                        if (LookupLogic.GetLookupItemId("Session1FollowupDate") == value.NotesCategoryId.ToString())
                        {
                            PatientAppointmentManager appointmentmgr = new PatientAppointmentManager();
                            if (value.ClinicalNotes != "")
                            {
                                List <PatientAppointment> paList = appointmentmgr.GetByDate(Convert.ToDateTime(value.ClinicalNotes));
                                foreach (var pavalue in paList)
                                {
                                    appointmentId = pavalue.Id;
                                }
                            }
                        }
                    }
                }
            }
            var PSM = new PatientScreeningManager();

            PatientScreening[] screeningList = (PatientScreening[])Session["PatientScreeningData"];
            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    //PCId = Convert.ToInt32(value.ScreeningTypeId);
                    RadioButtonList rbl = (RadioButtonList)FindControl("session1rb" + value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
            //PatientAppointmentManager appointmentmgr = new PatientAppointmentManager();
            //PatientAppointment pa = appointmentmgr.GetAppointmentSummaryByDate(AppointmentId);
            //AppointmentDate.Text = pa.AppointmentDate.ToString("dd-MMM-yyy");
        }
Esempio n. 12
0
 public string AddPatientScreening(int patientId, int patientMasterVisitid, DateTime visitDate, int screeningTypeId, int screeningDone, DateTime screeningDate, int screeningCategoryId, int screeningValueId, string comment, int userId)
 {
     try
     {
         var screening = new PatientScreeningManager();
         Result = screening.AddPatientScreening(patientId, patientMasterVisitid, visitDate, screeningTypeId, screeningDone, screeningDate, screeningCategoryId, screeningValueId, comment, userId);
         Msg    = (Result > 0) ? "Patient Screening Added Successfully" : "";
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Esempio n. 13
0
        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;
            //        }
            //    }
            //}
        }
        public string AddPatientScreening(int patientId, int patientMasterVisitid, DateTime visitDate, int screeningTypeId, bool screeningDone, DateTime screeningDate, int screeningCategoryId, int screeningValueId, string comment, int userId)
        {
            try
            {
                patientId            = Convert.ToInt32(HttpContext.Current.Session["PatientPK"]);
                patientMasterVisitId = Convert.ToInt32(HttpContext.Current.Session["PatientmasterVisitId"]);

                var patientScreening = new PatientScreeningManager();
                result      = patientScreening.AddPatientScreening(patientId, patientMasterVisitId, visitDate, screeningTypeId, screeningDone, screeningDate, screeningCategoryId, screeningValueId, comment, Convert.ToInt32(HttpContext.Current.Session["AppUserId"]));
                jsonMessage = (result > 0) ? "Patient screening addedd successfully!" : "";
            }
            catch (Exception e)
            {
                jsonMessage = e.Message;
            }
            return(jsonMessage);
        }
Esempio n. 15
0
        private void getFrequencyData(int patientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = 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();
                    }
                }
            }
        }
Esempio n. 16
0
 public string AddUpdateScreeningDataByVisitId(int patientId, int patientMasterVisitId, int screeningType, int screeningCategory, int screeningValue, int userId)
 {
     try
     {
         var PSM = new PatientScreeningManager();
         Result = PSM.AddUpdatePatientScreeningByVisitId(Convert.ToInt32(Session["PatientPK"]), patientMasterVisitId, screeningType, screeningCategory, screeningValue, userId);
         if (Result > 0)
         {
             Msg = "Screening Added";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
        private void getSocialHistory(int patientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(patientId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    RadioButtonList rbl = (RadioButtonList)PlaceHolder1.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Esempio n. 18
0
 public string addCancellingStatus(string status)
 {
     try
     {
         var PSM = new PatientScreeningManager();
         Result = PSM.AddUpdatePatientScreening(Convert.ToInt32(Session["PatientPK"]), Convert.ToInt32(Session["PatientMasterVisitId"]), Convert.ToInt32(LookupLogic.GetLookUpMasterId("EnhanceAdherenceCounselling")), Convert.ToInt32(LookupLogic.GetLookUpMasterId("EnhanceAdherenceCounselling")), Convert.ToInt32(LookupLogic.GetLookupItemId(status)), Convert.ToInt32(Session["AppUserId"]));
         if (Result > 0)
         {
             Msg = "Screening Added";
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
        public string AddUpdateScreeningRecord(int patientId, int patientMasterVisitId, string ScreeningData)
        {
            try
            {
                ScreeningRecord[] result = new JavaScriptSerializer().Deserialize <ScreeningRecord[]>(ScreeningData);

                //var  result = new JavaScriptSerializer().Deserialize<List<>(ScreeningData).ToArray();


                if (result != null)
                {
                    if (result.Length > 0)
                    {
                        for (int i = 0; i < result.Length; i++)
                        {
                            int patId        = patientId;
                            int patiMasterId = patientMasterVisitId;

                            try
                            {
                                int screeningValue = result[i].screeningValue;
                                var PSM            = new PatientScreeningManager();
                                if (screeningValue > 0)
                                {
                                    Result = PSM.AddUpdatePatientScreening(patId, patiMasterId, result[i].screeningType, result[i].screeningCategory, result[i].screeningValue, result[i].userId);
                                    if (Result > 0)
                                    {
                                        Msg = "Screening Added";
                                    }
                                }
                            }
                            catch (Exception e)
                            {
                                Msg = e.Message;
                            }
                        }
                    }
                }
            }
            catch (Exception e)
            {
                Msg = e.Message;
            }
            return(Msg);
        }
Esempio n. 20
0
        public void getGbvScreeningData(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)PHgbvquestions.FindControl("gbv" + value.ScreeningCategoryId.ToString());
                    if (rblPC1Qs != null)
                    {
                        rblPC1Qs.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
Esempio n. 21
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();
                    }
                }
            }
        }
Esempio n. 22
0
        protected void getUnderstanding(int patientId, int patientMasterVisitId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

            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();
                    }
                }
            }
        }
Esempio n. 23
0
        protected void getRecordTannersStaging(int PatientId)
        {
            var PSM = new PatientScreeningManager();
            List <PatientScreening> screeningList = PSM.GetPatientScreening(PatientId);

            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    tannersScreeningValue = tannersScreeningValue + 1;
                    RadioButtonList rbl = (RadioButtonList)PHTannersStaging.FindControl(value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }
 public string AddUpdateScreeningData(int patientId, int patientMasterVisitId, int screeningType, int screeningCategory, int screeningValue, int userId)
 {
     try
     {
         var PSM = new PatientScreeningManager();
         if (screeningValue > 0)
         {
             Result = PSM.AddUpdatePatientScreening(patientId, patientMasterVisitId, screeningType, screeningCategory, screeningValue, userId);
             if (Result > 0)
             {
                 Msg = "Screening Added";
             }
         }
     }
     catch (Exception e)
     {
         Msg = e.Message;
     }
     return(Msg);
 }
Esempio n. 25
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;
                    }
                }
            }
        }
Esempio n. 26
0
        public void getDisclosureData(int patientId)
        {
            var PSM = new PatientScreeningManager();

            PatientScreening[] screeningList = PSM.GetPatientScreening(PatientId).ToArray();
            if (screeningList != null)
            {
                foreach (var value in screeningList)
                {
                    RadioButtonList rbl = (RadioButtonList)FindControl("disclosurerbl" + value.ScreeningCategoryId.ToString());
                    if (rbl != null)
                    {
                        rbl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                    DropDownList ddl = (DropDownList)FindControl("disclosureddl" + value.ScreeningCategoryId.ToString());
                    if (ddl != null)
                    {
                        ddl.SelectedValue = value.ScreeningValueId.ToString();
                    }
                }
            }
        }