public PapCorrelationIsRequiredAudit GetPapCorrelationAudit()
        {
            PapCorrelationIsRequiredAudit result = null;

            foreach (Audit audit in this)
            {
                if (audit.GetType() == typeof(PapCorrelationIsRequiredAudit))
                {
                    result = audit as PapCorrelationIsRequiredAudit;
                }
            }
            return(result);
        }
 public override void Run()
 {
     this.m_Status = AuditStatusEnum.OK;
     PapCorrelationIsRequiredAudit papCorrelationAudit = new PapCorrelationIsRequiredAudit(this.m_AccessionOrder);
     papCorrelationAudit.Run();
     if (papCorrelationAudit.Status == AuditStatusEnum.Failure)
     {
         YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
         if (surgicalTestOrder.PapCorrelation == 0)
         {
             this.m_Status = AuditStatusEnum.Failure;
         }
     }
 }
        public override void Run()
        {
            this.m_Status = AuditStatusEnum.OK;
            PapCorrelationIsRequiredAudit papCorrelationAudit = new PapCorrelationIsRequiredAudit(this.m_AccessionOrder);

            papCorrelationAudit.Run();
            if (papCorrelationAudit.Status == AuditStatusEnum.Failure)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
                if (surgicalTestOrder.PapCorrelation == 0)
                {
                    this.m_Status = AuditStatusEnum.Failure;
                }
            }
        }