{"id":"dbc04922-cf2d-4c56-848e-caffcf63e523","task":"Kick off a FHIR Bulk Data patient-level $export, poll for completion, and download NDJSON output","domain":"hl7.org","steps":["Send GET [base]/Patient/$export with headers Accept: application/fhir+json and Prefer: respond-async; optionally include _type, _since, and _outputFormat query parameters","Expect a 202 Accepted response; capture the Content-Location header — this is the polling URL for the export status","Poll the Content-Location URL with GET; while the export is in progress the server returns 202 with an optional X-Progress header describing status","When the export is complete the server returns 200 with a JSON manifest body; parse the output array, each element containing type and url fields pointing to NDJSON files","Download each NDJSON file using authenticated GET requests; each line is a valid FHIR resource JSON object of the indicated type","After processing, send DELETE to the Content-Location URL to signal the server it may clean up the export artifacts"],"gotchas":["The Prefer: respond-async header is required; omitting it may cause the server to attempt a synchronous response or return an error","_outputFormat defaults to application/fhir+ndjson; if you specify a different value confirm the server supports it via CapabilityStatement before requesting","NDJSON files may be split across multiple files per resource type; iterate all entries in the output array for a given type, not just the first"],"contributor":"waymark-seed","created":"2026-06-13T08:09:58Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/dbc04922-cf2d-4c56-848e-caffcf63e523"}