Beispiel #1
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

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

                var standardFindingGlucose = standardFindingRepository.GetAllStandardFindings <int?>((int)TestType.Diabetes, (int)ReadingLabels.Glucose);
                GlucoseFindingGridView.DataSource = standardFindingGlucose;
                GlucoseFindingGridView.DataBind();
                if (listUnableScreenReasonData.Count < 1)
                {
                    listUnableScreenReasonData.Add(new UnableScreenReason {
                        DisplayName = "Unable to Screen", Reason = UnableToScreenReason.Other
                    });
                }
                //Filling Unable Screen Reason DataLists
                UnableToScreenDiabetesDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenDiabetesDataList.DataBind();
            }
        }
Beispiel #2
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

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

                var standardFindingHemoglobin = standardFindingRepository.GetAllStandardFindings <decimal?>((int)TestType.Hemoglobin, (int)ReadingLabels.Hemoglobin);

                var jScriptDeserializer = new JavaScriptSerializer();
                Page.ClientScript.RegisterHiddenField("hemoglobinfindingjson", jScriptDeserializer.Serialize(standardFindingHemoglobin));

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

                UnableToScreenHemoglobinDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenHemoglobinDataList.DataBind();
            }
        }
Beispiel #3
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

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

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

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

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

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


                var unableScreenRepository     = IoC.Resolve <IUnableToScreenStatusRepository>();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.AwvEkg) ?? 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
                UnableToScreenAwvEkgDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenAwvEkgDataList.DataBind();

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

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

                    ddlTestNotPerformedReasonAwvEkg.DataSource = listTestNotPerformedData;

                    ddlTestNotPerformedReasonAwvEkg.DataTextField  = "Name";
                    ddlTestNotPerformedReasonAwvEkg.DataValueField = "Id";
                    ddlTestNotPerformedReasonAwvEkg.DataBind();
                    ddlTestNotPerformedReasonAwvEkg.Items[0].Selected = true;
                }
                else
                {
                    ddlTestNotPerformedReasonAwvEkg.Visible = false;
                }
            }
        }
Beispiel #4
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

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

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

                var unableScreenRepository     = IoC.Resolve <IUnableToScreenStatusRepository>();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Mammogram) ?? 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
                UnableToScreenmammogramDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenmammogramDataList.DataBind();
            }

            SetTestNotPerfomred();
        }
Beispiel #5
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                var unableScreenRepository     = IoC.Resolve <IUnableToScreenStatusRepository>();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.Crp) ?? 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
                UnableToScreenCrpDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenCrpDataList.DataBind();
            }
        }
Beispiel #6
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;
                }
            }
        }
Beispiel #7
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();
        }
Beispiel #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            YearLiteral.Text = DateTime.Today.Year.ToString();

            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumberLiteral.Text = systemInformationRepository.GetSystemVersionNumber();
        }
Beispiel #9
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;
            }
        }
Beispiel #10
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();
        }
Beispiel #11
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            var unableScreenRepository     = IoC.Resolve <IUnableToScreenStatusRepository>();
            var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.FocAttestation) ?? 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
            UnableToScreenFocAttestationDataList.DataSource = listUnableScreenReasonData;
            UnableToScreenFocAttestationDataList.DataBind();

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

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

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

                    ddlTestNotPerformedReasonFocAttestation_Chat.DataTextField  = "Name";
                    ddlTestNotPerformedReasonFocAttestation_Chat.DataValueField = "Id";
                    ddlTestNotPerformedReasonFocAttestation_Chat.DataBind();
                    ddlTestNotPerformedReasonFocAttestation_Chat.Items[0].Selected = true;
                }
            }
            else
            {
                ddlTestNotPerformedReasonFocAttestation.Visible      = false;
                ddlTestNotPerformedReasonFocAttestation_Chat.Visible = false;
            }
        }
Beispiel #12
0
        private void SetReadingFindingsGridView()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
            }

            SetTestNotPerfomred();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            GetEventDetail();

            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            if (!Page.IsPostBack)
            {
                LogAudit(ModelType.View, customerLogEditModel, CustomerId);
            }
        }
        public void GetSystemVersionNumberReturnsDLLVersionOfCoreProject()
        {
            ISystemInformationFactory    systemInformationFactory    = new SystemInformationFactory();
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();
            string assemblyVersionNumber = Assembly.GetAssembly(typeof(Falcon.App.Core.Domain.DomainObjectBase)).GetName().Version.ToString();
            string expectedVersionNumber = systemInformationFactory.GetFormattedVersionString(assemblyVersionNumber);

            string actualVersionNumber = systemInformationRepository.GetSystemVersionNumber();

            Assert.IsNotNull(actualVersionNumber);
            Assert.AreEqual(expectedVersionNumber, actualVersionNumber);
            Debug.Print(actualVersionNumber);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            ucAuditStroke1.EventId    = EventId;
            ucAuditStroke1.CustomerId = CustomerId;

            ucAuditAwvAaa.EventId    = EventId;
            ucAuditAwvAaa.CustomerId = CustomerId;

            var eventRepository = IoC.Resolve <IEventRepository>();
            var eventData       = eventRepository.GetById(EventId);

            ThyroidControl.EventId   = EventId;
            ThyroidControl.EventDate = eventData.EventDate;

            PsaControl.EventId   = EventId;
            PsaControl.EventDate = eventData.EventDate;

            CrpControl.EventId   = EventId;
            CrpControl.EventDate = eventData.EventDate;

            TestosteroneControl.EventId   = EventId;
            TestosteroneControl.EventDate = eventData.EventDate;

            VisionControl.EventId   = EventId;
            VisionControl.EventDate = eventData.EventDate;

            awvEchocardiogram.EventId    = EventId;
            awvEchocardiogram.CustomerId = CustomerId;

            ucAuditLead.EventId    = EventId;
            ucAuditLead.CustomerId = CustomerId;

            ShowHideRepeatStudyCheckBox = false;

            var showHideRepeatStudyDate = IoC.Resolve <ISettings>().ShowHideRepeatStudyDate;

            if (eventData.EventDate.Date <= showHideRepeatStudyDate.Date)
            {
                var physicianEvaluationRepository = IoC.Resolve <PhysicianEvaluationRepository>();
                var physicianEvaluation           = physicianEvaluationRepository.GetPhysicianEvaluationbyEventIdCustomerId(EventId, CustomerId);

                ShowHideRepeatStudyCheckBox = physicianEvaluation != null && physicianEvaluation.EvaluationStartTime < showHideRepeatStudyDate.Date;
            }

            ShowHideRepeatStudyControl();
        }
Beispiel #16
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();
            }
        }
Beispiel #17
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();
            }
        }
Beispiel #18
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");
            }
        }
Beispiel #19
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();
                }
            }
        }
Beispiel #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsResultEntrybyChat)
            {
                AwvLipid_hip.Visible  = false;
                AwvLipid_chat.Visible = true;
            }
            else
            {
                AwvLipid_hip.Visible  = true;
                AwvLipid_chat.Visible = false;
            }
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            long customerId;

            if (long.TryParse(Request.QueryString["CustomerId"], out customerId))
            {
                var customer = IoC.Resolve <ICustomerRepository>().GetCustomer(customerId);
                _isMale = customer.Gender != Gender.Female;
            }
            else if (long.TryParse(Request.QueryString["EventCustomerId"], out customerId))
            {
                var eventCustomer = IoC.Resolve <IEventCustomerResultRepository>().GetById(customerId);
                if (eventCustomer != null)
                {
                    var customer = IoC.Resolve <ICustomerRepository>().GetCustomer(eventCustomer.CustomerId);
                    _isMale = customer.Gender != Gender.Female;
                }
            }

            if (!IsPostBack)
            {
                SetReadingFindingsGridView();
            }

            var currentSession = IoC.Resolve <ISessionContext>();

            if (currentSession != null && currentSession.UserSession != null && currentSession.UserSession.CurrentOrganizationRole != null)
            {
                RoleId = currentSession.UserSession.CurrentOrganizationRole.GetSystemRoleId;
            }
        }
Beispiel #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.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();
            }
        }
Beispiel #22
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();
            }
        }
Beispiel #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            var master = ((Franchisor_FranchisorMaster)Master);

            if (master != null)
            {
                master.HideLeftContainer = true;
                master.hideucsearch();
                master.settitle("Edit Result");
                master.SetBreadCrumbRoot = "<a href=\"#\">DashBoard</a>";
            }

            long s = 0;

            if (Request.QueryString["EventId"] != null && long.TryParse(Request.QueryString["EventId"], out s))
            {
                EventId = s;

                var eventRepository = IoC.Resolve <IEventRepository>();

                IsNewResultFlow = eventRepository.IsEventHasNewResultFlow(EventId);

                if (IsNewResultFlow)
                {
                    ClientScript.RegisterHiddenField("IsNewResultFlowInputHidden", "true");
                }
                else
                {
                    ClientScript.RegisterHiddenField("IsNewResultFlowInputHidden", "false");
                }
            }

            s = 0;
            if (Request.QueryString["CustomerId"] != null && long.TryParse(Request.QueryString["CustomerId"], out s))
            {
                CustomerId = s;
            }
        }
Beispiel #24
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();
            }
        }
