Exemplo n.º 1
0
 public HPV1618ByPCRResultPath(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_HPV1618ByPCRTestOrder = (YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
 }
Exemplo n.º 2
0
 public void SetResult(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder)
 {
     panelSetOrder.ResultCode     = this.m_ResultCode;
     panelSetOrder.HPV16Result    = this.m_HPV16Result;
     panelSetOrder.HPV18Result    = this.m_HPV18Result;
     panelSetOrder.Method         = this.m_Method;
     panelSetOrder.References     = this.m_References;
     panelSetOrder.Interpretation = this.m_SquamousCellCarcinomaInterpretation;
 }
Exemplo n.º 3
0
 public HPV1618ByPCRResultPath(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_HPV1618ByPCRTestOrder = (YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo);
 }
Exemplo n.º 4
0
        public static YellowstonePathology.Business.Rules.MethodResult IsOkToAccept(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder)
        {
            YellowstonePathology.Business.Rules.MethodResult result = panelSetOrder.IsOkToAccept();

            if (result.Success == true)
            {
                if (string.IsNullOrEmpty(panelSetOrder.ResultCode) == true)
                {
                    result.Success = false;
                    result.Message = "The results cannot be accepted because there is no result.";
                }
            }
            return(result);
        }
        public HPV1618ByPCRResultPage(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder hpv1618ByPCRTestOrder,
                                      YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                      YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                      YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_HPV1618ByPCRTestOrder = hpv1618ByPCRTestOrder;
            this.m_AccessionOrder        = accessionOrder;
            this.m_SystemIdentity        = systemIdentity;
            this.m_PageNavigator         = pageNavigator;

            this.m_IndicationList = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.GetIndicationList();
            this.m_PageHeaderText = "HPV Genotypes 16 and 18 By PCR Results For: " + this.m_AccessionOrder.PatientDisplayName;

            InitializeComponent();

            DataContext = this;
        }
        public HPV1618ByPCRResultPage(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder hpv1618ByPCRTestOrder,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_HPV1618ByPCRTestOrder = hpv1618ByPCRTestOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_PageNavigator = pageNavigator;

            this.m_IndicationList = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.GetIndicationList();
            this.m_PageHeaderText = "HPV Genotypes 16 and 18 By PCR Results For: " + this.m_AccessionOrder.PatientDisplayName;

            InitializeComponent();

            DataContext = this;
        }
Exemplo n.º 7
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", 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);

            YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(panelSetOrder.OrderedOnId);
            this.AddNextNteElement("Specimen: " + orderTarget.GetDescription(), document);
            this.AddBlankNteElement(document);

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

            this.AddNextNteElement("References:", document);
            this.HandleLongString(panelSetOrder.References, 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);
        }
        public HPV1618ByPCRResultPage(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder hpv1618ByPCRTestOrder,
                                      YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                      YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                      YellowstonePathology.UI.Navigation.PageNavigator pageNavigator) : base(hpv1618ByPCRTestOrder, accessionOrder)
        {
            this.m_HPV1618ByPCRTestOrder = hpv1618ByPCRTestOrder;
            this.m_AccessionOrder        = accessionOrder;
            this.m_SystemIdentity        = systemIdentity;
            this.m_PageNavigator         = pageNavigator;

            this.m_IndicationList = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.GetIndicationList();
            this.m_PageHeaderText = "HPV Genotypes 16 and 18 By PCR Results For: " + this.m_AccessionOrder.PatientDisplayName;

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public HPV1618ByPCRResultPage(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder hpv1618ByPCRTestOrder,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
            : base(hpv1618ByPCRTestOrder, accessionOrder)
        {
            this.m_HPV1618ByPCRTestOrder = hpv1618ByPCRTestOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_PageNavigator = pageNavigator;

            this.m_IndicationList = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.GetIndicationList();
            this.m_PageHeaderText = "HPV Genotypes 16 and 18 By PCR Results For: " + this.m_AccessionOrder.PatientDisplayName;

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
Exemplo n.º 10
0
        public static YellowstonePathology.Business.Rules.MethodResult IsOkToSetResult(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder)
        {
            YellowstonePathology.Business.Rules.MethodResult result = new Rules.MethodResult();

            if (string.IsNullOrEmpty(panelSetOrder.Indication) == true)
            {
                result.Success = false;
                result.Message = "You must choose an indication first.";
            }
            else if (panelSetOrder.Accepted == true)
            {
                result.Success = false;
                result.Message = "The results cannot be set because they have already been accepted.";
            }
            return(result);
        }
Exemplo n.º 11
0
 public virtual void FinalizeResults(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
 {
     panelSetOrder.Finalize();
 }
Exemplo n.º 12
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);
        }
Exemplo n.º 13
0
        public override void Render()
        {
            YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder = (YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder) this.m_PanelSetOrder;

            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\HPV1618GenotypingByPCR.1.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.Document.AmendmentSection amendmentSection = new YellowstonePathology.Business.Document.AmendmentSection();
            amendmentSection.SetAmendment(this.m_PanelSetOrder.AmendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, false);

            base.ReplaceText("hpv16_result", panelSetOrder.HPV16Result);
            base.ReplaceText("hpv18_result", panelSetOrder.HPV18Result);

            if (panelSetOrder.Indication == YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRIndication.SquamousCellCarcinoma)
            {
                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);

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

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

            this.SaveReport();
        }