Beispiel #1
0
        public override void ToXml(XElement document)
        {
            ReviewForAdditionalTestingTestOrder reviewForAdditionalTestingTestOrder = (ReviewForAdditionalTestingTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_ReportNo);

            this.AddHeader(document, reviewForAdditionalTestingTestOrder, reviewForAdditionalTestingTestOrder.PanelSetName);
            this.AddNextObxElement("", document, "F");
            this.HandleLongString("Comment: " + reviewForAdditionalTestingTestOrder.Comment, document, "F");
            this.AddNextObxElement("", document, "F");
            this.AddAmendments(document);
            this.AddNextObxElement("", document, "F");
        }
        public override void Render()
        {
            ReviewForAdditionalTestingTestOrder reviewForAdditionalTestingTestOrder = (YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingTestOrder) this.m_PanelSetOrder;

            this.m_TemplateName = @"\\CFileServer\Documents\ReportTemplates\XmlTemplates\ReviewForAdditionalTesting.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_comment", reviewForAdditionalTestingTestOrder.Comment);

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

            this.SaveReport();
        }
Beispiel #3
0
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToSetResults(ReviewForAdditionalTestingTestOrder testOrder)
 {
     YellowstonePathology.Business.Rules.MethodResult result = new Business.Rules.MethodResult();
     if (testOrder.Final == true)
     {
         result.Success = false;
         result.Message = "Results can not be set because the case is already final.";
     }
     return(result);
 }
Beispiel #4
0
 public void SetResults(ReviewForAdditionalTestingTestOrder testOrder)
 {
     testOrder.Result  = this.m_Result;
     testOrder.Comment = this.m_Comment;
 }