Example #1
0
 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));
 }
Example #2
0
 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));
 }
Example #3
0
 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));
 }
Example #4
0
 public PatientExpandedQueryHandler(
     IRepositoryInt <CohortGroup> cohortGroupRepository,
     IRepositoryInt <CohortGroupEnrolment> cohortGroupEnrolmentRepository,
     IRepositoryInt <ConditionMedDra> conditionMeddraRepository,
     IRepositoryInt <Patient> patientRepository,
     IRepositoryInt <PatientClinicalEvent> patientClinicalEventRepository,
     IRepositoryInt <PatientCondition> patientConditionRepository,
     IRepositoryInt <PatientMedication> patientMedicationRepository,
     IRepositoryInt <SelectionDataItem> selectionDataItemRepository,
     IReportInstanceQueries reportInstanceQueries,
     ITypeExtensionHandler modelExtensionBuilder,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <PatientExpandedQueryHandler> logger,
     ICustomAttributeService customAttributeService)
 {
     _cohortGroupRepository          = cohortGroupRepository ?? throw new ArgumentNullException(nameof(cohortGroupRepository));
     _cohortGroupEnrolmentRepository = cohortGroupEnrolmentRepository ?? throw new ArgumentNullException(nameof(cohortGroupEnrolmentRepository));
     _conditionMeddraRepository      = conditionMeddraRepository ?? throw new ArgumentNullException(nameof(conditionMeddraRepository));
     _patientRepository = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository));
     _patientClinicalEventRepository = patientClinicalEventRepository ?? throw new ArgumentNullException(nameof(patientClinicalEventRepository));
     _patientConditionRepository     = patientConditionRepository ?? throw new ArgumentNullException(nameof(patientConditionRepository));
     _patientMedicationRepository    = patientMedicationRepository ?? throw new ArgumentNullException(nameof(patientMedicationRepository));
     _selectionDataItemRepository    = selectionDataItemRepository ?? throw new ArgumentNullException(nameof(selectionDataItemRepository));
     _reportInstanceQueries          = reportInstanceQueries ?? throw new ArgumentNullException(nameof(reportInstanceQueries));
     _modelExtensionBuilder          = modelExtensionBuilder ?? throw new ArgumentNullException(nameof(modelExtensionBuilder));
     _linkGeneratorService           = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _customAttributeService = customAttributeService ?? throw new ArgumentNullException(nameof(customAttributeService));
 }
Example #5
0
 public PatientsDetailQueryHandler(
     IRepositoryInt <ConditionMedDra> conditionMeddraRepository,
     IRepositoryInt <CustomAttributeConfiguration> customAttributeRepository,
     IRepositoryInt <Facility> facilityRepository,
     IRepositoryInt <Patient> patientRepository,
     IRepositoryInt <PatientCondition> patientConditionRepository,
     IRepositoryInt <SelectionDataItem> selectionDataItemRepository,
     IRepositoryInt <User> userRepository,
     PVIMSDbContext dbContext,
     ITypeExtensionHandler modelExtensionBuilder,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     IHttpContextAccessor httpContextAccessor,
     ILogger <PatientsDetailQueryHandler> logger)
 {
     _conditionMeddraRepository   = conditionMeddraRepository ?? throw new ArgumentNullException(nameof(conditionMeddraRepository));
     _customAttributeRepository   = customAttributeRepository ?? throw new ArgumentNullException(nameof(customAttributeRepository));
     _facilityRepository          = facilityRepository ?? throw new ArgumentNullException(nameof(facilityRepository));
     _patientRepository           = patientRepository ?? throw new ArgumentNullException(nameof(patientRepository));
     _patientConditionRepository  = patientConditionRepository ?? throw new ArgumentNullException(nameof(patientConditionRepository));
     _selectionDataItemRepository = selectionDataItemRepository ?? throw new ArgumentNullException(nameof(selectionDataItemRepository));
     _userRepository        = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _context               = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _modelExtensionBuilder = modelExtensionBuilder ?? throw new ArgumentNullException(nameof(modelExtensionBuilder));
     _linkGeneratorService  = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #6
0
 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 AdverseEventReportQueryHandler(
     IPatientQueries patientQueries,
     ILinkGeneratorService linkGeneratorService,
     ILogger <AdverseEventReportQueryHandler> logger)
 {
     _patientQueries       = patientQueries ?? throw new ArgumentNullException(nameof(patientQueries));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #8
0
 public RolesController(ITypeHelperService typeHelperService,
                        IMapper mapper,
                        ILinkGeneratorService linkGeneratorService,
                        RoleManager <IdentityRole <Guid> > roleManager)
 {
     _typeHelperService    = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService));
     _mapper               = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _roleManager          = roleManager ?? throw new ArgumentNullException(nameof(roleManager));
 }
 public MedicationFormsIdentifierQueryHandler(
     IRepositoryInt <MedicationForm> medicationFormRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <MedicationFormsIdentifierQueryHandler> logger)
 {
     _medicationFormRepository = medicationFormRepository ?? throw new ArgumentNullException(nameof(medicationFormRepository));
     _linkGeneratorService     = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #10
0
 public ReportInstanceTaskIdentifierQueryHandler(
     IRepositoryInt <ReportInstanceTask> reportInstanceTaskRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <ReportInstanceTaskIdentifierQueryHandler> logger)
 {
     _reportInstanceTaskRepository = reportInstanceTaskRepository ?? throw new ArgumentNullException(nameof(reportInstanceTaskRepository));
     _linkGeneratorService         = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #11
0
 public UserIdentifierQueryHandler(
     IRepositoryInt <User> userRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <UserIdentifierQueryHandler> logger)
 {
     _userRepository       = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public ConditionsIdentifierQueryHandler(
     IRepositoryInt <Condition> conditionRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <ConditionsIdentifierQueryHandler> logger)
 {
     _conditionRepository  = conditionRepository ?? throw new ArgumentNullException(nameof(conditionRepository));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public OutstandingVisitReportQueryHandler(
     IAppointmentQueries appointmentQueries,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <OutstandingVisitReportQueryHandler> logger)
 {
     _appointmentQueries   = appointmentQueries ?? throw new ArgumentNullException(nameof(appointmentQueries));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #14
0
 public PatientMedicationIdentifierQueryHandler(
     IRepositoryInt <PatientMedication> patientMedicationRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <PatientMedicationIdentifierQueryHandler> logger)
 {
     _patientMedicationRepository = patientMedicationRepository ?? throw new ArgumentNullException(nameof(patientMedicationRepository));
     _linkGeneratorService        = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public OrgUnitsIdentifierQueryHandler(
     IRepositoryInt <OrgUnit> orgUnitRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <OrgUnitsIdentifierQueryHandler> logger)
 {
     _orgUnitRepository    = orgUnitRepository ?? throw new ArgumentNullException(nameof(orgUnitRepository));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public ContactIdentifierQueryHandler(
     IRepositoryInt <SiteContactDetail> siteContactDetailRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <ContactIdentifierQueryHandler> logger)
 {
     _siteContactDetailRepository = siteContactDetailRepository ?? throw new ArgumentNullException(nameof(siteContactDetailRepository));
     _linkGeneratorService        = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public CustomAttributesIdentifierQueryHandler(
     IRepositoryInt <CustomAttributeConfiguration> CustomAttributeRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <CustomAttributesIdentifierQueryHandler> logger)
 {
     _CustomAttributeRepository = CustomAttributeRepository ?? throw new ArgumentNullException(nameof(CustomAttributeRepository));
     _linkGeneratorService      = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public CausalityReportQueryHandler(
     IReportInstanceQueries reportInstanceQueries,
     IInfrastructureService infrastructureService,
     ILinkGeneratorService linkGeneratorService,
     ILogger <CausalityReportQueryHandler> logger)
 {
     _reportInstanceQueries = reportInstanceQueries ?? throw new ArgumentNullException(nameof(reportInstanceQueries));
     _infrastructureService = infrastructureService ?? throw new ArgumentNullException(nameof(infrastructureService));
     _linkGeneratorService  = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public PatientTreatmentReportQueryHandler(
     IPatientQueries patientQueries,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <PatientTreatmentReportQueryHandler> logger)
 {
     _patientQueries       = patientQueries ?? throw new ArgumentNullException(nameof(patientQueries));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public ProductIdentifierQueryHandler(
     IRepositoryInt <Product> productRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <ProductIdentifierQueryHandler> logger)
 {
     _productRepository    = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public WorkFlowIdentifierQueryHandler(
     IRepositoryInt <WorkFlow> workFlowRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <WorkFlowIdentifierQueryHandler> logger)
 {
     _workFlowRepository   = workFlowRepository ?? throw new ArgumentNullException(nameof(workFlowRepository));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #22
0
 public FacilityDetailQueryHandler(
     IRepositoryInt <Facility> facilityRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <FacilityDetailQueryHandler> logger)
 {
     _facilityRepository   = facilityRepository ?? throw new ArgumentNullException(nameof(facilityRepository));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #23
0
 public CohortGroupsDetailQueryHandler(
     IRepositoryInt <CohortGroup> cohortGroupRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <CohortGroupsDetailQueryHandler> logger)
 {
     _cohortGroupRepository = cohortGroupRepository ?? throw new ArgumentNullException(nameof(cohortGroupRepository));
     _linkGeneratorService  = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #24
0
 public ConfigsController(ITypeHelperService typeHelperService,
                          IMapper mapper,
                          ILinkGeneratorService linkGeneratorService,
                          IRepositoryInt <Config> configRepository,
                          IUnitOfWorkInt unitOfWork)
 {
     _typeHelperService    = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService));
     _mapper               = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _configRepository     = configRepository ?? throw new ArgumentNullException(nameof(configRepository));
     _unitOfWork           = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
Example #25
0
 public LabResultsController(IPropertyMappingService propertyMappingService,
                             IMapper mapper,
                             ILinkGeneratorService linkGeneratorService,
                             IRepositoryInt <LabResult> labResultRepository,
                             IUnitOfWorkInt unitOfWork)
 {
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _labResultRepository  = labResultRepository ?? throw new ArgumentNullException(nameof(labResultRepository));
     _unitOfWork           = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
Example #26
0
 public PrioritiesController(IPropertyMappingService propertyMappingService,
                             ITypeHelperService typeHelperService,
                             IMapper mapper,
                             ILinkGeneratorService linkGeneratorService,
                             IRepositoryInt <Priority> priorityRepository)
 {
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     _typeHelperService      = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _priorityRepository   = priorityRepository ?? throw new ArgumentNullException(nameof(priorityRepository));
 }
Example #27
0
 public RiskFactorsController(ITypeHelperService typeHelperService,
                              IRepositoryInt <RiskFactor> riskFactorRepository,
                              IRepositoryInt <RiskFactorOption> riskFactorOptionRepository,
                              IMapper mapper,
                              ILinkGeneratorService linkGeneratorService)
 {
     _typeHelperService          = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService));
     _riskFactorRepository       = riskFactorRepository ?? throw new ArgumentNullException(nameof(riskFactorRepository));
     _riskFactorOptionRepository = riskFactorOptionRepository ?? throw new ArgumentNullException(nameof(riskFactorOptionRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
 }
 public EncounterDetailQueryHandler(
     IRepositoryInt <DatasetInstance> datasetInstanceRepository,
     IRepositoryInt <Encounter> encounterRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <EncounterDetailQueryHandler> logger)
 {
     _datasetInstanceRepository = datasetInstanceRepository ?? throw new ArgumentNullException(nameof(datasetInstanceRepository));
     _encounterRepository       = encounterRepository ?? throw new ArgumentNullException(nameof(encounterRepository));
     _linkGeneratorService      = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #29
0
 public AddCohortGroupCommandHandler(
     IRepositoryInt <CohortGroup> cohortGroupRepository,
     IRepositoryInt <Condition> conditionRepository,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <AddCohortGroupCommandHandler> logger)
 {
     _cohortGroupRepository = cohortGroupRepository ?? throw new ArgumentNullException(nameof(cohortGroupRepository));
     _conditionRepository   = conditionRepository ?? throw new ArgumentNullException(nameof(conditionRepository));
     _linkGeneratorService  = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public AddCommentToReportInstanceTaskCommandHandler(
     IRepositoryInt <ReportInstance> reportInstanceRepository,
     IUnitOfWorkInt unitOfWork,
     ILinkGeneratorService linkGeneratorService,
     IMapper mapper,
     ILogger <AddCommentToReportInstanceTaskCommandHandler> logger)
 {
     _reportInstanceRepository = reportInstanceRepository ?? throw new ArgumentNullException(nameof(reportInstanceRepository));
     _unitOfWork           = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _linkGeneratorService = linkGeneratorService ?? throw new ArgumentNullException(nameof(linkGeneratorService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }