Exemplo n.º 1
0
        public HPV1618SolidTumorResultPage(YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder hpv1618SolidTumorTestOrder,
                                           YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                           YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                           YellowstonePathology.UI.Navigation.PageNavigator pageNavigator) : base(hpv1618SolidTumorTestOrder, accessionOrder)
        {
            this.m_HPV1618SolidTumorTestOrder = hpv1618SolidTumorTestOrder;
            this.m_AccessionOrder             = accessionOrder;
            this.m_SystemIdentity             = systemIdentity;
            this.m_PageNavigator = pageNavigator;

            this.m_IndicationList = YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorIndication.GetIndicationList();
            this.m_PageHeaderText = "HPV 16 18/45 Solid Tumor Results For: " + this.m_AccessionOrder.PatientDisplayName;
            this.m_ResultsList    = new List <string>();
            this.m_ResultsList.Add(YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder.NotDetectedResult);
            this.m_ResultsList.Add(YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder.DetectedResult);
            this.m_ResultsList.Add(YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder.NotPerformedResult);

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
 public HPV1618SolidTumorResultPath(string reportNo,
                                    YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                    YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                                    System.Windows.Window window)
     : base(pageNavigator, window)
 {
     this.m_AccessionOrder             = accessionOrder;
     this.m_HPV1618SolidTumorTestOrder = (YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
 }
        public override void ToXml(XElement document)
        {
            YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder panelSetOrder = (YellowstonePathology.Business.Test.HPV1618SolidTumor.HPV1618SolidTumorTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

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

            this.AddNextNteElement("HPV Genotypes 16 and 18 Solid Tumor", document);
            this.AddNextNteElement("Master Accession #: " + panelSetOrder.MasterAccessionNo, document);
            this.AddNextNteElement("Report #: " + panelSetOrder.ReportNo, document);
            this.AddBlankNteElement(document);

            this.AddNextNteElement("HPV DNA: " + panelSetOrder.HPVDNAResult, document);
            this.AddNextNteElement("HPV DNA Reference: Not Detected", document);
            this.AddBlankNteElement(document);
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-6/11 Result: " + panelSetOrder.HPV6Result, document);
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-16 Result: " + panelSetOrder.HPV16Result, document);
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-18 Result: " + panelSetOrder.HPV18Result, document);
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-31 Result: " + panelSetOrder.HPV31Result, document);
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-33 Result: " + panelSetOrder.HPV33Result, document);
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-45 Result: " + panelSetOrder.HPV45Result, document);
            }
            if (panelSetOrder.HPV6Result != PanelSetOrder.NotPerformedResult)
            {
                this.AddNextNteElement("HPV-58 Result: " + panelSetOrder.HPV58Result, 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.HandleLongString(panelSetOrder.ReportReferences, 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.HandleLongString(locationPerformed, document);
            this.AddBlankNteElement(document);
        }
Exemplo n.º 4
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();
        }