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"requiresresponsibility: "patient", andresponsibility: "none"is only valid for closed episodes. - You cannot set
responsibility: "practice"withassigned_to: null. Either provide an assignee or set responsibility topatient.
/episodesList episodesread_episodesPOST/episodesCreate an episodewrite_episodesGET/episodes/{id}Retrieve an episoderead_episodesPATCH/episodes/{id}Update an episodewrite_episodesPOST/episodes/{id}/closeClose an episodewrite_episodesPOST/episodes/{id}/reopenReopen a closed episodewrite_episodesPOST/episodes/{id}/assignAssign an episodewrite_episodesPOST/episodes/{id}/change-priorityChange episode prioritywrite_episodesGET/episodes/{id}/eventsList events for an episoderead_episodesPOST/episodes/{id}/eventsCreate an event on an episodewrite_episodes/episodesScoperead_episodesList episodes
Sorted by updated_at descending (most recently active first).
Query
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
searchstringpatient_iduuidstatusstringstatus_instringComma-separated
responsibilitystringassigned_touuidprioritystringjourney_typestringinbox_visibilitystringResponses
Paginated list
/episodesScopewrite_episodesCreate an episode
Headers
Idempotency-KeyuuidOptional 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_iduuidrequiredtitlestringrequireddescriptionstringstatusstringresponsibilitystringassigned_touuidprioritystringjourney_typestringsource_typestringsource_iduuidproblem_idsuuid[]tagsstring[]due_datedate-timeprogramme_iduuidinbox_visibilitystringResponses
Created
Idempotency key reused with different request body
Request body failed validation
/episodes/{id}Scoperead_episodesRetrieve an episode
Path
iduuidrequiredResponses
Episode detail
Resource not found (or belongs to a different organisation)
/episodes/{id}Scopewrite_episodesUpdate an episode
Status, priority, and assignment changes must use action endpoints.
Path
iduuidrequiredRequest body
titlestringdescriptionstringdue_datedate-timeproblem_idsuuid[]tagsstring[]journey_typestringsource_typestringsource_iduuidprogramme_iduuidinbox_visibilitystringResponses
Updated
Resource not found (or belongs to a different organisation)
Request body failed validation
/episodes/{id}/closeScopewrite_episodesClose an episode
Path
iduuidrequiredRequest body
reasonstringnotestringResponses
Closed
Invalid state transition
/episodes/{id}/reopenScopewrite_episodesReopen a closed episode
Path
iduuidrequiredRequest body
statusstringresponsibilitystringreasonstringResponses
Reopened
/episodes/{id}/assignScopewrite_episodesAssign an episode
Path
iduuidrequiredRequest body
assigned_touuidrequiredUser UUID or null to unassign
responsibilitystringResponses
Assigned
/episodes/{id}/change-priorityScopewrite_episodesChange episode priority
Path
iduuidrequiredRequest body
prioritystringrequiredreasonstringResponses
Priority changed
/episodes/{id}/eventsScoperead_episodesList events for an episode
Path
iduuidrequiredQuery
limitintegerMaximum number of records to return (1–100, default 20)
offsetintegerNumber of records to skip (default 0)
event_typestringevent_type_instringcreated_by_typestringResponses
Paginated list
Resource not found (or belongs to a different organisation)
/episodes/{id}/eventsScopewrite_episodesCreate an event on an episode
Append-only timeline event on an episode.
Path
iduuidrequiredHeaders
Idempotency-KeyuuidOptional 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_typestringrequireddescriptionstringrequiredtitlestringcreated_byuuidcreated_by_typestringmentioned_usersuuid[]extracted_tagsstring[]related_object_typestringrelated_object_iduuidResponses
Created
Resource not found (or belongs to a different organisation)
Idempotency key reused with different request body
Request body failed validation
