Skip to main content
Bulk Data Export
curl --request POST \
  --url 'https://{tenant_id}.api.nestmed.com/fhir/r4/$export' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/fhir+json' \
  --header 'Prefer: <prefer>' \
  --data '
{
  "_type": "Patient,Encounter,MedicationStatement",
  "_since": "2023-11-07T05:31:56Z",
  "_outputFormat": "application/fhir+ndjson"
}
'

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Prefer
enum<string>
required

Must be 'respond-async' for bulk export

Available options:
respond-async

Body

application/fhir+json
_type
string

Comma-separated list of resource types to export

Example:

"Patient,Encounter,MedicationStatement"

_since
string<date-time>

Export resources updated after this time

_outputFormat
string
default:application/fhir+ndjson

Output format for exported data

Response

202

Export request accepted