public EGFRToALKReflexAnalysisROS1Result(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, 
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisResult egfrMutationAnalysisResult,
            YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder)
            : base(accessionOrder, 204)
        {
            if (egfrToALKReflexAnalysisTestOrder.QNSForROS1 == true)
            {
                this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.QNS;
            }
            else
            {
                if (egfrMutationAnalysisResult != null)
                {
                    YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult egfrMutationAnalysisDetectedResult = new EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult();
                    if (egfrMutationAnalysisResult.ResultCode == egfrMutationAnalysisDetectedResult.ResultCode)
                    {

                        if(this.m_Ordered == true)
                        {
                            if (this.m_Final == true)
                            {
                                YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHResultCollection ros1ByFISHResultCollection = new YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHResultCollection();
                                YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder)this.m_PanelSetOrder;
                                this.m_ResultAbbreviation = ros1ByFISHResultCollection.GetByResultCode(ros1ByFISHTestOrder.ResultCode).ResultAbbreviation;
                                this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.Final;
                            }
                            else
                            {
                                this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.Pending;
                            }
                        }
                        else
                        {
                            this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.NotIndicated;
                        }

                        //this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.NotIndicated;
                    }
                    else
                    {
                        if (this.m_Ordered == false)
                        {
                            this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.OrderRequired;
                        }
                        if (this.m_Final == true)
                        {
                            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHResultCollection ros1ByFISHResultCollection = new YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHResultCollection();
                            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder)this.m_PanelSetOrder;
                            this.m_ResultAbbreviation = ros1ByFISHResultCollection.GetByResultCode(ros1ByFISHTestOrder.ResultCode).ResultAbbreviation;
                        }
                    }
                }
                else
                {
                    this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.Pending;
                }
            }
        }
 public EGFRToALKReflexAnalysisALKResult(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                         YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisResult egfrMutationAnalysisResult,
                                         YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder)
     : base(accessionOrder, 131)
 {
     if (egfrToALKReflexAnalysisTestOrder.QNSForALK == true)
     {
         this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.QNS;
     }
     else
     {
         if (egfrMutationAnalysisResult != null)
         {
             YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult egfrMutationAnalysisDetectedResult = new EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult();
             if (egfrMutationAnalysisResult.ResultCode == egfrMutationAnalysisDetectedResult.ResultCode)
             {
                 this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.NotIndicated;
             }
             else
             {
                 if (this.m_Ordered == false)
                 {
                     this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.OrderRequired;
                 }
                 else if (this.m_Final == true)
                 {
                     YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHResultCollection alkForNSCLCByFISHResultCollection = new ALKForNSCLCByFISH.ALKForNSCLCByFISHResultCollection();
                     YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder        alkForNSCLCByFISHTestOrder        = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder) this.m_PanelSetOrder;
                     this.m_ResultAbbreviation = alkForNSCLCByFISHResultCollection.GetByResultCode(alkForNSCLCByFISHTestOrder.ResultCode).ResultAbbreviation;
                 }
             }
         }
         else
         {
             this.m_Status = EGFRToALKReflexAnalysisElementStatusEnum.Pending;
         }
     }
 }
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\EGFRToALKReflexAnalysis.7.xml";
            this.OpenTemplate();
            this.SetDemographicsV2();
            this.SetReportDistribution();

            YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(124);

            base.ReplaceText("report_title", egfrToALKReflexAnalysisTestOrder.PanelSetName);

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
            base.ReplaceText("egfr_result", egfrMutationAnalysisTestOrder.Result);
            base.SetXMLNodeParagraphData("egfr_comment", egfrMutationAnalysisTestOrder.Comment);

            YellowstonePathology.Business.Document.AmendmentSection amendmentSection = new YellowstonePathology.Business.Document.AmendmentSection();
            amendmentSection.SetAmendment(egfrToALKReflexAnalysisTestOrder.AmendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true);

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult egfrMutationAnalysisDetectedResult = new EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult();

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(131) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);
                base.ReplaceText("alk_result", alkForNSCLCByFISHTestOrder.Result);
            }
            else if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(68) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately alkForNSCLCByFISHTestOrderReportedSeparately = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately();
                base.ReplaceText("alk_result", alkForNSCLCByFISHTestOrderReportedSeparately.Result);
            }
            else if (egfrToALKReflexAnalysisTestOrder.QNSForALK == true)
            {
                base.ReplaceText("alk_result", "Quantity not sufficient to perform ALK");
                base.ReplaceText("ros1_result", "Quantity not sufficient to perform ROS1");
            }
            else if (egfrMutationAnalysisTestOrder.ResultCode == egfrMutationAnalysisDetectedResult.ResultCode)
            {
                base.ReplaceText("alk_result", "Not Indicated");
            }
            else
            {
                base.ReplaceText("alk_result", "ALK not performed");
            }

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(204) == true)
            {
                YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(204);
                base.ReplaceText("ros1_result", ros1ByFISHTestOrder.Result);
            }
            else if (egfrMutationAnalysisTestOrder.ResultCode == egfrMutationAnalysisDetectedResult.ResultCode)
            {
                base.ReplaceText("ros1_result", "Not Indicated");
            }
            else
            {
                base.ReplaceText("ros1_result", "ROS1 not performed");
            }

            base.SetXMLNodeParagraphData("report_interpretation", egfrToALKReflexAnalysisTestOrder.Interpretation);

            this.ReplaceText("report_date", BaseData.GetShortDateString(egfrToALKReflexAnalysisTestOrder.FinalDate));
            this.ReplaceText("pathologist_signature", egfrToALKReflexAnalysisTestOrder.Signature);

            this.SetXMLNodeParagraphData("report_method", egfrToALKReflexAnalysisTestOrder.Method);
            this.SetXMLNodeParagraphData("report_references", egfrToALKReflexAnalysisTestOrder.ReportReferences);

            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(egfrToALKReflexAnalysisTestOrder.OrderedOnId);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(egfrToALKReflexAnalysisTestOrder.OrderedOn, egfrMutationAnalysisTestOrder.OrderedOnId);

            string specimenDescription = specimenOrder.Description + ", Block " + aliquotOrder.Label;
            this.ReplaceText("specimen_description", specimenDescription);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);
            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            this.ReplaceText("tumor_nuclei_percentage", egfrToALKReflexAnalysisTestOrder.TumorNucleiPercentage);

            this.SaveReport();
        }
