public NGCTResult GetNGResult(NGCTTestOrder testOrder) { NGCTResult result = null; foreach (NGCTResult ngctResult in this) { if (ngctResult.ResultCode == testOrder.NGResultCode) { result = ngctResult; break; } } return result; }
public NGCTResult GetCTResult(NGCTTestOrder testOrder) { NGCTResult result = null; foreach (NGCTResult ngctResult in this) { if (ngctResult.ResultCode == testOrder.CTResultCode) { result = ngctResult; break; } } return(result); }
public override void ToXml(XElement document) { NGCTTestOrder testOrder = (NGCTTestOrder)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("Chlamydia trachomatis result", testOrder.ChlamydiaTrachomatisResult, document, "F", "Negative"); this.AddNextObxElementBeaker("Neisseria gonorrhoeae result", testOrder.NeisseriaGonorrhoeaeResult, 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", "Thin Prep Fluid", document, "F"); this.AddNextObxElementBeaker("Method", testOrder.Method, document, "F"); this.AddNextObxElementBeaker("References", testOrder.ReportReferences, document, "F"); this.AddNextObxElementBeaker("Test Information", testOrder.TestInformation, document, "F"); string locationPerformed = testOrder.GetLocationPerformedComment(); this.AddNextObxElementBeaker("Location Performed", locationPerformed, document, "F"); }
public override void ToXml(XElement document) { NGCTTestOrder testOrder = (NGCTTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo); this.AddCompanyHeader(document); this.AddBlankNteElement(document); this.AddNextNteElement("Chlamydia Gonorrhea Screening", document); this.AddNextNteElement("Master Accession #: " + testOrder.MasterAccessionNo, document); this.AddNextNteElement("Report #: " + testOrder.ReportNo, document); this.AddBlankNteElement(document); this.AddNextNteElement("Chlamydia trachomatis result: " + testOrder.ChlamydiaTrachomatisResult, document); this.AddNextNteElement("Neisseria gonorrhoeae result: " + testOrder.NeisseriaGonorrhoeaeResult, document); this.AddBlankNteElement(document); this.AddNextNteElement("Specimen: Thin Prep Fluid", document); this.AddBlankNteElement(document); this.AddNextNteElement("Method:", document); this.AddNextNteElement(testOrder.Method, document); this.AddBlankNteElement(document); }