public AddPatientCommandHandler( ITypeExtensionHandler modelExtensionBuilder, IRepositoryInt <CohortGroup> cohortGroupRepository, IRepositoryInt <CustomAttributeConfiguration> customAttributeRepository, IRepositoryInt <EncounterType> encounterTypeRepository, IRepositoryInt <Patient> patientRepository, IRepositoryInt <TerminologyMedDra> terminologyMeddraRepository, IUnitOfWorkInt unitOfWork, ILinkGeneratorService linkGeneratorService, IPatientService patientService, IMapper mapper, ILogger <AddPatientCommandHandler> logger) { _modelExtensionBuilder = modelExtensionBuilder ?? throw new ArgumentNullException(nameof(modelExtensionBuilder)); _cohortGroupRepository = cohortGroupRepository ?? throw new ArgumentNullException(nameof(cohortGroupRepository)); _customAttributeRepository = customAttributeRepository ?? throw new ArgumentNullException(nameof(customAttributeRepository)); _encounterTypeRepository = encounterTypeRepository ?? throw new ArgumentNullException(nameof(encounterTypeRepository)); _patientRepository = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository)); _terminologyMeddraRepository = terminologyMeddraRepository ?? throw new ArgumentNullException(nameof(terminologyMeddraRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService)); _patientService = patientService ?? throw new ArgumentNullException(nameof(patientService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public CreateE2BForSpontaneousCommandHandler( IRepositoryInt <Config> configRepository, IRepositoryInt <Dataset> datasetRepository, IRepositoryInt <DatasetElement> datasetElementRepository, IRepositoryInt <DatasetInstance> datasetInstanceRepository, IRepositoryInt <ReportInstance> reportInstanceRepository, IRepositoryInt <SiteContactDetail> siteContactDetailRepository, IRepositoryInt <User> userRepository, IUnitOfWorkInt unitOfWork, IWorkFlowService workFlowService, IHttpContextAccessor httpContextAccessor, ILogger <CreateE2BForSpontaneousCommandHandler> logger) { _configRepository = configRepository ?? throw new ArgumentNullException(nameof(configRepository)); _datasetRepository = datasetRepository ?? throw new ArgumentNullException(nameof(datasetRepository)); _datasetElementRepository = datasetElementRepository ?? throw new ArgumentNullException(nameof(datasetElementRepository)); _datasetInstanceRepository = datasetInstanceRepository ?? throw new ArgumentNullException(nameof(datasetInstanceRepository)); _reportInstanceRepository = reportInstanceRepository ?? throw new ArgumentNullException(nameof(reportInstanceRepository)); _siteContactDetailRepository = siteContactDetailRepository ?? throw new ArgumentNullException(nameof(siteContactDetailRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _workFlowService = workFlowService ?? throw new ArgumentNullException(nameof(workFlowService)); _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public AddMedicationToPatientCommandHandler( ITypeExtensionHandler modelExtensionBuilder, IRepositoryInt <Concept> conceptRepository, IRepositoryInt <Config> configRepository, IRepositoryInt <CustomAttributeConfiguration> customAttributeRepository, IRepositoryInt <Patient> patientRepository, IRepositoryInt <Product> productRepository, IUnitOfWorkInt unitOfWork, ILinkGeneratorService linkGeneratorService, IWorkFlowService workFlowService, IMapper mapper, ILogger <AddMedicationToPatientCommandHandler> logger) { _modelExtensionBuilder = modelExtensionBuilder ?? throw new ArgumentNullException(nameof(modelExtensionBuilder)); _conceptRepository = conceptRepository ?? throw new ArgumentNullException(nameof(conceptRepository)); _configRepository = configRepository ?? throw new ArgumentNullException(nameof(configRepository)); _customAttributeRepository = customAttributeRepository ?? throw new ArgumentNullException(nameof(customAttributeRepository)); _patientRepository = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository)); _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService)); _workFlowService = workFlowService ?? throw new ArgumentNullException(nameof(workFlowService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public UserInfoStore(IUnitOfWorkInt unitOfWork) { this.unitOfWork = unitOfWork; this.userRoleRepository = unitOfWork.Repository <UserRole>(); this.roleRepository = unitOfWork.Repository <Role>(); this.userRepository = unitOfWork.Repository <User>(); }
public ConditionsController(IMediator mediator, ITypeHelperService typeHelperService, IMapper mapper, ILinkGeneratorService linkGeneratorService, IRepositoryInt <Condition> conditionRepository, IRepositoryInt <ConditionLabTest> conditionLabTestRepository, IRepositoryInt <ConditionMedication> conditionMedicationRepository, IRepositoryInt <ConditionMedDra> conditionMeddraRepository, IRepositoryInt <LabTest> labTestRepository, IRepositoryInt <Concept> conceptRepository, IRepositoryInt <Product> productRepository, IRepositoryInt <TerminologyMedDra> terminologyMeddraRepository, IUnitOfWorkInt unitOfWork, ILogger <ConditionsController> logger) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _typeHelperService = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService)); _conditionRepository = conditionRepository ?? throw new ArgumentNullException(nameof(conditionRepository)); _conditionLabTestRepository = conditionLabTestRepository ?? throw new ArgumentNullException(nameof(conditionLabTestRepository)); _conditionMedicationRepository = conditionMedicationRepository ?? throw new ArgumentNullException(nameof(conditionMedicationRepository)); _conditionMeddraRepository = conditionMeddraRepository ?? throw new ArgumentNullException(nameof(conditionMeddraRepository)); _labTestRepository = labTestRepository ?? throw new ArgumentNullException(nameof(labTestRepository)); _conceptRepository = conceptRepository ?? throw new ArgumentNullException(nameof(conceptRepository)); _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _terminologyMeddraRepository = terminologyMeddraRepository ?? throw new ArgumentNullException(nameof(terminologyMeddraRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public PatientConditionsController(IMediator mediator, IMapper mapper, ILinkGeneratorService linkGeneratorService, ITypeExtensionHandler modelExtensionBuilder, IRepositoryInt <Patient> patientRepository, IRepositoryInt <PatientCondition> patientConditionRepository, IRepositoryInt <PatientStatus> patientStatusRepository, IRepositoryInt <TerminologyMedDra> terminologyMeddraRepository, IRepositoryInt <Outcome> outcomeRepository, IRepositoryInt <TreatmentOutcome> treatmentOutcomeRepository, IRepositoryInt <User> userRepository, IRepositoryInt <CustomAttributeConfiguration> customAttributeRepository, IUnitOfWorkInt unitOfWork, IHttpContextAccessor httpContextAccessor, ILogger <PatientConditionsController> logger) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService)); _modelExtensionBuilder = modelExtensionBuilder ?? throw new ArgumentNullException(nameof(modelExtensionBuilder)); _patientRepository = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository)); _patientConditionRepository = patientConditionRepository ?? throw new ArgumentNullException(nameof(patientConditionRepository)); _patientStatusRepository = patientStatusRepository ?? throw new ArgumentNullException(nameof(patientStatusRepository)); _terminologyMeddraRepository = terminologyMeddraRepository ?? throw new ArgumentNullException(nameof(terminologyMeddraRepository)); _outcomeRepository = outcomeRepository ?? throw new ArgumentNullException(nameof(outcomeRepository)); _treatmentOutcomeRepository = treatmentOutcomeRepository ?? throw new ArgumentNullException(nameof(treatmentOutcomeRepository)); _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _customAttributeRepository = customAttributeRepository ?? throw new ArgumentNullException(nameof(customAttributeRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public InfrastructureService(IUnitOfWorkInt unitOfWork) { Check.IsNotNull(unitOfWork, "unitOfWork may not be null"); _unitOfWork = unitOfWork; _instanceValueRepository = unitOfWork.Repository <DatasetInstanceValue>(); }
public CustomAttributeConfigController(ICustomAttributeService customAttributeService, IUnitOfWorkInt unitOfWork) { Check.IsNotNull(customAttributeService, "customAttributeService may not be null"); Check.IsNotNull(unitOfWork, "unitOfWork may not be null"); this.customAttributeService = customAttributeService; _unitOfWork = unitOfWork; }
public PatientService(IUnitOfWorkInt unitOfWork) { Check.IsNotNull(unitOfWork, "unitOfWork may not be null"); _unitOfWork = unitOfWork; _patientRepository = unitOfWork.Repository <Patient>(); }
public AdminController(IUnitOfWorkInt unitOfWork, IMedDraService meddraService, IInfrastructureService infrastuctureService) { Check.IsNotNull(meddraService, "meddraService may not be null"); _unitOfWork = unitOfWork; _meddraService = meddraService; _infrastuctureService = infrastuctureService; }
public InfrastructureService(IUnitOfWorkInt unitOfWork, IRepositoryInt <DatasetInstanceValue> instanceValueRepository, IRepositoryInt <Config> configRepository) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _instanceValueRepository = instanceValueRepository ?? throw new ArgumentNullException(nameof(instanceValueRepository)); _configRepository = configRepository ?? throw new ArgumentNullException(nameof(configRepository)); }
public ChangeAppointmentDetailsCommandHandler( IRepositoryInt <Appointment> appointmentRepository, IUnitOfWorkInt unitOfWork, ILogger <ChangeAppointmentDetailsCommandHandler> logger) { _appointmentRepository = appointmentRepository ?? throw new ArgumentNullException(nameof(appointmentRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ChangeContactDetailsCommandHandler( IRepositoryInt <SiteContactDetail> siteContactDetailRepository, IUnitOfWorkInt unitOfWork, ILogger <ChangeContactDetailsCommandHandler> logger) { _siteContactDetailRepository = siteContactDetailRepository ?? throw new ArgumentNullException(nameof(siteContactDetailRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ChangeCustomAttributeDetailsCommandHandler( ICustomAttributeService customAttributeService, IUnitOfWorkInt unitOfWork, ILogger <ChangeCustomAttributeDetailsCommandHandler> logger) { _customAttributeService = customAttributeService ?? throw new ArgumentNullException(nameof(customAttributeService)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public GenerateE2BExtractArtefactWhenE2BGeneratedDomainEventHandler( IRepositoryInt <DatasetInstance> datasetInstanceRepository, IXmlDocumentService xmlDocumentService, IUnitOfWorkInt unitOfWork) { _datasetInstanceRepository = datasetInstanceRepository ?? throw new ArgumentNullException(nameof(datasetInstanceRepository)); _xmlDocumentService = xmlDocumentService ?? throw new ArgumentNullException(nameof(xmlDocumentService)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); }
public DeleteConceptCommandHandler( IRepositoryInt <Concept> conceptRepository, IUnitOfWorkInt unitOfWork, ILogger <DeleteConceptCommandHandler> logger) { _conceptRepository = conceptRepository ?? throw new ArgumentNullException(nameof(conceptRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ChangePatientDateOfBirthCommandHandler( IRepositoryInt <Patient> patientRepository, IUnitOfWorkInt unitOfWork, ILogger <ChangePatientDateOfBirthCommandHandler> logger) { _patientRepository = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public DeleteProductCommandHandler( IRepositoryInt <Product> productRepository, IUnitOfWorkInt unitOfWork, ILogger <DeleteProductCommandHandler> logger) { _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public CustomAttributeService( IUnitOfWorkInt unitOfWork, IRepositoryInt <CustomAttributeConfiguration> customAttributeConfigRepository, IRepositoryInt <SelectionDataItem> selectionDataItemRepository) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _customAttributeConfigRepository = customAttributeConfigRepository ?? throw new ArgumentNullException(nameof(customAttributeConfigRepository)); _selectionDataItemRepository = selectionDataItemRepository ?? throw new ArgumentNullException(nameof(selectionDataItemRepository)); }
public CustomAttributeService(IUnitOfWorkInt unitOfWork) { Check.IsNotNull(unitOfWork, "unitOfWork may not be null"); customAttributeConfigRepository = unitOfWork.Repository <CustomAttributeConfiguration>(); selectionDataRepository = unitOfWork.Repository <SelectionDataItem>(); _unitOfWork = unitOfWork; }
public DeleteFacilityCommandHandler( IRepositoryInt <Facility> facilityRepository, IUnitOfWorkInt unitOfWork, ILogger <DeleteFacilityCommandHandler> logger) { _facilityRepository = facilityRepository ?? throw new ArgumentNullException(nameof(facilityRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public AddNotificationWhenTaskCommentAddedDomainEventHandler( IRepositoryInt <Notification> notificationRepository, IRepositoryInt <Config> configRepository, IUnitOfWorkInt unitOfWork) { _notificationRepository = notificationRepository ?? throw new ArgumentNullException(nameof(notificationRepository)); _configRepository = configRepository ?? throw new ArgumentNullException(nameof(configRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); }
public DeleteCustomAttributeCommandHandler( IRepositoryInt <CustomAttributeConfiguration> customAttributeRepository, IUnitOfWorkInt unitOfWork, ILogger <DeleteCustomAttributeCommandHandler> logger) { _customAttributeRepository = customAttributeRepository ?? throw new ArgumentNullException(nameof(customAttributeRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public AcceptEulaCommandHandler( IRepositoryInt <User> userRepository, IUnitOfWorkInt unitOfWork, ILogger <AcceptEulaCommandHandler> logger) { _userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ChangeTaskDetailsCommandHandler( IRepositoryInt <ReportInstance> reportInstanceRepository, IUnitOfWorkInt unitOfWork, ILogger <ChangeTaskDetailsCommandHandler> logger) { _reportInstanceRepository = reportInstanceRepository ?? throw new ArgumentNullException(nameof(reportInstanceRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ExcelDocumentService(IUnitOfWorkInt unitOfWork, ICustomAttributeService attributeService, IPatientService patientService, IRepositoryInt <DatasetInstance> datasetInstanceRepository) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _attributeService = attributeService ?? throw new ArgumentNullException(nameof(attributeService)); _patientService = patientService ?? throw new ArgumentNullException(nameof(patientService)); _datasetInstanceRepository = datasetInstanceRepository ?? throw new ArgumentNullException(nameof(datasetInstanceRepository)); }
public ChangePatientFacilityCommandHandler( IRepositoryInt <Facility> facilityRepository, IRepositoryInt <Patient> patientRepository, IUnitOfWorkInt unitOfWork, ILogger <ChangePatientFacilityCommandHandler> logger) { _facilityRepository = facilityRepository ?? throw new ArgumentNullException(nameof(facilityRepository)); _patientRepository = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ChangeProductDetailsCommandHandler( IRepositoryInt <Concept> conceptRepository, IRepositoryInt <Product> productRepository, IUnitOfWorkInt unitOfWork, ILogger <ChangeProductDetailsCommandHandler> logger) { _conceptRepository = conceptRepository ?? throw new ArgumentNullException(nameof(conceptRepository)); _productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public override void OnActionExecuting(HttpActionContext actionContext) { unitOfWork = actionContext.Request.GetDependencyScope().GetService(typeof(IUnitOfWorkInt)) as IUnitOfWorkInt; if (unitOfWork != null) { unitOfWork.Start(); } base.OnActionExecuting(actionContext); }
public ChangeReportInstanceActivityCommandHandler( IRepositoryInt <ReportInstance> reportInstanceRepository, IWorkFlowService workFlowService, IUnitOfWorkInt unitOfWork, ILogger <ChangeReportInstanceActivityCommandHandler> logger) { _reportInstanceRepository = reportInstanceRepository ?? throw new ArgumentNullException(nameof(reportInstanceRepository)); _workFlowService = workFlowService ?? throw new ArgumentNullException(nameof(workFlowService)); _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }