# Clinical notes & documents
GET
/api/v1/connections/{connection_id}/fhir/DocumentReference
Access End-user access token
Parameters
| Name | In | Type | Details |
|---|---|---|---|
connection_id
required
|
path | string (uuid) | |
patient
|
query | string | |
_count
|
query | integer | |
_page_token
|
query | string | Opaque cursor taken from Bundle.link[relation=next] |
Responses
- 200 FHIR R4 Bundle application/fhir+json
-
Fields FhirBundle · 7
Field Type Details entryarray of object resourceobject linkarray of object relationstring urlstring resourceTypeconstant always Bundle totalinteger Example response placeholder values
{ "entry": [ { "resource": {} } ], "link": [ { "relation": "string", "url": "string" } ], "resourceType": "Bundle", "total": 1 } - default Error (neutral code) application/json
-
Fields Error · 5
Field Type Details errorrequiredstring Stable machine code. Known values: `unauthorized`, `forbidden`, `not_found`, `bad_request`, `conflict`, `rate_limited`, `mfa_required`, `mfa_invalid`, `mfa_enrollment_required`, `openemr_link_required`, `openemr_relink_required`, `upstream_error`, `internal`. New codes may be added within v1: treat unknown values like the HTTP status. connection_idstring EHR connection that needs (re)linking (on `openemr_link_required` / `openemr_relink_required`) linkstring How to link the connection (on `openemr_link_required` / `openemr_relink_required`) messagestring Human-readable detail (do not branch on it; on 409 the text before the first `:` is a sub-code) retry_afterinteger Seconds to wait (on `rate_limited`; also sent as `Retry-After`)
Example call
curl "https://sandbox-api.suncharts.app/api/v1/connections/{connection_id}/fhir/DocumentReference" -H "Authorization: Bearer $TOKEN"