Beispiel #1
0
        public override void ToXml(XElement document)
        {
            MicrosatelliteInstabilityAnalysisTestOrder panelSetOrder = (MicrosatelliteInstabilityAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "Microsatellite Instability Analysis");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Result: " + panelSetOrder.Result, document, "F");
            this.AddNextObxElement("  Instability Level: " + panelSetOrder.InstabilityLevel, document, "F");
            this.AddNextObxElement("  BAT25  : " + panelSetOrder.BAT25Instability, document, "F");
            this.AddNextObxElement("  BAT26  : " + panelSetOrder.BAT26Instability, document, "F");
            this.AddNextObxElement("  D5S346 : " + panelSetOrder.D5S346Instability, document, "F");
            this.AddNextObxElement("  D17S250: " + panelSetOrder.D17S250Instability, document, "F");
            this.AddNextObxElement("  D2S123 : " + panelSetOrder.D2S123Instability, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("Pathologist: " + panelSetOrder.Signature, document, "F");
            if (panelSetOrder.FinalTime.HasValue == true)
            {
                this.AddNextObxElement("E-signed " + panelSetOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm"), document, "F");
            }
            this.AddNextObxElement("", document, "F");
            this.AddAmendments(document);

            this.AddNextObxElement("Interpretation: ", document, "F");
            this.HandleLongString(panelSetOrder.Interpretation, document, "F");
            this.AddNextObxElement("", document, "F");

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

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

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement(panelSetOrder.TestDevelopment, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
Beispiel #2
0
        public override void Render()
        {
            MicrosatelliteInstabilityAnalysisTestOrder testOrder = (MicrosatelliteInstabilityAnalysisTestOrder)this.m_PanelSetOrder;

            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\MicrosatelliteInstabilityAnalysis.xml";
            base.OpenTemplate();

            this.SetDemographicsV2();
            this.SetReportDistribution();
            this.SetCaseHistory();

            YellowstonePathology.Business.Document.AmendmentSection amendmentSection = new YellowstonePathology.Business.Document.AmendmentSection();
            amendmentSection.SetAmendment(m_PanelSetOrder.AmendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true);

            this.ReplaceText("report_result", testOrder.Result);
            this.ReplaceText("report_instability_level", testOrder.InstabilityLevel);
            this.ReplaceText("report_bat25_instability", testOrder.BAT25Instability);
            this.ReplaceText("report_bat26_instability", testOrder.BAT26Instability);
            this.ReplaceText("report_d5s346_instability", testOrder.D5S346Instability);
            this.ReplaceText("report_d17s250_instability", testOrder.D17S250Instability);
            this.ReplaceText("report_d2s123_instability", testOrder.D2S123Instability);
            this.ReplaceText("report_interpretation", testOrder.Interpretation);
            this.ReplaceText("report_method", testOrder.Method);
            this.ReplaceText("report_references", testOrder.References);
            this.ReplaceText("test_development", testOrder.TestDevelopment);

            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);

            this.ReplaceText("report_date", YellowstonePathology.Business.BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate));
            this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature);

            this.SaveReport();
        }