Ejemplo n.º 1
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvABI);

                standardFindingList = standardFindingList.OrderBy(f => f.Id).ToList();

                gvFindingsAwvAbi.DataSource = standardFindingList;
                gvFindingsAwvAbi.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReason = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvABI) ??
                                             new List <UnableScreenReason>();

                if (listUnableScreenReason.Count < 1)
                {
                    listUnableScreenReason.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                // Filling Unable To Screen Reason List for ASI
                dtlAwvAbiUnableToScreenSelected.DataSource = listUnableScreenReason;
                dtlAwvAbiUnableToScreenSelected.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.AwvABI);

                dtlAwvAbiIncidentalFindingsSelected.DataSource = listIncidentalFindings;
                dtlAwvAbiIncidentalFindingsSelected.DataBind();

                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonAwvAbi.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonAwvAbi.DataTextField  = "Name";
                    ddlTestNotPerformedReasonAwvAbi.DataValueField = "Id";
                    ddlTestNotPerformedReasonAwvAbi.DataBind();
                    ddlTestNotPerformedReasonAwvAbi.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonAwvAbi.Visible = false;
                }
            }
        }
Ejemplo n.º 2
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.A1C) ?? new List <UnableScreenReason> {
                    new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    }
                };

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenHemaglobinDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenHemaglobinDataList.DataBind();
            }
        }
Ejemplo n.º 3
0
        public void FillAllStaticGrids()
        {
            IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
            var standardFindingList = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.PulmonaryFunction);

            StandardFindingPulmonaryGridView.DataSource = standardFindingList;
            StandardFindingPulmonaryGridView.DataBind();

            IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
            var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.PulmonaryFunction) ?? new List <UnableScreenReason>()
            {
                new UnableScreenReason()
                {
                    DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                }
            };;

            if (listUnableScreenReasonData.Count < 1)
            {
                listUnableScreenReasonData.Add(new UnableScreenReason()
                {
                    DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                });
            }
            //Filling Unable Screen Reason DataLists
            UnableToScreenPulmonaryDataList.DataSource = listUnableScreenReasonData;
            UnableToScreenPulmonaryDataList.DataBind();
        }
Ejemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        public void BindControlData()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Osteoporosis, (int)ReadingLabels.EstimatedTScore);

                gvFindingsOsteo.DataSource = standardFindingList;
                gvFindingsOsteo.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableToScreen = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Osteoporosis) ??
                                         new List <UnableScreenReason>();

                if (listUnableToScreen.Count < 1)
                {
                    listUnableToScreen.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                if (listUnableToScreen.Count > 0)
                {
                    dtlOsteoSelectedUnableToScreen.DataSource = listUnableToScreen;
                    dtlOsteoSelectedUnableToScreen.DataBind();
                }
            }

            SetTestNotPerformed();
        }
Ejemplo n.º 5
0
        public void BindControlData()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
            var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.IFOBT);

            gvFindingsIFOBT.DataSource = standardFindingList;
            gvFindingsIFOBT.DataBind();

            IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
            var listUnableToScreen = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.IFOBT) ??
                                     new List <UnableScreenReason>();

            if (listUnableToScreen.Count < 1)
            {
                listUnableToScreen.Add(new UnableScreenReason(0)
                {
                    DisplayName = "Unable to Screen",
                    Reason      = UnableToScreenReason.Other
                });
            }

            if (listUnableToScreen.Count > 0)
            {
                dtlIFOBTSelectedUnableToScreen.DataSource = listUnableToScreen;
                dtlIFOBTSelectedUnableToScreen.DataBind();
            }

            var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
            var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

            if (listTestNotPerformedData.Count > 1)
            {
                listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                    Name = " Select ", Id = -1
                });

                ddlTestNotPerformedReasonIFOBT.DataSource     = listTestNotPerformedData;
                ddlTestNotPerformedReasonIFOBT.DataTextField  = "Name";
                ddlTestNotPerformedReasonIFOBT.DataValueField = "Id";
                ddlTestNotPerformedReasonIFOBT.DataBind();
                ddlTestNotPerformedReasonIFOBT.Items[0].Selected = true;

                ddlTestNotPerformedReasonIFOBT_chat.DataSource     = listTestNotPerformedData;
                ddlTestNotPerformedReasonIFOBT_chat.DataTextField  = "Name";
                ddlTestNotPerformedReasonIFOBT_chat.DataValueField = "Id";
                ddlTestNotPerformedReasonIFOBT_chat.DataBind();
                ddlTestNotPerformedReasonIFOBT_chat.Items[0].Selected = true;
            }
            else
            {
                ddlTestNotPerformedReasonIFOBT.Visible      = false;
                ddlTestNotPerformedReasonIFOBT_chat.Visible = false;
            }
        }
Ejemplo n.º 6
0
        private void SetReadingFindingsGridView()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();

                var standardFindingTc            = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.TotalCholestrol);
                var standardFindingGlucose       = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.Glucose);
                var standardFindingHdl           = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.HDL);
                var standardFindingLdl           = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.LDL);
                var standardFindingTriglycerides = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Lipid, (int)ReadingLabels.TriGlycerides);
                var standardFindingTchdlRatio    = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lipid, (int)ReadingLabels.TCHDLRatio);

                TotalCholestrolFindingGridView.DataSource = standardFindingTc;
                TotalCholestrolFindingGridView.DataBind();

                GlucoseFindingGridView.DataSource = standardFindingGlucose;
                GlucoseFindingGridView.DataBind();

                var jScriptDeserializer = new JavaScriptSerializer();
                Page.ClientScript.RegisterHiddenField("hdlfindingjson", jScriptDeserializer.Serialize(standardFindingHdl));

                var findings = FilterMaleFemalRecordsontheGenderBasis(standardFindingHdl);
                HDLFindingGridView.DataSource = findings;
                HDLFindingGridView.DataBind();

                LDLFindingGridView.DataSource = standardFindingLdl;
                LDLFindingGridView.DataBind();

                TriglyceridesFindingGridView.DataSource = standardFindingTriglycerides;
                TriglyceridesFindingGridView.DataBind();

                TCHDLRatioFindingGridView.DataSource = standardFindingTchdlRatio;
                TCHDLRatioFindingGridView.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Lipid) ??
                                                 new List <UnableScreenReason>();

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenLipidDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenLipidDataList.DataBind();
            }

            SetTestNotPerfomred();
        }
Ejemplo n.º 7
0
        public void FillAllStaticGridsEcho()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Echocardiogram) ?? new List <UnableScreenReason> {
                    new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    }
                };

                //Filling Unable Screen Reason DataLists
                EchoUnableScreenDatalist.DataSource = listUnableScreenReasonData;
                EchoUnableScreenDatalist.DataBind();

                var standardFindingRepository = new StandardFindingRepository();

                EchoFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram);
                EchoFindingsDatalist.DataBind();

                EjactionFractionFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.EstimatedEjactionFraction);
                EjactionFractionFindingsDatalist.DataBind();

                RegurgitationforAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.Aortic);
                RegurgitationforAorticDatalist.DataBind();
                RegurgitationforMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.Mitral);
                RegurgitationforMitralDatalist.DataBind();
                RegurgitationforPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.Pulmonic);
                RegurgitationforPulmonicDatalist.DataBind();
                RegurgitationforTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.Tricuspid);
                RegurgitationforTricuspidDatalist.DataBind();

                MorphologyAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.AorticMorphology);
                MorphologyAorticDatalist.DataBind();
                MorphologyMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.MitralMorphology);
                MorphologyMitralDatalist.DataBind();
                MorphologyPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.PulmonicMorphology);
                MorphologyPulmonicDatalist.DataBind();
                MorphologyTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.TricuspidMorphology);
                MorphologyTricuspidDatalist.DataBind();

                PericardialEffusionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.PericardialEffusion);
                PericardialEffusionFindingDatalist.DataBind();
                DiastolicDysfunctionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.Echocardiogram, (Int32)ReadingLabels.DiastolicDysfunction);
                DiastolicDysfunctionFindingDatalist.DataBind();
            }
        }
Ejemplo n.º 8
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.IMT);

                if (standardFindingList != null)
                {
                    var normalFinding   = standardFindingList.Where(sfl => sfl.Label.ToLower().Trim().Equals("normal")).FirstOrDefault();
                    var abnormalFinding = standardFindingList.Where(sfl => sfl.Label.ToLower().Trim().Equals("abnormal")).FirstOrDefault();
                    if (normalFinding != null)
                    {
                        Page.ClientScript.RegisterStartupScript(this.GetType(), "js_Imt_normal", "var imt_normalFindingId = " + normalFinding.Id + "; ", true);
                    }

                    if (abnormalFinding != null)
                    {
                        Page.ClientScript.RegisterStartupScript(this.GetType(), "js_Imt_abnormal", "var imt_abnormalFindingId = " + abnormalFinding.Id + "; ", true);
                    }
                }

                StandardFindingsImtGridView.DataSource = standardFindingList;
                StandardFindingsImtGridView.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.IMT) ?? new List <UnableScreenReason>()
                {
                    new UnableScreenReason()
                    {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    }
                };

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason()
                    {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenImtDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenImtDataList.DataBind();
            }
        }
Ejemplo n.º 9
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AAA, (int)ReadingLabels.AortaSize);

                StandardFindingsAAAGridView.DataSource = standardFindingList;
                StandardFindingsAAAGridView.DataBind();

                var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AAA, (int)ReadingLabels.AortaRangeSaggitalView);
                SaggitalViewDataList.DataSource = sViewStandardFindingList;
                SaggitalViewDataList.DataBind();

                var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AAA, (int)ReadingLabels.AortaRangeTransverseView);
                TransverseViewDatalist.DataSource = tViewStandardFindingList;
                TransverseViewDatalist.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AAA) ??
                                                 new List <UnableScreenReason>();

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenAAADataList.DataSource = listUnableScreenReasonData;
                UnableToScreenAAADataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.AAA);

                IncidentalFindingsSelectedAAADataList.DataSource = listIncidentalFindings;
                IncidentalFindingsSelectedAAADataList.DataBind();

                physicianRepeatStudy.Style.Add(HtmlTextWriterStyle.Display, ShowHideRepeatStudyCheckBox ? "block" : "none");

                aaaOtherModalitiesAdditionalImages.Style.Add(HtmlTextWriterStyle.Display, !ShowHideRepeatStudyCheckBox ? "block" : "none");
            }
        }
Ejemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsResultEntrybyChat)
            {
                ekg_hip.Visible  = false;
                ekg_chat.Visible = true;
            }
            else
            {
                ekg_hip.Visible  = true;
                ekg_chat.Visible = false;
            }
            if (!IsPostBack)
            {
                ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();
                VersionNumber = systemInformationRepository.GetBuildNumber();
                if (!IsResultEntrybyChat)
                {
                    IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();

                    var standardFindings = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.EKG);

                    EKGFindingsGridView.DataSource = standardFindings;
                    EKGFindingsGridView.DataBind();

                    BundleBranchBlockDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.EKG, (Int32)ReadingLabels.BundleBranchBlock);
                    BundleBranchBlockDatalist.DataBind();

                    InfarctionPatternDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.EKG, (Int32)ReadingLabels.InfarctionPattern);
                    InfarctionPatternDatalist.DataBind();

                    IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                    var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.EKG) ??
                                                     new List <UnableScreenReason>();

                    if (listUnableScreenReasonData.Count < 1)
                    {
                        listUnableScreenReasonData.Add(new UnableScreenReason(0)
                        {
                            DisplayName = "Unable to Screen",
                            Reason      = UnableToScreenReason.Other
                        });
                    }

                    UnableToScreenEkgDataList.DataSource = listUnableScreenReasonData;
                    UnableToScreenEkgDataList.DataBind();
                }
            }
        }
Ejemplo n.º 11
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.PPAAA, (int)ReadingLabels.AortaSize);

                StandardFindingsPpAAAGridView.DataSource = standardFindingList;
                StandardFindingsPpAAAGridView.DataBind();

                var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.PPAAA, (int)ReadingLabels.AortaRangeSaggitalView);
                PpSaggitalViewDataList.DataSource = sViewStandardFindingList;
                PpSaggitalViewDataList.DataBind();

                var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.PPAAA, (int)ReadingLabels.AortaRangeTransverseView);
                PpTransverseViewDatalist.DataSource = tViewStandardFindingList;
                PpTransverseViewDatalist.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.PPAAA) ??
                                                 new List <UnableScreenReason>();

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenPpAAADataList.DataSource = listUnableScreenReasonData;
                UnableToScreenPpAAADataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.PPAAA);

                IncidentalFindingsSelectedPpAAADataList.DataSource = listIncidentalFindings;
                IncidentalFindingsSelectedPpAAADataList.DataBind();
            }
        }
Ejemplo n.º 12
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.PAD);
                //if (standardFindingList.Count > 0 && standardFindingList.First().WorstCaseOrder.HasValue)
                //    standardFindingList = standardFindingList.OrderBy(f => f.WorstCaseOrder).ToList();
                //else
                //{
                standardFindingList = standardFindingList.OrderBy(f => f.Id).ToList();
                //}

                gvFindingsPAD.DataSource = standardFindingList;
                gvFindingsPAD.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReason = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.PAD) ??
                                             new List <UnableScreenReason>();

                if (listUnableScreenReason.Count < 1)
                {
                    listUnableScreenReason.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                // Filling Unable To Screen Reason List for ASI
                dtlPADUnableToScreenSelected.DataSource = listUnableScreenReason;
                dtlPADUnableToScreenSelected.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.PAD);

                dtlPADIncidentalFindingsSelected.DataSource = listIncidentalFindings;
                dtlPADIncidentalFindingsSelected.DataBind();
            }
        }
Ejemplo n.º 13
0
        public void SetUnableToScreenReasons(HtmlDocument doc, TestType testType, string containerId, IEnumerable <UnableScreenReason> unableScreenReasons)
        {
            IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
            var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)testType) ??
                                             new List <UnableScreenReason>();

            if (listUnableScreenReasonData.Count < 1)
            {
                listUnableScreenReasonData.Add(new UnableScreenReason(0)
                {
                    DisplayName = "Unable to Screen",
                    Reason      = UnableToScreenReason.Other
                });
            }

            var    selectedNode = doc.DocumentNode.SelectSingleNode(string.Concat("//table[@id='", containerId, "']"));
            string html         = "";

            foreach (var unableScreenReason in listUnableScreenReasonData)
            {
                string itemHtml = string.Concat("<input type='checkbox' /> ", unableScreenReason.DisplayName);

                if (unableScreenReasons != null)
                {
                    foreach (var screenReason in unableScreenReasons)
                    {
                        if (unableScreenReason.Reason == screenReason.Reason)
                        {
                            itemHtml = string.Concat("<input type='checkbox' checked='checked' /> ",
                                                     unableScreenReason.DisplayName);
                        }
                    }
                }
                html += "<td>" + itemHtml + "</td>";
            }

            if (selectedNode != null)
            {
                selectedNode.InnerHtml = "<tr>" + html + "</tr>";
            }
        }
