public override void ToXml(XElement document) { TechInitiatedPeripheralSmearTestOrder testOrder = (TechInitiatedPeripheralSmearTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, testOrder, "Tech Initiated Peripheral Smear"); this.AddNextObxElement(string.Empty, document, "F"); this.HandleLongString("Technologists Question: " + testOrder.TechnologistsQuestion, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString("Pathologist Feedback: " + testOrder.PathologistFeedback, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString("CBC Comment: " + testOrder.CBCComment, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Pathologist: " + testOrder.Signature, document, "F"); if (testOrder.FinalTime.HasValue == true) { this.AddNextObxElement("E-signed " + testOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"), document, "F"); } this.AddNextObxElement("", document, "F"); this.AddAmendments(document); string locationPerformed = testOrder.GetLocationPerformedComment(); this.AddNextObxElement(locationPerformed, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }