API Reference

Episodes

Manage clinical episodes (inbox items) with the Jump EHR API. Create, update, close, reopen, and assign workflow episodes.

Episodes are the core clinical workflow unit in Jump EHR — they represent items in the practice inbox. Each episode tracks a clinical workflow for a patient, from initial trigger (appointment booking, lab result, questionnaire submission) through to resolution.

  • Status, priority, and assignment changes must use action endpoints — they cannot be changed via PATCH. This ensures audit trails are maintained.
  • Consistency rules are enforced on create: status: "pending_patient" requires responsibility: "patient", and responsibility: "none" is only valid for closed episodes.
  • You cannot set responsibility: "practice" with assigned_to: null. Either provide an assignee or set responsibility to patient.
GET/episodesScoperead_episodes

List episodes

Sorted by updated_at descending (most recently active first).

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
searchstring
No description yet.
patient_iduuid
No description yet.
statusstring
openpending_patientawaiting_reviewclosed
status_instring

Comma-separated

responsibilitystring
practicepatientnone
assigned_touuid
No description yet.
prioritystring
lowmediumhighurgent
journey_typestring
No description yet.
inbox_visibilitystring
surfacesilent

Responses

200

Paginated list

POST/episodesScopewrite_episodes

Create an episode

Headers

Idempotency-Keyuuid

Optional UUID for request deduplication. Same key + same body returns the cached response. Same key + different body returns 409 CONFLICT. Keys are scoped to your organisation and endpoint, and expire after 24 hours.

Request body

patient_iduuidrequired
No description yet.
titlestringrequired
No description yet.
descriptionstring
No description yet.
statusstring
openpending_patientawaiting_review
responsibilitystring
practicepatientnone
assigned_touuid
No description yet.
prioritystring
lowmediumhighurgent
journey_typestring
No description yet.
source_typestring
No description yet.
source_iduuid
No description yet.
problem_idsuuid[]
No description yet.
tagsstring[]
No description yet.
due_datedate-time
No description yet.
programme_iduuid
No description yet.
inbox_visibilitystring
surfacesilent

Responses

201

Created

409

Idempotency key reused with different request body

422

Request body failed validation

GET/episodes/{id}Scoperead_episodes

Retrieve an episode

Path

iduuidrequired
No description yet.

Responses

200

Episode detail

404

Resource not found (or belongs to a different organisation)

PATCH/episodes/{id}Scopewrite_episodes

Update an episode

Status, priority, and assignment changes must use action endpoints.

Path

iduuidrequired
No description yet.

Request body

titlestring
No description yet.
descriptionstring
No description yet.
due_datedate-time
No description yet.
problem_idsuuid[]
No description yet.
tagsstring[]
No description yet.
journey_typestring
No description yet.
source_typestring
No description yet.
source_iduuid
No description yet.
programme_iduuid
No description yet.
inbox_visibilitystring
surfacesilent

Responses

200

Updated

404

Resource not found (or belongs to a different organisation)

422

Request body failed validation

POST/episodes/{id}/closeScopewrite_episodes

Close an episode

Path

iduuidrequired
No description yet.

Request body

reasonstring
resolvedduplicatepatient_declinedadmin_closed
notestring
No description yet.

Responses

200

Closed

422

Invalid state transition

POST/episodes/{id}/reopenScopewrite_episodes

Reopen a closed episode

Path

iduuidrequired
No description yet.

Request body

statusstring
openpending_patientawaiting_review
responsibilitystring
practicepatient
reasonstring
No description yet.

Responses

200

Reopened

POST/episodes/{id}/assignScopewrite_episodes

Assign an episode

Path

iduuidrequired
No description yet.

Request body

assigned_touuidrequired

User UUID or null to unassign

responsibilitystring
practicepatient

Responses

200

Assigned

POST/episodes/{id}/change-priorityScopewrite_episodes

Change episode priority

Path

iduuidrequired
No description yet.

Request body

prioritystringrequired
lowmediumhighurgent
reasonstring
No description yet.

Responses

200

Priority changed

GET/episodes/{id}/eventsScoperead_episodes

List events for an episode

Path

iduuidrequired
No description yet.

Query

limitinteger

Maximum number of records to return (1–100, default 20)

20
offsetinteger

Number of records to skip (default 0)

0
event_typestring
No description yet.
event_type_instring
No description yet.
created_by_typestring
usersystempatient

Responses

200

Paginated list

404

Resource not found (or belongs to a different organisation)

POST/episodes/{id}/eventsScopewrite_episodes

Create an event on an episode

Append-only timeline event on an episode.

Path

iduuidrequired
No description yet.

Headers

Idempotency-Keyuuid

Optional UUID for request deduplication. Same key + same body returns the cached response. Same key + different body returns 409 CONFLICT. Keys are scoped to your organisation and endpoint, and expire after 24 hours.

Request body

event_typestringrequired
notequestionnairecommunicationsystemstatus_changequestionnaire_responseassignmentpriority_changeappointmentinvoicelab_resultidentity_verificationautomationnotificationprescription
descriptionstringrequired
No description yet.
titlestring
No description yet.
created_byuuid
No description yet.
created_by_typestring
usersystempatient
mentioned_usersuuid[]
No description yet.
extracted_tagsstring[]
No description yet.
related_object_typestring
No description yet.
related_object_iduuid
No description yet.

Responses

201

Created

404

Resource not found (or belongs to a different organisation)

409

Idempotency key reused with different request body

422

Request body failed validation

Was this page helpful?