public void SetResults(FactorVLeidenTestOrder testOrder) { testOrder.ResultDescription = this.m_ResultDescription; testOrder.Interpretation = this.m_Interpretation; testOrder.Method = this.m_Method; testOrder.ReportReferences = this.m_References; testOrder.TestDevelopment = this.m_TestDevelopment; }
public void SetResults(FactorVLeidenTestOrder testOrder) { testOrder.ResultDescription = this.m_ResultDescription; testOrder.Interpretation = this.m_Interpretation; testOrder.Method = this.m_Method; testOrder.ReportReferences = this.m_References; testOrder.TestDevelopment = this.m_TestDevelopment; }
public override void ToXml(XElement document) { FactorVLeidenTestOrder testOrder = (FactorVLeidenTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddHeader(document, testOrder, "Factor V Leiden (R506Q) Mutation Analysis"); this.AddNextObxElement("", document, "F"); this.AddNextObxElement("Result: " + testOrder.Result, document, "F"); if (string.IsNullOrEmpty(testOrder.ResultDescription) == false) { this.AddNextObxElement(" " + testOrder.ResultDescription, document, "F"); } this.AddNextObxElement("", document, "F"); if (string.IsNullOrEmpty(testOrder.Comment) == false) { this.HandleLongString("Comment: " + testOrder.Comment, 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); this.HandleLongString("Indication: " + testOrder.Indication, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString("Interpretation: ", document, "F"); this.HandleLongString(testOrder.Interpretation, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString("Method: " + testOrder.Method, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString("References: " + testOrder.ReportReferences, document, "F"); this.AddNextObxElement("", document, "F"); this.HandleLongString(testOrder.TestDevelopment, document, "F"); this.AddNextObxElement("", document, "F"); string locationPerformed = testOrder.GetLocationPerformedComment(); this.HandleLongString(locationPerformed, document, "F"); this.AddNextObxElement(string.Empty, document, "F"); }
public override void Render() { FactorVLeidenTestOrder testOrder = (FactorVLeidenTestOrder)this.m_PanelSetOrder; this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\FactorVLeiden.1.xml"; this.OpenTemplate(); this.SetDemographicsV2(); this.SetReportDistribution(); this.SetCaseHistory(); if (this.m_PanelSetOrder.Final) { this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature); } YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrder.OrderedOn, this.m_PanelSetOrder.OrderedOnId); base.ReplaceText("specimen_description", specimenOrder.Description); string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime); this.SetXmlNodeData("date_time_collected", collectionDateTimeString); //remove unused comment line if (string.IsNullOrEmpty(testOrder.Comment) == true) { this.DeleteRow("report_comment"); } else { this.ReplaceText("report_comment", testOrder.Comment); } this.SetXmlNodeData("report_result", testOrder.Result); this.ReplaceText("result_description", testOrder.ResultDescription); this.ReplaceText("report_interpretation", testOrder.Interpretation); this.ReplaceText("report_indication", testOrder.Indication); this.ReplaceText("report_method", testOrder.Method); this.ReplaceText("test_development", testOrder.TestDevelopment); this.ReplaceText("report_references", testOrder.ReportReferences); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo); YellowstonePathology.Business.Document.AmendmentSection amendment = new YellowstonePathology.Business.Document.AmendmentSection(); amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true); this.SaveReport(); }