Esempio n. 1
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();
        }
        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();
        }
Esempio n. 3
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);
        }
        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("");
            }
        }
Esempio n. 5
0
        private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToFinalize();
            if (methodResult.Success == true)
            {
                YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder);
                multiTestDistributionHandler.Set();

                this.m_PanelSetOrder.Finalize();

                if (this.m_AccessionOrder.PanelSetOrderCollection.WomensHealthProfileExists() == true)
                {
                    this.m_AccessionOrder.PanelSetOrderCollection.GetWomensHealthProfile().SetExptectedFinalTime(this.m_AccessionOrder);
                }
            }
            else
            {
                MessageBox.Show(methodResult.Message);
            }
        }
Esempio n. 6
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();
            }
        }
Esempio n. 7
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;
                }
            }
        }
        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.");
            }
        }