Skip to content

SunCharts EHR API

Change events

EHR API as of 26.11.11.41 2 operations openapi.json ↓

# List changes

GET /api/v1/events

Durable tenant-scoped mutation notices; no clinical payload. Up to 100 notices per page; next_cursor for replay.

Access OAuth 2.0 access tokenevents.read

Parameters

Name In Type Details
after query integer

Responses

200 Success application/json

Body: object

400 Invalid request
401 Authentication required
403 Scope or role denied
409 Conflicting state

Example call

curl "$EHR_URL/api/v1/events" -H "Authorization: Bearer $ACCESS_TOKEN"

# Stream changes

GET /api/v1/events/stream

Durable tenant-scoped mutation notices; no clinical payload. Rechecks authorization each second. Event type clinical.change, id is cursor. Browser session or OAuth only.

Access OAuth 2.0 access tokenevents.read

Parameters

Name In Type Details
after query integer
Last-Event-ID header string

Responses

200 Success text/event-stream

Body: string

Example response placeholder values
"string"
400 Invalid request
401 Authentication required
403 Scope or role denied
409 Conflicting state

Example call

curl "$EHR_URL/api/v1/events/stream" -H "Authorization: Bearer $ACCESS_TOKEN"