/// <summary> /// Initializes a new instance of the <see cref="ImmunizationService"/> class. /// </summary> /// <param name="logger">Injected Logger Provider.</param> /// <param name="httpAccessor">The injected http context accessor provider.</param> /// <param name="immunizationDelegateFactory">The factory to create immunization delegates.</param> /// <param name="patientDelegate">The injected patient delegate.</param> public ImmunizationService( ILogger <ImmunizationService> logger, IHttpContextAccessor httpAccessor, IImmunizationDelegateFactory immunizationDelegateFactory, IPatientDelegate patientDelegate) { this.logger = logger; this.httpContextAccessor = httpAccessor; this.immunizationDelegate = immunizationDelegateFactory.CreateInstance(); this.patientDelegate = patientDelegate; }
/// <summary> /// Initializes a new instance of the <see cref="RestMedicationStatementService"/> class. /// </summary> /// <param name="logger">Injected Logger Provider.</param> /// <param name="traceService">Injected TraceService Provider.</param> /// <param name="httpAccessor">The injected http context accessor provider.</param> /// <param name="patientService">The injected patientService patient registry provider.</param> /// <param name="drugLookupDelegate">Injected drug lookup delegate.</param> /// <param name="medicationStatementDelegate">Injected medication statement delegate.</param> public RestMedicationStatementService( ILogger <RestMedicationStatementService> logger, ITraceService traceService, IHttpContextAccessor httpAccessor, IPatientDelegate patientService, IDrugLookupDelegate drugLookupDelegate, IMedStatementDelegate medicationStatementDelegate) { this.logger = logger; this.traceService = traceService; this.httpContextAccessor = httpAccessor; this.patientDelegate = patientService; this.drugLookupDelegate = drugLookupDelegate; this.medicationStatementDelegate = medicationStatementDelegate; }