public YellowstonePathology.Business.Client.Model.StandingOrderCollection GetStandingOrderCollection() { YellowstonePathology.Business.Client.Model.StandingOrderCollection result = new YellowstonePathology.Business.Client.Model.StandingOrderCollection(); YellowstonePathology.Business.Client.Model.StandingOrder hpvStandingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_HPVStandingOrderCode); result.Add(hpvStandingOrder); YellowstonePathology.Business.Client.Model.StandingOrder hpv1618StandingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_HPV1618StandingOrderCode); result.Add(hpv1618StandingOrder); return(result); }
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); }
private void IsRequiredByStandingOrder(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.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(womensHealthProfileTestOrder.HPV1618StandingOrderCode); if (standingOrder.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."); } } } }
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); }