public void SetResults(ErPrSemiQuantitativeTestOrder panelSetOrderErPrSemiQuantitative)
 {
     panelSetOrderErPrSemiQuantitative.ResultCode = this.m_ResultCode;
     panelSetOrderErPrSemiQuantitative.ReportReferences = this.m_ReportReferences;
     panelSetOrderErPrSemiQuantitative.Method = this.m_Method;
     panelSetOrderErPrSemiQuantitative.Interpretation = this.m_Interpretation;
 }
Exemplo n.º 2
0
 public void SetResults(ErPrSemiQuantitativeTestOrder panelSetOrderErPrSemiQuantitative)
 {
     panelSetOrderErPrSemiQuantitative.ResultCode       = this.m_ResultCode;
     panelSetOrderErPrSemiQuantitative.ReportReferences = this.m_ReportReferences;
     panelSetOrderErPrSemiQuantitative.Method           = this.m_Method;
     panelSetOrderErPrSemiQuantitative.Interpretation   = this.m_Interpretation;
 }
        public override void Render()
        {
            ErPrSemiQuantitativeTestOrder panelSetOrderErPrSemiQuantitative = (ErPrSemiQuantitativeTestOrder)this.m_PanelSetOrder;

            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ERPRSemiQuantitative.6.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("er_result", panelSetOrderErPrSemiQuantitative.ErResult);
            this.ReplaceText("er_intensity", panelSetOrderErPrSemiQuantitative.ErIntensity);
            this.ReplaceText("er_percent_of_cells", panelSetOrderErPrSemiQuantitative.ErPercentageOfCells);
            this.ReplaceText("pr_result", panelSetOrderErPrSemiQuantitative.PrResult);
            this.ReplaceText("pr_intensity", panelSetOrderErPrSemiQuantitative.PrIntensity);
            this.ReplaceText("pr_percent_of_cells", panelSetOrderErPrSemiQuantitative.PrPercentageOfCells);
            this.ReplaceText("report_references", panelSetOrderErPrSemiQuantitative.ReportReferences);
            this.ReplaceText("report_method", panelSetOrderErPrSemiQuantitative.Method);

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(panelSetOrderErPrSemiQuantitative.OrderedOnId);
            if (specimenOrder == null)
            {
                specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection[0];
            }
            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

            this.ReplaceText("specimen_description", specimenOrder.Description);
            this.ReplaceText("specimen_fixation_type", specimenOrder.LabFixation);
            this.ReplaceText("time_to_fixation", specimenOrder.TimeToFixationHourString);

            this.ReplaceText("duration_of_fixation", specimenOrder.FixationDurationString);
            this.ReplaceText("specimen_adequacy", panelSetOrderErPrSemiQuantitative.SpecimenAdequacy);
            this.ReplaceText("date_time_collected", collectionDateTimeString);

            this.ReplaceText("report_interpretation", panelSetOrderErPrSemiQuantitative.Interpretation);

            if (string.IsNullOrEmpty(panelSetOrderErPrSemiQuantitative.ResultComment) == true)
            {
                this.DeleteRow("result_comment");
            }
            else
            {
                this.ReplaceText("result_comment", panelSetOrderErPrSemiQuantitative.ResultComment);
            }

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

            this.SaveReport();
        }
        public void SetResults(ErPrSemiQuantitativeTestOrder panelSetOrderErPrSemiQuantitative, Business.Specimen.Model.SpecimenOrder specimenOrder)
        {
            panelSetOrderErPrSemiQuantitative.ResultCode       = this.m_ResultCode;
            panelSetOrderErPrSemiQuantitative.ReportReferences = this.m_ReportReferences;
            panelSetOrderErPrSemiQuantitative.Method           = this.m_Method;
            panelSetOrderErPrSemiQuantitative.Interpretation   = this.m_Interpretation;

            if (specimenOrder.FixationDuration > 72 || specimenOrder.FixationDuration < 6)
            {
                specimenOrder.FixationComment = m_FixationOutOfBoundsComment;
            }
        }
Exemplo n.º 5
0
        public override void ToXml(XElement document)
        {
            ErPrSemiQuantitativeTestOrder panelSetOrder = (ErPrSemiQuantitativeTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, panelSetOrder, "Estrogen/Progesterone Receptor, Semi-Quantitative");

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Result:", document, "F");

            this.AddNextObxElement("Estrogen Receptor: " + panelSetOrder.ErResult, document, "F");
            this.AddNextObxElement("   Intensity: " + panelSetOrder.ErIntensity, document, "F");
            this.AddNextObxElement("   Percentage Of Cells: " + panelSetOrder.ErPercentageOfCells, document, "F");

            this.AddNextObxElement("Progesterone Receptor:" + panelSetOrder.PrResult, document, "F");
            this.AddNextObxElement("   Intensity: " + panelSetOrder.PrIntensity, document, "F");
            this.AddNextObxElement("   Percentage Of Cells: " + panelSetOrder.PrPercentageOfCells, document, "F");

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

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

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

            this.AddNextObxElement("Specimen Information:", document, "F");
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(panelSetOrder.OrderedOn, panelSetOrder.OrderedOnId);
            this.AddNextObxElement("Specimen Identification: " + specimenOrder.Description, document, "F");
            this.AddNextObxElement("Specimen fixation type: " + specimenOrder.LabFixation, document, "F");
            this.AddNextObxElement("Time to fixation: " + specimenOrder.TimeToFixationHourString, document, "F");
            this.AddNextObxElement("Duration of fixation: " + specimenOrder.FixationDuration, document, "F");
            this.AddNextObxElement("Sample adequacy: " + panelSetOrder.SpecimenAdequacy, document, "F");
            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

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

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Interpretation:", document, "F");
            this.HandleLongString(panelSetOrder.Interpretation, document, "F");

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("Method:", document, "F");
            this.HandleLongString(panelSetOrder.Method, document, "F");

            this.AddNextObxElement("", document, "F");
            this.AddNextObxElement("References:", document, "F");
            this.HandleLongString(panelSetOrder.ReportReferences, document, "F");

            this.AddNextObxElement("", document, "F");
            string locationPerformed = panelSetOrder.GetLocationPerformedComment();

            this.AddNextObxElement(locationPerformed, document, "F");
            this.AddNextObxElement(string.Empty, document, "F");
        }