ChartVoyant Developers
Markdown

FHIR R4 & SMART

Bulk Data export

LiveGroup-level onlyONC certification in progress

Export a practice's whole patient population as FHIR NDJSON files, asynchronously, with a SMART Backend Services token. Ask only for what changed since your last run with _since.

GET https://fhir.chartvoyant.com/r4/{practice}/Group/{id}/$export

At a glance

StatusLive in production.
LevelGroup-level only: GET /Group/{id}/$export. Each practice has one dynamic Group containing every patient not deleted at processing time. System-level /$export and patient-level /Patient/$export are not available.
StandardFHIR Bulk Data Access 2.0.
AuthenticationA SMART Backend Services token with a system read scope, plus system/Group.rs to discover the Group.
Outputapplication/fhir+ndjson, one resource per line, one file set per resource type.
FilesSigned links that expire after 24 hours and still require a current token from the same client and practice.
CostNo fee and no revenue share.

The flow

Relative to the practice's FHIR base (synthetic placeholders throughout):

1. Find the Group

GET /r4/your-practice/Group
Authorization: Bearer BACKEND_ACCESS_TOKEN

2. Kick off

GET /r4/your-practice/Group/GROUP_ID/$export?_type=Patient,Observation&_since=2026-01-01T00%3A00%3A00Z
Authorization: Bearer BACKEND_ACCESS_TOKEN
Accept: application/fhir+json
Prefer: respond-async

HTTP/1.1 202 Accepted
Content-Location: STATUS_URL

3. Poll, then download

GET STATUS_URL          # 202 with X-Progress and Retry-After while running
HTTP/1.1 200 OK
{"transactionTime":"2026-09-13T12:00:00Z","request":"ORIGINAL_REQUEST_URL",
 "requiresAccessToken":true,
 "output":[{"type":"Patient","url":"SIGNED_FILE_URL","count":3}],"error":[]}

GET SIGNED_FILE_URL     # same token; one FHIR resource per line
DELETE STATUS_URL       # cancel, and invalidate the files

Honor Retry-After between polls. Check the error array, and do not treat partial output as a complete export. If an export is already running for the practice, kickoff returns 429 with Retry-After.

Parameters

ParameterSupport
_typeComma-separated resource types. Request only types your scopes allow; system/*.rs may request every supported class.
_sinceA FHIR instant, for example 2026-01-01T00:00:00Z. Returns resources changed strictly after it. A future instant is rejected.
_outputFormatNDJSON only: application/fhir+ndjson (the default), application/ndjson, or ndjson.
Anything elseRejected with 400, including _typeFilter and _elements.
HeadersAccept: application/fhir+json and Prefer: respond-async are required.

How to get access

Register a SMART Backend Services client with system/Group.rs and the resource scopes your export needs. For full record archives that also include non-FHIR practice tables and original attachments, see Complete EHI export.