Esempio n. 1
0
 public void SetResults(JAK2V617FTestOrder panelSetOrderJAK2V617F)
 {
     panelSetOrderJAK2V617F.Interpretation = this.m_Interpretation;
     panelSetOrderJAK2V617F.Comment        = this.m_Comment;
     panelSetOrderJAK2V617F.Reference      = References;
     panelSetOrderJAK2V617F.Method         = Method;
 }
Esempio n. 2
0
 public void SetResults(JAK2V617FTestOrder panelSetOrderJAK2V617F)
 {
     panelSetOrderJAK2V617F.Interpretation = this.m_Interpretation;
     panelSetOrderJAK2V617F.Comment = this.m_Comment;
     panelSetOrderJAK2V617F.Reference = References;
     panelSetOrderJAK2V617F.Method = Method;
 }
        public JAK2V617FResult GetResult(JAK2V617FTestOrder panelSetOrder)
        {
            JAK2V617FResult result = null;

            foreach (JAK2V617FResult jak2V617Result in this)
            {
                if (jak2V617Result.ResultCode == panelSetOrder.ResultCode)
                {
                    result = jak2V617Result;
                    break;
                }
            }
            return(result);
        }
Esempio n. 4
0
        public override void ToXml(XElement document)
        {
            JAK2V617FTestOrder panelSetOrder = (JAK2V617FTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

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

            this.AddNextNteElement("JAK2 Mutation V617F", document);
            this.AddNextNteElement("Report #: " + panelSetOrder.ReportNo, document);
            this.AddBlankNteElement(document);

            this.AddNextNteElement("Result: " + panelSetOrder.Result, document);
            this.AddBlankNteElement(document);

            this.AddNextNteElement("Pathologist: " + panelSetOrder.ReferenceLabSignature, document);
            if (panelSetOrder.FinalTime.HasValue == true)
            {
                this.AddNextNteElement("E-signed " + panelSetOrder.ReferenceLabFinalDate.Value.ToString("MM/dd/yyyy HH:mm"), document);
            }
            this.AddBlankNteElement(document);
            this.AddAmendments(document, panelSetOrder, this.m_AccessionOrder);

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

            this.AddNextNteElement("Method: ", document);
            string method = panelSetOrder.Method;

            this.HandleLongString(method, document);
            this.AddBlankNteElement(document);

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

            this.AddNextNteElement(panelSetOrder.Disclosure, document);
            this.AddBlankNteElement(document);

            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextNteElement(locationPerformed, document);
            this.AddBlankNteElement(document);
        }
Esempio n. 5
0
        public override void Render()
        {
            JAK2V617FTestOrder panelSetOrderJAK2V617F = (JAK2V617FTestOrder)this.m_PanelSetOrder;

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

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

            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, true);

            string reportResult = panelSetOrderJAK2V617F.Result;

            if (string.IsNullOrEmpty(reportResult))
            {
                reportResult = string.Empty;
            }

            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_result", reportResult);
            this.ReplaceText("result_comment", panelSetOrderJAK2V617F.Comment);
            this.ReplaceText("report_interpretation", panelSetOrderJAK2V617F.Interpretation);
            this.ReplaceText("report_method", panelSetOrderJAK2V617F.Method);
            this.ReplaceText("report_reference", panelSetOrderJAK2V617F.Reference);
            this.ReplaceText("disclosure_statement", panelSetOrderJAK2V617F.Disclosure);

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

            this.SaveReport();
        }