Interface DsfClientProvider


public interface DsfClientProvider
Provides DSF clients for configured (non DSF) FHIR servers and DSF FHIR servers.
See Also:
  • Method Details

    • getById

      Optional<DsfClient> getById(String fhirServerId)
      DSF client for a FHIR server configured via YAML with the given fhirServerId.

      Use #local as the fhirServerId for a connection to the local DSF FHIR server.
      Use #<value> as the fhirServerId for a connection to a DSF FHIR server with an active Endpoint resource and the given fhirServerId as the "http://dsf.dev/sid/endpoint-identifier" value (ignoring the # character).
      Parameters:
      fhirServerId - may be null
      Returns:
      never null, Optional.empty() if no client is configured for the given fhirServerId
    • getLocal

      DsfClient getLocal()
    • getByEndpointUrl

      DsfClient getByEndpointUrl(String webserviceUrl)
      Parameters:
      webserviceUrl - not null
      Returns:
      DsfClient for the given webserviceUrl
    • getByEndpoint

      default DsfClient getByEndpoint(org.hl7.fhir.r4.model.Endpoint endpoint)
      Parameters:
      endpoint - not null, endpoint.address not null
      Returns:
      DsfClient for the address defined in the given endpoint