示例#1
0
        private void AreTestResultsPresent(AccessionOrder accessionOrder, Audit.Model.AuditResult result)
        {
            YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest       alkTest  = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            YellowstonePathology.Business.Test.BRAFMutationAnalysis.BRAFMutationAnalysisTest brafTest = new BRAFMutationAnalysis.BRAFMutationAnalysisTest();
            YellowstonePathology.Business.Test.PDL1SP142.PDL1SP142Test pdl1SP142Test = new PDL1SP142.PDL1SP142Test();

            if (accessionOrder.PanelSetOrderCollection.Exists(pdl122C3Test.PanelSetId) == true)
            {
                if (string.IsNullOrEmpty(this.m_PDL122C3Result) == true)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFilledMessage("PDL122C3Result");
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId) == true)
            {
                if (string.IsNullOrEmpty(this.m_EGFRMutationAnalysisResult) == true)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFilledMessage("EGFRMutationAnalysisResult");
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(ros1ByfishTest.PanelSetId) == true)
            {
                if (string.IsNullOrEmpty(this.m_ROS1ByFISHResult) == true)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFilledMessage("ROS1ByFISHResult");
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(alkTest.PanelSetId) == true)
            {
                if (string.IsNullOrEmpty(this.m_ALKForNSCLCByFISHResult) == true)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFilledMessage("ALKForNSCLCByFISHResult");
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(brafTest.PanelSetId) == true)
            {
                if (string.IsNullOrEmpty(this.m_BRAFMutationAnalysisResult) == true)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFilledMessage("BRAFMutationAnalysisResult");
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(pdl1SP142Test.PanelSetId) == true)
            {
                if (string.IsNullOrEmpty(this.m_PDL1SP142Result) == true)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFilledMessage("PDL1SP142Result");
                }
            }
        }
