Esempio n. 1
0
        public override void Render()
        {
            PanelSetOrderNPM1 panelSetOrderNPM1 = (PanelSetOrderNPM1)this.m_PanelSetOrder;

            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\NPM1.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", panelSetOrderNPM1.Result);
            this.ReplaceText("percentage_npm1_mutation", panelSetOrderNPM1.PercentageNPM1Mutation);
            this.ReplaceText("report_interpretation", panelSetOrderNPM1.Interpretation);
            this.ReplaceText("report_method", panelSetOrderNPM1.Method);
            this.ReplaceText("report_references", panelSetOrderNPM1.References);

            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", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate));
            this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature);

            this.SaveReport();
        }
Esempio n. 2
0
 public void SetResults(PanelSetOrderNPM1 panelSetOrderNPM1)
 {
     panelSetOrderNPM1.Result = this.m_Result;
     panelSetOrderNPM1.PercentageNPM1Mutation = this.m_PercentageNPM1Mutation;
     panelSetOrderNPM1.Interpretation = this.m_Interpretation;
     panelSetOrderNPM1.Method = NPM1Result.Method;
     panelSetOrderNPM1.ReportReferences = NPM1Result.References;
 }
Esempio n. 3
0
 public void SetResults(PanelSetOrderNPM1 panelSetOrderNPM1)
 {
     panelSetOrderNPM1.Result = this.m_Result;
     panelSetOrderNPM1.PercentageNPM1Mutation = this.m_PercentageNPM1Mutation;
     panelSetOrderNPM1.Interpretation         = this.m_Interpretation;
     panelSetOrderNPM1.Method           = NPM1Result.Method;
     panelSetOrderNPM1.ReportReferences = NPM1Result.References;
 }
Esempio n. 4
0
        public override void ToXml(XElement document)
        {
            PanelSetOrderNPM1 panelSetOrder = (PanelSetOrderNPM1)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

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

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

            this.AddNextObxElement(result, document, "F");
            result = "  NPM1 Mutation Percentage " + panelSetOrder.PercentageNPM1Mutation;
            this.AddNextObxElement(result, 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("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("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.ReportReferences, document, "F");

            this.AddNextObxElement("", document, "F");
            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }