public StandingOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_WomensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_StandingOrderCollection = this.m_Physician.GetStandingOrderCollection(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); if (accessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == true) { this.m_WomensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_WomensHealthProfileTest.PanelSetId); this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible; this.UpdateWomensHealthProfile(); } else { this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Collapsed; } this.m_AccessionOrderList = new List<Business.Test.AccessionOrder>(); this.m_AccessionOrderList.Add(this.m_AccessionOrder); InitializeComponent(); DataContext = this; }
public StandingOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_WomensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_StandingOrderCollection = this.m_Physician.GetStandingOrderCollection(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); if (accessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == true) { this.m_WomensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_WomensHealthProfileTest.PanelSetId); this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible; this.UpdateWomensHealthProfile(); } else { this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Collapsed; } this.m_AccessionOrderList = new List <Business.Test.AccessionOrder>(); this.m_AccessionOrderList.Add(this.m_AccessionOrder); InitializeComponent(); DataContext = this; }
public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, System.Windows.Visibility backButtonVisibility) : base(womensHealthProfileTestOrder, accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); this.m_ClientOrder = clientOrder; this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_BackButtonVisibility = backButtonVisibility; this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder); this.m_AuditCollection.Run(); if (string.IsNullOrEmpty(accessionOrder.PatientId) == false) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value); } YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode); this.m_HPVStandingOrderDescription = standingOrder.ToString(); InitializeComponent(); this.DataContext = this; this.m_ParentWindow = Window.GetWindow(this); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext); this.m_ControlsNotEnabledOnUnFinal.Add(this.CheckBoxAccepted); this.m_ControlsNotEnabledOnUnFinal.Add(this.CheckBoxFinal); this.m_ControlsNotEnabledOnUnFinal.Add(this.ComboBoxStandingOrderDescription); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockLastHPVDate); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockPatientAge); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockScreeningImpression); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBlockStandingOrderDescription); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxAcceptedBy); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxAcceptedTime); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxFinalTime); this.m_ControlsNotEnabledOnUnFinal.Add(this.TextBoxSignaure); }
public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, System.Windows.Visibility backButtonVisibility) : base(womensHealthProfileTestOrder, accessionOrder) { this.m_AccessionOrder = accessionOrder; this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); this.m_ClientOrder = clientOrder; this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder; this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_BackButtonVisibility = backButtonVisibility; this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder); this.m_AuditCollection.Run(); if (string.IsNullOrEmpty(accessionOrder.PatientId) == false) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value); } YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode); this.m_HPVStandingOrderDescription = standingOrder.ToString(); InitializeComponent(); this.DataContext = this; this.m_ParentWindow = Window.GetWindow(this); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose); this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize); this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext); }
private void ButtonAddWHP_Click(object sender, RoutedEventArgs e) { if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = (YellowstonePathology.Business.Interface.IOrderTarget) this.m_AccessionOrder.SpecimenOrderCollection.GetThinPrep(); string reportNo = YellowstonePathology.Business.OrderIdParser.GetNextReportNo(this.m_AccessionOrder.PanelSetOrderCollection, this.m_WomensHealthProfileTest, this.m_AccessionOrder.MasterAccessionNo); string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); string masterAccessionNo = this.m_AccessionOrder.MasterAccessionNo; YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)YellowstonePathology.Business.Test.PanelSetOrderFactory.CreatePanelSetOrder(masterAccessionNo, reportNo, objectId, this.m_WomensHealthProfileTest, orderTarget, false); womensHealthProfileTestOrder.AssignedToId = 5051; this.m_AccessionOrder.PanelSetOrderCollection.Add(womensHealthProfileTestOrder); this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder; this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible; this.UpdateWomensHealthProfile(); //this.Save(false); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("A " + this.m_WomensHealthProfileTest.PanelSetName + " already exists."); } }
public WomensHealthProfilePage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, System.Windows.Visibility backButtonVisibility) { this.m_AccessionOrder = accessionOrder; this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders(); this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders(); this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders(); this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders(); this.m_ClientOrder = clientOrder; this.m_WomensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(116); this.m_SystemIdentity = Business.User.SystemIdentity.Instance; this.m_BackButtonVisibility = backButtonVisibility; this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15); this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder); this.m_AuditCollection.Run(); if (string.IsNullOrEmpty(accessionOrder.PatientId) == false) { YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId); this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value); } YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode); this.m_HPVStandingOrderDescription = standingOrder.ToString(); InitializeComponent(); this.DataContext = this; this.m_ParentWindow = Window.GetWindow(this); }
private bool ShowWomensHealthProfilePage() { bool result = false; if (this.m_AccessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new Business.Test.WomensHealthProfile.WomensHealthProfileTest(); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); YellowstonePathology.Business.Domain.Physician physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrder(this.m_AccessionOrder.ClientOrderId, this.m_Window); WomensHealthProfilePage womensHealthProfilePage = new WomensHealthProfilePage(womensHealthProfileTestOrder, this.m_AccessionOrder, clientOrder, System.Windows.Visibility.Visible); womensHealthProfilePage.Back += new WomensHealthProfilePage.BackEventHandler(WomensHealthProfilePage_Back); womensHealthProfilePage.Finished += new WomensHealthProfilePage.FinishedEventHandler(WomensHealthProfilePage_Finished); this.m_PageNavigator.Navigate(womensHealthProfilePage); result = true; } return(result); }
public override void Run() { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); if (womensHealthProfileTestOrder.OrderTrichomonas == true) { YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest panelSet = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(panelSet.PanelSetId) == false) { this.m_ActionRequired = true; this.m_Message.AppendLine("A " + panelSet.PanelSetName + " is required but not ordered."); } } } }
public YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder GetWomensHealthProfile() { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder result = null; YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); foreach (YellowstonePathology.Business.Test.PanelSetOrder item in this) { if (item.PanelSetId == womensHealthProfileTest.PanelSetId) { result = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)item; break; } } return(result); }
public void HandleReflexTestingFromClientOrder(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity) { if (string.IsNullOrEmpty(accessionOrder.SpecialInstructions) == false) { string reflexInstruction1 = "Test->Pap Test with High Risk HPV with reflex to HPV 16/18 Genotyping (only if PAP neg/HPV Pos)"; if (accessionOrder.SpecialInstructions.Contains(reflexInstruction1) == true) { if (this.HasWomensHealthProfileOrder() == false) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); string reportNo = accessionOrder.GetNextReportNo(womensHealthProfileTest); string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder(accessionOrder.MasterAccessionNo, reportNo, objectId, womensHealthProfileTest, accessionOrder.SpecimenOrderCollection[0], false); womensHealthProfileTestOrder.AssignedToId = 5051; YellowstonePathology.Business.Client.Model.HPV1618ReflexOrderPAPNormalHPVPositive hpv1618ReflexOrderPAPNormalHPVPositive = new YellowstonePathology.Business.Client.Model.HPV1618ReflexOrderPAPNormalHPVPositive(); womensHealthProfileTestOrder.HPV1618ReflexOrderCode = hpv1618ReflexOrderPAPNormalHPVPositive.ReflexOrderCode; womensHealthProfileTestOrder.OrderHPV = true; accessionOrder.PanelSetOrderCollection.Add(womensHealthProfileTestOrder); YellowstonePathology.Business.Specimen.Model.SpecimenOrder hpvSpecimen = accessionOrder.SpecimenOrderCollection.GetThinPrep(); YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new TestOrderInfo(panelSetHPV, hpvSpecimen, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Visitor.OrderTestOrderVisitor(testOrderInfo); accessionOrder.TakeATrip(orderTestOrderVisitor); } } string reflexInstruction2 = "Test->Pap Test with High Risk HPV DNA reflex testing if diagnosis is ASCUS"; if (accessionOrder.SpecialInstructions.Contains(reflexInstruction2) == true) { if (this.HasWomensHealthProfileOrder() == false) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); string reportNo = accessionOrder.GetNextReportNo(womensHealthProfileTest); string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder(accessionOrder.MasterAccessionNo, reportNo, objectId, womensHealthProfileTest, accessionOrder.SpecimenOrderCollection[0], false); womensHealthProfileTestOrder.AssignedToId = 5051; YellowstonePathology.Business.Client.Model.HPVReflexOrderRule2 hpvReflexOrderRule2 = new YellowstonePathology.Business.Client.Model.HPVReflexOrderRule2(); womensHealthProfileTestOrder.HPVReflexOrderCode = hpvReflexOrderRule2.ReflexOrderCode; accessionOrder.PanelSetOrderCollection.Add(womensHealthProfileTestOrder); } } string reflexInstruction3 = "Test->Pap Test with High Risk HPV DNA testing regardless of diagnosis"; if (accessionOrder.SpecialInstructions.Contains(reflexInstruction3) == true) { if (this.HasWomensHealthProfileOrder() == false) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); string whpReportNo = accessionOrder.GetNextReportNo(womensHealthProfileTest); string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder(accessionOrder.MasterAccessionNo, whpReportNo, objectId, womensHealthProfileTest, accessionOrder.SpecimenOrderCollection[0], false); womensHealthProfileTestOrder.AssignedToId = 5051; womensHealthProfileTestOrder.OrderHPV = true; accessionOrder.PanelSetOrderCollection.Add(womensHealthProfileTestOrder); YellowstonePathology.Business.Specimen.Model.SpecimenOrder hpvSpecimen = accessionOrder.SpecimenOrderCollection.GetThinPrep(); YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest(); YellowstonePathology.Business.Test.TestOrderInfo testOrderInfo = new TestOrderInfo(panelSetHPV, hpvSpecimen, true); YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Visitor.OrderTestOrderVisitor(testOrderInfo); accessionOrder.TakeATrip(orderTestOrderVisitor); } } } }
private void IsRequiredByReflexOrder(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (accessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); YellowstonePathology.Business.Client.Model.ReflexOrder reflexOrder = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetByReflexByOrderCode(womensHealthProfileTestOrder.HPV1618ReflexOrderCode); if (reflexOrder.IsRequired(accessionOrder) == true) { YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == false) { this.m_ActionRequired = true; this.m_Message.AppendLine("An " + panelSetHPV1618.PanelSetName + " is required but not ordered."); } } } }
private void DoesHPVAuditRequireHPVOrder() { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); if (womensHealthProfileTestOrder.HPVReflexOrderCode == "RFLXHPVRL17") { YellowstonePathology.Business.Audit.Model.HPVIsRequiredAudit hpvAudit = new HPVIsRequiredAudit(this.m_AccessionOrder); hpvAudit.Run(); if (hpvAudit.ActionRequired == false) { YellowstonePathology.Business.Client.Model.HPVReflexOrderRule14 oldReflexOrder = new Client.Model.HPVReflexOrderRule14(); if (oldReflexOrder.IsRequired(this.m_AccessionOrder) == true) { this.ActionRequired = true; } } } } }
public override void Run() { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); YellowstonePathology.Business.Client.Model.StandingOrderNotSet standingOrderNotSet = new YellowstonePathology.Business.Client.Model.StandingOrderNotSet(); if (womensHealthProfileTestOrder.HPVStandingOrderCode == standingOrderNotSet.StandingOrderCode) { this.m_Message.AppendLine("Womens Health Profile HPV Standing Order Code is Not Set."); this.m_ActionRequired = true; } if (womensHealthProfileTestOrder.HPV1618StandingOrderCode == standingOrderNotSet.StandingOrderCode) { this.m_Message.AppendLine("Womens Health Profile HPV 16/18 Standing Order Code is Not Set."); this.m_ActionRequired = true; } } }
protected override void ShowResultPage() { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new Business.Test.WomensHealthProfile.WomensHealthProfileTest(); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); this.m_WomensHealthProfilePage = new Test.WomensHealthProfilePage(womensHealthProfileTestOrder, this.m_AccessionOrder, this.m_ClientOrder, this.m_BackButtonVisibility); this.m_WomensHealthProfilePage.Finished += new Test.WomensHealthProfilePage.FinishedEventHandler(WomensHealthProfilePage_Finished); this.m_WomensHealthProfilePage.Back += new Test.WomensHealthProfilePage.BackEventHandler(WomensHealthProfilePage_Back); this.m_PageNavigator.Navigate(this.m_WomensHealthProfilePage); }
public override void Run() { List <int> whpTestList = new List <int>(); whpTestList.Add(15); whpTestList.Add(14); whpTestList.Add(61); whpTestList.Add(3); whpTestList.Add(62); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); if (womensHealthProfileTestOrder.Final == false) { if (this.m_AccessionOrder.PanelSetOrderCollection.HasUnfinaledTests(whpTestList) == true) { this.m_ActionRequired = true; this.m_Message.Append("The Womens Health Profile cannot be finalized as there are tests that are pending."); } } } }
public override void Run() { YellowstonePathology.Business.Domain.Physician physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId); YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); if (physician.HPVStandingOrderCode != womensHealthProfileTestOrder.HPVStandingOrderCode) { this.m_Message.AppendLine("The physician standing order for HPV does not match the Womens Health Profile standing order for HPV."); this.m_ActionRequired = true; } if (physician.HPV1618StandingOrderCode != womensHealthProfileTestOrder.HPV1618StandingOrderCode) { this.m_Message.AppendLine("The physician standing order for HPV 16/18 does not match the Womens Health Profile standing order for HPV 16/18."); this.m_ActionRequired = true; } } }
private bool IsOkToGoNext() { bool result = true; if (this.m_AccessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(116); if (womensHealthProfileTestOrder.OrderHPV == true) { if (this.m_AccessionOrder.ICD9BillingCodeCollection.CodeExists("Z11.51") == false) { MessageBoxResult messageBoxResult = MessageBox.Show("A routine HPV was requested but to Z11.51 was not found. Are you sure you want to continue.", "Routine HPV Requested", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); if (messageBoxResult == MessageBoxResult.No) { result = false; } } } } return(result); }
private void ButtonAddWHP_Click(object sender, RoutedEventArgs e) { if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == false) { YellowstonePathology.Business.Interface.IOrderTarget orderTarget = (YellowstonePathology.Business.Interface.IOrderTarget)this.m_AccessionOrder.SpecimenOrderCollection.GetThinPrep(); string reportNo = YellowstonePathology.Business.OrderIdParser.GetNextReportNo(this.m_AccessionOrder.PanelSetOrderCollection, this.m_WomensHealthProfileTest, this.m_AccessionOrder.MasterAccessionNo); string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); string masterAccessionNo = this.m_AccessionOrder.MasterAccessionNo; YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)YellowstonePathology.Business.Test.PanelSetOrderFactory.CreatePanelSetOrder(masterAccessionNo, reportNo, objectId, this.m_WomensHealthProfileTest, orderTarget, false); womensHealthProfileTestOrder.AssignedToId = 5051; this.m_AccessionOrder.PanelSetOrderCollection.Add(womensHealthProfileTestOrder); this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder; this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible; this.UpdateWomensHealthProfile(); //this.Save(false); this.NotifyPropertyChanged(string.Empty); } else { MessageBox.Show("A " + this.m_WomensHealthProfileTest.PanelSetName + " already exists."); } }
public override void Run() { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); if (womensHealthProfileTestOrder.Final == false) { bool foundUnfinalPanelSet = false; foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in this.m_AccessionOrder.PanelSetOrderCollection) { if (panelSetOrder.PanelSetId != womensHealthProfileTest.PanelSetId) { if (panelSetOrder.Final == false && panelSetOrder.PanelSetId != 13) { foundUnfinalPanelSet = true; } } } if (foundUnfinalPanelSet == true) { this.m_ActionRequired = true; this.m_Message.Append("The Womens Health Profile cannot be finalized as there are tests that are pending."); } } } }
private void FinalWHPCase(Business.Test.AccessionOrder accessionOrder, string reportNo) { YellowstonePathology.Business.Audit.Model.IsWHPAllDoneAuditCollection isWHPAllDoneAuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(accessionOrder); isWHPAllDoneAuditCollection.Run(); if (isWHPAllDoneAuditCollection.ActionRequired == true) { YellowstonePathology.Business.Audit.Model.ShouldWomensHealthProfileBeFinaledAudit shouldAudit = new Business.Audit.Model.ShouldWomensHealthProfileBeFinaledAudit(accessionOrder); shouldAudit.Run(); if (shouldAudit.Message.ToString() == isWHPAllDoneAuditCollection.Message) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(reportNo); YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandler multiTestDistributionHandler = YellowstonePathology.Business.ReportDistribution.Model.MultiTestDistributionHandlerFactory.GetHandler(accessionOrder); multiTestDistributionHandler.Set(); womensHealthProfileTestOrder.Finalize(); YellowstonePathology.Business.User.SystemUser user = YellowstonePathology.Business.User.SystemUserCollectionInstance.Instance.SystemUserCollection.GetSystemUserById(5134); womensHealthProfileTestOrder.FinaledById = user.UserId; womensHealthProfileTestOrder.Signature = user.Signature; } } }
private void IsMarkedOnWomensHealthProfile(YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest(); if (accessionOrder.PanelSetOrderCollection.Exists(womensHealthProfileTest.PanelSetId) == true) { YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(womensHealthProfileTest.PanelSetId); if (womensHealthProfileTestOrder.OrderHPV1618 == true) { YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test(); if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV1618.PanelSetId) == false) { this.m_ActionRequired = true; this.m_Message.AppendLine("An " + panelSetHPV1618.PanelSetName + " is required but not ordered."); } } } }