private void EGFRToALKReflexPage_OrderALKROS1AndPDL1(object sender, EventArgs e) { YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest alkForNSCLCByFISHTest = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTest(); YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoALK = new YellowstonePathology.Business.Test.TestOrderInfo(alkForNSCLCByFISHTest, orderTarget, false); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderALKVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfoALK); this.m_AccessionOrder.TakeATrip(orderALKVisitor); orderALKVisitor.PanelSetOrder.Distribute = false; YellowstonePathology.Business.Task.Model.TaskOrder taskOrderALK = this.m_AccessionOrder.CreateTask(testOrderInfoALK); this.m_AccessionOrder.TaskOrderCollection.Add(taskOrderALK); YellowstonePathology.Business.Test.ROS1ByFISH.ROS1ByFISHTest ros1ByFISHTest = new Business.Test.ROS1ByFISH.ROS1ByFISHTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoROS1 = new YellowstonePathology.Business.Test.TestOrderInfo(ros1ByFISHTest, orderTarget, false); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderROS1Visitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfoROS1); this.m_AccessionOrder.TakeATrip(orderROS1Visitor); orderROS1Visitor.PanelSetOrder.Distribute = false; YellowstonePathology.Business.Task.Model.TaskOrder taskOrderROS1 = this.m_AccessionOrder.CreateTask(testOrderInfoROS1); this.m_AccessionOrder.TaskOrderCollection.Add(taskOrderROS1); YellowstonePathology.Business.Test.PDL1.PDL1Test pdl1Test = new Business.Test.PDL1.PDL1Test(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfoPDL1 = new YellowstonePathology.Business.Test.TestOrderInfo(pdl1Test, orderTarget, false); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderPDL1Visitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfoPDL1); this.m_AccessionOrder.TakeATrip(orderPDL1Visitor); orderROS1Visitor.PanelSetOrder.Distribute = false; YellowstonePathology.Business.Task.Model.TaskOrder taskOrderPDL1 = this.m_AccessionOrder.CreateTask(testOrderInfoPDL1); this.m_AccessionOrder.TaskOrderCollection.Add(taskOrderPDL1); this.m_AccessionOrder.PanelSetOrderCollection.UpdateTumorNucleiPercentage(this.m_EGFRToALKReflexAnalysisTestOrder); }
public override void OrderInitialTests(Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Interface.IOrderTarget orderTarget) { YellowstonePathology.Business.Test.KRASStandard.KRASStandardTest krasStandardTest = new KRASStandard.KRASStandardTest(); if (accessionOrder.PanelSetOrderCollection.Exists(krasStandardTest.PanelSetId, orderTarget.GetId(), true) == false) { YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(krasStandardTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); accessionOrder.TakeATrip(orderTestOrderVisitor); } }
private void ResultPage_OrderTest(object sender, CustomEventArgs.PanelSetReturnEventArgs e) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_PanelSetOrder.OrderedOnId); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new YellowstonePathology.Business.Test.TestOrderInfo(e.PanelSet, orderTarget, !e.PanelSet.NeverDistribute); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); if (testOrderInfo.PanelSet.TaskCollection.Count != 0) { YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_AccessionOrder.CreateTask(testOrderInfo); this.m_AccessionOrder.TaskOrderCollection.Add(taskOrder); } this.m_PageNavigator.Navigate(this.m_ResultPage); }
private void AddRandomTest(DateTime workDate) { List <int> exclusionList = new List <int>(); exclusionList.Add(262); exclusionList.Add(197); Business.Search.ReportSearchList list = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetPossibleRetrospectiveReviews(workDate); if (list.Count != 0) { int count = list.Count; double tenPercentOfCount = Math.Round((count * .1), 0); Random rnd = new Random(); int i = 0; while (true) { int nextRnd = rnd.Next(0, count - 1); string nextMasterAccessionNo = list[nextRnd].MasterAccessionNo; Business.Test.AccessionOrder ao = Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(nextMasterAccessionNo, this); if (ao.PanelSetOrderCollection.HasPanelSetBeenOrdered(exclusionList) == false) { YellowstonePathology.Business.Test.RetrospectiveReview.RetrospectiveReviewTest retrospectiveReviewTest = new YellowstonePathology.Business.Test.RetrospectiveReview.RetrospectiveReviewTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(retrospectiveReviewTest, null, false); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); ao.TakeATrip(orderTestOrderVisitor); Business.Test.PanelSetOrder pso = ao.PanelSetOrderCollection.GetPanelSetOrder(262); pso.AssignedToId = 0; } i += 1; if (i == tenPercentOfCount) { Business.Persistence.DocumentGateway.Instance.Push(this); break; } } } else { MessageBox.Show("There are no cases to choose from for this day."); } }
public void OrderTheTest(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo) { YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); this.m_TestOrderInfo.PanelSetOrder = testOrderInfo.PanelSetOrder; if (this.ShowResultPage(testOrderInfo) == false) { if (this.ShowTaskOrderPage(testOrderInfo) == false) { CustomEventArgs.TestOrderInfoEventArgs eventArgs = new CustomEventArgs.TestOrderInfoEventArgs(this.m_TestOrderInfo); if (this.Finish != null) { this.Finish(this, eventArgs); } } } }
public void OrderTheTest(YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo) { YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); this.m_TestOrderInfo.PanelSetOrder = testOrderInfo.PanelSetOrder; if (this.ShowResultPage(testOrderInfo) == false) { if (this.ShowTaskOrderPage(testOrderInfo) == false) { if (this.ShowAdditionalTestingEMailPage() == false) { CustomEventArgs.TestOrderInfoEventArgs eventArgs = new CustomEventArgs.TestOrderInfoEventArgs(this.m_TestOrderInfo); if (this.Finish != null) this.Finish(this, eventArgs); } } } }
private void CancelTestWarningPage_CancelTest(object sender, CustomEventArgs.CancelTestEventArgs e) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = e.AccessionOrder.SpecimenOrderCollection.GetOrderTarget(e.PanelSetOrder.OrderedOnId); Business.Test.TestCancelled.TestCancelledTest cancelledTest = new Business.Test.TestCancelled.TestCancelledTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(cancelledTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); e.AccessionOrder.PanelSetOrderCollection.Remove(e.PanelSetOrder); e.AccessionOrder.TakeATrip(orderTestOrderVisitor); Business.Test.TestCancelled.TestCancelledTestOrder testCancelledTestOrder = (Business.Test.TestCancelled.TestCancelledTestOrder)orderTestOrderVisitor.PanelSetOrder; testCancelledTestOrder.CancelledTestId = e.PanelSetOrder.PanelSetId; testCancelledTestOrder.CancelledTestName = e.PanelSetOrder.PanelSetName; testCancelledTestOrder.Distribute = false; testCancelledTestOrder.NoCharge = true; testCancelledTestOrder.Comment = e.ReasonForCancelation; this.ShowTestCancelledResultPage(testCancelledTestOrder, e.AccessionOrder); }
private void HyperLinkOrderThinPrepPap_Click(object sender, RoutedEventArgs e) { int ThinPrepPapPanelSetId = 15; if (this.m_AccessionOrder.PanelSetOrderCollection.HasPanelSetBeenOrdered(ThinPrepPapPanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_WomensHealthProfileTestOrder.OrderedOnId); YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest thinPrepPapTest = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(thinPrepPapTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); this.m_AuditCollection.Run(); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("Thin Prep Pap has already been ordered."); } }
private void MenuItemCancelTest_Click(object sender, RoutedEventArgs e) { if (this.ListViewAccessionOrders.SelectedItem != null) { MessageBoxResult messageBoxResult = MessageBox.Show("Are you sure you want to cancel this test?", "Cancel Test", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes); if (messageBoxResult == MessageBoxResult.Yes) { YellowstonePathology.Business.Search.ReportSearchItem reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem) this.ListViewAccessionOrders.SelectedItem; YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_LoginUI.AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportSearchItem.ReportNo); if (panelSetOrder.Final == false) { string reportNo = panelSetOrder.ReportNo; string testName = panelSetOrder.PanelSetName; int panelSetId = panelSetOrder.PanelSetId; YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_LoginUI.AccessionOrder.SpecimenOrderCollection.GetOrderTarget(panelSetOrder.OrderedOnId); Business.Test.TestCancelled.TestCancelledTest cancelledTest = new Business.Test.TestCancelled.TestCancelledTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(cancelledTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_LoginUI.AccessionOrder.PanelSetOrderCollection.Remove(panelSetOrder); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); this.m_LoginUI.AccessionOrder.TakeATrip(orderTestOrderVisitor); Business.Test.TestCancelled.TestCancelledTestOrder testCancelledTestOrder = (Business.Test.TestCancelled.TestCancelledTestOrder)orderTestOrderVisitor.PanelSetOrder; testCancelledTestOrder.Comment = testName + " has been cancelled."; testCancelledTestOrder.CancelledTestId = panelSetId; testCancelledTestOrder.CancelledTestName = testName; YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); this.m_LoginUI.GetReportSearchListByReportNo(panelSetOrder.ReportNo); } else { MessageBox.Show("Cannot cancel a test that has been finalized."); } } } }
private void HyperLinkOrderTrich_Click(object sender, RoutedEventArgs e) { int trhichomonasPanelSetId = 61; if (this.m_AccessionOrder.PanelSetOrderCollection.HasPanelSetBeenOrdered(trhichomonasPanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_WomensHealthProfileTestOrder.OrderedOnId); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest trichomonasTest = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(trichomonasTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder); multiTestDistributionHandler.Set(); this.m_AuditCollection.Run(); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("Trhichomonas Vaginalis has already been ordered."); } }
private void HyperLinkOrderThinPrepPap_Click(object sender, RoutedEventArgs e) { int ThinPrepPapPanelSetId = 15; if (this.m_AccessionOrder.PanelSetOrderCollection.HasPanelSetBeenOrdered(ThinPrepPapPanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_WomensHealthProfileTestOrder.OrderedOnId); YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest thinPrepPapTest = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(thinPrepPapTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(this.m_AccessionOrder); multiTestDistributionHandler.Set(); this.m_AuditCollection.Run(); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("Thin Prep Pap has already been ordered."); } }
private void MenuItemCancelTest_Click(object sender, RoutedEventArgs e) { if (this.ListViewAccessionOrders.SelectedItem != null) { MessageBoxResult messageBoxResult = MessageBox.Show("Are you sure you want to cancel this test?", "Cancel Test", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes); if (messageBoxResult == MessageBoxResult.Yes) { YellowstonePathology.Business.Search.ReportSearchItem reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem)this.ListViewAccessionOrders.SelectedItem; YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_LoginUI.AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportSearchItem.ReportNo); if (panelSetOrder.Final == false) { string reportNo = panelSetOrder.ReportNo; string testName = panelSetOrder.PanelSetName; int panelSetId = panelSetOrder.PanelSetId; YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_LoginUI.AccessionOrder.SpecimenOrderCollection.GetOrderTarget(panelSetOrder.OrderedOnId); Business.Test.TestCancelled.TestCancelledTest cancelledTest = new Business.Test.TestCancelled.TestCancelledTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(cancelledTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_LoginUI.AccessionOrder.PanelSetOrderCollection.Remove(panelSetOrder); YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); this.m_LoginUI.AccessionOrder.TakeATrip(orderTestOrderVisitor); Business.Test.TestCancelled.TestCancelledTestOrder testCancelledTestOrder = (Business.Test.TestCancelled.TestCancelledTestOrder)orderTestOrderVisitor.PanelSetOrder; testCancelledTestOrder.Comment = testName + " has been cancelled."; testCancelledTestOrder.CancelledTestId = panelSetId; testCancelledTestOrder.CancelledTestName = testName; YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save(); this.m_LoginUI.GetReportSearchListByReportNo(panelSetOrder.ReportNo); } else { MessageBox.Show("Cannot cancel a test that has been finalized."); } } } }
private void HyperLinkOrderTrich_Click(object sender, RoutedEventArgs e) { int trhichomonasPanelSetId = 61; if (this.m_AccessionOrder.PanelSetOrderCollection.HasPanelSetBeenOrdered(trhichomonasPanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_WomensHealthProfileTestOrder.OrderedOnId); YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest trichomonasTest = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(trichomonasTest, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); this.m_AuditCollection.Run(); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("Trhichomonas Vaginalis has already been ordered."); } }
private void HyperLinkOrderHPV_Click(object sender, RoutedEventArgs e) { int hpvPanelSetId = 14; if (this.m_AccessionOrder.PanelSetOrderCollection.HasPanelSetBeenOrdered(hpvPanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_WomensHealthProfileTestOrder.OrderedOnId); YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new Business.Test.TestOrderInfo(panelSetHPV, orderTarget, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor); //this.Save(false); this.m_AuditCollection.Run(); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("An HPV has already been ordered."); } }
private void EGFRToALKReflexPage_OrderPDL122C3(object sender, EventArgs e) { YellowstonePathology.Business.Test.PDL122C3.PDL122C3Test pdl122C3Test = new Business.Test.PDL122C3.PDL122C3Test(); YellowstonePathology.Business.Interface.IOrderTarget orderTarget = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new YellowstonePathology.Business.Test.TestOrderInfo(pdl122C3Test, orderTarget, false); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo); this.m_AccessionOrder.TakeATrip(orderVisitor); orderVisitor.PanelSetOrder.Distribute = false; YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_AccessionOrder.CreateTask(testOrderInfo); this.m_AccessionOrder.TaskOrderCollection.Add(taskOrder); this.m_AccessionOrder.PanelSetOrderCollection.UpdateTumorNucleiPercentage(this.m_EGFRToALKReflexAnalysisTestOrder); }