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#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 activeEndpoint
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 activeEndpoint
resource 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#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 activeEndpoint
resource 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:
-
getClientConfig
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 activeEndpoint
resource 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:
-