Interface FhirClientProvider


public interface FhirClientProvider
Provides connection configurations and HAPI FHIR clients for configured (non DSF) FHIR servers and DSF FHIR servers.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<ca.uhn.fhir.rest.client.api.IGenericClient>
    getClient(String fhirServerId)
    HAPI FHIR 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).
    getClientConfig(String fhirServerId)
    FHIR client config for a FHIR server configured via YAML with the given fhirServerId.

    Use #local as the fhirServerId for a connection configuration to the local DSF FHIR server.
    Use #<value> as the fhirServerId for a connection configuration 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).
  • Method Details

    • getClient

      Optional<ca.uhn.fhir.rest.client.api.IGenericClient> getClient(String fhirServerId)
      HAPI FHIR 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
      See Also:
    • getClientConfig

      Optional<ClientConfig> getClientConfig(String fhirServerId)
      FHIR client config for a FHIR server configured via YAML with the given fhirServerId.

      Use #local as the fhirServerId for a connection configuration to the local DSF FHIR server.
      Use #<value> as the fhirServerId for a connection configuration 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
      See Also: