public override void Render() { this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\PlateletAssociatedAntibodiesV2.xml"; base.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); PlateletAssociatedAntibodiesV2TestOrder testOrder = (PlateletAssociatedAntibodiesV2TestOrder)this.m_PanelSetOrder; YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(testOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendment = new YellowstonePathology.Business.Document.AmendmentSection(); amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId); this.SetXmlNodeData("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); this.SetXmlNodeData("igg_result", testOrder.IgGResult); this.SetXmlNodeData("igg_reference", testOrder.IgGReference); this.SetXmlNodeData("igm_result", testOrder.IgMResult); this.SetXmlNodeData("igm_reference", testOrder.IgMReference); this.SetXMLNodeParagraphData("report_interpretation", testOrder.Interpretation); this.SetXMLNodeParagraphData("report_method", testOrder.Method); this.SetXmlNodeData("asr_comment", testOrder.ASRComment); this.SaveReport(); }
public override void ToXml(XElement document) { PlateletAssociatedAntibodiesV2TestOrder testOrder = (PlateletAssociatedAntibodiesV2TestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, testOrder, "Platelet Associated Antibodies, Direct"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Test", document, "F"); this.AddNextObxElement("Anti Platelet Antibody - IgG: " + testOrder.IgGResult, document, "F"); this.AddNextObxElement("Reference" + testOrder.IgGReference, document, "F"); this.AddNextObxElement("Anti Platelet Antibody - IgM: " + testOrder.IgMResult, document, "F"); this.AddNextObxElement("Reference" + testOrder.IgMReference, document, "F"); this.AddNextObxElement("", document, "F"); this.AddAmendments(document); this.AddNextObxElement("Specimen Information:", document, "F"); YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId); this.AddNextObxElement("Specimen Description: " + specimenOrder.Description, document, "F"); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.AddNextObxElement("Collection Date/Time: " + collectionDateTimeString, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Interpretation:", document, "F"); this.HandleLongString(testOrder.Interpretation, document, "F"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Method:", document, "F"); this.HandleLongString(testOrder.Method, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString(testOrder.ASRComment, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); string locationPerformed = testOrder.GetLocationPerformedComment(); this.AddNextObxElement(locationPerformed, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }