Package dev.dsf.bpe.v2.service
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 TypeMethodDescriptionOptional<ca.uhn.fhir.rest.client.api.IGenericClient> HAPI FHIR client for a FHIR server configured via YAML with the given fhirServerId.
Use#localas 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 activeEndpointresource and the given fhirServerId as the "http://dsf.dev/sid/endpoint-identifier" value (ignoring the # character).
-
Method Details
-
getClient
HAPI FHIR client for a FHIR server configured via YAML with the given fhirServerId.
Use#localas 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 activeEndpointresource and the given fhirServerId as the "http://dsf.dev/sid/endpoint-identifier" value (ignoring the # character).- Parameters:
fhirServerId- may benull- Returns:
- never
null,Optional.empty()if no client is configured for the given fhirServerId - See Also:
-