Ejemplo n.º 14
0
        public void BindControlData()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.ASI, (int)ReadingLabels.ASI);

                StandardFindingsASIGridView.DataSource = standardFindingList;
                StandardFindingsASIGridView.DataBind();

                IUnableToScreenStatusRepository unableScreenReasonRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReason = unableScreenReasonRepository.GetAllUnableToScreenReasons((long)TestType.ASI) ?? new List <UnableScreenReason>()
                {
                    new UnableScreenReason()
                    {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    }
                };

                if (listUnableScreenReason.Count < 1)
                {
                    listUnableScreenReason.Add(new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    });
                }

                // Filling Unable To Screen Reason List for ASI
                ASIUnableToScreenSelectedDataList.DataSource = listUnableScreenReason;
                ASIUnableToScreenSelectedDataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.ASI);

                ASIIncidentalFindingsSelectedDataList.DataSource = listIncidentalFindings;
                ASIIncidentalFindingsSelectedDataList.DataBind();
            }
        }
Ejemplo n.º 15
0
        public void BindControlData()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
            var functionalAssessmentScore = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.QualityMeasures, (int)ReadingLabels.FunctionalAssessmentScore);

            ddlFunctionalAssessment.DataSource     = GetDropdownllistValues(functionalAssessmentScore);
            ddlFunctionalAssessment.DataValueField = "Key"; //The Value of the DropDownList, to get it you should call ddlDepartments.SelectedValue;
            ddlFunctionalAssessment.DataTextField  = "Value";
            ddlFunctionalAssessment.DataBind();


            var painAssessmentScore = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.QualityMeasures, (int)ReadingLabels.PainAssessmentScore);

            ddlPainAssessmentScore.DataSource     = GetDropdownllistValues(painAssessmentScore);
            ddlPainAssessmentScore.DataValueField = "Key"; //The Value of the DropDownList, to get it you should call ddlDepartments.SelectedValue;
            ddlPainAssessmentScore.DataTextField  = "Value";
            ddlPainAssessmentScore.DataBind();



            IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
            var listUnableToScreen = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.QualityMeasures) ??
                                     new List <UnableScreenReason>();

            if (listUnableToScreen.Count < 1)
            {
                listUnableToScreen.Add(new UnableScreenReason(0)
                {
                    DisplayName = "Unable to Screen",
                    Reason      = UnableToScreenReason.Other
                });
            }

            if (listUnableToScreen.Count > 0)
            {
                dtlQualityMeasuresSelectedUnableToScreen.DataSource = listUnableToScreen;
                dtlQualityMeasuresSelectedUnableToScreen.DataBind();
            }

            var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
            var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

            if (listTestNotPerformedData.Count > 1)
            {
                listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                    Name = " Select ", Id = -1
                });

                ddlTestNotPerformedReasonQualityMeasures.DataSource = listTestNotPerformedData;

                ddlTestNotPerformedReasonQualityMeasures.DataTextField  = "Name";
                ddlTestNotPerformedReasonQualityMeasures.DataValueField = "Id";
                ddlTestNotPerformedReasonQualityMeasures.DataBind();
                ddlTestNotPerformedReasonQualityMeasures.Items[0].Selected = true;
            }
            else
            {
                ddlTestNotPerformedReasonQualityMeasures.Visible = false;
            }
        }
Ejemplo n.º 16
0
        private void SetReadingFindingsGridView()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();

                var standardFindingTc            = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.MyBioCheckAssessment, (int)ReadingLabels.TotalCholestrol);
                var standardFindingGlucose       = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.MyBioCheckAssessment, (int)ReadingLabels.Glucose);
                var standardFindingHdl           = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.MyBioCheckAssessment, (int)ReadingLabels.HDL);
                var standardFindingLdl           = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.MyBioCheckAssessment, (int)ReadingLabels.LDL);
                var standardFindingTriglycerides = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.MyBioCheckAssessment, (int)ReadingLabels.TriGlycerides);
                var standardFindingTchdlRatio    = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.MyBioCheckAssessment, (int)ReadingLabels.TCHDLRatio);

                MyBioCheckTotalCholestrolFindingGridView.DataSource = standardFindingTc;
                MyBioCheckTotalCholestrolFindingGridView.DataBind();

                GlucoseMyBioCheckFindingGridView.DataSource = standardFindingGlucose;
                GlucoseMyBioCheckFindingGridView.DataBind();

                var jScriptDeserializer = new JavaScriptSerializer();
                Page.ClientScript.RegisterHiddenField("hdlfindingjson", jScriptDeserializer.Serialize(standardFindingHdl));

                var findings = FilterMaleFemalRecordsontheGenderBasis(standardFindingHdl);
                HDLMyBioCheckFindingGridView.DataSource = findings;
                HDLMyBioCheckFindingGridView.DataBind();

                LDLMyBioCheckFindingGridView.DataSource = standardFindingLdl;
                LDLMyBioCheckFindingGridView.DataBind();

                TriglyceridesMyBioCheckFindingGridView.DataSource = standardFindingTriglycerides;
                TriglyceridesMyBioCheckFindingGridView.DataBind();

                TCHDLRatioMyBioCheckFindingGridView.DataSource = standardFindingTchdlRatio;
                TCHDLRatioMyBioCheckFindingGridView.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.MyBioCheckAssessment) ??
                                                 new List <UnableScreenReason>();

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenMyBioCheckAssessmentDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenMyBioCheckAssessmentDataList.DataBind();


                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonMyBioCheckAssessment.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonMyBioCheckAssessment.DataTextField  = "Name";
                    ddlTestNotPerformedReasonMyBioCheckAssessment.DataValueField = "Id";
                    ddlTestNotPerformedReasonMyBioCheckAssessment.DataBind();
                    ddlTestNotPerformedReasonMyBioCheckAssessment.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonMyBioCheckAssessment.Visible = false;
                }
            }
        }
