Skip to main content

Export Group data

Start an asynchronous export for the members of a stored FHIR Group. Patient members contribute supported Patient-compartment resources; other readable member resources can also be included.

MethodPath
GET/fhir/R4/Group/:id/$export

Request​

curl --get --include "https://api.sandbox.ovok.com/fhir/R4/Group/${GROUP_ID}/\$export" \
--header "Authorization: Bearer ${OVOK_TOKEN}" \
--header 'Accept: application/fhir+json' \
--header 'Prefer: respond-async' \
--data-urlencode '_type=Patient,Observation,Condition' \
--data-urlencode '_since=2026-01-01T00:00:00Z'
Parameter or headerRequiredDescription
:idYesID of the FHIR Group whose members define the export scope.
_typeNoComma-separated resource types to include.
_sinceNoISO 8601 instant; include resources updated at or after this time.
AcceptRecommendedRequest FHIR JSON for an error outcome.
PreferRecommendedUse respond-async for the asynchronous workflow.

Accepted response​

The server responds with 202 Accepted and a Content-Location status URL. Poll the URL until it returns 200 OK; the completed manifest lists NDJSON files by resource type.

Response partDescription
Content-LocationURL to poll for completion.
output[].typeResource type in the output file.
output[].urlDownload URL for the output file.

An unknown or inaccessible Group is rejected before export begins. See Check bulk export status for the manifest format. The FHIR Bulk Data Group export definition describes the standard operation.