Exemple #1
0
 public CareTeamCommand(PostDeletePatientRequest req,IContactEndpointUtil contactEndpointUtil, string contactId)
 {
     if (req == null)
         throw new ArgumentNullException("request");
     if (string.IsNullOrEmpty(contactId))
         throw new ArgumentNullException("conatctId");
     if (contactEndpointUtil == null)
         throw new ArgumentNullException("contactEndpointUtil");
     _request = req;
     _contactId = contactId;
     _contactEndpointUtil = contactEndpointUtil;
 }
Exemple #2
0
 public CohortRulesProcessor(ICareMemberCohortRuleFactory cf, IContactEndpointUtil ceu, ICohortRuleUtil cohortRuleUtil, ILogger logger)
 {
     QueueProcessorRunning         = false;
     _cohortRuleUtil               = cohortRuleUtil;
     _cohortRuleCheckDataTeamQueue = new ConcurrentQueue <CohortRuleCheckData>();
     _logger = logger;
     CareMemberCohortRuleFactory = cf;
     EndpointUtil = ceu;
     _queuEvent   = new AutoResetEvent(false);
     _exitEvent   = new ManualResetEvent(false);
     wHandles     = new WaitHandle[]
     {
         _queuEvent,
         _exitEvent
     };
     queueLock = new object();
 }
Exemple #3
0
        public UnAssignedPCMRule(IContactEndpointUtil contactEndpointUtil, ILogger logger, ICohortRuleUtil cohortRuleUtil)
        {
            if (contactEndpointUtil == null)
            {
                throw new ArgumentNullException("contactEndpointUtil");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            if (cohortRuleUtil == null)
            {
                throw new ArgumentNullException("cohortRuleUtil");
            }

            _contactEndpointUtil = contactEndpointUtil;
            _logger         = logger;
            _cohortRuleUtil = cohortRuleUtil;
        }
        public DereferencePatientInContactCommand(string contactId, PostDeletePatientRequest request, IContactEndpointUtil contactEndpointUtil)
        {
            if (contactId == null)
            {
                throw new ArgumentNullException("contactId");
            }

            if (request == null)
            {
                throw new ArgumentNullException("request");
            }

            if (contactEndpointUtil == null)
            {
                throw new ArgumentNullException("contactEndpointUtil");
            }

            _contactId           = contactId;
            _request             = request;
            _contactEndpointUtil = contactEndpointUtil;
        }
 public EngageCareMemberCohortRuleFactory(IContactEndpointUtil contactEndpointUtil, ILogger logger, ICohortRuleUtil cohortRuleUtil)
 {
     _contactEndpointUtil = contactEndpointUtil;
     _logger         = logger;
     _cohortRuleUtil = cohortRuleUtil;
 }