When $davinci-data-export is initiated, the operation runs asynchronously. The export job URL must be polled to retrieve the data once it is ready.
$davinci-data-export, check the Content-Location header in the HTTP 202 response for the polling URL.
Content-Location: https://api.payer.com/fhir/$export-poll-status?_jobId=67890202 Accepted with an X-Progress header. When the job is complete, the response is HTTP 200 OK with the list of output files.Notes: Avoid excessive polling to reduce load on the FHIR server.
Sample Polling Request
GET https://api.payer.com/fhir/$export-poll-status?_jobId=67890
Authorization: Bearer <access_token>
Accept: application/json
Sample JSON Response from Polling URL (HTTP 200 OK)
Each url points to a Binary resource containing the NDJSON data of one resource type. Read it with the same access token.
{
"transactionTime": "2025-11-13T12:00:00Z",
"request": "https://api.payer.com/fhir/Group/12345/$davinci-data-export",
"requiresAccessToken": true,
"output": [
{
"type": "Encounter",
"url": "https://api.payer.com/fhir/Binary/abc123"
}
],
"error" : []
}
You are about to leave the Smile Digital Health documentation and navigate to the Open Source HAPI-FHIR Documentation.