public override void Run() { this.m_Status = AuditStatusEnum.OK; this.m_Message.Clear(); Test.BoneMarrowSummary.BoneMarrowSummaryTest boneMarrowSummaryTest = new Test.BoneMarrowSummary.BoneMarrowSummaryTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(boneMarrowSummaryTest.PanelSetId) == false) { foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in this.m_AccessionOrder.SpecimenOrderCollection) { if (this.IndicatorExists(specimenOrder.Description) == true || this.IndicatorAndOrderExists(specimenOrder.Description) == true) { this.m_Status = AuditStatusEnum.Failure; this.m_Message.Append(boneMarrowSummaryTest.PanelSetName); break; } } } }
public void AcceptSummary() { YellowstonePathology.Business.Test.BoneMarrowSummary.BoneMarrowSummaryTest boneMarrowSummaryTest = new Test.BoneMarrowSummary.BoneMarrowSummaryTest();; if (this.m_AccessionOrder.PanelSetOrderCollection.DoesPanelSetExist(boneMarrowSummaryTest.PanelSetId) == true) { List <int> exclusionList = this.m_AccessionOrder.PanelSetOrderCollection.GetBoneMarrowSummaryExclusionList(); if (this.m_AccessionOrder.PanelSetOrderCollection.IsLastReportInSummaryToFinal(exclusionList, this.m_PanelSetOrder.PanelSetId) == true) { Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(boneMarrowSummaryTest.PanelSetId); if (panelSetOrder.Final == false) { panelSetOrder.ExpectedFinalTime = DateTime.Now; panelSetOrder.Accept(); panelSetOrder.AcceptedBy = "Administrator"; panelSetOrder.AcceptedById = 5051; } } } }