Skip to main content

System-level API

FHIR 4.0.1application/fhir+jsonCORS

What the server offers on the base URL itself, https://[host]/w/[tenant]/[project]/api/v1/fhir: the interactions that span resource types, the operations invoked at the system level, and which of the 155 resource types have operations of their own. Generated from the server's CapabilityStatement and the OperationDefinitions it serves.

Interactions​

InteractionRequestDescription
CapabilitiesmetadataGET [base]/metadataThe CapabilityStatement this page is generated from.
Searchsearch-systemGET [base]?[parameters]Search across every resource type. Documentation
Historyhistory-systemGET [base]/_historyEvery change to every resource, newest first. Documentation
TransactiontransactionPOST [base]A Bundle of type transaction, applied as one unit: all of it or none of it.
BatchbatchPOST [base]A Bundle of type batch; each entry succeeds or fails on its own.

The interactions on a resource type (create, read, update, patch, delete, search and history) are on its page, with their test results.

Operations​

Invoke with POST [base]/$[name], sending a Parameters resource as the body. The out parameters say what comes back: a resource, or a Parameters resource holding them.

$current-project

System

Current Project Information

Get Project resource for the current project.

POST [base]/$current-project
Parameters: 0 in, 1 out
NameCard.TypeDescription
Out
project1..1Project

Users current project.

$delete-refresh-token

System

Delete refresh token

Delete refresh token from the user for the client.

POST [base]/$delete-refresh-token
Parameters: 2 in, 1 out
NameCard.TypeDescription
In
client_id1..1id

Client id for refresh token to delete.

user_agent0..1string

User agent of the refresh token to delete.

Out
return1..1OperationOutcome

Result of the delete operation.

$delete-scope

System

Delete Scope

Delete scope from user accepted scopes for the client.

POST [base]/$delete-scope
Parameters: 1 in, 1 out
NameCard.TypeDescription
In
client_id1..1id

Client for which scopes are being shown.

Out
return1..1OperationOutcome

Result of the delete operation.

$endpoints

System

Current Tenant Endpoint Information

Get tenant endpoint information for the current tenant.

POST [base]/$endpoints
Parameters: 0 in, 7 out
NameCard.TypeDescription
Out
fhir-r4-base-url1..1uri

FHIR R4 Endpoint URL.

fhir-r4-capabilities-url1..1uri

FHIR R4 Capabilities URL.

oidc-discovery-url1..1uri

OIDC Discovery URL.

oidc-token-endpoint1..1uri

OIDC Token Endpoint.

oidc-authorize-endpoint1..1uri

OIDC Authorize Endpoint.

oidc-jwks-endpoint1..1uri

OIDC JWKS Endpoint.

mcp-endpoint1..1uri

Model context protocol endpoint.

$hl7v2-parse

System

HL7v2 Parse

Parse HL7v2 messages.

POST [base]/$hl7v2-parse
Parameters: 1 in, 1 out
NameCard.TypeDescription
In
hl7v21..1string

HL7v2 message to be parsed.

Out
hl7v21..1HL7V2

Parsed HL7v2 message.

$indexing-errors

System

Show Indexing Errors

Show resources that failed search indexing for the current tenant and project.

POST [base]/$indexing-errors
Parameters: 1 in, 1 out
NameCard.TypeDescription
In
resolve0..1boolean

If true, mark the indexing errors as resolved.

Out
errors0..*parts

The resources that failed search indexing.

id1..1id

Version id of the resource that failed to index.

version_id1..1id

Version id of the resource that failed to index.

resource_type1..1code

FHIR resource type of the resource that failed to index.

fhir_method1..1code

The operation (create, update or delete) that failed to index.

sequence1..1integer

Sequence position of the resource in the indexing stream.

attempt_count1..1integer

Number of times indexing has been attempted for this resource.

error_message1..1string

The error that occurred while indexing.

first_failed_at1..1dateTime

When this resource first failed indexing.

last_failed_at1..1dateTime

When this resource most recently failed indexing.

resolved_at0..1dateTime

When this failure was marked resolved, if it has been.

$refresh-tokens

System

Show Refresh Tokens

Show list of users refresh tokens.

POST [base]/$refresh-tokens
Parameters: 0 in, 1 out
NameCard.TypeDescription
Out
refresh-tokens0..*parts

The result of the operation.

client_id1..1id

Client for refresh token.

user_agent1..1string

User agent of the refresh token.

created_at1..1dateTime

When the refresh token was created.

$scopes

System

Show Scopes

Show list of user accepted scopes for apps.

POST [base]/$scopes
Parameters: 0 in, 1 out
NameCard.TypeDescription
Out
scopes0..*parts

The result of the operation.

client_id1..1id

Client for which scopes are being shown.

scopes1..1string

Scopes user accepted.

created_at1..1dateTime

When the scopes were accepted.

$tenant-branding

System

Tenant Branding

Get the current tenant's display name and logo, if set.

POST [base]/$tenant-branding
Parameters: 0 in, 2 out
NameCard.TypeDescription
Out
name0..1string

Display name for the tenant, if one has been set.

logo0..1Attachment

Logo for the tenant, if one has been set.

$tenant-customization

System

Tenant Customization

Set display customization for the current tenant, such as its display name and logo.

POST [base]/$tenant-customization
Parameters: 2 in, 0 out
NameCard.TypeDescription
In
name0..1string

Display name for the tenant. Omit to clear the tenant's display name.

logo0..1Attachment

Logo for the tenant. Omit to clear the tenant's logo.

$viewdefinition-run

SystemTypeInstance

ViewDefinition Run

Execute a view definition against supplied or server data.

POST [base]/$viewdefinition-runPOST [base]/ViewDefinition/$viewdefinition-runPOST [base]/ViewDefinition/[id]/$viewdefinition-run
Parameters: 10 in, 1 out
NameCard.TypeDescription
In
_format0..1code

Output format for the result (for example json, ndjson, csv, parquet). Optional; if omitted, the server returns ndjson by default.

Binding: extensible OutputFormatCodes
header0..1boolean

Include CSV headers (default true). Applies only when csv output is requested.

viewReference0..1Reference

Reference to a ViewDefinition stored on the server.

viewResource0..1ViewDefinition(ViewDefinition)

Inline ViewDefinition resource to execute.

patient0..1Reference

Restrict execution to the specified patient.

group0..*Reference

Restrict execution to members of the given group(s).

source0..1string

External data source to use (for example a URI or bucket name).

resource0..*Resource

FHIR resources to transform instead of using server data.

_limit0..1integer

Maximum number of rows to return.

_since0..1instant

Include only resources modified after this instant.

Out
return1..1Binary

Transformed data encoded in the requested output format.

Operations by resource type​

The resource types with type- or instance-level operations. Every other resource type supports the standard interactions only.