Exemplo n.º 1
0
        public override void Render()
        {
            YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder panelSetOrder = (YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder) this.m_PanelSetOrder;

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

            base.SetDemographicsV2();

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrder.OrderedOn, this.m_PanelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = specimenOrder.AliquotOrderCollection.GetByAliquotOrderId(this.m_PanelSetOrder.OrderedOnId);
            string description = specimenOrder.Description + " - Block " + aliquotOrder.GetDescription();

            base.ReplaceText("specimen_description", 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, false);

            base.ReplaceText("hpvdna_result", panelSetOrder.HPVDNAResult);
            if (panelSetOrder.HPV6Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv6_result");
            }
            else
            {
                base.ReplaceText("hpv6_result", panelSetOrder.HPV6Result);
            }

            if (panelSetOrder.HPV16Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv16_result");
            }
            else
            {
                base.ReplaceText("hpv16_result", panelSetOrder.HPV16Result);
            }

            if (panelSetOrder.HPV18Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv18_result");
            }
            else
            {
                base.ReplaceText("hpv18_result", panelSetOrder.HPV18Result);
            }

            if (panelSetOrder.HPV31Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv31_result");
            }
            else
            {
                base.ReplaceText("hpv31_result", panelSetOrder.HPV31Result);
            }

            if (panelSetOrder.HPV33Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv33_result");
            }
            else
            {
                base.ReplaceText("hpv33_result", panelSetOrder.HPV33Result);
            }

            if (panelSetOrder.HPV45Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv45_result");
            }
            else
            {
                base.ReplaceText("hpv45_result", panelSetOrder.HPV45Result);
            }

            if (panelSetOrder.HPV58Result == PanelSetOrder.NotPerformedResult)
            {
                base.DeleteRow("hpv58_result");
            }
            else
            {
                base.ReplaceText("hpv58_result", panelSetOrder.HPV58Result);
            }

            if (panelSetOrder.Indication == YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorIndication.SquamousCellCarcinomaHeadAndNeck)
            {
                base.ReplaceText("report_interpretation_header", "Interpretation");
                base.ReplaceText("report_interpretation", panelSetOrder.Interpretation);
                base.ReplaceText("pathologist_signature", panelSetOrder.Signature);

                if (panelSetOrder.FinalTime.HasValue == true)
                {
                    string esignedHeader = "*** E-signed " + panelSetOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm") + "***";
                    base.ReplaceText("esigned_header", esignedHeader);
                }
            }
            else
            {
                base.DeleteRow("report_interpretation_header");
                base.DeleteRow("report_interpretation");
                base.DeleteRow("pathologist_signature");
                base.DeleteRow("esigned_header");
            }

            if (string.IsNullOrEmpty(panelSetOrder.Comment) == false)
            {
                base.ReplaceText("report_comment", panelSetOrder.Comment);
            }
            else
            {
                base.DeleteRow("report_comment");
            }

            base.ReplaceText("report_method", panelSetOrder.Method);
            base.ReplaceText("report_references", panelSetOrder.ReportReferences);
            this.ReplaceText("report_date", BaseData.GetShortDateString(this.m_PanelSetOrder.FinalDate));
            this.SetXmlNodeData("pathologist_signature", this.m_PanelSetOrder.Signature);

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

            this.SaveReport();
        }