Beispiel #25
0
        public void FillAllStaticGrids()
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();
            if (!IsResultEntrybyChat)
            {
                var unableScreenRepository     = IoC.Resolve <IUnableToScreenStatusRepository>();
                var listUnableScreenReasonData = unableScreenRepository.GetAllUnableToScreenReasons((long)TestType.DiabeticRetinopathy) ?? 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
                UnableToScreenDiabeticRetinopathyDataList.DataSource = listUnableScreenReasonData;
                UnableToScreenDiabeticRetinopathyDataList.DataBind();

                var standardFindingRepository = new StandardFindingRepository();

                DiabeticRetinopathyHighestLevelOfSpecificity.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.DiabeticRetinopathy, (Int32)ReadingLabels.DiabeticRetinopathyHighestLevelOfSpecificity);
                DiabeticRetinopathyHighestLevelOfSpecificity.DataBind();

                DiabeticRetinopathyMacularEdemaLevelOfSpecificity.DataSource = standardFindingRepository.GetAllStandardFindings <int>((Int32)TestType.DiabeticRetinopathy, (Int32)ReadingLabels.MacularEdemaHighestLevelOfSpecificity);
                DiabeticRetinopathyMacularEdemaLevelOfSpecificity.DataBind();
            }

            SetTestNotPerfomred();
        }
Beispiel #26
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;
            }
        }
        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;
                }
            }
        }
        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;
                }
            }
        }
Beispiel #29
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;
                }
            }
        }
Beispiel #30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ISystemInformationRepository systemInformationRepository = new SystemInformationRepository();

            VersionNumber = systemInformationRepository.GetBuildNumber();

            var master = ((Franchisor_FranchisorMaster)Master);

            if (master != null)
            {
                master.HideLeftContainer = true;
                master.hideucsearch();
                master.settitle("Post Audit");
                master.SetBreadCrumbRoot = "<a href=\"#\">DashBoard</a>";
            }

            long s = 0;

            if (Request.QueryString["EventId"] != null && long.TryParse(Request.QueryString["EventId"], out s))
            {
                EventId = s;
            }

            s = 0;
            if (Request.QueryString["CustomerId"] != null && long.TryParse(Request.QueryString["CustomerId"], out s))
            {
                CustomerId = s;
            }

            if (EventId > 0 && CustomerId > 0)
            {
                var corporateAccountRepository = IoC.Resolve <ICorporateAccountRepository>();
                var account = corporateAccountRepository.GetbyEventId(EventId);

                IsHealthPlan = account != null && account.IsHealthPlan;

                var eventRepository = IoC.Resolve <IEventRepository>();
                var theEvent        = eventRepository.GetById(EventId);
                QuestionnaireType = QuestionnaireType.None;
                if (account != null && theEvent != null)
                {
                    var accountHraChatQuestionnaireHistoryServices = IoC.Resolve <IAccountHraChatQuestionnaireHistoryServices>();
                    QuestionnaireType = accountHraChatQuestionnaireHistoryServices.QuestionnaireTypeByAccountIdandEventDate(account.Id, theEvent.EventDate);
                }

                ShowHraQuestions = (QuestionnaireType == QuestionnaireType.HraQuestionnaire);

                var eventCustomerResultRepository = IoC.Resolve <IEventCustomerResultRepository>();
                var testResultService             = IoC.Resolve <ITestResultService>();
                var eventCustomerResult           = eventCustomerResultRepository.GetByCustomerIdAndEventId(CustomerId, EventId);

                IsEawvTestPurchased = testResultService.IsTestPurchasedByCustomer(eventCustomerResult.Id, (long)TestType.eAWV);
                if (IsEawvTestPurchased)
                {
                    IsEawvTestNotPerformed = IoC.Resolve <ITestNotPerformedRepository>().IsTestNotPerformed(eventCustomerResult.Id, (long)TestType.eAWV);
                }

                if (account != null)
                {
                    if (account.MarkPennedBack && eventCustomerResult.IsRevertedToEvaluation)
                    {
                        MarkAsPennedBackDiv.Visible = true;
                        if (eventCustomerResult.IsPennedBack)
                        {
                            MarkAsPennedBackCheckbox.Checked = true;
                        }
                    }
                    else
                    {
                        MarkAsPennedBackDiv.Visible = false;
                    }
                }

                IsNewResultFlow = eventRepository.IsEventHasNewResultFlow(EventId);

                if (IsNewResultFlow)
                {
                    ClientScript.RegisterHiddenField("IsNewResultFlowInputHidden", "true");
                }
                else
                {
                    ClientScript.RegisterHiddenField("IsNewResultFlowInputHidden", "false");
                }
            }

            var repository     = new TestResultRepository();
            var nextCustomerId = repository.GetNextCustomerPostAudit(EventId, CustomerId, IsNewResultFlow);

            ClientScript.RegisterStartupScript(Page.GetType(), "js_nextCustomer", "nextCustomerId = " + nextCustomerId + ";", true);
        }