Skip to main content

$capabilities

$capabilities() -> object
Compact type signature<:o>
Execution
AsyncCan run in parallel

This helper performs FHIR server work asynchronously. Independent calls can start together when they wait on the server. See Parallelism And Async Evaluation and Async And Concurrency.

Documentation

Requires a configured FHIR server base URL.

Multi-server connections

This function uses the default FHIR server unless $useFhirServer() has been called in the current expression block. See Multi-server connections for details.

Returns the FHIR server's CapabilityStatement resource by performing a GET request to its /metadata endpoint.

Examples

Read server capabilities

Expression

$capabilities()

The result below is representative. Actual result depends on the environment.

Result

{
"resourceType": "CapabilityStatement",
"kind": "instance",
"format": [
"application/fhir+json"
]
}