public EGFRToALKReflexAnalysisResult(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                      YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder)
 {
     this.m_EGFRToALKReflexAnalysisEGFRResult  = new EGFRToALKReflexAnalysisEGFRResult(accessionOrder);
     this.m_EGFRToALKReflexAnalysisALKResult   = new EGFRToALKReflexAnalysisALKResult(accessionOrder, this.m_EGFRToALKReflexAnalysisEGFRResult.EGFRMutationAnalysisResult, egfrToALKReflexAnalysisTestOrder);
     this.m_EGFRToALKReflexAnalysisROS1RResult = new EGFRToALKReflexAnalysisROS1Result(accessionOrder, this.m_EGFRToALKReflexAnalysisEGFRResult.EGFRMutationAnalysisResult, egfrToALKReflexAnalysisTestOrder);
     this.m_EGFRToALKReflexAnalysisPDL1RResult = new EGFRToALKReflexAnalysisPDL1Result(accessionOrder, this.m_EGFRToALKReflexAnalysisEGFRResult.EGFRMutationAnalysisResult, egfrToALKReflexAnalysisTestOrder);
 }
예제 #2
0
        public EGFRToALKReflexPath(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                   YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                                   System.Windows.Window window,
                                   System.Windows.Visibility backButtonVisibility) : base(pageNavigator, window)
        {
            this.m_AccessionOrder       = accessionOrder;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_EGFRToALKReflexAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
        }
예제 #3
0
        public EGFRToALKReflexPath(string reportNo, YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
            System.Windows.Window window,
            System.Windows.Visibility backButtonVisibility)
            : base(pageNavigator, window)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_EGFRToALKReflexAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
        }
예제 #4
0
        public EGFRToALKReflexPage(YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder testOrder,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
            System.Windows.Visibility backButtonVisibility)
            : base(testOrder, accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_EGFRToALKReflexAnalysisTestOrder = testOrder;
            this.m_EGFRToALKReflexAnalysisTestOrder.SetStatus(this.m_AccessionOrder.PanelSetOrderCollection);

            this.m_EGFRMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(131) == true)
            {
                this.m_ALKForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);

            }
            else if(this.m_AccessionOrder.PanelSetOrderCollection.Exists(68) == true)
            {
                this.m_ALKForNSCLCByFISHTestOrder = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder();
            }

            this.m_PageHeaderText = this.m_EGFRToALKReflexAnalysisTestOrder.PanelSetName + " for: " + this.m_AccessionOrder.PatientDisplayName;

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null) this.m_OrderedOnDescription += ": " + aliquotOrder.Label;

            this.m_EGFRToALKReflexAnalysisResult = new Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisResult(this.m_AccessionOrder, this.m_EGFRToALKReflexAnalysisTestOrder);

            InitializeComponent();

            this.DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonFinish);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
