public KRASStandardReflexKRASWithBRAFResult(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(reportNo, accessionOrder)
        {
            this.m_Method = "DNA was isolated from cells or microdissection-enriched FFPE tissue. Tumor in FFPE must be present in at least 20% of the tissue. " +
                "Mutations were evaluated for entire KRAS exons 2 and 3 high-sensitivity Sanger sequencing which improves the lower detection limit in mutation hotspot " +
                "regions to approximately 1% abnormal DNA. This includes codons 12, 13, 14, and 61. Mutation detection outside these hotspot regions has a typical lower " +
                "detection limit of 10-15% mutated KRAS in a wild-type background. The patient’s sequence is compared to the GenBank database: AF493917. The DNA was also " +
                "evaluated for the presence of BRAF V600E/K by PCR and fragment size anaylsis. Various factors including quantity and quality of nucleic acid, sample " +
                "preparation and sample age can affect assay performance.";

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();
            this.m_BRAFV600EKTestOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, this.m_KRASStandardReflexTestOrder.OrderedOnId, true);

            if (this.KRASStandardTestOrder.Final == true)
            {
                this.m_KRASStandardResult = this.m_KRASStandardTestOrder.Result;
            }
            else
            {
                this.m_KRASStandardResult = KRASStandardReflexResult.PendingResult;
            }

            if (this.m_BRAFV600EKTestOrder.Final == true)
            {
                this.m_BRAFV600EKResult = this.m_BRAFV600EKTestOrder.Result;
            }
            else
            {
                this.m_BRAFV600EKResult = KRASStandardReflexResult.PendingResult;
            }
        }
Exemplo n.º 2
0
        public KRASStandardReflexKRASWithBRAFResult(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder) : base(reportNo, accessionOrder)
        {
            this.m_Method = "DNA was isolated from cells or microdissection-enriched FFPE tissue. Tumor in FFPE must be present in at least 20% of the tissue. " +
                            "Mutations were evaluated for entire KRAS exons 2 and 3 high-sensitivity Sanger sequencing which improves the lower detection limit in mutation hotspot " +
                            "regions to approximately 1% abnormal DNA. This includes codons 12, 13, 14, and 61. Mutation detection outside these hotspot regions has a typical lower " +
                            "detection limit of 10-15% mutated KRAS in a wild-type background. The patient’s sequence is compared to the GenBank database: AF493917. The DNA was also " +
                            "evaluated for the presence of BRAF V600E/K by PCR and fragment size anaylsis. Various factors including quantity and quality of nucleic acid, sample " +
                            "preparation and sample age can affect assay performance.";

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();
            this.m_BRAFV600EKTestOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, this.m_KRASStandardReflexTestOrder.OrderedOnId, true);

            if (this.KRASStandardTestOrder.Final == true)
            {
                this.m_KRASStandardResult = this.m_KRASStandardTestOrder.Result;
            }
            else
            {
                this.m_KRASStandardResult = KRASStandardReflexResult.PendingResult;
            }

            if (this.m_BRAFV600EKTestOrder.Final == true)
            {
                this.m_BRAFV600EKResult = this.m_BRAFV600EKTestOrder.Result;
            }
            else
            {
                this.m_BRAFV600EKResult = KRASStandardReflexResult.PendingResult;
            }
        }
        public void UpdateFromChildren(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.KRASStandard.KRASStandardTestOrder testOrder)
        {
            this.Indication            = testOrder.Indication;
            this.IndicationComment     = testOrder.IndicationComment;
            this.TumorNucleiPercentage = testOrder.TumorNucleiPercentage;
            this.Comment = testOrder.Comment;

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(brafV600EKTest.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder brafV600EKTestOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId);
                brafV600EKTestOrder.Indication            = testOrder.Indication;
                brafV600EKTestOrder.IndicationComment     = testOrder.IndicationComment;
                brafV600EKTestOrder.TumorNucleiPercentage = testOrder.TumorNucleiPercentage;
                brafV600EKTestOrder.Comment = testOrder.Comment;
            }
        }
        public static KRASStandardReflexResult GetResult(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            KRASStandardReflexResult result = null;

            YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTestOrder krasStandardReflexTestOrder = (YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);

            YellowstonePathology.Business.Test.KRASStandard.KRASStandardTest      krasStandardTest      = new KRASStandard.KRASStandardTest();
            YellowstonePathology.Business.Test.KRASStandard.KRASStandardTestOrder krasStandardTestOrder = (YellowstonePathology.Business.Test.KRASStandard.KRASStandardTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(krasStandardTest.PanelSetId, krasStandardReflexTestOrder.OrderedOnId, true);

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();

            if (accessionOrder.PanelSetOrderCollection.Exists(brafV600EKTest.PanelSetId, krasStandardReflexTestOrder.OrderedOnId, true) == false)
            {
                result = new KRASStandardReflexKRASOnlyResult(reportNo, accessionOrder);
            }
            else
            {
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder             brafV600EKTestOrder           = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, krasStandardReflexTestOrder.OrderedOnId, true);
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKNotDetectedResult     brafV600EKNotDetectedResult   = new BRAFV600EK.BRAFV600EKNotDetectedResult();
                YellowstonePathology.Business.Test.KRASStandard.KRASStandardNotDetectedResult krasStandardNotDetectedResult = new KRASStandard.KRASStandardNotDetectedResult();
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKDetectedResult        brafV600EKDetectedResult      = new BRAFV600EK.BRAFV600EKDetectedResult();

                if (krasStandardTestOrder.ResultCode == krasStandardNotDetectedResult.ResultCode &&
                    brafV600EKTestOrder.ResultCode == brafV600EKNotDetectedResult.ResultCode)
                {
                    result = new KRASStandardReflexBothNotDetectedResult(reportNo, accessionOrder);
                }
                else if (krasStandardTestOrder.ResultCode == krasStandardNotDetectedResult.ResultCode &&
                         brafV600EKTestOrder.ResultCode == brafV600EKDetectedResult.ResultCode)
                {
                    result = new KRASStandardReflexKRASNotDetecedBRAFDetectedResult(reportNo, accessionOrder);
                }
                else
                {
                    result = new KRASStandardReflexKRASWithBRAFResult(reportNo, accessionOrder);
                }
            }
            return(result);
        }
        public static KRASStandardReflexResult GetResult(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            KRASStandardReflexResult result = null;

            YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTestOrder krasStandardReflexTestOrder = (YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);

            YellowstonePathology.Business.Test.KRASStandard.KRASStandardTest krasStandardTest = new KRASStandard.KRASStandardTest();
            YellowstonePathology.Business.Test.KRASStandard.KRASStandardTestOrder krasStandardTestOrder = (YellowstonePathology.Business.Test.KRASStandard.KRASStandardTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(krasStandardTest.PanelSetId, krasStandardReflexTestOrder.OrderedOnId, true);

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();

            if (accessionOrder.PanelSetOrderCollection.Exists(brafV600EKTest.PanelSetId, krasStandardReflexTestOrder.OrderedOnId, true) == false)
            {
                result = new KRASStandardReflexKRASOnlyResult(reportNo, accessionOrder);
            }
            else
            {
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder brafV600EKTestOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, krasStandardReflexTestOrder.OrderedOnId, true);
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKNotDetectedResult brafV600EKNotDetectedResult = new BRAFV600EK.BRAFV600EKNotDetectedResult();
                YellowstonePathology.Business.Test.KRASStandard.KRASStandardNotDetectedResult krasStandardNotDetectedResult = new KRASStandard.KRASStandardNotDetectedResult();
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKDetectedResult brafV600EKDetectedResult = new BRAFV600EK.BRAFV600EKDetectedResult();

                if (krasStandardTestOrder.ResultCode == krasStandardNotDetectedResult.ResultCode &&
                    brafV600EKTestOrder.ResultCode == brafV600EKNotDetectedResult.ResultCode)
                {
                    result = new KRASStandardReflexBothNotDetectedResult(reportNo, accessionOrder);
                }
                else if (krasStandardTestOrder.ResultCode == krasStandardNotDetectedResult.ResultCode &&
                    brafV600EKTestOrder.ResultCode == brafV600EKDetectedResult.ResultCode)
                {
                    result = new KRASStandardReflexKRASNotDetecedBRAFDetectedResult(reportNo, accessionOrder);
                }
                else
                {
                    result = new KRASStandardReflexKRASWithBRAFResult(reportNo, accessionOrder);
                }
            }
            return result;
        }
        public void UpdateFromChildren(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.KRASStandard.KRASStandardTestOrder testOrder)
        {
            this.Indication = testOrder.Indication;
            this.IndicationComment = testOrder.IndicationComment;
            this.TumorNucleiPercentage = testOrder.TumorNucleiPercentage;
            this.Comment = testOrder.Comment;

            YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new BRAFV600EK.BRAFV600EKTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(brafV600EKTest.PanelSetId) == true)
            {
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder brafV600EKTestOrder = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId);
                brafV600EKTestOrder.Indication = testOrder.Indication;
                brafV600EKTestOrder.IndicationComment = testOrder.IndicationComment;
                brafV600EKTestOrder.TumorNucleiPercentage = testOrder.TumorNucleiPercentage;
                brafV600EKTestOrder.Comment = testOrder.Comment;
            }
        }