Ejemplo n.º 17
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();

                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lead, (int)ReadingLabels.Left);

                StandardFindingsLeadGridView.DataSource = standardFindingList;
                StandardFindingsLeadGridView.DataBind();

                var findingVelocityLeftList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lead, (int)ReadingLabels.LeftCFAPSV);
                if (findingVelocityLeftList.Count > 0)
                {
                    LowVelocityLeftLabel.InnerText     = findingVelocityLeftList[0].Label;
                    LowVelocityLeftIdHiddenfield.Value = findingVelocityLeftList[0].Id.ToString();
                }

                var findingVelocityRightList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Lead, (int)ReadingLabels.RightCFAPSV);
                if (findingVelocityRightList.Count > 0)
                {
                    LowVelocityRightLabel.InnerText     = findingVelocityRightList[0].Label;
                    LowVelocityRightIdHiddenfield.Value = findingVelocityRightList[0].Id.ToString();
                }

                IUnableToScreenStatusRepository unableToScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReason = unableToScreenRepository.GetAllUnableToScreenReasons((long)TestType.Lead) ??
                                             new List <UnableScreenReason>();

                if (listUnableScreenReason.Count < 1)
                {
                    listUnableScreenReason.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                UnableScreenReasonLeadDataList.DataSource = listUnableScreenReason;
                UnableScreenReasonLeadDataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listincidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.Lead);

                IncidentalFindingsLeadSelectedDataList.DataSource = listincidentalFindings;
                IncidentalFindingsLeadSelectedDataList.DataBind();


                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonLead.DataSource     = listTestNotPerformedData;
                    ddlTestNotPerformedReasonLead.DataTextField  = "Name";
                    ddlTestNotPerformedReasonLead.DataValueField = "Id";
                    ddlTestNotPerformedReasonLead.DataBind();
                    ddlTestNotPerformedReasonLead.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonLead.Visible = false;
                }

                var eventRepository = IoC.Resolve <IEventRepository>();
                var settings        = IoC.Resolve <ISettings>();
                var theEventData    = eventRepository.GetById(EventId);

                HideDiagnosisCodeLead = settings.ChangeLeadReadingDate.HasValue && theEventData.EventDate >= settings.ChangeLeadReadingDate.Value;
            }
        }
Ejemplo n.º 18
0
        public void FillAllStaticGridsEcho()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvEcho) ?? new List <UnableScreenReason> {
                    new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    }
                };

                //Filling Unable Screen Reason DataLists
                AwvEchoUnableScreenDatalist.DataSource = listUnableScreenReasonData;
                AwvEchoUnableScreenDatalist.DataBind();

                var standardFindingRepository = new StandardFindingRepository();

                AwvEchoFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho);
                AwvEchoFindingsDatalist.DataBind();

                var settings = IoC.Resolve <ISettings>();
                List <StandardFinding <int> > standardFindingList;

                if (settings.AwvEchoFindingChangeDate.HasValue)
                {
                    var eventCustomerResultRepository = IoC.Resolve <IEventCustomerResultRepository>();
                    var eventCustomerResult           = eventCustomerResultRepository.GetByCustomerIdAndEventId(CustomerId, EventId);
                    if (eventCustomerResult != null && eventCustomerResult.DataRecorderMetaData.DateCreated < settings.AwvEchoFindingChangeDate.Value)
                    {
                        standardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvEcho, (int)ReadingLabels.EstimatedEjactionFraction, settings.AwvEchoFindingChangeDate.Value, true);
                    }
                    else
                    {
                        standardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvEcho, (int)ReadingLabels.EstimatedEjactionFraction, settings.AwvEchoFindingChangeDate.Value, false);
                    }
                }
                else
                {
                    standardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvEcho, (int)ReadingLabels.EstimatedEjactionFraction);
                }

                AwvEchoEjactionFractionFindingsDatalist.DataSource = standardFindingList;
                AwvEchoEjactionFractionFindingsDatalist.DataBind();

                AwvEchoRegurgitationforAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.Aortic);
                AwvEchoRegurgitationforAorticDatalist.DataBind();
                AwvEchoRegurgitationforMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.Mitral);
                AwvEchoRegurgitationforMitralDatalist.DataBind();
                AwvEchoRegurgitationforPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.Pulmonic);
                AwvEchoRegurgitationforPulmonicDatalist.DataBind();
                AwvEchoRegurgitationforTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.Tricuspid);
                AwvEchoRegurgitationforTricuspidDatalist.DataBind();

                AwvEchoMorphologyAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.AorticMorphology);
                AwvEchoMorphologyAorticDatalist.DataBind();
                AwvEchoMorphologyMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.MitralMorphology);
                AwvEchoMorphologyMitralDatalist.DataBind();
                AwvEchoMorphologyPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.PulmonicMorphology);
                AwvEchoMorphologyPulmonicDatalist.DataBind();
                AwvEchoMorphologyTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.TricuspidMorphology);
                AwvEchoMorphologyTricuspidDatalist.DataBind();

                AwvEchoPericardialEffusionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.PericardialEffusion);
                AwvEchoPericardialEffusionFindingDatalist.DataBind();
                AwvEchoDiastolicDysfunctionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.AwvEcho, (Int32)ReadingLabels.DiastolicDysfunction);
                AwvEchoDiastolicDysfunctionFindingDatalist.DataBind();

                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonAwvEcho.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonAwvEcho.DataTextField  = "Name";
                    ddlTestNotPerformedReasonAwvEcho.DataValueField = "Id";
                    ddlTestNotPerformedReasonAwvEcho.DataBind();
                    ddlTestNotPerformedReasonAwvEcho.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonAwvEcho.Visible = false;
                }
            }
        }
