private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_HPV1618ByPCRTestOrder.IsOkToFinalize();
            if (methodResult.Success == true)
            {
                YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRResultCollection resultCollection = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRResultCollection.GetAllResults();
                YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRResult           hpv1618Result    = resultCollection.GetResult(this.m_HPV1618ByPCRTestOrder.ResultCode);
                hpv1618Result.FinalizeResults(this.m_HPV1618ByPCRTestOrder, this.m_SystemIdentity);

                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                if (this.m_AccessionOrder.PanelSetOrderCollection.WomensHealthProfileExists() == true)
                {
                    this.m_AccessionOrder.PanelSetOrderCollection.GetWomensHealthProfile().SetExptectedFinalTime(this.m_AccessionOrder);
                }
            }
            else
            {
                MessageBox.Show(methodResult.Message);
            }
        }
예제 #2
0
        private void FinalWHPCase(Business.Test.AccessionOrder accessionOrder, string reportNo)
        {
            YellowstonePathology.Business.Audit.Model.IsWHPAllDoneAuditCollection isWHPAllDoneAuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(accessionOrder);
            isWHPAllDoneAuditCollection.Run();

            if (isWHPAllDoneAuditCollection.ActionRequired == true)
            {
                YellowstonePathology.Business.Audit.Model.ShouldWomensHealthProfileBeFinaledAudit shouldAudit = new Business.Audit.Model.ShouldWomensHealthProfileBeFinaledAudit(accessionOrder);
                shouldAudit.Run();
                if (shouldAudit.Message.ToString() == isWHPAllDoneAuditCollection.Message)
                {
                    YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
                    YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(accessionOrder);
                    multiTestDistributionHandler.Set();

                    womensHealthProfileTestOrder.Finalize();

                    YellowstonePathology.Business.User.SystemUser user = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(5134);
                    womensHealthProfileTestOrder.FinaledById = user.UserId;
                    womensHealthProfileTestOrder.Signature   = user.Signature;
                }
            }
        }
예제 #3
0
        private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.m_HPVTestOrder.IsOkToFinalize(this.m_AccessionOrder);
            if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.OK)
            {
                this.m_HPVTestOrder.Finish(this.m_AccessionOrder);

                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                if (this.m_AccessionOrder.PanelSetOrderCollection.WomensHealthProfileExists() == true)
                {
                    this.m_AccessionOrder.PanelSetOrderCollection.GetWomensHealthProfile().SetExptectedFinalTime(this.m_AccessionOrder);
                }
            }
            else
            {
                MessageBox.Show(auditResult.Message);
            }
        }
예제 #4
0
        public void ScreeningFinal(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderToFinal, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.m_PanelSetOrderCytology.IsOkToFinalize(this.m_AccessionOrder, panelOrderToFinal, this.m_SystemIdentity, executionStatus);
            if (this.m_PanelSetOrderCytology.Final == true)
            {
                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                if (this.m_AccessionOrder.PanelSetOrderCollection.WomensHealthProfileExists() == true)
                {
                    this.m_AccessionOrder.PanelSetOrderCollection.GetWomensHealthProfile().SetExptectedFinalTime(this.m_AccessionOrder);
                }

                this.StartWomensHealthProfilePath();
            }

            this.Save(false);
        }
예제 #5
0
        private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_ReportOrderTrichomonas.IsOkToFinalize();
            if (methodResult.Success == true)
            {
                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                this.m_ReportOrderTrichomonas.Finish(this.m_AccessionOrder);

                if (this.m_AccessionOrder.PanelSetOrderCollection.WomensHealthProfileExists() == true)
                {
                    this.m_AccessionOrder.PanelSetOrderCollection.GetWomensHealthProfile().SetExptectedFinalTime(this.m_AccessionOrder);
                }
            }
            else
            {
                MessageBox.Show(methodResult.Message);
            }
        }
예제 #6
0
        public override void Visit(Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
            multiTestDistributionHandler.Set();
        }
예제 #7
0
        public void ScreeningFinal(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology panelOrderToFinal, YellowstonePathology.Business.Rules.ExecutionStatus executionStatus)
        {
            YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.m_PanelSetOrderCytology.IsOkToFinalize(this.m_AccessionOrder, panelOrderToFinal, this.m_SystemIdentity, executionStatus);
            if (this.m_PanelSetOrderCytology.Final == true)
            {
                Business.Audit.Model.AuditResult result = this.m_PanelSetOrderCytology.CheckFinaledUnsatResultWithAssociatedCases(this.m_AccessionOrder);
                if (result.Status == Business.Audit.Model.AuditStatusEnum.Failure)
                {
                    MessageBox.Show(result.Message);
                }
                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                if (this.m_AccessionOrder.PanelSetOrderCollection.WomensHealthProfileExists() == true)
                {
                    this.m_AccessionOrder.PanelSetOrderCollection.GetWomensHealthProfile().SetExptectedFinalTime(this.m_AccessionOrder);
                    this.SetHPVComment();
                }

                this.StartWomensHealthProfilePath();
            }
        }
        private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
            multiTestDistributionHandler.Set();

            YellowstonePathology.Business.Audit.Model.CanWomensHealthProfileBeFinaledAudit canWomensHealthProfileBeFinaledAudit = new Business.Audit.Model.CanWomensHealthProfileBeFinaledAudit(this.m_AccessionOrder);
            canWomensHealthProfileBeFinaledAudit.Run();

            if (canWomensHealthProfileBeFinaledAudit.ActionRequired == true)
            {
                MessageBox.Show(canWomensHealthProfileBeFinaledAudit.Message.ToString());
            }
            else
            {
                this.m_WomensHealthProfileTestOrder.Finalize();
                this.m_AuditCollection.Run();
                this.NotifyPropertyChanged("");
            }
        }
        private void PhysicianClientSearchPage_Next(object sender, CustomEventArgs.PhysicianClientDistributionReturnEventArgs e)
        {
            this.m_PageNavigator.Navigate(this);
            this.SetPhysicianClient(e.PhysicianClientDistribution);

            YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
            multiTestDistributionHandler.Set();

            this.SetDistribution();
        }
        private void HyperLinkOrderThinPrepPap_Click(object sender, RoutedEventArgs e)
        {
            int ThinPrepPapPanelSetId = 15;

            if (this.m_AccessionOrder.PanelSetOrderCollection.HasPanelSetBeenOrdered(ThinPrepPapPanelSetId) == false)
            {
                YellowstonePathology.Business.Interface.IOrderTarget           orderTarget        = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_WomensHealthProfileTestOrder.OrderedOnId);
                YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest thinPrepPapTest    = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest();
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfo         = new Business.Test.TestOrderInfo(thinPrepPapTest, orderTarget, true);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo);
                this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor);

                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                this.m_AuditCollection.Run();
                this.NotifyPropertyChanged(string.Empty);
            }
            else
            {
                MessageBox.Show("Thin Prep Pap has already been ordered.");
            }
        }