コード例 #1
0
        public override void Render()
        {
            PanelSetOrderFLT3 panelSetOrderFLT3 = (PanelSetOrderFLT3)this.m_PanelSetOrder;

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

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

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

            this.ReplaceText("report_result", panelSetOrderFLT3.Result);
            this.ReplaceText("itd_mutation", panelSetOrderFLT3.ITDMutation);
            this.ReplaceText("itd_percentage", panelSetOrderFLT3.ITDPercentage);
            this.ReplaceText("tkd_mutation", panelSetOrderFLT3.TKDMutation);
            this.ReplaceText("report_interpretation", panelSetOrderFLT3.Interpretation);
            this.ReplaceText("report_method", panelSetOrderFLT3.Method);
            this.ReplaceText("report_references", panelSetOrderFLT3.References);

            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_date", BaseData.GetShortDateString(this.m_PanelSetOrder.ReferenceLabFinalDate));
            this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.ReferenceLabSignature);

            this.SaveReport();
        }
コード例 #2
0
        public override void ToXml(XElement document)
        {
            PanelSetOrderFLT3 panelSetOrder = (PanelSetOrderFLT3)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

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

            this.AddNextNteElement("FLT3 Mutation Analysis", document);
            this.AddNextNteElement("Master Accession #: " + panelSetOrder.MasterAccessionNo, document);
            this.AddNextNteElement("Report #: " + panelSetOrder.ReportNo, document);
            this.AddBlankNteElement(document);

            string result = "Result: " + panelSetOrder.Result;

            this.AddNextNteElement(result, document);
            result = "  ITD Mutation " + panelSetOrder.ITDMutation;
            this.AddNextNteElement(result, document);
            result = "  ITD Percentage " + panelSetOrder.ITDPercentage;
            this.AddNextNteElement(result, document);
            result = "  TKD Mutation " + panelSetOrder.TKDMutation;
            this.AddNextNteElement(result, document);

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

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

            this.AddNextNteElement("Specimen Information:", document);
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            this.AddNextNteElement("Specimen Identification: " + specimenOrder.Description, document);
            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

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

            this.AddBlankNteElement(document);
            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);
            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.HandleLongString(locationPerformed, document);
            this.AddBlankNteElement(document);
        }
コード例 #3
0
 public void SetResults(PanelSetOrderFLT3 panelSetOrderFLT3)
 {
     panelSetOrderFLT3.Result         = this.m_Result;
     panelSetOrderFLT3.ITDMutation    = this.m_ITDMutation;
     panelSetOrderFLT3.ITDPercentage  = this.m_ITDPercentage;
     panelSetOrderFLT3.TKDMutation    = this.m_TKDMutation;
     panelSetOrderFLT3.Interpretation = this.m_Interpretation;
     panelSetOrderFLT3.Method         = FLT3Result.Method;
     panelSetOrderFLT3.References     = FLT3Result.References;
 }
コード例 #4
0
ファイル: FLT3Result.cs プロジェクト: ericramses/YPILIS
 public void SetResults(PanelSetOrderFLT3 panelSetOrderFLT3)
 {
     panelSetOrderFLT3.Result = this.m_Result;
     panelSetOrderFLT3.ITDMutation = this.m_ITDMutation;
     panelSetOrderFLT3.ITDPercentage = this.m_ITDPercentage;
     panelSetOrderFLT3.TKDMutation = this.m_TKDMutation;
     panelSetOrderFLT3.Interpretation = this.m_Interpretation;
     panelSetOrderFLT3.Method = FLT3Result.Method;
     panelSetOrderFLT3.ReportReferences = FLT3Result.References;
 }