public void SetResults(BCellClonalityByPCRTestOrder testOrder)
 {
     testOrder.Result         = this.m_Result;
     testOrder.ResultCode     = this.m_ResultCode;
     testOrder.Interpretation = this.m_Interpretation;
     testOrder.Method         = this.m_Method;
     testOrder.References     = this.m_References;
     testOrder.ASRComment     = this.m_ASRComment;
 }
 public void SetResults(BCellClonalityByPCRTestOrder testOrder)
 {
     testOrder.Result = this.m_Result;
     testOrder.ResultCode = this.m_ResultCode;
     testOrder.Interpretation = this.m_Interpretation;
     testOrder.Method = this.m_Method;
     testOrder.ReportReferences = this.m_References;
     testOrder.ASRComment = this.m_ASRComment;
 }
        public override void Render()
        {
            BCellClonalityByPCRTestOrder testOrder = (BCellClonalityByPCRTestOrder)this.m_PanelSetOrder;

            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\BCellClonality.1.xml";

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

            if (this.m_PanelSetOrder.Final)
            {
                this.ReplaceText("pathologist_signature", this.m_PanelSetOrder.Signature);
            }

            this.SetXmlNodeData("report_result", testOrder.Result);

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = (YellowstonePathology.Business.Specimen.Model.SpecimenOrder) this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrder.OrderedOnId);
            this.ReplaceText("specimen_description", specimenOrder.Description);

            string collectionDateTimeString = YellowstonePathology.Business.Helper.DateTimeExtensions.CombineDateAndTime(specimenOrder.CollectionDate, specimenOrder.CollectionTime);

            this.SetXmlNodeData("date_time_collected", collectionDateTimeString);

            if (string.IsNullOrEmpty(testOrder.Comment) == true)
            {
                this.DeleteRow("result_comment");
            }
            else
            {
                this.ReplaceText("result_comment", testOrder.Comment);
            }
            this.ReplaceText("report_interpretation", testOrder.Interpretation);
            this.ReplaceText("tumor_nuclei_percent", testOrder.TumorNucleiPercent);
            this.ReplaceText("report_method", testOrder.Method);
            this.ReplaceText("report_references", testOrder.ReportReferences);
            this.ReplaceText("asr_comment", testOrder.ASRComment);

            YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(m_PanelSetOrder.ReportNo);
            YellowstonePathology.Business.Document.AmendmentSection           amendment           = new YellowstonePathology.Business.Document.AmendmentSection();
            amendment.SetAmendment(amendmentCollection, this.m_ReportXml, this.m_NameSpaceManager, true);

            this.SaveReport();
        }
 public BCellClonalityByPCRResult GetResultFromTests(BCellClonalityByPCRTestOrder testOrder)
 {
     BCellClonalityByPCRResult result = new BCellClonalityByPCRResult();
     if (testOrder.BCellFrameWork1.ToUpper().StartsWith("CLONAL") == true ||
         testOrder.BCellFrameWork2.ToUpper().StartsWith("CLONAL") == true ||
         testOrder.BCellFrameWork3.ToUpper().StartsWith("CLONAL") == true)
     {
         result = new BCellClonalityByPCRPositiveResult();
     }
     else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("NOT CLONAL") == true ||
         testOrder.BCellFrameWork2.ToUpper().StartsWith("NOT CLONAL") == true ||
         testOrder.BCellFrameWork3.ToUpper().StartsWith("NOT CLONAL") == true)
     {
         result = new BCellClonalityByPCRNegativeResult();
     }
     else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("INDETERMINATE") == true ||
         testOrder.BCellFrameWork2.ToUpper().StartsWith("INDETERMINATE") == true ||
         testOrder.BCellFrameWork3.ToUpper().StartsWith("INDETERMINATE") == true)
     {
         result = new BCellClonalityByPCRIndeterminateResult();
     }
     return result;
 }
示例#5
0
        public BCellClonalityByPCRResult GetResultFromTests(BCellClonalityByPCRTestOrder testOrder)
        {
            BCellClonalityByPCRResult result = new BCellClonalityByPCRResult();

            if (testOrder.BCellFrameWork1.ToUpper().StartsWith("CLONAL") == true ||
                testOrder.BCellFrameWork2.ToUpper().StartsWith("CLONAL") == true ||
                testOrder.BCellFrameWork3.ToUpper().StartsWith("CLONAL") == true)
            {
                result = new BCellClonalityByPCRPositiveResult();
            }
            else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("NOT CLONAL") == true ||
                     testOrder.BCellFrameWork2.ToUpper().StartsWith("NOT CLONAL") == true ||
                     testOrder.BCellFrameWork3.ToUpper().StartsWith("NOT CLONAL") == true)
            {
                result = new BCellClonalityByPCRNegativeResult();
            }
            else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("INDETERMINATE") == true ||
                     testOrder.BCellFrameWork2.ToUpper().StartsWith("INDETERMINATE") == true ||
                     testOrder.BCellFrameWork3.ToUpper().StartsWith("INDETERMINATE") == true)
            {
                result = new BCellClonalityByPCRIndeterminateResult();
            }
            return(result);
        }