public override void Run()
        {
            this.m_Status = AuditStatusEnum.OK;
            this.m_Message.Clear();

            YellowstonePathology.Business.Test.PNH.PNHTest pnhTest = new Test.PNH.PNHTest();
            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(pnhTest.PanelSetId) == false)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
                if (this.AllCPTCodesArePresent(surgicalTestOrder.PanelSetOrderCPTCodeCollection) == true)
                {
                    foreach (YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen in surgicalTestOrder.SurgicalSpecimenCollection)
                    {
                        if (this.IndicatorExists(surgicalSpecimen.Diagnosis) == true)
                        {
                            this.m_Status = AuditStatusEnum.Failure;
                            this.m_Message.Append(pnhTest.PanelSetName);
                            break;
                        }
                    }
                }
            }
        }
Example #2
0
        public override void Run()
        {
            this.m_Status = AuditStatusEnum.OK;
            this.m_Message.Clear();

            YellowstonePathology.Business.Test.PNH.PNHTest pnhTest = new Test.PNH.PNHTest();
            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(pnhTest.PanelSetId) == false)
            {
                YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
                if (this.AllCPTCodesArePresent(surgicalTestOrder.PanelSetOrderCPTCodeCollection) == true)
                {
                    foreach (YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen in surgicalTestOrder.SurgicalSpecimenCollection)
                    {
                        if (this.IndicatorExists(surgicalSpecimen.Diagnosis) == true)
                        {
                            this.m_Status = AuditStatusEnum.Failure;
                            this.m_Message.Append(pnhTest.PanelSetName);
                            break;
                        }
                    }
                }
            }
        }