Poll Asynchronous Exports
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 Location header in the HTTP 202 response for the polling URL.
Content-Location: https://api.payer.com/fhir/Group/12345/export-status/67890Notes: Avoid excessive polling to reduce load on the FHIR server.
Sample Polling Request
POST https://api.payer.com/fhir/Group/12345/export-status/67890
Authorization: Bearer <access_token>
Accept: application/json
Content-Type: application/fhir+json
Sample JSON Response from Polling URL
{
"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/BulkData/exports/job12345/Encounter.ndjson"
}
],
"error" : []
}
You are about to leave the Smile Digital Health documentation and navigate to the Open Source HAPI-FHIR Documentation.