Esempio n. 1
0
        public override void ToXml(XElement document)
        {
            NGCTTestOrder testOrder = (NGCTTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, testOrder, "Chlamydia Gonorrhea Screening");
            this.AddNextObxElement(string.Empty, document, "F");

            this.AddNextObxElement("Chlamydia trachomatis result: " + testOrder.ChlamydiaTrachomatisResult, document, "F");
            this.AddNextObxElement("Reference: Negative", document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Neisseria gonorrhoeae result: " + testOrder.NeisseriaGonorrhoeaeResult, document, "F");
            this.AddNextObxElement("Reference: Negative", document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddAmendments(document);

            this.AddNextObxElement("Specimen: Thin Prep Fluid", document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Method:", document, "F");
            this.AddNextObxElement(testOrder.Method, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("References:", document, "F");
            this.AddNextObxElement(testOrder.References, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement(testOrder.TestInformation, document, "F");

            string locationPerformed = testOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
Esempio n. 2
0
        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");
        }