Exemple #1
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));
 }
 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));
 }