public override AuditResult IsOkToFinalize(AccessionOrder accessionOrder) { AuditResult result = base.IsOkToFinalize(accessionOrder); if (result.Status == AuditStatusEnum.OK) { HER2AmplificationByISH.HER2AmplificationByISHTest ishTest = new HER2AmplificationByISH.HER2AmplificationByISHTest(); if (accessionOrder.PanelSetOrderCollection.Exists(ishTest.PanelSetId, this.m_OrderedOnId, true) == true) { HER2AmplificationByISH.HER2AmplificationByISHTestOrder ishTestOrder = (HER2AmplificationByISH.HER2AmplificationByISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(ishTest.PanelSetId, this.m_OrderedOnId, true); if (ishTestOrder.Final == true) { if (this.m_Score.Contains("2+") == true) { HER2AmplificationRecount.HER2AmplificationRecountTest test = new HER2AmplificationRecount.HER2AmplificationRecountTest(); if (accessionOrder.PanelSetOrderCollection.Exists(test.PanelSetId, this.m_OrderedOnId, true) == false) { result.Status = AuditStatusEnum.Warning; result.Message = "This test will be finalized but not distributed as a " + test.PanelSetName + " is needed to determine the actual result and will be ordered."; } } } } } return(result); }
public void SetValues(AccessionOrder accessionOrder) { HER2AmplificationByISH.HER2AmplificationByISHTest ishTest = new HER2AmplificationByISH.HER2AmplificationByISHTest(); Her2AmplificationByIHC.Her2AmplificationByIHCTest ihcTest = new Her2AmplificationByIHC.Her2AmplificationByIHCTest(); HER2AmplificationRecount.HER2AmplificationRecountTest recountTest = new HER2AmplificationRecount.HER2AmplificationRecountTest(); HER2AmplificationByISH.HER2AmplificationByISHTestOrder ishTestOrder = (HER2AmplificationByISH.HER2AmplificationByISHTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(ishTest.PanelSetId, this.m_OrderedOnId, true); this.m_CellsCounted = ishTestOrder.CellsCounted; this.m_TotalChr17SignalsCounted = ishTestOrder.TotalChr17SignalsCounted; this.m_TotalHer2SignalsCounted = ishTestOrder.TotalHer2SignalsCounted; this.m_Her2byIHCOrder = ishTestOrder.Her2byIHCOrder; this.m_IncludeImmunoRecommendedComment = ishTestOrder.IncludeImmunoRecommendedComment; this.m_IncludeResultComment = ishTestOrder.IncludeResultComment; this.m_IncludePolysomyComment = ishTestOrder.IncludePolysomyComment; this.m_PolysomyPercent = ishTestOrder.PolysomyPercent; this.m_Chr17SignalRangeLow = ishTestOrder.Chr17SignalRangeLow; this.m_Chr17SignalRangeHigh = ishTestOrder.Chr17SignalRangeHigh; this.m_Her2SignalRangeLow = ishTestOrder.Her2SignalRangeLow; this.m_Her2SignalRangeHigh = ishTestOrder.Her2SignalRangeHigh; this.m_SampleAdequacy = ishTestOrder.SampleAdequacy; this.m_ProbeSignalIntensity = ishTestOrder.ProbeSignalIntensity; this.m_TechComment = ishTestOrder.TechComment; this.m_SourceBlock = ishTestOrder.SourceBlock; this.m_GeneticHeterogeneity = ishTestOrder.GeneticHeterogeneity; this.m_Her2Chr17ClusterRatio = ishTestOrder.Her2Chr17ClusterRatio; this.m_Indicator = ishTestOrder.Indicator; this.m_NotInterpretable = ishTestOrder.NotInterpretable; this.m_RecountRequired = false; Her2AmplificationByIHC.PanelSetOrderHer2AmplificationByIHC ihcTestOrder = (Her2AmplificationByIHC.PanelSetOrderHer2AmplificationByIHC)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(ihcTest.PanelSetId, this.m_OrderedOnId, true); this.m_IHCScore = ihcTestOrder.Score; if (accessionOrder.PanelSetOrderCollection.Exists(recountTest.PanelSetId, this.m_OrderedOnId, true) == true) { HER2AmplificationRecount.HER2AmplificationRecountTestOrder recountTestOrder = (HER2AmplificationRecount.HER2AmplificationRecountTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(recountTest.PanelSetId, this.m_OrderedOnId, true); this.m_CellsRecount = recountTestOrder.CellsCounted; this.m_TotalChr17SignalsRecount = recountTestOrder.Chr17SignalsCounted; this.m_TotalHer2SignalsRecount = recountTestOrder.Her2SignalsCounted; this.m_RecountRequired = true; } this.m_Distribute = true; }