public override void ToXml(XElement document) { HPVTestOrder panelSetOrder = (HPVTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, panelSetOrder, "HPV Report"); this.AddNextObxElement("", document, "F"); string resultText = "Result: " + panelSetOrder.Result; this.AddNextObxElement(resultText, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Reference: Negative", document, "F"); this.AddNextObxElement("", document, "F"); this.AddAmendments(document); this.AddNextObxElement("Specimen: ThinPrep fluid", document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Test Information: ", document, "F"); this.HandleLongString(panelSetOrder.TestInformation, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("References:", document, "F"); this.HandleLongString(panelSetOrder.ReportReferences, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString(panelSetOrder.ASRComment, document, "F"); string locationPerformed = panelSetOrder.GetLocationPerformedComment(); this.AddNextObxElement(locationPerformed, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }
public override void ToXml(XElement document) { HPVTestOrder panelSetOrder = (HPVTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, panelSetOrder, "HPV Report"); this.AddNextObxElement("", document, "F"); string resultText = "Result: " + panelSetOrder.Result; this.AddNextObxElement(resultText, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Reference: Negative", document, "F"); this.AddNextObxElement("", document, "F"); this.AddAmendments(document); this.AddNextObxElement("Specimen: ThinPrep fluid", document, "F"); this.AddNextObxElement("", document, "F"); bool hpvHasBeenOrdered = this.m_AccessionOrder.PanelSetOrderCollection.Exists(62); string additionalTestingComment = string.Empty; if (hpvHasBeenOrdered == true) { additionalTestingComment = YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument.HPV1618HasBeenOrderedComment; } else { additionalTestingComment = YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapWordDocument.NoAdditionalTestingOrderedComment; } this.AddNextObxElement("Additional Testing:", document, "F"); this.AddNextObxElement(additionalTestingComment, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); this.AddNextObxElement("Test Information: ", document, "F"); this.HandleLongString(panelSetOrder.TestInformation, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("References:", document, "F"); this.HandleLongString(panelSetOrder.References, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString(panelSetOrder.ASRComment, document, "F"); string locationPerformed = panelSetOrder.GetLocationPerformedComment(); this.AddNextObxElement(locationPerformed, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }
public override void ToXml(XElement document) { HPVTestOrder panelSetOrder = (HPVTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(this.m_ReportNo); this.AddNextObxElementBeaker("Report No", this.m_ReportNo, document, "F"); this.AddNextObxElementBeaker("Result", "Positive", document, "F", "Negative"); if (amendmentCollection.Count != 0) { StringBuilder amendments = new StringBuilder(); foreach (YellowstonePathology.Business.Amendment.Model.Amendment amendment in amendmentCollection) { if (amendment.Final == true) { amendments.AppendLine(amendment.AmendmentType + ": " + amendment.AmendmentDate.Value.ToString("MM/dd/yyyy")); amendments.AppendLine(amendment.Text); if (amendment.RequirePathologistSignature == true) { amendments.AppendLine("Signature: " + amendment.PathologistSignature); amendments.AppendLine("E-signed " + amendment.FinalTime.Value.ToString("MM/dd/yyyy HH:mm")); } } } amendments.AppendLine(); this.AddNextObxElementBeaker("Amendments", amendments.ToString(), document, "F"); } this.AddNextObxElementBeaker("Specimen", "ThinPrep fluid", document, "F"); this.AddNextObxElementBeaker("Test Information", panelSetOrder.TestInformation, document, "F"); this.AddNextObxElementBeaker("References", panelSetOrder.ReportReferences, document, "F"); this.AddNextObxElementBeaker("ASR", panelSetOrder.ASRComment, document, "F"); string locationPerformed = panelSetOrder.GetLocationPerformedComment(); this.AddNextObxElementBeaker("Location Performed", locationPerformed, document, "F"); }