Export patient FHIR resources

Return the patient's latest stored FHIR resources as a paginated searchset Bundle.

GET
/patients/{id}/$everything

Authorization

BearerAuth
AuthorizationBearer <token>

Medblocks API key for server-side requests.

In: header

Path Parameters

id*string

Your patient_id from Patient creation or Session upsert.

Query Parameters

_type?string

Comma-separated FHIR resource types to include, e.g. Observation,Condition.

_since?|

ISO 8601 date or timestamp. Returns current resources changed after this time.

_count?integer

Maximum entries per Bundle page.

Default100
Range1 <= value <= 100
starting_after?string

Opaque 12-character cursor from the next Bundle link.

ending_before?string

Opaque 12-character cursor from the previous Bundle link.

Header Parameters

Version?string

Date-pinned API version. If omitted, Medblocks uses the version pinned on your API key.

Response Body

application/json

application/json

curl -X GET "https://example.com/patients/string/$everything" \  -H "Version: 2026-04-25"
{  "resourceType": "Bundle",  "type": "searchset",  "total": 1,  "link": [    {      "relation": "self",      "url": "https://app.medblocks.com/patients/user_42/$everything?_count=100"    }  ],  "entry": [    {      "fullUrl": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/Observation/bmi-1",      "resource": {        "resourceType": "Observation",        "id": "bmi-1",        "status": "final"      },      "search": {        "mode": "match"      }    }  ]}
{  "error": {    "type": "authentication_error",    "code": "invalid_api_key",    "message": "API key invalid",    "param": null,    "doc_url": "https://docs.medblocks.com/errors/invalid_api_key",    "request_id": "9c9b6f7a-8e4f-4a3b-9c1e-6f3a2d8b7c4d"  }}
Non-2xx responses use the standard API error envelope. Log error.code and error.request_id for support.