Ejemplo n.º 19
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();

                List <StandardFinding <decimal?> > standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPCarotid, (int)ReadingLabels.Left);

                StandardFindingsHcpCarotidGridView.DataSource = standardFindingList;
                StandardFindingsHcpCarotidGridView.DataBind();

                var findingVelocityLicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPCarotid, (int)ReadingLabels.LICAPSV);
                if (findingVelocityLicaList.Count > 0)
                {
                    HcpCarotidLowVelocityLICALabel.InnerText     = findingVelocityLicaList[0].Label;
                    HcpCarotidLowVelocityLICAIdHiddenfield.Value = findingVelocityLicaList[0].Id.ToString();
                }

                var findingVelocityRicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPCarotid, (int)ReadingLabels.RICAPSV);
                if (findingVelocityRicaList.Count > 0)
                {
                    HcpCarotidLowVelocityRICALabel.InnerText     = findingVelocityRicaList[0].Label;
                    HcpCarotidLowVelocityRICAIdHiddenfield.Value = findingVelocityRicaList[0].Id.ToString();
                }

                IUnableToScreenStatusRepository unableToScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReason = unableToScreenRepository.GetAllUnableToScreenReasons((long)TestType.HCPCarotid) ??
                                             new List <UnableScreenReason>();

                if (listUnableScreenReason.Count < 1)
                {
                    listUnableScreenReason.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                UnableScreenReasonHcpCarotidDataList.DataSource = listUnableScreenReason;
                UnableScreenReasonHcpCarotidDataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listincidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.HCPCarotid);

                IncidentalFindingsHcpCarotidSelectedDataList.DataSource = listincidentalFindings;
                IncidentalFindingsHcpCarotidSelectedDataList.DataBind();

                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonHcpCarotid.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonHcpCarotid.DataTextField  = "Name";
                    ddlTestNotPerformedReasonHcpCarotid.DataValueField = "Id";
                    ddlTestNotPerformedReasonHcpCarotid.DataBind();
                    ddlTestNotPerformedReasonHcpCarotid.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonHcpCarotid.Visible = false;
                }
            }
        }
Ejemplo n.º 20
0
        public void FillAllStaticGridsEcho()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.HCPEcho) ?? new List <UnableScreenReason> {
                    new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    }
                };

                //Filling Unable Screen Reason DataLists
                HcpEchoUnableScreenDatalist.DataSource = listUnableScreenReasonData;
                HcpEchoUnableScreenDatalist.DataBind();

                var standardFindingRepository = new StandardFindingRepository();

                HcpEchoFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho);
                HcpEchoFindingsDatalist.DataBind();

                HcpEchoEjactionFractionFindingsDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.EstimatedEjactionFraction);
                HcpEchoEjactionFractionFindingsDatalist.DataBind();

                HcpEchoRegurgitationforAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Aortic);
                HcpEchoRegurgitationforAorticDatalist.DataBind();
                HcpEchoRegurgitationforMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Mitral);
                HcpEchoRegurgitationforMitralDatalist.DataBind();
                HcpEchoRegurgitationforPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Pulmonic);
                HcpEchoRegurgitationforPulmonicDatalist.DataBind();
                HcpEchoRegurgitationforTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.Tricuspid);
                HcpEchoRegurgitationforTricuspidDatalist.DataBind();

                HcpEchoMorphologyAorticDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.AorticMorphology);
                HcpEchoMorphologyAorticDatalist.DataBind();
                HcpEchoMorphologyMitralDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.MitralMorphology);
                HcpEchoMorphologyMitralDatalist.DataBind();
                HcpEchoMorphologyPulmonicDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.PulmonicMorphology);
                HcpEchoMorphologyPulmonicDatalist.DataBind();
                HcpEchoMorphologyTricuspidDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.TricuspidMorphology);
                HcpEchoMorphologyTricuspidDatalist.DataBind();

                HcpEchoPericardialEffusionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.PericardialEffusion);
                HcpEchoPericardialEffusionFindingDatalist.DataBind();
                HcpEchoDiastolicDysfunctionFindingDatalist.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.HCPEcho, (Int32)ReadingLabels.DiastolicDysfunction);
                HcpEchoDiastolicDysfunctionFindingDatalist.DataBind();

                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonHcpEcho.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonHcpEcho.DataTextField  = "Name";
                    ddlTestNotPerformedReasonHcpEcho.DataValueField = "Id";
                    ddlTestNotPerformedReasonHcpEcho.DataBind();
                    ddlTestNotPerformedReasonHcpEcho.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonHcpEcho.Visible = false;
                }
            }
        }
Ejemplo n.º 21
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
                var standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.HCPAAA, (int)ReadingLabels.AortaSize);

                StandardFindingsHcpAAAGridView.DataSource = standardFindingList;
                StandardFindingsHcpAAAGridView.DataBind();

                var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.HCPAAA, (int)ReadingLabels.AortaRangeSaggitalView);
                HcpSaggitalViewDataList.DataSource = sViewStandardFindingList;
                HcpSaggitalViewDataList.DataBind();

                var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.HCPAAA, (int)ReadingLabels.AortaRangeTransverseView);
                HcpTransverseViewDatalist.DataSource = tViewStandardFindingList;
                HcpTransverseViewDatalist.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.HCPAAA) ??
                                                 new List <UnableScreenReason>();

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenHcpAAADataList.DataSource = listUnableScreenReasonData;
                UnableToScreenHcpAAADataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.HCPAAA);

                IncidentalFindingsSelectedHcpAAADataList.DataSource = listIncidentalFindings;
                IncidentalFindingsSelectedHcpAAADataList.DataBind();

                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonHcpaaa.DataSource     = listTestNotPerformedData;
                    ddlTestNotPerformedReasonHcpaaa.DataTextField  = "Name";
                    ddlTestNotPerformedReasonHcpaaa.DataValueField = "Id";
                    ddlTestNotPerformedReasonHcpaaa.DataBind();
                    ddlTestNotPerformedReasonHcpaaa.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonHcpaaa.Visible = false;
                }
            }
        }
Ejemplo n.º 22
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository         standardFindingRepository = new StandardFindingRepository();
                List <StandardFinding <decimal?> > standardFindingList;

                var settings = IoC.Resolve <ISettings>();
                if (settings.StrokeFindingChangeDate.HasValue)
                {
                    var eventCustomerResultRepository = IoC.Resolve <IEventCustomerResultRepository>();
                    var eventCustomerResult           = eventCustomerResultRepository.GetByCustomerIdAndEventId(CustomerId, EventId);
                    if (eventCustomerResult != null && eventCustomerResult.DataRecorderMetaData.DateCreated < settings.StrokeFindingChangeDate.Value)
                    {
                        standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.Left, settings.StrokeFindingChangeDate.Value, true);
                    }
                    else
                    {
                        standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.Left, settings.StrokeFindingChangeDate.Value, false);
                    }
                }
                else
                {
                    standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.Left);
                }

                StandardFindingsStrokeGridView.DataSource = standardFindingList;
                StandardFindingsStrokeGridView.DataBind();

                var findingVelocityLicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.LICAPSV);
                if (findingVelocityLicaList.Count > 0)
                {
                    LowVelocityLICALabel.InnerText     = findingVelocityLicaList[0].Label;
                    LowVelocityLICAIdHiddenfield.Value = findingVelocityLicaList[0].Id.ToString();
                }

                var findingVelocityRicaList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Stroke, (int)ReadingLabels.RICAPSV);
                if (findingVelocityRicaList.Count > 0)
                {
                    LowVelocityRICALabel.InnerText     = findingVelocityRicaList[0].Label;
                    LowVelocityRICAIdHiddenfield.Value = findingVelocityRicaList[0].Id.ToString();
                }

                IUnableToScreenStatusRepository unableToScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReason = unableToScreenRepository.GetAllUnableToScreenReasons((long)TestType.Stroke) ??
                                             new List <UnableScreenReason>();

                if (listUnableScreenReason.Count < 1)
                {
                    listUnableScreenReason.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                UnableScreenReasonStrokeDataList.DataSource = listUnableScreenReason;
                UnableScreenReasonStrokeDataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listincidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.Stroke);

                IncidentalFindingsStrokeSelectedDataList.DataSource = listincidentalFindings;
                IncidentalFindingsStrokeSelectedDataList.DataBind();
            }
        }
Ejemplo n.º 23
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                IStandardFindingRepository         standardFindingRepository = new StandardFindingRepository();
                List <StandardFinding <decimal?> > standardFindingList;
                var settings = IoC.Resolve <ISettings>();
                if (settings.AwvAaaFindingChangeDate.HasValue)
                {
                    var eventCustomerResultRepository = IoC.Resolve <IEventCustomerResultRepository>();
                    var eventCustomerResult           = eventCustomerResultRepository.GetByCustomerIdAndEventId(CustomerId, EventId);
                    if (eventCustomerResult != null && eventCustomerResult.DataRecorderMetaData.DateCreated < settings.AwvAaaFindingChangeDate.Value)
                    {
                        standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvAAA, (int)ReadingLabels.AortaSize, settings.AwvAaaFindingChangeDate.Value, true);
                    }
                    else
                    {
                        standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvAAA, (int)ReadingLabels.AortaSize, settings.AwvAaaFindingChangeDate.Value, false);
                    }
                }
                else
                {
                    standardFindingList = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.AwvAAA, (int)ReadingLabels.AortaSize);
                }


                StandardFindingsAwvAaaGridView.DataSource = standardFindingList;
                StandardFindingsAwvAaaGridView.DataBind();

                var sViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvAAA, (int)ReadingLabels.AortaRangeSaggitalView);
                AwvAaaSaggitalViewDataList.DataSource = sViewStandardFindingList;
                AwvAaaSaggitalViewDataList.DataBind();

                var tViewStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvAAA, (int)ReadingLabels.AortaRangeTransverseView);
                TransverseViewDatalist.DataSource = tViewStandardFindingList;
                TransverseViewDatalist.DataBind();

                var peakSystolicVelocityStandardFindingList = standardFindingRepository.GetAllStandardFindings <int>((int)TestType.AwvAAA, (int)ReadingLabels.PeakSystolicVelocitySaggitalView);
                PeakSystolicVelocityDatalist.DataSource = peakSystolicVelocityStandardFindingList;
                PeakSystolicVelocityDatalist.DataBind();

                IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvAAA) ??
                                                 new List <UnableScreenReason>();

                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason(0)
                    {
                        DisplayName = "Unable to Screen",
                        Reason      = UnableToScreenReason.Other
                    });
                }

                //Filling Unable Screen Reason DataLists
                UnableToScreenAwvAaaDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenAwvAaaDataList.DataBind();

                IIncidentalFindingRepository incidentalFindingrepository = new IncidentalFindingRepository();
                var listIncidentalFindings = incidentalFindingrepository.GetAllIncidentalFinding((long)TestType.AwvAAA);

                IncidentalFindingsSelectedAwvAaaDataList.DataSource = listIncidentalFindings;
                IncidentalFindingsSelectedAwvAaaDataList.DataBind();

                var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
                var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

                if (listTestNotPerformedData.Count > 1)
                {
                    listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                        Name = " Select ", Id = -1
                    });

                    ddlTestNotPerformedReasonAwvAaa.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonAwvAaa.DataTextField  = "Name";
                    ddlTestNotPerformedReasonAwvAaa.DataValueField = "Id";
                    ddlTestNotPerformedReasonAwvAaa.DataBind();
                    ddlTestNotPerformedReasonAwvAaa.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonAwvAaa.Visible = false;
                }
            }
        }
Ejemplo n.º 24
0
        public void BindControlData()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            IStandardFindingRepository standardFindingRepository = new StandardFindingRepository();
            var standardFindingUrineMicroalbumin = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.UrineMicroalbumin);

            var jScriptDeserializer = new JavaScriptSerializer();

            Page.ClientScript.RegisterHiddenField("UrineMicroalbuminfindingjson", jScriptDeserializer.Serialize(standardFindingUrineMicroalbumin));

            var findings = FilterMaleFemalRecordsontheGenderBasis(standardFindingUrineMicroalbumin);

            StandardFindingsUrineMicroalbuminGridView.DataSource = findings;
            StandardFindingsUrineMicroalbuminGridView.DataBind();

            IUnableToScreenStatusRepository unableScreenRepository = new UnableToScreenStatusRepository();
            var listUnableToScreen = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.UrineMicroalbumin) ??
                                     new List <UnableScreenReason>();

            if (listUnableToScreen.Count < 1)
            {
                listUnableToScreen.Add(new UnableScreenReason(0)
                {
                    DisplayName = "Unable to Screen",
                    Reason      = UnableToScreenReason.Other
                });
            }

            if (listUnableToScreen.Count > 0)
            {
                dtlUrineMicroalbuminSelectedUnableToScreen.DataSource = listUnableToScreen;
                dtlUrineMicroalbuminSelectedUnableToScreen.DataBind();
            }
            var testNotPerformedReasonRepository = IoC.Resolve <ITestNotPerformedReasonRepository>();
            var listTestNotPerformedData         = testNotPerformedReasonRepository.GetAll().ToList();

            if (listTestNotPerformedData.Count > 1)
            {
                listTestNotPerformedData.Insert(0, new TestNotPerformedReason {
                    Name = " Select ", Id = -1
                });

                ddlTestNotPerformedReasonUrineMicroalbumin.DataSource = listTestNotPerformedData;

                ddlTestNotPerformedReasonUrineMicroalbumin.DataTextField  = "Name";
                ddlTestNotPerformedReasonUrineMicroalbumin.DataValueField = "Id";
                ddlTestNotPerformedReasonUrineMicroalbumin.DataBind();
                ddlTestNotPerformedReasonUrineMicroalbumin.Items[0].Selected = true;

                ddlTestNotPerformedReasonUrineMicroalbumin_chat.DataSource = listTestNotPerformedData;

                ddlTestNotPerformedReasonUrineMicroalbumin_chat.DataTextField  = "Name";
                ddlTestNotPerformedReasonUrineMicroalbumin_chat.DataValueField = "Id";
                ddlTestNotPerformedReasonUrineMicroalbumin_chat.DataBind();
                ddlTestNotPerformedReasonUrineMicroalbumin_chat.Items[0].Selected = true;
            }
            else
            {
                ddlTestNotPerformedReasonUrineMicroalbumin.Visible      = false;
                ddlTestNotPerformedReasonUrineMicroalbumin_chat.Visible = false;
            }
        }