Esempio n. 1
0
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ROS1ByFISH.2.xml";
            base.OpenTemplate();

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

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

            YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder ros1ByFISHTestOrder = (YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTestOrder) this.m_PanelSetOrder;

            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(ros1ByFISHTestOrder.OrderedOnId);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(ros1ByFISHTestOrder.OrderedOn, ros1ByFISHTestOrder.OrderedOnId);

            string specimenDescription = specimenOrder.Description;

            if (aliquotOrder != null)
            {
                specimenDescription += ", Block " + aliquotOrder.Label;
            }
            this.ReplaceText("specimen_description", specimenDescription);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            this.SetXMLNodeParagraphData("report_result", ros1ByFISHTestOrder.Result);
            this.SetXMLNodeParagraphData("report_interpretation", ros1ByFISHTestOrder.Interpretation);
            this.SetXMLNodeParagraphData("report_references", ros1ByFISHTestOrder.ReportReferences);
            this.SetXMLNodeParagraphData("reference_range", ros1ByFISHTestOrder.ReferenceRange);
            this.SetXMLNodeParagraphData("nuclei_scored", ros1ByFISHTestOrder.NucleiScored);
            this.ReplaceText("probeset_details", ros1ByFISHTestOrder.ProbeSetDetail);
            this.SetXMLNodeParagraphData("report_method", ros1ByFISHTestOrder.Method);
            this.SetXMLNodeParagraphData("tumor_nuclei_percentage", ros1ByFISHTestOrder.TumorNucleiPercentage);

            if (string.IsNullOrEmpty(this.m_PanelSetOrder.ReferenceLabSignature) == false)
            {
                this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature);
                this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate));
            }
            else
            {
                this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature);
                this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate));
            }

            this.ReplaceText("report_disclaimer", ros1ByFISHTestOrder.ReportDisclaimer);

            this.SaveReport();
        }
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\CSF3RMutationAnalysis.2.xml";
            base.OpenTemplate();

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

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

            CSF3RMutationAnalysisTestOrder testOrder = (CSF3RMutationAnalysisTestOrder)this.m_PanelSetOrder;

            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(testOrder.OrderedOnId);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId);

            string specimenDescription = specimenOrder.Description;

            if (aliquotOrder != null)
            {
                specimenDescription += ", Block " + aliquotOrder.Label;
            }
            this.ReplaceText("specimen_description", specimenDescription);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            if (string.IsNullOrEmpty(testOrder.Comment) == true)
            {
                this.DeleteRow("report_comment");
            }
            else
            {
                this.SetXMLNodeParagraphData("report_comment", testOrder.Comment);
            }

            this.SetXMLNodeParagraphData("report_result", testOrder.Result);
            this.SetXMLNodeParagraphData("report_interpretation", testOrder.Interpretation);
            this.SetXMLNodeParagraphData("report_method", testOrder.Method);
            this.SetXMLNodeParagraphData("report_references", testOrder.ReportReferences);

            this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate));
            this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature);
            this.ReplaceText("report_disclaimer", testOrder.ASR);

            this.SaveReport();
        }
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\CSF3RMutationAnalysis.1.xml";
            base.OpenTemplate();

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

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

            CSF3RMutationAnalysisTestOrder testOrder = (CSF3RMutationAnalysisTestOrder)this.m_PanelSetOrder;

            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(testOrder.OrderedOnId);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(testOrder.OrderedOn, testOrder.OrderedOnId);

            string specimenDescription = specimenOrder.Description;
            if (aliquotOrder != null) specimenDescription += ", Block " + aliquotOrder.Label;
            this.ReplaceText("specimen_description", specimenDescription);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);
            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            if (string.IsNullOrEmpty(testOrder.Comment) == true)
            {
                this.DeleteRow("report_comment");
            }
            else
            {
                this.SetXMLNodeParagraphData("report_comment", testOrder.Comment);
            }

            this.SetXMLNodeParagraphData("report_result", testOrder.Result);
            this.SetXMLNodeParagraphData("report_interpretation", testOrder.Interpretation);
            this.SetXMLNodeParagraphData("report_method", testOrder.Method);
            this.SetXMLNodeParagraphData("report_references", testOrder.ReportReferences);

            this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate));
            this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature);
            this.ReplaceText("report_disclaimer", testOrder.ASR);

            this.SaveReport();
        }
        public override void Render()
        {
            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ALKForNSCLCByFISH.2.xml";
            base.OpenTemplate();

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

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

            YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder alkForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)this.m_PanelSetOrder;

            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(alkForNSCLCByFISHTestOrder.OrderedOnId);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(alkForNSCLCByFISHTestOrder.OrderedOn, alkForNSCLCByFISHTestOrder.OrderedOnId);

            string specimenDescription = specimenOrder.Description;
            if(aliquotOrder != null) specimenDescription += ", Block " + aliquotOrder.Label;
            this.ReplaceText("specimen_description", specimenDescription);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);
            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            this.SetXMLNodeParagraphData("report_result", alkForNSCLCByFISHTestOrder.Result);
            this.SetXMLNodeParagraphData("report_interpretation", alkForNSCLCByFISHTestOrder.Interpretation);
            this.SetXMLNodeParagraphData("report_references", alkForNSCLCByFISHTestOrder.References);
            this.SetXMLNodeParagraphData("reference_range", alkForNSCLCByFISHTestOrder.ReferenceRange);
            this.SetXMLNodeParagraphData("nuclei_scored", alkForNSCLCByFISHTestOrder.NucleiScored);
            this.SetXMLNodeParagraphData("tumor_nuclei_percentage", alkForNSCLCByFISHTestOrder.TumorNucleiPercentage);
            this.SetXMLNodeParagraphData("probeset_details", alkForNSCLCByFISHTestOrder.ProbeSetDetail);
            this.SetXMLNodeParagraphData("report_method", alkForNSCLCByFISHTestOrder.Method);

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

            string locationPerformed = this.m_PanelSetOrder.GetLocationPerformedComment();
            this.ReplaceText("report_disclaimer", locationPerformed);

            this.SaveReport();
        }