Example #1
0
 public ObservationController(IFhirService fhirService, IObservationService observationService,
                              IConverter <Observation, ObservationDto> observationToDtoConverter,
                              IConverter <IList <Observation>, IList <ObservationDto> > observationsToDtoConverter)
 {
     _observationService         = observationService;
     _observationToDtoConverter  = observationToDtoConverter;
     _observationsToDtoConverter = observationsToDtoConverter;
     fhirService.Initialize();
 }
Example #2
0
 public PatientController(IFhirService fhirService, IPatientService patientService,
                          IConverter <Patient, PatientDetailDto> patientToDtoConverter,
                          IConverter <IList <Patient>, IList <PatientDetailDto> > patientsToDtoConverter,
                          IValidator <IList <PatientCsv> > patientsCsvValidator)
 {
     _patientService         = patientService;
     _patientToDtoConverter  = patientToDtoConverter;
     _patientsToDtoConverter = patientsToDtoConverter;
     _patientsCsvValidator   = patientsCsvValidator;
     fhirService.Initialize();
 }
 public PatientService(IFhirService fhirService,
                       ICitizenshipService citizenshipService,
                       IConverter <PatientCsv, Patient> patientCsvToPatientConverter,
                       IConverter <PatientDto, Patient> patientDtoToPatientConverter)
 {
     _citizenshipService           = citizenshipService;
     _patientCsvToPatientConverter = patientCsvToPatientConverter;
     _patientDtoToPatientConverter = patientDtoToPatientConverter;
     fhirService.Initialize();
     _fhirClient = fhirService.Client;
 }
Example #4
0
 public OrganizationController(IFhirService fhirService, IOrganizationService organizationService)
 {
     _organizationService = organizationService;
     fhirService.Initialize();
 }
 public OrganizationService(IFhirService fhirService)
 {
     fhirService.Initialize();
     _fhirClient = fhirService.Client;
 }
Example #6
0
 public MedicationController(IFhirService fhirService, IMedicationService medicationService)
 {
     _medicationService = medicationService;
     fhirService.Initialize();
 }
Example #7
0
 public ObservationService(IFhirService fhirService, IOptions <FhirOptions> fhirOptions)
 {
     _fhirOptions = fhirOptions.Value;
     fhirService.Initialize();
     _fhirClient = fhirService.Client;
 }
 public MedicationService(IFhirService fhirService)
 {
     fhirService.Initialize();
     _client = fhirService.Client;
 }