Exemplo n.º 2
0
        public override void ToXml(XElement document)
        {
            HPV1618SolidTumorTestOrder panelSetOrder = (HPV1618SolidTumorTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "HPV Genotypes 16 and 18 Solid Tumor");
            this.AddNextObxElement("", document, "F");

            this.AddNextObxElement("HPV DNA: " + panelSetOrder.HPVDNAResult, document, "F");
            this.AddNextObxElement("HPV DNA Reference: Not Detected", document, "F");
            this.AddNextObxElement("", document, "F");
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-6/11 Result: " + panelSetOrder.HPV6Result, document, "F");
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-16 Result: " + panelSetOrder.HPV16Result, document, "F");
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-18 Result: " + panelSetOrder.HPV18Result, document, "F");
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-31 Result: " + panelSetOrder.HPV31Result, document, "F");
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-33 Result: " + panelSetOrder.HPV33Result, document, "F");
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-45 Result: " + panelSetOrder.HPV45Result, document, "F");
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextObxElement("HPV-58 Result: " + panelSetOrder.HPV58Result, document, "F");
            }
            this.AddNextObxElement("", document, "F");

            if (panelSetOrder.Indication == YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.SquamousCellCarcinoma)
            {
                this.AddNextObxElement(panelSetOrder.Signature, document, "F");
                this.AddNextObxElement("*** E-signed " + panelSetOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm") + "***", document, "F");
            }

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

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = specimenOrder.AliquotOrderCollection.GetByAliquotOrderId(panelSetOrder.OrderedOnId);
            string description = specimenOrder.Description + " - Block " + aliquotOrder.GetDescription();

            this.AddNextObxElement("Specimen: " + description, document, "F");
            this.AddNextObxElement("", document, "F");

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

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

            if (panelSetOrder.Indication == YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.SquamousCellCarcinoma)
            {
                this.AddNextObxElement("Interpretation:", document, "F");
                this.AddNextObxElement(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.HandleLongString(panelSetOrder.ReportReferences, document, "F");
            this.AddNextObxElement("", document, "F");

            this.HandleLongString("This test was developed and its performance characteristics determined by Yellowstone Pathology Institute, Inc.  It has not been cleared or approved by the U.S. Food and Drug Administration. The FDA has determined that such clearance or approval is not necessary.  This test is used for clinical purposes.  It should not be regarded as investigational or for research.  This laboratory is certified under the Clinical Laboratory Improvement Amendments of 1988 (CLIA-88) as qualified to perform high complexity clinical laboratory testing.", document, "F");
            this.AddNextObxElement(string.Empty, document, "F");

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.HandleLongString(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }
Exemplo n.º 3
0
        public override void ToXml(XElement document)
        {
            YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder = (YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

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

            this.AddNextNteElement("HPV - 16 / 18 Genotyping By PCR", document);
            this.AddNextNteElement("Master Accession #: " + panelSetOrder.MasterAccessionNo, document);
            this.AddNextNteElement("Report #: " + panelSetOrder.ReportNo, document);
            this.AddBlankNteElement(document);

            string hpv16ResultText = "HPV-16 Result: " + panelSetOrder.HPV16Result;

            this.AddNextNteElement(hpv16ResultText, document);
            this.AddNextNteElement("HPV-16 Reference: Negative", document);
            this.AddBlankNteElement(document);

            string hpv18ResultText = "HPV-18 Result: " + panelSetOrder.HPV18Result;

            this.AddNextNteElement(hpv18ResultText, document);
            this.AddNextNteElement("HPV-18 Reference: Negative", document);
            this.AddBlankNteElement(document);

            if (string.IsNullOrEmpty(panelSetOrder.Comment) == false)
            {
                this.AddNextNteElement("Comment:", document);
                this.HandleLongString(panelSetOrder.Comment, document);
            }

            if (panelSetOrder.Indication == YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.SquamousCellCarcinoma)
            {
                this.AddNextNteElement(panelSetOrder.Signature, document);
                this.AddNextNteElement("*** E-signed " + panelSetOrder.FinalTime.Value.ToString("MM/dd/yyyy HH:mm") + "***", document);
            }

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

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = specimenOrder.AliquotOrderCollection.GetByAliquotOrderId(panelSetOrder.OrderedOnId);
            string description = specimenOrder.Description + " - Block " + aliquotOrder.GetDescription();

            this.AddNextNteElement("Specimen: " + description, document);
            this.AddBlankNteElement(document);

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

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

            if (panelSetOrder.Indication == YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.SquamousCellCarcinoma)
            {
                this.AddNextNteElement("Interpretation:", document);
                this.HandleLongString(panelSetOrder.Interpretation, document);
                this.AddBlankNteElement(document);
            }

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

            this.AddNextNteElement("References:", document);
            this.AddNextNteElement("Highly Effective Detection of Human Papillomavirus 16 and 18 DNA by a Testing Algorithm Combining Broad - Spectrum and Type - Specific PCR J Clin Microbiol. 2006 September; 44(9): 3292–3298", document);
            this.AddBlankNteElement(document);

            this.AddNextNteElement("This test was developed and its performance characteristics determined by Yellowstone Pathology Institute, Inc.  It has not been cleared or approved by the U.S. Food and Drug Administration. The FDA has determined that such clearance or approval is not necessary.  This test is used for clinical purposes.  It should not be regarded as investigational or for research.  This laboratory is certified under the Clinical Laboratory Improvement Amendments of 1988 (CLIA-88) as qualified to perform high complexity clinical laboratory testing.", document);

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextNteElement(locationPerformed, document);
            this.AddBlankNteElement(document);
        }