Пример #4
0
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\EGFRToALKReflexAnalysis.4.xml";
            this.OpenTemplate();
            this.SetDemographicsV2();
            this.SetReportDistribution();

            YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(124);

            base.ReplaceText("report_title", egfrToALKReflexAnalysisTestOrder.PanelSetName);

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
            base.ReplaceText("egfr_result", egfrMutationAnalysisTestOrder.Result);
            base.SetXMLNodeParagraphData("egfr_comment", egfrMutationAnalysisTestOrder.Comment);

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult egfrMutationAnalysisDetectedResult = new EGFRMutationAnalysis.EGFRMutationAnalysisDetectedResult();
            if (egfrMutationAnalysisTestOrder.ResultCode == egfrMutationAnalysisDetectedResult.ResultCode)
            {
                base.ReplaceText("alk_result", "Not Indicated");
                base.ReplaceText("ros1_result", "Not Indicated");
                base.ReplaceText("pdl1_result", "Not Indicated");
            }

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(131) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);
                base.ReplaceText("alk_result", alkForNSCLCByFISHTestOrder.Result);
            }
            else if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(68) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately alkForNSCLCByFISHTestOrderReportedSeparately = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately();
                base.ReplaceText("alk_result", alkForNSCLCByFISHTestOrderReportedSeparately.Result);
            }
            else if (egfrToALKReflexAnalysisTestOrder.QNSForALK == true)
            {
                base.ReplaceText("alk_result", "Quantity not sufficient to perform ALK");
            }
            else
            {
                base.ReplaceText("alk_result", "ALK not performed");
            }

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(204) == true)
            {
                YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(204);
                base.ReplaceText("ros1_result", ros1ByFISHTestOrder.Result);
            }

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(215) == true)
            {
                YellowstonePathology.Business.Test.PDL1.PDL1TestOrder pdl1TestOrder = (YellowstonePathology.Business.Test.PDL1.PDL1TestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(215);
                base.ReplaceText("pdl1_result", pdl1TestOrder.Result);
            }

            if (egfrToALKReflexAnalysisTestOrder.QNSForPDL1 == true)
            {
                base.ReplaceText("pdl1_result", "Quantity not sufficient to perform PDL-1");
            }

            base.SetXMLNodeParagraphData("report_interpretation", egfrToALKReflexAnalysisTestOrder.Interpretation);

            this.ReplaceText("report_date", BaseData.GetShortDateString(egfrToALKReflexAnalysisTestOrder.FinalDate));
            this.ReplaceText("pathologist_signature", egfrToALKReflexAnalysisTestOrder.Signature);

            this.SetXMLNodeParagraphData("report_method", egfrToALKReflexAnalysisTestOrder.Method);
            this.SetXMLNodeParagraphData("report_references", egfrToALKReflexAnalysisTestOrder.References);

            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(egfrToALKReflexAnalysisTestOrder.OrderedOnId);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(egfrToALKReflexAnalysisTestOrder.OrderedOn, egfrMutationAnalysisTestOrder.OrderedOnId);

            string specimenDescription = specimenOrder.Description + ", Block " + aliquotOrder.Label;

            this.ReplaceText("specimen_description", specimenDescription);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            this.ReplaceText("tumor_nuclei_percentage", egfrToALKReflexAnalysisTestOrder.TumorNucleiPercentage);

            this.SaveReport();
        }