Beispiel #1
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;
                    }
                }
            }
        }
Beispiel #2
0
        protected void populateCTRLS()
        {
            LookupLogic lookUp = new LookupLogic();

            lookUp.populateDDL(ddlMilestoneAssessed, "MilestoneAssessed");
            lookUp.populateDDL(ddlMilestoneStatus, "MilestoneStatus");
            lookUp.populateDDL(ddlImmunizationPeriod, "ImmunizationPeriod");
            lookUp.populateDDL(ddlImmunizationGiven, "ImmunizationGiven");
            string jsonObject = "[]";

            jsonObject = LookupLogic.GetLookupItemByName("NeonatalHistory");
            JavaScriptSerializer  ser        = new JavaScriptSerializer();
            List <LookupItemView> lookupList = ser.Deserialize <List <LookupItemView> >(jsonObject);

            foreach (var value in lookupList)
            {
                if (value.ItemName == "NeonatalRecord")
                {
                    screenTypeId = value.MasterId;
                    PHNeonatalHistory.Controls.Add(new LiteralControl("<label class='control-label  pull-left text-primary'>" + value.ItemDisplayName + "</label>"));
                    rbList               = new RadioButtonList();
                    rbList.ID            = value.ItemId.ToString();
                    rbList.RepeatColumns = 2;
                    rbList.ClientIDMode  = System.Web.UI.ClientIDMode.Static;
                    rbList.CssClass      = "rbList";
                    rbList.SelectedValue = "104";
                    lookUp.populateRBL(rbList, "GeneralYesNo");
                    PHNeonatalHistory.Controls.Add(rbList);
                    RadioButtonList rbl = (RadioButtonList)PHNeonatalHistory.FindControl(value.ItemId.ToString());
                    rbl.SelectedValue = LookupLogic.GetLookupItemId("No");
                }
                if (value.ItemName == "NeonatalNotes")
                {
                    PHNeonatalHistoryNotes.Controls.Add(new LiteralControl("<label class='control-label  pull-left text-primary'>" + value.ItemDisplayName + "</label>"));
                    NotesId          = value.ItemId;
                    notesTb          = new TextBox();
                    notesTb.TextMode = TextBoxMode.MultiLine;
                    notesTb.CssClass = "form-control input-sm";
                    notesTb.ID       = value.ItemId.ToString();
                    notesTb.Rows     = 3;
                    PHNeonatalHistoryNotes.Controls.Add(notesTb);
                }
            }
        }