Exemple #1
0
        public static LSEResult GetResult(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeEvaluation panelSetOrderLynchSyndromEvaluation)
        {
            LSEResult result = new LSEResult();

            YellowstonePathology.Business.Test.LynchSyndrome.LynchSyndromeIHCPanelTest     panelSetLynchSyndromeIHCPanel = new YellowstonePathology.Business.Test.LynchSyndrome.LynchSyndromeIHCPanelTest();
            YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeIHC panelSetOrderLynchSyndromeIHC = (YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeIHC)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetLynchSyndromeIHCPanel.PanelSetId);
            if (panelSetOrderLynchSyndromeIHC != null)
            {
                panelSetOrderLynchSyndromeIHC.SetSummaryResult(result);
            }

            if (panelSetOrderLynchSyndromEvaluation.BRAFIsIndicated == true)
            {
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest();
                if (accessionOrder.PanelSetOrderCollection.Exists(brafV600EKTest.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true) == true)
                {
                    YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrderBraf = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true);
                    panelSetOrderBraf.SetSummaryResult(result);
                }
            }

            YellowstonePathology.Business.Test.LynchSyndrome.MLH1MethylationAnalysisTest panelSetMLH1 = new YellowstonePathology.Business.Test.LynchSyndrome.MLH1MethylationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(panelSetMLH1.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true) == true)
            {
                YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderMLH1MethylationAnalysis panelSetOrderMLH1MethylationAnalysis = (YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderMLH1MethylationAnalysis)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMLH1.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true);
                panelSetOrderMLH1MethylationAnalysis.SetSummaryResult(result);
            }

            return(result);
        }
Exemple #2
0
 public LSEResultStatus(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string orderedOnId)
 {
     this.m_LSEResult = lseResult;
     this.m_AccessionOrder = accessionOrder;
     this.m_OrderedOnId = orderedOnId;
     this.m_LSEResultList = new List<LSEResult>();
 }
Exemple #3
0
        public void SetSummaryResult(LSEResult lSEResult)
        {
            IHCResult result = IHCResult.CreateResultFromResultCode(this.m_ResultCode);

            if (result != null)
            {
                lSEResult.MLH1Result = result.MLH1Result.LSEResult;
                lSEResult.MSH2Result = result.MSH2Result.LSEResult;
                lSEResult.MSH6Result = result.MSH6Result.LSEResult;
                lSEResult.PMS2Result = result.PMS2Result.LSEResult;
            }
        }
        public LSEResultStatusMethylationAnalysisRequired(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(lseResult, accessionOrder)
        {
            LSEResult result1 = new LSEResult();

            result1.MLH1Result = LSEResultEnum.Negative;
            result1.MSH2Result = LSEResultEnum.Positive;
            result1.MSH6Result = LSEResultEnum.Positive;
            result1.PMS2Result = LSEResultEnum.Negative;
            result1.BrafResult = LSEResultEnum.Negative;
            this.m_LSEResultList.Add(result1);

            LSEResult result2 = new LSEResult();

            result2.MLH1Result = LSEResultEnum.Negative;
            result2.MSH2Result = LSEResultEnum.Positive;
            result2.MSH6Result = LSEResultEnum.Positive;
            result2.MSH6Result = LSEResultEnum.Positive;
            result2.BrafResult = LSEResultEnum.Negative;
            this.m_LSEResultList.Add(result2);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch = true;
                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(144) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(64) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(144);
                    if (panelSetOrder == null)
                    {
                        panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(64);
                    }

                    if (panelSetOrder.Final == true)
                    {
                        this.m_Status    = "LSE is complete.";
                        this.m_IsOrdered = true;
                    }
                    else
                    {
                        this.m_Status    = "Methylation Analysis testing is required and has been ordered.";
                        this.m_IsOrdered = true;
                    }
                }
                else
                {
                    this.m_Status    = "Methylation Analysis Testing is required and should be ordered.";
                    this.m_IsOrdered = false;
                }
            }
        }
Exemple #5
0
        public LSEResultStatusCompleteAfterMSI(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(lseResult, accessionOrder)
        {
            LSEResult result1 = new LSEResult();

            result1.MLH1Result = LSEResultEnum.Positive;
            result1.MSH2Result = LSEResultEnum.Positive;
            result1.MSH6Result = LSEResultEnum.Positive;
            result1.PMS2Result = LSEResultEnum.Positive;
            m_LSEResultList.Add(result1);

            LSEResult result2 = new LSEResult();

            result2.MLH1Result = LSEResultEnum.Positive;
            result2.MSH2Result = LSEResultEnum.Negative;
            result2.MSH6Result = LSEResultEnum.Negative;
            result2.PMS2Result = LSEResultEnum.Positive;
            m_LSEResultList.Add(result2);

            LSEResult result3 = new LSEResult();

            result3.MLH1Result = LSEResultEnum.Positive;
            result3.MSH2Result = LSEResultEnum.Negative;
            result3.MSH6Result = LSEResultEnum.Positive;
            result3.PMS2Result = LSEResultEnum.Positive;
            m_LSEResultList.Add(result3);

            LSEResult result4 = new LSEResult();

            result4.MLH1Result = LSEResultEnum.Positive;
            result4.MSH2Result = LSEResultEnum.Positive;
            result4.MSH6Result = LSEResultEnum.Negative;
            result4.PMS2Result = LSEResultEnum.Positive;
            m_LSEResultList.Add(result4);

            LSEResult result5 = new LSEResult();

            result5.MLH1Result = LSEResultEnum.Positive;
            result5.MSH2Result = LSEResultEnum.Positive;
            result5.MSH6Result = LSEResultEnum.Positive;
            result5.PMS2Result = LSEResultEnum.Negative;
            m_LSEResultList.Add(result5);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch   = true;
                this.m_IsOrdered = true;
                this.m_Status    = "No further testing is required.";
            }
        }
        public LSEResultStatusMethylationAnalysisRequired(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(lseResult, accessionOrder)
        {
            LSEResult result1 = new LSEResult();
            result1.MLH1Result = LSEResultEnum.Negative;
            result1.MSH2Result = LSEResultEnum.Positive;
            result1.MSH6Result = LSEResultEnum.Positive;
            result1.PMS2Result = LSEResultEnum.Negative;
            result1.BrafResult = LSEResultEnum.Negative;
            this.m_LSEResultList.Add(result1);

            LSEResult result2 = new LSEResult();
            result2.MLH1Result = LSEResultEnum.Negative;
            result2.MSH2Result = LSEResultEnum.Positive;
            result2.MSH6Result = LSEResultEnum.Positive;
            result2.MSH6Result = LSEResultEnum.Positive;
            result2.BrafResult = LSEResultEnum.Negative;
            this.m_LSEResultList.Add(result2);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch = true;
                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(144) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(64) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(144);
                    if (panelSetOrder == null) panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(64);

                    if (panelSetOrder.Final == true)
                    {
                        this.m_Status = "LSE is complete.";
                        this.m_IsOrdered = true;
                    }
                    else
                    {
                        this.m_Status = "Methylation Analysis testing is required and has been ordered.";
                        this.m_IsOrdered = true;
                    }
                }
                else
                {
                    this.m_Status = "Methylation Analysis Testing is required and should be ordered.";
                    this.m_IsOrdered = false;
                }
            }
        }
        public LSEResultStatusCompleteAfterMSI(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string orderedOnId)
            : base(lseResult, accessionOrder, orderedOnId)
        {
            LSEResult result1 = new LSEResult();
            result1.MLH1Result = LSEResultEnum.Intact;
            result1.MSH2Result = LSEResultEnum.Intact;
            result1.MSH6Result = LSEResultEnum.Intact;
            result1.PMS2Result = LSEResultEnum.Intact;
            m_LSEResultList.Add(result1);

            LSEResult result2 = new LSEResult();
            result2.MLH1Result = LSEResultEnum.Intact;
            result2.MSH2Result = LSEResultEnum.Loss;
            result2.MSH6Result = LSEResultEnum.Loss;
            result2.PMS2Result = LSEResultEnum.Intact;
            m_LSEResultList.Add(result2);

            LSEResult result3 = new LSEResult();
            result3.MLH1Result = LSEResultEnum.Intact;
            result3.MSH2Result = LSEResultEnum.Loss;
            result3.MSH6Result = LSEResultEnum.Intact;
            result3.PMS2Result = LSEResultEnum.Intact;
            m_LSEResultList.Add(result3);

            LSEResult result4 = new LSEResult();
            result4.MLH1Result = LSEResultEnum.Intact;
            result4.MSH2Result = LSEResultEnum.Intact;
            result4.MSH6Result = LSEResultEnum.Loss;
            result4.PMS2Result = LSEResultEnum.Intact;
            m_LSEResultList.Add(result4);

            LSEResult result5 = new LSEResult();
            result5.MLH1Result = LSEResultEnum.Intact;
            result5.MSH2Result = LSEResultEnum.Intact;
            result5.MSH6Result = LSEResultEnum.Intact;
            result5.PMS2Result = LSEResultEnum.Loss;
            m_LSEResultList.Add(result5);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch = true;
                this.m_IsOrdered = true;
                this.m_Status = "No further testing is required.";
            }
        }
        public LSEResultStatusBRAFRequired(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string orderedOnId)
            : base(lseResult, accessionOrder, orderedOnId)
        {
            LSEResult result1 = new LSEResult();
            result1.MLH1Result = LSEResultEnum.Loss;
            result1.MSH2Result = LSEResultEnum.Intact;
            result1.MSH6Result = LSEResultEnum.Intact;
            result1.PMS2Result = LSEResultEnum.Loss;
            m_LSEResultList.Add(result1);

            LSEResult result2 = new LSEResult();
            result2.MLH1Result = LSEResultEnum.Loss;
            result2.MSH2Result = LSEResultEnum.Intact;
            result2.MSH6Result = LSEResultEnum.Intact;
            result2.PMS2Result = LSEResultEnum.Intact;
            m_LSEResultList.Add(result2);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch = true;
                if (accessionOrder.PanelSetOrderCollection.Exists(18, orderedOnId, true) ||
                    accessionOrder.PanelSetOrderCollection.Exists(30, orderedOnId, true) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(30, orderedOnId, true);
                    if (panelSetOrder == null) panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(18, orderedOnId, true);

                    if (panelSetOrder.Final == true)
                    {
                        this.m_IsOrdered = true;
                        this.m_Status = "LSE Complete.";
                    }
                    else
                    {
                        this.m_IsOrdered = true;
                        this.m_Status = "BRAF testing is required and has been ordered.";
                    }
                }
                else
                {
                    this.m_IsOrdered = false;
                    this.m_Status = "BRAF Testing is required and should be ordered.";
                }
            }
        }
        public void SetSummaryResult(LSEResult lSEResult)
        {
            if (string.IsNullOrEmpty(m_Result) == false)
            {
                MLH1MethylationAnalysisDetectedResult    detected    = new MLH1MethylationAnalysisDetectedResult();
                MLH1MethylationAnalysisNotDetectedResult notDetected = new MLH1MethylationAnalysisNotDetectedResult();

                if (this.ResultCode == detected.ResultCode)
                {
                    lSEResult.MethResult = LSEResultEnum.Positive;
                }
                else if (this.ResultCode == notDetected.ResultCode)
                {
                    lSEResult.MethResult = LSEResultEnum.Negative;
                }
            }
            else
            {
                lSEResult.MethResult = LSEResultEnum.Pending;
            }
        }
        public LSEResultStatusMethylationAnalysisRequiredGYN(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string orderedOnId)
            : base(lseResult, accessionOrder, orderedOnId)
        {
            LSEResult result1 = new LSEResult();
            result1.MLH1Result = LSEResultEnum.Negative;
            m_LSEResultList.Add(result1);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch = true;
                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(64, orderedOnId, true) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(144, orderedOnId, true))
                {
                    this.m_Status = "Methylation Analysis testing is required and has been ordered.";
                    this.m_IsOrdered = true;
                }
                else
                {
                    this.m_Status = "Methylation Analysis Testing is required and should be ordered.";
                    this.m_IsOrdered = false;
                }
            }
        }
Exemple #11
0
        public LSEResultStatusMethylationAnalysisRequiredGYN(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(lseResult, accessionOrder)
        {
            LSEResult result1 = new LSEResult();

            result1.MLH1Result = LSEResultEnum.Negative;
            m_LSEResultList.Add(result1);

            if (this.IsMatch() == true)
            {
                this.m_IsMatch = true;
                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(64) == true || this.m_AccessionOrder.PanelSetOrderCollection.Exists(144))
                {
                    this.m_Status    = "Methylation Analysis testing is required and has been ordered.";
                    this.m_IsOrdered = true;
                }
                else
                {
                    this.m_Status    = "Methylation Analysis Testing is required and should be ordered.";
                    this.m_IsOrdered = false;
                }
            }
        }
        public void SetSummaryResult(LSEResult lSEResult)
        {
            if (string.IsNullOrEmpty(m_Result) == false)
            {
                MLH1MethylationAnalysisDetectedResult detected = new MLH1MethylationAnalysisDetectedResult();
                MLH1MethylationAnalysisNotDetectedResult notDetected = new MLH1MethylationAnalysisNotDetectedResult();

                if (this.ResultCode == detected.ResultCode)
                {
                    lSEResult.MethResult = LSEResultEnum.Positive;
                }
                else if (this.ResultCode == notDetected.ResultCode)
                {
                    lSEResult.MethResult = LSEResultEnum.Negative;
                }
            }
            else
            {
                lSEResult.MethResult = LSEResultEnum.Pending;
            }
        }
Exemple #13
0
 public LSEResultStatus(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
 {
     this.m_LSEResult      = lseResult;
     this.m_AccessionOrder = accessionOrder;
     this.m_LSEResultList  = new List <LSEResult>();
 }
Exemple #14
0
        public static LSEResult GetResult(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeEvaluation panelSetOrderLynchSyndromEvaluation)
        {
            LSEResult result = new LSEResult();
            YellowstonePathology.Business.Test.LynchSyndrome.LynchSyndromeIHCPanelTest panelSetLynchSyndromeIHCPanel = new YellowstonePathology.Business.Test.LynchSyndrome.LynchSyndromeIHCPanelTest();
            YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeIHC panelSetOrderLynchSyndromeIHC = (YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeIHC)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetLynchSyndromeIHCPanel.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true);
            if (panelSetOrderLynchSyndromeIHC != null) panelSetOrderLynchSyndromeIHC.SetSummaryResult(result);

            if (panelSetOrderLynchSyndromEvaluation.BRAFIsIndicated == true)
            {
                YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest brafV600EKTest = new YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTest();
                YellowstonePathology.Business.Test.RASRAFPanel.RASRAFPanelTest rasRAFPanelTest = new YellowstonePathology.Business.Test.RASRAFPanel.RASRAFPanelTest();
                if (accessionOrder.PanelSetOrderCollection.Exists(brafV600EKTest.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true) == true)
                {
                    YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrderBraf = (YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(brafV600EKTest.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true);
                    panelSetOrderBraf.SetSummaryResult(result);
                }
                else if(accessionOrder.PanelSetOrderCollection.Exists(rasRAFPanelTest.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true) == true)
                {
                    YellowstonePathology.Business.Test.RASRAFPanel.RASRAFPanelTestOrder panelSetOrderRASRAF = (YellowstonePathology.Business.Test.RASRAFPanel.RASRAFPanelTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(rasRAFPanelTest.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true);
                    panelSetOrderRASRAF.SetBrafSummaryResult(result);
                }
            }

            YellowstonePathology.Business.Test.LynchSyndrome.MLH1MethylationAnalysisTest panelSetMLH1 = new YellowstonePathology.Business.Test.LynchSyndrome.MLH1MethylationAnalysisTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(panelSetMLH1.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true) == true)
            {
                YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderMLH1MethylationAnalysis panelSetOrderMLH1MethylationAnalysis = (YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderMLH1MethylationAnalysis)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetMLH1.PanelSetId, panelSetOrderLynchSyndromEvaluation.OrderedOnId, true);
                panelSetOrderMLH1MethylationAnalysis.SetSummaryResult(result);
            }

            return result;
        }
Exemple #15
0
 public LSEResultStatusNotSet(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
     : base(lseResult, accessionOrder)
 {
     this.m_IsOrdered = false;
     this.m_Status    = "The LSE Type must be set before a status can be set.";
 }
 public void SetSummaryResult(LSEResult lSEResult)
 {
     IHCResult result = IHCResult.CreateResultFromResultCode(this.m_ResultCode);
     if (result != null)
     {
         lSEResult.MLH1Result = result.MLH1Result.LSEResult;
         lSEResult.MSH2Result = result.MSH2Result.LSEResult;
         lSEResult.MSH6Result = result.MSH6Result.LSEResult;
         lSEResult.PMS2Result = result.PMS2Result.LSEResult;
     }
 }
 public LSEResultStatusNotSet(LSEResult lseResult, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, string orderedOnId)
     : base(lseResult, accessionOrder, orderedOnId)
 {
     this.m_IsOrdered = false;
     this.m_Status = "The LSE Type must be set before a status can be set.";
 }