public override void Run() { this.m_Status = AuditStatusEnum.OK; this.m_Message.Clear(); YellowstonePathology.Business.Test.Model.TestOrderCollection testOrderCollection = this.m_SurgicalTestOrder.GetTestOrders(); YellowstonePathology.Business.SpecialStain.StainResultItemCollection allStaints = this.m_SurgicalTestOrder.GetAllStains(); YellowstonePathology.Business.SpecialStain.StainResultItemCollection gradedStains = allStaints.GetGradedStains(testOrderCollection); foreach (YellowstonePathology.Business.SpecialStain.StainResultItem stainResult in gradedStains) { if (stainResult.IsResultPositive() == true) { if (stainResult.ReportCommentContainsNumber() == false) { this.m_Status = AuditStatusEnum.Failure; this.m_Message.AppendLine("Graded stain " + stainResult.ProcedureName + " is not graded."); } } } }
private void GradedStainsAreHandled() { YellowstonePathology.Business.Test.Model.TestOrderCollection testOrderCollection = this.m_PanelSetOrderSurgical.GetTestOrders(); YellowstonePathology.Business.SpecialStain.StainResultItemCollection allStaints = this.m_PanelSetOrderSurgical.GetAllStains(); YellowstonePathology.Business.SpecialStain.StainResultItemCollection gradedStains = allStaints.GetGradedStains(testOrderCollection); foreach (YellowstonePathology.Business.SpecialStain.StainResultItem stainResult in gradedStains) { if (stainResult.IsResultPositive() == true) { if (stainResult.ReportCommentContainsNumber() == false) { this.m_ExecutionStatus.AddMessage("Graded stain " + stainResult.ProcedureName + " is not graded.", true); break; } } } }