Partner FHIR bulk export
When you need a whole cohort rather than one patient, use FHIR Bulk Data export ($export, HL7 FHIR Bulk Data Access IG v3.0.0) on your vendor hub link. Standard bulk data clients work: kick off, poll the status URL, download the NDJSON files. Velacent Bridge does not keep a clinical record to export from: every export reads the provider's system when it runs, and the files are then held for you for a short time so you can download them.
What you can export
The provider decides, per link, separately from what you may read:
- Types: the resource types the provider lets you export (never more than you asked to read, and only types the provider lets you read now).
GET {link}/fhir/metadatalists them in itsoperationandrest.documentation; a_typeoutside them is refused with403. - Groups:
GET {link}/fhir/Grouplists the groups the provider defined for you (a name and a size; members are never listed). Export one withGroup/{id}/$export. - Patients you looked up:
POST {link}/fhir/Patient/$exportwith aParametersbody naming up to 100 patients (patient,valueReferencePatient/{id}), each one you looked up on this link in the last 24 hours (see Partner FHIR access).patientis never accepted in a URL. - All patients:
Patient/$exportwithout patients, or$export, only if the provider turned on all-patients export for your link (off by default), and only where the provider's FHIR server runs$exportitself.
Your token needs the scope bulk:export. It is granted only where the provider granted bulk export on the link; a token requested without a scope parameter includes it there.
Run an export
curl -s -H "Authorization: Bearer $TOKEN" -H "Accept: application/fhir+json" -H "Prefer: respond-async" \
"https://api.example.org/v1/links/$LINK/fhir/Group/diabetes-program/\$export?_type=Patient,Observation&_since=2026-11-01T00:00:00Z" -i
# 202 Accepted, Content-Location: .../fhir/_bulk/bx_...
curl -s -H "Authorization: Bearer $TOKEN" "$STATUS_URL" -i
# 202 with Retry-After: 10 and X-Progress while it runs; 200 with the manifest when done
curl -s -H "Authorization: Bearer $TOKEN" -H "Accept: application/fhir+ndjson" "$FILE_URL" -o observations.ndjson
Parameters: _type, _since (a FHIR date and time with seconds and a time zone), _outputFormat (application/fhir+ndjson, application/ndjson or ndjson) and _typeFilter with category, code, date, status, clinical-status, type or intent on clinical types (for example Observation?category=laboratory). Other _typeFilter parameters are refused. _elements, _until, includeAssociatedData and organizeOutputBy are refused, or ignored with an informational OperationOutcome when you send Prefer: handling=lenient.
The manifest has transactionTime, request, requiresAccessToken: true (send your token with every file request), output (one or more files per type, with count), deleted (always empty: deletions are not passed on), error (OperationOutcome NDJSON: warnings and what was not applied) and extension: pulledAt (when the provider's system was read), reused, expires and mode (native: the provider's server ran the export; emulated: Velacent Bridge read each patient). File downloads support a single Range (bytes=start-end or bytes=start-), so a broken download resumes; a request with several ranges gets the whole file. Each export's files can be downloaded about twice over in all, each request counting the whole file. If a kick-off answers 503 with Retry-After: 1, the provider changed your link's access a moment earlier: retry it.
How long files are held, and held copies
- The files are held in Velacent Bridge's encrypted storage for 48 hours after the export completes (the manifest's
Expires), then deleted.DELETEthe status URL when you are done: the files are deleted at once and the status URL answers404. - If you start the same export again (same group or patients,
_type,_typeFilterand_since) within the link's freshness period (24 hours by default; the provider can set 0 to always read its system), Velacent Bridge answers from the held files instead of reading the provider's system again. The manifest says so (extension.reused: true) and itstransactionTimeis the original read, so using it as your next_sincenever misses data. SendCache-Control: no-cacheon the kick-off to read the provider's system again (it counts toward the daily caps). - A held export is never shared with another client, and it ends at once when the provider changes your link's access, groups or status, or clears held exports. Then its status URL answers
404: start the export again.
When an export fails
Every resource is checked before it is held: it must be of the export's types and belong to one of the export's patients. If the provider's system answers anything else, the whole export fails (status 500, OperationOutcome security), nothing of it is served and the provider sees it in its export log. Other failures (the provider's system unavailable, limits reached) also answer 500 with the reason; start the export again later.
Limits
One export queued or running per link at a time, 10 exports that read the provider's system and 100 kick-offs per link a day, 500,000 resources and 2 GB per export; exports emulated with per-patient searches read at most 1,000 patients and use at most half of the provider system's call rate. See Limits for every number.
In the sandbox
The sandbox (/sandbox/v1/fhir) has one group, synthetic-patients (the four synthetic patients), and exports patients you looked up there, so your first export works before any provider is involved:
curl -s -H "Authorization: Bearer $TEST_TOKEN" -H "Prefer: respond-async" \
"https://api.example.org/sandbox/v1/fhir/Group/synthetic-patients/\$export?_type=Patient,Observation" -i
Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.