コード例 #1
0
        public void SetResults(PanelSetOrderHer2AmplificationByIHC panelSetOrder)
        {
            panelSetOrder.Method = Method;

            StringBuilder disclaimer = new StringBuilder();
            string locationComment = panelSetOrder.GetLocationPerformedComment();
            disclaimer.AppendLine(locationComment);
            disclaimer.AppendLine(TestDevelopmentComment);
            panelSetOrder.ReportDisclaimer = disclaimer.ToString();
        }
コード例 #2
0
        public void SetResults(PanelSetOrderHer2AmplificationByIHC panelSetOrder)
        {
            panelSetOrder.Method = Method;

            StringBuilder disclaimer      = new StringBuilder();
            string        locationComment = panelSetOrder.GetLocationPerformedComment();

            disclaimer.AppendLine(locationComment);
            disclaimer.AppendLine(TestDevelopmentComment);
            panelSetOrder.ReportDisclaimer = disclaimer.ToString();
        }
コード例 #3
0
        public override void ToXml(XElement document)
        {
            PanelSetOrderHer2AmplificationByIHC panelSetOrder = (PanelSetOrderHer2AmplificationByIHC)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "FLT3 Mutation Analysis");

            this.AddNextObxElement("", document, "F");
            string result = "Result: " + panelSetOrder.Result;

            this.AddNextObxElement(result, document, "F");
            result = "  Score: " + panelSetOrder.Score;
            this.AddNextObxElement(result, document, "F");
            result = "Percentage of Cells with Uniform Intense Complete Membrane Staining: " + panelSetOrder.IntenseCompleteMembraneStainingPercent;
            this.AddNextObxElement(result, document, "F");

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

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

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

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

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Breast Testing Fixative:", document, "F");
            this.HandleLongString(panelSetOrder.BreastTestingFixative, document, "F");

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

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

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

            this.AddNextObxElement("", document, "F");
            this.HandleLongString(panelSetOrder.ReportDisclaimer, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
コード例 #4
0
        public override void Render()
        {
            PanelSetOrderHer2AmplificationByIHC panelSetOrder = (PanelSetOrderHer2AmplificationByIHC)this.m_PanelSetOrder;

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

            base.SetDemographicsV2();

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

            YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo);
            YellowstonePathology.Business.Document.AmendmentSection           amendmentSection    = new YellowstonePathology.Business.Document.AmendmentSection();
            amendmentSection.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true);

            base.ReplaceText("report_result", panelSetOrder.Result);
            base.ReplaceText("report_score", panelSetOrder.Score);
            base.ReplaceText("report_percent", panelSetOrder.IntenseCompleteMembraneStainingPercent);
            base.ReplaceText("report_fixative", panelSetOrder.BreastTestingFixative);
            base.ReplaceText("report_method", panelSetOrder.Method);
            base.ReplaceText("report_interpretation", panelSetOrder.Interpretation);
            base.ReplaceText("report_reference", panelSetOrder.Reference);
            base.ReplaceText("report_disclaimer", panelSetOrder.ReportDisclaimer);

            this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate));
            this.SetXmlNodeData("pathologist_signature", this.m_PanelSetOrder.Signature);

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

            this.SaveReport();
        }