예제 #5
0
        public EGFRToALKReflexPage(YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder testOrder,
                                   YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                   YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                   System.Windows.Visibility backButtonVisibility) : base(testOrder, accessionOrder)
        {
            this.m_AccessionOrder       = accessionOrder;
            this.m_SystemIdentity       = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_EGFRToALKReflexAnalysisTestOrder = testOrder;
            this.m_EGFRToALKReflexAnalysisTestOrder.SetStatus(this.m_AccessionOrder.PanelSetOrderCollection);

            this.m_EGFRMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(131) == true)
            {
                this.m_ALKForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);
            }
            else if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(68) == true)
            {
                this.m_ALKForNSCLCByFISHTestOrder = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder();
            }

            this.m_PageHeaderText = this.m_EGFRToALKReflexAnalysisTestOrder.PanelSetName + " for: " + this.m_AccessionOrder.PatientDisplayName;

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null)
            {
                this.m_OrderedOnDescription += ": " + aliquotOrder.Label;
            }

            InitializeComponent();

            this.DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonFinish);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
 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;
         }
     }
 }
        private bool ShowReflexTestPage()
        {
            bool result = false;

            YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTest panelSet = new Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTest();
            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSet.PanelSetId, this.m_TestOrder.OrderedOnId, true) == true)
            {
                YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder testOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSet.PanelSetId, this.m_TestOrder.OrderedOnId, true);
                result = true;
                Test.EGFRToALKReflexPath eGFRToALKReflexPath = new Test.EGFRToALKReflexPath(testOrder.ReportNo, this.m_AccessionOrder, this.m_PageNavigator, this.m_Window, System.Windows.Visibility.Visible);
                eGFRToALKReflexPath.Finish += new Test.EGFRToALKReflexPath.FinishEventHandler(EGFRToALKReflexPath_Finish);
                eGFRToALKReflexPath.Back   += EGFRToALKReflexPath_Back;
                eGFRToALKReflexPath.Start();
            }
            return(result);
        }
        public override void ToXml(XElement document)
        {
            YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);
            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder       egfrMutationAnalysisTestOrder    = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);

            if (egfrMutationAnalysisTestOrder != null)
            {
                this.AddHeader(document, egfrToALKReflexAnalysisTestOrder, egfrToALKReflexAnalysisTestOrder.PanelSetName);
                this.AddNextObxElement("", document, "F");

                this.AddNextObxElement("EGFR Mutation Analysis: " + egfrMutationAnalysisTestOrder.Result, document, "F");
                this.AddNextObxElement("", document, "F");

                this.AddNextObxElement("Comment: ", document, "F");
                this.HandleLongString(egfrMutationAnalysisTestOrder.Comment, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            if (String.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.ALKForNSCLCByFISHResult) == false)
            {
                this.AddNextObxElement("ALK Rearrangement Analysis: " + egfrToALKReflexAnalysisTestOrder.ALKForNSCLCByFISHResult, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            if (String.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.ROS1ByFISHResult) == false)
            {
                this.AddNextObxElement("ROS1 Rearrangement Analysis: " + egfrToALKReflexAnalysisTestOrder.ROS1ByFISHResult, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.PDL1SP142StainPercent) == false)
            {
                this.AddNextObxElement("PD-L1 (SP142): " + egfrToALKReflexAnalysisTestOrder.PDL1SP142StainPercent, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            if (String.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.PDL122C3Result) == false)
            {
                this.AddNextObxElement("PD-L1 (22C3): " + egfrToALKReflexAnalysisTestOrder.PDL122C3Result, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            if (String.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.BRAFMutationAnalysisResult) == false)
            {
                this.AddNextObxElement("BRAF Mutation Analysis: " + egfrToALKReflexAnalysisTestOrder.BRAFMutationAnalysisResult, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.Comment) == false)
            {
                this.AddNextObxElement("QNS: " + EGFRToALKReflexAnalysisTestOrder.QNSStatement, document, "F");
                this.AddNextObxElement("", document, "F");
            }

            this.AddNextObxElement("Pathologist: " + egfrToALKReflexAnalysisTestOrder.Signature, document, "F");
            if (egfrToALKReflexAnalysisTestOrder.FinalTime.HasValue == true)
            {
                this.AddNextObxElement("E-signed " + egfrToALKReflexAnalysisTestOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"), document, "F");
            }
            this.AddNextObxElement("", document, "F");
            this.AddAmendments(document);

            this.AddNextObxElement("Interpretation: ", document, "F");
            this.HandleLongString(egfrToALKReflexAnalysisTestOrder.Interpretation, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Method: ", document, "F");
            this.HandleLongString(egfrToALKReflexAnalysisTestOrder.Method, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("References: ", document, "F");
            this.HandleLongString(egfrToALKReflexAnalysisTestOrder.ReportReferences, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement(egfrToALKReflexAnalysisTestOrder.GetLocationPerformedComment(), document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
예제 #9
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();
        }
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\EGFRALKROS1PDLBRAF.2.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);

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.EGFRMutationAnalysisResult) == false)
            {
                base.ReplaceText("egfr_result", egfrToALKReflexAnalysisTestOrder.EGFRMutationAnalysisResult);
            }
            else
            {
                this.DeleteRow("egfr_result");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.EGFRMutationAnalysisComment) == false)
            {
                base.SetXMLNodeParagraphData("egfr_comment", egfrToALKReflexAnalysisTestOrder.EGFRMutationAnalysisComment);
            }
            else
            {
                this.DeleteRow("egfr_comment");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.ALKForNSCLCByFISHResult) == false)
            {
                base.ReplaceText("alk_result", egfrToALKReflexAnalysisTestOrder.ALKForNSCLCByFISHResult);
            }
            else
            {
                this.DeleteRow("alk_result");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.ROS1ByFISHResult) == false)
            {
                base.ReplaceText("ros1_result", egfrToALKReflexAnalysisTestOrder.ROS1ByFISHResult);
            }
            else
            {
                this.DeleteRow("ros1_result");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.PDL1SP142StainPercent) == false)
            {
                base.ReplaceText("pdl1sp142_result", egfrToALKReflexAnalysisTestOrder.PDL1SP142StainPercent);
            }
            else
            {
                this.DeleteRow("pdl1sp142_result");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.PDL122C3Result) == false)
            {
                base.ReplaceText("pdl122c3_result", egfrToALKReflexAnalysisTestOrder.PDL122C3Result);
            }
            else
            {
                this.DeleteRow("pdl122c3_result");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.BRAFMutationAnalysisResult) == false)
            {
                base.ReplaceText("braf_result", egfrToALKReflexAnalysisTestOrder.BRAFMutationAnalysisResult);
            }
            else
            {
                this.DeleteRow("braf_result");
            }

            if (string.IsNullOrEmpty(egfrToALKReflexAnalysisTestOrder.Comment) == false)
            {
                base.ReplaceText("qns_statement", egfrToALKReflexAnalysisTestOrder.Comment);
            }
            else
            {
                this.DeleteRow("qns_statement");
            }

            YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(egfrToALKReflexAnalysisTestOrder.ReportNo);
            YellowstonePathology.Business.Document.AmendmentSection           amendmentSection    = new YellowstonePathology.Business.Document.AmendmentSection();
            amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true);

            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, egfrToALKReflexAnalysisTestOrder.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();
        }
