public static MultiTestDistributionHandler GetHandler(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
 {
     MultiTestDistributionHandler result = null;
     if (accessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true)
     {
         WHPHoldList holdList = new WHPHoldList();
         if (holdList.Exists(accessionOrder.PhysicianId) == true)
         {
             result = new MultiTestDistributionHandlerWHPHold(accessionOrder);
         }
         else
         {
             YellowstonePathology.Business.Client.Model.ClientGroupClientCollection clientGroupStVincent = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientGroupClientCollectionByClientGroupId(1);
             if (clientGroupStVincent.ClientIdExists(accessionOrder.ClientId) == true)
             {
                 result = new MultiTestDistributionHandlerWHPSVH(accessionOrder);
             }
             else
             {
                 result = new MultiTestDistributionHandlerWHPStandard(accessionOrder);
             }
         }
     }
     else
     {
         result = new MultiTestDistributionHandler(accessionOrder);
     }
     return result;
 }
Esempio n. 2
0
        public static MultiTestDistributionHandler GetHandler(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            MultiTestDistributionHandler result = null;

            if (accessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true)
            {
                WHPHoldList holdList = new WHPHoldList();
                if (holdList.Exists(accessionOrder.PhysicianId) == true)
                {
                    result = new MultiTestDistributionHandlerWHPHold(accessionOrder);
                }
                else
                {
                    YellowstonePathology.Business.Client.Model.ClientGroupClientCollection clientGroupStVincent = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientGroupClientCollectionByClientGroupId(1);
                    if (clientGroupStVincent.ClientIdExists(accessionOrder.ClientId) == true)
                    {
                        result = new MultiTestDistributionHandlerWHPSVH(accessionOrder);
                    }
                    else
                    {
                        result = new MultiTestDistributionHandlerWHPStandard(accessionOrder);
                    }
                }
            }
            else
            {
                result = new MultiTestDistributionHandler(accessionOrder);
            }
            return(result);
        }
Esempio n. 3
0
        public static MultiTestDistributionHandler GetHandler(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            MultiTestDistributionHandler result = null;

            if (accessionOrder.PanelSetOrderCollection.HasWomensHealthProfileOrder() == true)
            {
                YellowstonePathology.Business.Domain.Physician physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(accessionOrder.PhysicianId);
                if (physician != null && physician.DistributeWHPOnly == true)
                {
                    result = new MultiTestDistributionHandlerWHPOnly(accessionOrder);
                }
                else if (physician != null && physician.HoldForWHP == true)
                {
                    result = new MultiTestDistributionHandlerWHPHold(accessionOrder);
                }
                else
                {
                    YellowstonePathology.Business.Client.Model.ClientGroupClientCollection clientGroupStVincent = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientGroupClientCollectionByClientGroupId("1");
                    if (accessionOrder.ClientId == 1565) //Midwifery
                    {
                        result = new MultiTestDistributionHandlerNoWHP(accessionOrder);
                    }
                    else if (clientGroupStVincent.ClientIdExists(accessionOrder.ClientId) == true)
                    {
                        result = new MultiTestDistributionHandlerWHPSVH(accessionOrder);
                    }
                    else
                    {
                        result = new MultiTestDistributionHandlerWHPStandard(accessionOrder);
                    }
                }
            }
            else
            {
                result = new MultiTestDistributionHandler(accessionOrder);
            }
            return(result);
        }