public void SetResult(EosinophiliaByFISHTestOrder testOrder)
 {
     StringBuilder disclaimer = new StringBuilder();
     disclaimer.AppendLine(TestDeveloped + Environment.NewLine);
     disclaimer.AppendLine(testOrder.GetLocationPerformedComment());
     testOrder.ReportDisclaimer = disclaimer.ToString();
 }
Beispiel #2
0
        public void SetResult(EosinophiliaByFISHTestOrder testOrder)
        {
            StringBuilder disclaimer = new StringBuilder();

            disclaimer.AppendLine(TestDeveloped + Environment.NewLine);
            disclaimer.AppendLine(testOrder.GetLocationPerformedComment());
            testOrder.ReportDisclaimer = disclaimer.ToString();
        }
        public override void ToXml(XElement document)
        {
            EosinophiliaByFISHTestOrder panelSetOrder = (EosinophiliaByFISHTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddCompanyHeader(document);
            this.AddBlankNteElement(document);

            this.AddNextNteElement("Eosinophilia By FISH", document);
            this.AddNextNteElement("Master Accession #: " + panelSetOrder.MasterAccessionNo, document);
            this.AddNextNteElement("Report #: " + panelSetOrder.ReportNo, document);
            this.AddBlankNteElement(document);

            string result = "Result: " + panelSetOrder.Result;

            this.AddNextNteElement(result, document);

            this.AddBlankNteElement(document);
            this.AddNextNteElement("Pathologist: " + panelSetOrder.ReferenceLabSignature, document);
            if (panelSetOrder.FinalTime.HasValue == true)
            {
                this.AddNextNteElement("E-signed " + panelSetOrder.ReferenceLabFinalDate.Value.ToString("MM/dd/yyyy HH:mm"), document);
            }

            this.AddBlankNteElement(document);
            this.AddAmendments(document, panelSetOrder, this.m_AccessionOrder);

            this.AddNextNteElement("Specimen Information:", document);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            this.AddNextNteElement("Specimen Identification: " + specimenOrder.Description, document);
            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

            this.AddNextNteElement("Collection Date/Time: " + collectionDateTimeString, document);

            this.AddBlankNteElement(document);
            this.AddNextNteElement("Interpretation:", document);
            this.HandleLongString(panelSetOrder.Interpretation, document);

            this.AddBlankNteElement(document);
            this.AddNextNteElement("Probe Set Details:", document);
            this.HandleLongString(panelSetOrder.ProbeSetDetail, document);

            this.AddBlankNteElement(document);
            this.AddNextNteElement("Nuclei Scored:", document);
            this.HandleLongString(panelSetOrder.NucleiScored, document);
            this.AddBlankNteElement(document);

            this.HandleLongString(panelSetOrder.ReportDisclaimer, document);
            this.AddBlankNteElement(document);
        }