예제 #11
0
        public override void ToXml(XElement document)
        {
            YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder egfrToALKReflexAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder egfrMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);

            this.AddHeader(document, egfrToALKReflexAnalysisTestOrder, egfrToALKReflexAnalysisTestOrder.PanelSetName);
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("EGFR Mutation Analysis: " + egfrMutationAnalysisTestOrder.Result, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Comment: ", document, "F");
            this.HandleLongString(egfrMutationAnalysisTestOrder.Comment, document, "F");
            this.AddNextObxElement("", document, "F");

            string alkResult = "ALK not performed";

            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(131) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkFoNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);
                alkResult = alkFoNSCLCByFISHTestOrder.Result;
            }
            else if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(68) == true)
            {
                YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkForNSCLCByFISHTestOrderReportedSeparately = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrderReportedSeparately();
                alkResult = alkForNSCLCByFISHTestOrderReportedSeparately.Result;
            }

            this.AddNextObxElement("ALK Rearrangement Analysis: " + alkResult, document, "F");
            this.AddNextObxElement("", document, "F");

            string ros1Result = null;

            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);
                ros1Result = ros1ByFISHTestOrder.Result;
            }

            this.AddNextObxElement("ROS1 Rearrangement Analysis: " + ros1Result, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Pathologist: " + egfrToALKReflexAnalysisTestOrder.Signature, document, "F");
            if (egfrToALKReflexAnalysisTestOrder.FinalTime.HasValue == true)
            {
                this.AddNextObxElement("E-signed " + egfrToALKReflexAnalysisTestOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"), document, "F");
            }
            this.AddNextObxElement("", document, "F");
            this.AddAmendments(document);

            this.AddNextObxElement("Interpretation: ", document, "F");
            this.HandleLongString(egfrToALKReflexAnalysisTestOrder.Interpretation, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Method: ", document, "F");
            this.HandleLongString(egfrToALKReflexAnalysisTestOrder.Method, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("References: ", document, "F");
            this.HandleLongString(egfrToALKReflexAnalysisTestOrder.References, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement(egfrToALKReflexAnalysisTestOrder.GetLocationPerformedComment(), document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }