Polling the Export Job

 

After initiating the export, the server responds with HTTP 202 Accepted and a Content-Location header containing the job URL, for example https://api.payer.com/fhir/$export-poll-status?_jobId=67890. Poll this URL to check job status:

GET <export-job-location-url>

Headers:
Authorization: Bearer <access_token>
Accept: application/fhir+json

Notes:

  • Poll the job URL until it completes: the response is HTTP 202 Accepted while the job is running, and HTTP 200 OK when it is complete.
  • Once completed, the response lists the URLs of Binary resources that contain the NDJSON data.
  • Use reasonable polling intervals to avoid overloading the server.