示例#2
0
        private void DoComponentTestResultsMatchPreviousResults(AccessionOrder accessionOrder, EGFRToALKReflexAnalysisTestOrder panelSetOrder, Audit.Model.AuditResult result)
        {
            YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest       alkTest  = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            YellowstonePathology.Business.Test.BRAFMutationAnalysis.BRAFMutationAnalysisTest brafTest = new BRAFMutationAnalysis.BRAFMutationAnalysisTest();
            YellowstonePathology.Business.Test.PDL1SP142.PDL1SP142Test pdl1SP142Test = new PDL1SP142.PDL1SP142Test();

            if (accessionOrder.PanelSetOrderCollection.Exists(pdl122C3Test.PanelSetId) == true)
            {
                Test.PDL122C3.PDL122C3TestOrder pdl122C3TestOrder = (PDL122C3.PDL122C3TestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(pdl122C3Test.PanelSetId);
                if (pdl122C3TestOrder.Result != panelSetOrder.PDL122C3Result)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Warning;
                    result.Message += MismatchMessage(pdl122C3TestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId) == true)
            {
                Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(egfrMutationAnalysisTest.PanelSetId);
                if (egfrMutationAnalysisTestOrder.Result != panelSetOrder.EGFRMutationAnalysisResult)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Warning;
                    result.Message += MismatchMessage(egfrMutationAnalysisTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(ros1ByfishTest.PanelSetId) == true)
            {
                Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (ROS1ByFISH.ROS1ByFISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(ros1ByfishTest.PanelSetId);
                if (ros1ByFISHTestOrder.Result != panelSetOrder.ROS1ByFISHResult)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Warning;
                    result.Message += MismatchMessage(ros1ByFISHTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(alkTest.PanelSetId) == true)
            {
                Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkTestOrder = (ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(alkTest.PanelSetId);
                if (alkTestOrder.Result != panelSetOrder.ALKForNSCLCByFISHResult)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Warning;
                    result.Message += MismatchMessage(alkTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(brafTest.PanelSetId) == true)
            {
                Test.BRAFMutationAnalysis.BRAFMutationAnalysisTestOrder brafTestOrder = (BRAFMutationAnalysis.BRAFMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafTest.PanelSetId);
                if (brafTestOrder.Result != panelSetOrder.BRAFMutationAnalysisResult)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Warning;
                    result.Message += MismatchMessage(brafTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(pdl1SP142Test.PanelSetId) == true)
            {
                Test.PDL1SP142.PDL1SP142TestOrder pdl1SP142TestOrder = (PDL1SP142.PDL1SP142TestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(pdl1SP142Test.PanelSetId);
                if (pdl1SP142TestOrder.Result != panelSetOrder.PDL1SP142Result)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Warning;
                    result.Message += MismatchMessage(pdl1SP142TestOrder.PanelSetName);
                }
            }
        }
示例#3
0
        private void AreComponentTestOrdersFinal(AccessionOrder accessionOrder, Audit.Model.AuditResult result)
        {
            YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest       alkTest  = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            YellowstonePathology.Business.Test.BRAFMutationAnalysis.BRAFMutationAnalysisTest brafTest = new BRAFMutationAnalysis.BRAFMutationAnalysisTest();
            YellowstonePathology.Business.Test.PDL1SP142.PDL1SP142Test pdl1SP142Test = new PDL1SP142.PDL1SP142Test();

            if (accessionOrder.PanelSetOrderCollection.Exists(pdl122C3Test.PanelSetId) == true)
            {
                Test.PDL122C3.PDL122C3TestOrder pdl122C3TestOrder = (PDL122C3.PDL122C3TestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(pdl122C3Test.PanelSetId);
                if (pdl122C3TestOrder.Final == false)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFinaledMessage(pdl122C3TestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId) == true)
            {
                Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(egfrMutationAnalysisTest.PanelSetId);
                if (egfrMutationAnalysisTestOrder.Final == false)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFinaledMessage(egfrMutationAnalysisTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(ros1ByfishTest.PanelSetId) == true)
            {
                Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (ROS1ByFISH.ROS1ByFISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(ros1ByfishTest.PanelSetId);
                if (ros1ByFISHTestOrder.Final == false)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFinaledMessage(ros1ByFISHTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(alkTest.PanelSetId) == true)
            {
                Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkTestOrder = (ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(alkTest.PanelSetId);
                if (alkTestOrder.Final == false)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFinaledMessage(alkTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(brafTest.PanelSetId) == true)
            {
                Test.BRAFMutationAnalysis.BRAFMutationAnalysisTestOrder brafTestOrder = (BRAFMutationAnalysis.BRAFMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafTest.PanelSetId);
                if (brafTestOrder.Final == false)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFinaledMessage(brafTestOrder.PanelSetName);
                }
            }

            if (accessionOrder.PanelSetOrderCollection.Exists(pdl1SP142Test.PanelSetId) == true)
            {
                Test.PDL1SP142.PDL1SP142TestOrder pdl1SP142TestOrder = (PDL1SP142.PDL1SP142TestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(pdl1SP142Test.PanelSetId);
                if (pdl1SP142TestOrder.Final == false)
                {
                    result.Status   = Audit.Model.AuditStatusEnum.Failure;
                    result.Message += NotFinaledMessage(pdl1SP142TestOrder.PanelSetName);
                }
            }
        }
示例#4
0
        public void SetResults(PanelSetOrderCollection panelSetOrderCollection)
        {
            StringBuilder interpretation = new StringBuilder();
            StringBuilder method         = new StringBuilder();
            StringBuilder references     = new StringBuilder();

            YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest       alkTest  = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            YellowstonePathology.Business.Test.BRAFMutationAnalysis.BRAFMutationAnalysisTest brafTest = new BRAFMutationAnalysis.BRAFMutationAnalysisTest();
            YellowstonePathology.Business.Test.PDL1SP142.PDL1SP142Test pdl1SP142Test = new PDL1SP142.PDL1SP142Test();

            YellowstonePathology.Business.PanelSet.Model.PanelSetALKRetired panelSetALKRetired = new PanelSet.Model.PanelSetALKRetired();

            if (panelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId) == true)
            {
                Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)panelSetOrderCollection.GetPanelSetOrder(egfrMutationAnalysisTest.PanelSetId);
                interpretation.AppendLine("EGFR: " + egfrMutationAnalysisTestOrder.Interpretation);
                references.AppendLine("EGFR: " + egfrMutationAnalysisTestOrder.ReportReferences);
                method.AppendLine("EGFR: " + egfrMutationAnalysisTestOrder.Method);
                this.m_EGFRMutationAnalysisResult  = egfrMutationAnalysisTestOrder.Result;
                this.m_EGFRMutationAnalysisComment = egfrMutationAnalysisTestOrder.Comment;
            }

            if (panelSetOrderCollection.Exists(alkTest.PanelSetId) == true)
            {
                Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkTestOrder = (ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)panelSetOrderCollection.GetPanelSetOrder(alkTest.PanelSetId);
                references.AppendLine();
                references.AppendLine("ALK: " + alkTestOrder.ReportReferences);

                interpretation.AppendLine();
                interpretation.AppendLine("ALK: " + alkTestOrder.Interpretation);

                method.AppendLine();
                method.AppendLine("ALK: " + alkTestOrder.Method);
                this.m_ALKForNSCLCByFISHResult = alkTestOrder.Result;
            }
            else if (panelSetOrderCollection.Exists(panelSetALKRetired.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately alkForNSCLCByFISHTestOrderReportedSeparately = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately();
                this.m_ALKForNSCLCByFISHResult = alkForNSCLCByFISHTestOrderReportedSeparately.Result;
            }

            if (panelSetOrderCollection.Exists(ros1ByfishTest.PanelSetId) == true)
            {
                Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (ROS1ByFISH.ROS1ByFISHTestOrder)panelSetOrderCollection.GetPanelSetOrder(ros1ByfishTest.PanelSetId);
                interpretation.AppendLine();
                interpretation.AppendLine("ROS1: " + ros1ByFISHTestOrder.Interpretation);

                method.AppendLine();
                method.AppendLine("ROS1: " + ros1ByFISHTestOrder.Method);
                this.m_ROS1ByFISHResult = ros1ByFISHTestOrder.Result;
            }

            if (panelSetOrderCollection.Exists(pdl1SP142Test.PanelSetId) == true)
            {
                Test.PDL1SP142.PDL1SP142TestOrder pdl1SP142TestOrder = (PDL1SP142.PDL1SP142TestOrder)panelSetOrderCollection.GetPanelSetOrder(pdl1SP142Test.PanelSetId);
                interpretation.AppendLine();
                interpretation.AppendLine(pdl1SP142TestOrder.PanelSetName + ": " + pdl1SP142TestOrder.Interpretation);

                method.AppendLine();
                method.AppendLine(pdl1SP142TestOrder.PanelSetName + ": " + pdl1SP142TestOrder.Method);
                this.m_PDL1SP142Result       = pdl1SP142TestOrder.Result;
                this.m_PDL1SP142StainPercent = pdl1SP142TestOrder.StainPercent;
            }

            if (panelSetOrderCollection.Exists(pdl122C3Test.PanelSetId) == true)
            {
                Test.PDL122C3.PDL122C3TestOrder pdl122C3TestOrder = (PDL122C3.PDL122C3TestOrder)panelSetOrderCollection.GetPanelSetOrder(pdl122C3Test.PanelSetId);
                interpretation.AppendLine();
                interpretation.AppendLine(pdl122C3TestOrder.PanelSetName + ": " + pdl122C3TestOrder.Interpretation);

                method.AppendLine();
                method.AppendLine(pdl122C3TestOrder.PanelSetName + ": " + pdl122C3TestOrder.Method);
                this.m_PDL122C3Result = pdl122C3TestOrder.Result;
            }

            if (panelSetOrderCollection.Exists(brafTest.PanelSetId) == true)
            {
                Test.BRAFMutationAnalysis.BRAFMutationAnalysisTestOrder brafTestOrder = (BRAFMutationAnalysis.BRAFMutationAnalysisTestOrder)panelSetOrderCollection.GetPanelSetOrder(brafTest.PanelSetId);
                interpretation.AppendLine();
                interpretation.AppendLine(brafTestOrder.PanelSetName + ": " + brafTestOrder.Interpretation);

                method.AppendLine();
                method.AppendLine(brafTestOrder.PanelSetName + ": " + brafTestOrder.Method);
                this.m_BRAFMutationAnalysisResult = brafTestOrder.Result;
            }

            char[] lineFeedCharacters = { '\r', '\n' };
            this.Interpretation   = interpretation.ToString().TrimEnd(lineFeedCharacters);
            this.Method           = method.ToString().TrimEnd(lineFeedCharacters);
            this.ReportReferences = references.ToString().TrimEnd(lineFeedCharacters);
            this.NotifyPropertyChanged(string.Empty);
        }
示例#5
0
        public override void OrderInitialTests(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
        {
            YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
            if (accessionOrder.PanelSetOrderCollection.Exists(pdl122C3Test.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoPDL122C3         = new TestOrderInfo(pdl122C3Test, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorPDL122C3 = new Visitor.OrderTestOrderVisitor(testOrderInfoPDL122C3);
                accessionOrder.TakeATrip(orderTestOrderVisitorPDL122C3);
            }

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoEGFR         = new TestOrderInfo(egfrMutationAnalysisTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorEGFR = new Visitor.OrderTestOrderVisitor(testOrderInfoEGFR);
                accessionOrder.TakeATrip(orderTestOrderVisitorEGFR);
            }

            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(ros1ByfishTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoRos1         = new TestOrderInfo(ros1ByfishTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorRos1 = new Visitor.OrderTestOrderVisitor(testOrderInfoRos1);
                accessionOrder.TakeATrip(orderTestOrderVisitorRos1);
            }

            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest alkTest = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(alkTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoALK         = new TestOrderInfo(alkTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorALK = new Visitor.OrderTestOrderVisitor(testOrderInfoALK);
                accessionOrder.TakeATrip(orderTestOrderVisitorALK);
            }

            YellowstonePathology.Business.Test.BRAFMutationAnalysis.BRAFMutationAnalysisTest brafTest = new BRAFMutationAnalysis.BRAFMutationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(brafTest.PanelSetId, orderTarget.GetId(), true) == false)
            {
                YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfoBRAF         = new TestOrderInfo(brafTest, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorBRAF = new Visitor.OrderTestOrderVisitor(testOrderInfoBRAF);
                accessionOrder.TakeATrip(orderTestOrderVisitorBRAF);
            }
        }
示例#6
0
        public override string ToResultString(Business.Test.AccessionOrder accessionOrder)
        {
            StringBuilder result = new StringBuilder();

            result.AppendLine("EGFR Mutation Analysis");
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
                result.AppendLine(egfrMutationAnalysisTestOrder.ToResultString(accessionOrder));
            }
            result.AppendLine();

            result.AppendLine("ALK For NSCLC By FISH");
            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest alkForNSCLCByFISHTest = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(alkForNSCLCByFISHTest.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);
                result.AppendLine(alkForNSCLCByFISHTestOrder.ToResultString(accessionOrder));
            }
            result.AppendLine();

            result.AppendLine("Interpretation:");
            result.AppendLine(this.m_Interpretation);
            result.AppendLine();

            return(result.ToString());
        }
示例#7
0
 public override void OrderInitialTests(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
 {
     YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
     YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfo         = new TestOrderInfo(egfrMutationAnalysisTest, orderTarget, false);
     YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Visitor.OrderTestOrderVisitor(testOrderInfo);
     accessionOrder.TakeATrip(orderTestOrderVisitor);
 }
        public override string ToResultString(Business.Test.AccessionOrder accessionOrder)
        {
            StringBuilder result = new StringBuilder();
            result.AppendLine("EGFR Mutation Analysis");
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(egfrMutationAnalysisTest.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
                result.AppendLine(egfrMutationAnalysisTestOrder.ToResultString(accessionOrder));
            }
            result.AppendLine();

            result.AppendLine("ALK For NSCLC By FISH");
            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest alkForNSCLCByFISHTest = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            if(accessionOrder.PanelSetOrderCollection.Exists(alkForNSCLCByFISHTest.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);
                result.AppendLine(alkForNSCLCByFISHTestOrder.ToResultString(accessionOrder));
            }
            result.AppendLine();

            result.AppendLine("Interpretation:");
            result.AppendLine(this.m_Interpretation);
            result.AppendLine();

            return result.ToString();
        }
 public override void OrderInitialTests(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
 {
     YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
     YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new TestOrderInfo(egfrMutationAnalysisTest, orderTarget, false);
     YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Visitor.OrderTestOrderVisitor(testOrderInfo);
     accessionOrder.TakeATrip(orderTestOrderVisitor);
 }
        public override void OrderInitialTests(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget)
        {
            int[] clientIds = new int[] { 658, 1116, 879, 1123, 1505, 1469, 1558, 313, 1311, 294, 1487 };

            if (clientIds.Contains(accessionOrder.ClientId) == true)
            {
                YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new PDL122C3.PDL122C3Test();
                YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoPDL122C3 = new TestOrderInfo(pdl122C3Test, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorPDL122C3 = new Visitor.OrderTestOrderVisitor(testOrderInfoPDL122C3);
                accessionOrder.TakeATrip(orderTestOrderVisitorPDL122C3);
            }
            else
            {
                YellowstonePathology.Business.Test.PDL1SP142.PDL1SP142Test pdl1SP142Test = new PDL1SP142.PDL1SP142Test();
                YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoPDL1SP142 = new TestOrderInfo(pdl1SP142Test, orderTarget, false);
                YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorPDL1SP142 = new Visitor.OrderTestOrderVisitor(testOrderInfoPDL1SP142);
                accessionOrder.TakeATrip(orderTestOrderVisitorPDL1SP142);
            }

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest egfrMutationAnalysisTest = new YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTest();
            YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoEGFR = new TestOrderInfo(egfrMutationAnalysisTest, orderTarget, false);
            YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorEGFR = new Visitor.OrderTestOrderVisitor(testOrderInfoEGFR);
            accessionOrder.TakeATrip(orderTestOrderVisitorEGFR);

            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByfishTest = new ROS1ByFISH.ROS1ByFISHTest();
            YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoRos1 = new TestOrderInfo(ros1ByfishTest, orderTarget, false);
            YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorRos1 = new Visitor.OrderTestOrderVisitor(testOrderInfoRos1);
            accessionOrder.TakeATrip(orderTestOrderVisitorRos1);

            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest alkTest = new ALKForNSCLCByFISH.ALKForNSCLCByFISHTest();
            YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoALK = new TestOrderInfo(alkTest, orderTarget, false);
            YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitorALK = new Visitor.OrderTestOrderVisitor(testOrderInfoALK);
            accessionOrder.TakeATrip(orderTestOrderVisitorALK);
        }