Esempio n. 1
0
        public HER2AmplificationResult(PanelSetOrderCollection panelSetOrderCollection, HER2AnalysisSummary.HER2AnalysisSummaryTestOrder panelSetOrder)
        {
            Her2AmplificationByIHC.Her2AmplificationByIHCTest     her2AmplificationByIHCTest   = new Her2AmplificationByIHC.Her2AmplificationByIHCTest();
            HER2AmplificationRecount.HER2AmplificationRecountTest her2AmplificationRecountTest = new HER2AmplificationRecount.HER2AmplificationRecountTest();

            this.m_HER2AnalysisSummaryTestOrder = panelSetOrder;
            this.m_Indicator = this.m_HER2AnalysisSummaryTestOrder.Indicator;
            this.m_AverageHer2Chr17SignalAsDouble = this.m_HER2AnalysisSummaryTestOrder.AverageHer2Chr17SignalAsDouble;
            this.m_AverageHer2NeuSignal           = this.m_HER2AnalysisSummaryTestOrder.AverageHer2NeuSignal;

            this.m_IsHer2AmplificationByIHCRequired = true;
            if (panelSetOrderCollection.Exists(her2AmplificationByIHCTest.PanelSetId) == true)
            {
                this.m_IsHer2AmplificationByIHCOrdered     = true;
                this.m_PanelSetOrderHer2AmplificationByIHC = (Her2AmplificationByIHC.PanelSetOrderHer2AmplificationByIHC)panelSetOrderCollection.GetPanelSetOrder(her2AmplificationByIHCTest.PanelSetId);
                if (this.m_PanelSetOrderHer2AmplificationByIHC.Final == true)
                {
                    if (this.m_PanelSetOrderHer2AmplificationByIHC.Score == "2+")
                    {
                        this.m_IsHER2AmplificationRecountRequired = true;
                    }
                }
            }
            if (panelSetOrderCollection.Exists(her2AmplificationRecountTest.PanelSetId) == true)
            {
                this.m_IsHER2AmplificationRecountOrdered = true;
                this.m_HER2AmplificationRecountTestOrder = (HER2AmplificationRecount.HER2AmplificationRecountTestOrder)panelSetOrderCollection.GetPanelSetOrder(her2AmplificationRecountTest.PanelSetId);
            }
        }
Esempio n. 2
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);
        }