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;
        }
示例#2
0
        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 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 == false)
             {
                 this.m_ActionRequired = true;
                 this.m_Message.Append("The Womens Health Profile should be finalized.");
             }
         }
     }
 }
        public MultiTestDistributionHandlerWHP(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrderList = new List<Test.PanelSetOrder>();

            this.m_PanelSetThinPrepPap = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest();
            this.m_PanelSetHPV = new Test.HPV.HPVTest();
            this.m_PanelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test();
            this.m_NGCTTest = new YellowstonePathology.Business.Test.NGCT.NGCTTest();
            this.m_TrichomonasTest = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest();
            this.m_WomensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest();
            this.m_WomensHealthProfileTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_WomensHealthProfileTest.PanelSetId);

            if (this.m_WomensHealthProfileTestOrder.Final == false)
            {
                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetThinPrepPap.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoThinPrep = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetThinPrepPap.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoThinPrep);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetHPV.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoHPV = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetHPV.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoHPV);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetHPV1618.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder pso1618 = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetHPV1618.PanelSetId);
                    this.m_PanelSetOrderList.Add(pso1618);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_NGCTTest.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoNGCT = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_NGCTTest.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoNGCT);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_TrichomonasTest.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoTrich = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_TrichomonasTest.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoTrich);
                }

                this.m_PanelSetOrderList.Add(this.m_WomensHealthProfileTestOrder);
            }
        }
        public MultiTestDistributionHandlerWHP(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(accessionOrder)
        {
            this.m_AccessionOrder    = accessionOrder;
            this.m_PanelSetOrderList = new List <Test.PanelSetOrder>();

            this.m_PanelSetThinPrepPap          = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest();
            this.m_PanelSetHPV                  = new Test.HPV.HPVTest();
            this.m_PanelSetHPV1618              = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test();
            this.m_NGCTTest                     = new YellowstonePathology.Business.Test.NGCT.NGCTTest();
            this.m_TrichomonasTest              = new YellowstonePathology.Business.Test.Trichomonas.TrichomonasTest();
            this.m_WomensHealthProfileTest      = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest();
            this.m_WomensHealthProfileTestOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_WomensHealthProfileTest.PanelSetId);

            if (this.m_WomensHealthProfileTestOrder.Final == false)
            {
                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetThinPrepPap.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoThinPrep = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetThinPrepPap.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoThinPrep);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetHPV.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoHPV = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetHPV.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoHPV);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_PanelSetHPV1618.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder pso1618 = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetHPV1618.PanelSetId);
                    this.m_PanelSetOrderList.Add(pso1618);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_NGCTTest.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoNGCT = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_NGCTTest.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoNGCT);
                }

                if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_TrichomonasTest.PanelSetId) == true)
                {
                    YellowstonePathology.Business.Test.PanelSetOrder psoTrich = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_TrichomonasTest.PanelSetId);
                    this.m_PanelSetOrderList.Add(psoTrich);
                }

                this.m_PanelSetOrderList.Add(this.m_WomensHealthProfileTestOrder);
            }
        }
 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.OrderHPV == true)
         {
             YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest();
             if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == false)
             {
                 this.m_ActionRequired = true;
                 this.m_Message.AppendLine("The order indicates that an " + panelSetHPV.PanelSetName + " is required but it has not ordered.");
             }
         }
     }
 }
 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.");
             }
         }
     }
 }
 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.HPVStandingOrderCode);
         if (standingOrder.IsRequired(accessionOrder) == true)
         {
             YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest();
             if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == false)
             {
                 this.m_ActionRequired = true;
                 this.m_Message.AppendLine("An " + panelSetHPV.PanelSetName + " is required but not ordered.");
             }
         }
     }
 }
        public MultiTestDistributionHandlerWHPHold(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(accessionOrder)
        {
            YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfile = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(womensHealthProfile.PanelSetId) == true)
            {
                this.m_DistributePap = false;
            }
            else
            {
                this.m_DistributePap = true;
            }

            this.m_DistributeHPV = false;
            this.m_DistributeHPV1618 = false;
            this.m_DistributeNGCT = false;
            this.m_DistributeTrich = false;
            this.m_DistributeHWP = 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;
         }
     }
 }
        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;
                }
            }
        }
        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) == false)
            {
                YellowstonePathology.Business.Client.Model.StandingOrderNone standingOrderNone = new YellowstonePathology.Business.Client.Model.StandingOrderNone();
                if (physician.HPVStandingOrderCode != standingOrderNone.StandingOrderCode)
                {
                    this.m_Message.AppendLine("The physician has a standing order for HPV and a Womens Health Profile does not exist.");
                    this.m_ActionRequired = true;
                }
                if (physician.HPV1618StandingOrderCode != standingOrderNone.StandingOrderCode)
                {
                    this.m_Message.AppendLine("The physician has a standing order for HPV 16/18 and a Womens Health Profile does not exist.");
                    this.m_ActionRequired = true;
                }
            }
        }
示例#13
0
        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.");
                    }
                }
            }
        }
        public MultiTestDistributionHandlerWHPHold(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
            : base(accessionOrder)
        {
            YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest womensHealthProfile = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest();
            if (accessionOrder.PanelSetOrderCollection.Exists(womensHealthProfile.PanelSetId) == true)
            {
                this.m_DistributePap = false;
            }
            else
            {
                this.m_DistributePap = true;
            }

            this.m_DistributeHPV     = false;
            this.m_DistributeHPV1618 = false;
            this.m_DistributeNGCT    = false;
            this.m_DistributeTrich   = false;
            this.m_DistributeHWP     = 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;
         }
     }
 }
示例#16
0
 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.");
             }
         }
     }
 }
 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.");
             }
         }
     }
 }
示例#18
0
        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) == false)
            {
                YellowstonePathology.Business.Client.Model.StandingOrderNone standingOrderNone = new YellowstonePathology.Business.Client.Model.StandingOrderNone();
                if (physician.HPVStandingOrderCode != standingOrderNone.StandingOrderCode)
                {
                    this.m_Message.AppendLine("The physician has a standing order for HPV and a Womens Health Profile does not exist.");
                    this.m_ActionRequired = true;
                }
                if (physician.HPV1618StandingOrderCode != standingOrderNone.StandingOrderCode)
                {
                    this.m_Message.AppendLine("The physician has a standing order for HPV 16/18 and a Womens Health Profile does not exist.");
                    this.m_ActionRequired = true;
                }
            }
        }
        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;
                }
            }
        }
示例#20
0
        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.");
                    }
                }
            }
        }
示例#21
0
        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);
                    }
                }
            }
        }
示例#22
0
        public bool WomensHealthProfileExists()
        {
            bool result = false;

            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 = true;
                    break;
                }
            }
            return(result);
        }
示例#23
0
 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);
 }
示例#24
0
 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;
                 }
             }
         }
     }
 }
示例#25
0
 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.");
             }
         }
     }
 }