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"); }
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"); }