private bool ShowHER2AmplificationSummaryResultPage() { bool result = false; YellowstonePathology.Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest test = new Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest(); YellowstonePathology.Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTestOrder summaryTestOrder = (Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(test.PanelSetId, this.m_PanelSetOrder.OrderedOnId, true); if (summaryTestOrder != null) { result = true; HER2AmplificationSummaryResultPage her2AmplificationSummaryResultPage = new HER2AmplificationSummaryResultPage(summaryTestOrder, this.m_AccessionOrder, Business.User.SystemIdentity.Instance); her2AmplificationSummaryResultPage.Next += HER2AmplificationSummaryResultPage_Next; this.m_PageNavigator.Navigate(her2AmplificationSummaryResultPage); } return(result); }
private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e) { bool canFinal = false; YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.m_PanelSetOrder.IsOkToFinalize(this.m_AccessionOrder); if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.OK) { canFinal = true; } else if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.Warning) { MessageBoxResult messageBoxResult = MessageBox.Show(auditResult.Message, "Additional testing required", MessageBoxButton.OKCancel, MessageBoxImage.Information, MessageBoxResult.OK); if (messageBoxResult == MessageBoxResult.OK) { canFinal = true; YellowstonePathology.Business.Test.Her2AmplificationByIHC.Her2AmplificationByIHCTest her2AmplificationByIHCTest = new Business.Test.Her2AmplificationByIHC.Her2AmplificationByIHCTest(); this.OrderATest(her2AmplificationByIHCTest); YellowstonePathology.Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest her2AmplificationSummaryTest = new Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest(); this.OrderATest(her2AmplificationSummaryTest); } } else { MessageBox.Show(auditResult.Message); } if (canFinal == true) { YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrder(this.m_PanelSetOrder.OrderedOn, this.m_PanelSetOrder.OrderedOnId); YellowstonePathology.Business.Test.FinalizeTestResult finalizeTestResult = this.m_PanelSetOrder.Finish(this.m_AccessionOrder); this.HandleFinalizeTestResult(finalizeTestResult); if (this.m_PanelSetOrder.Result != YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationResultEnum.Equivocal.ToString()) { YellowstonePathology.Business.Test.Surgical.SurgicalTest panelSetSurgical = new YellowstonePathology.Business.Test.Surgical.SurgicalTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSetSurgical.PanelSetId) == true) { YellowstonePathology.Business.Test.PanelSetOrder surgicalPanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetSurgical.PanelSetId); YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(surgicalPanelSetOrder.ReportNo); if (amendmentCollection.HasAmendmentForReport(this.m_PanelSetOrder.ReportNo) == false) { string amendmentText = YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationByISHSystemGeneratedAmendmentText.AmendmentText(this.m_PanelSetOrder); YellowstonePathology.Business.Amendment.Model.Amendment amendment = this.m_AccessionOrder.AddAmendment(surgicalPanelSetOrder.ReportNo); amendment.TestResultAmendmentFill(surgicalPanelSetOrder.ReportNo, surgicalPanelSetOrder.AssignedToId, amendmentText); amendment.ReferenceReportNo = this.m_PanelSetOrder.ReportNo; amendment.SystemGenerated = true; } } } } }
private void HyperLinkOrderHER2Summary_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest test = new Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest(); this.OrderATest(test); }
private void HyperLinkOrderHER2Summary_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest test = new Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(test.PanelSetId, this.m_PanelSetOrder.OrderedOnId, true) == false) { CustomEventArgs.PanelSetReturnEventArgs args = new CustomEventArgs.PanelSetReturnEventArgs(test); this.OrderTest(this, args); } else { MessageBox.Show("Unable to order a " + test.PanelSetName + " as one already exists"); } }