# Episode

Manage clinical episodes — containers for related patient interactions and messages.

 - [GET /v1/episodes/count](https://developer.herohealth.net/apis/public-api/openapi/episode/countepisodes.md): Retrieves a count of all episodes for a practice group.
 - [GET /v1/episodes](https://developer.herohealth.net/apis/public-api/openapi/episode/listepisodes.md): Retrieves a list of all episodes for a practice group.
 - [GET /v1/episodes/{id}](https://developer.herohealth.net/apis/public-api/openapi/episode/getepisode.md): Retrieve episode information for the given ID.
 - [PATCH /v1/episodes/{id}](https://developer.herohealth.net/apis/public-api/openapi/episode/updateepisode.md): Updates an episode using the provided parameters.
 - [POST /v1/notes](https://developer.herohealth.net/apis/public-api/openapi/episode/createepisodenote.md): Create a note for an episode in inbox.
 - [GET /v2/episodes/count](https://developer.herohealth.net/apis/public-api/openapi/episode/countepisodesv2.md): Counts the episodes for a practice group, with the same filters as the list, without loading any of them.
 - [GET /v2/episodes/patients](https://developer.herohealth.net/apis/public-api/openapi/episode/listepisodepatientsv2.md): Finds patients with the same search as `GET /v3/patients` (Hero data, at least one of full_name, first_name, last_name, dob, nhs_number or ehr_partner_id), then counts how many of each patient's episo
 - [GET /v2/episodes](https://developer.herohealth.net/apis/public-api/openapi/episode/listepisodesv2.md): Retrieves a list of all episodes for a practice group.
 - [GET /v2/episodes/{id}](https://developer.herohealth.net/apis/public-api/openapi/episode/getepisodev2.md): Retrieves the episode payload using the multi-task view for the given ID.
 - [GET /v2/recent_patients](https://developer.herohealth.net/apis/public-api/openapi/episode/listrecentpatientsv2.md): Lists the patients the acting admin recently picked in the inbox's patient search, newest first, at most 5, with how many of their episodes are open, in progress and closed. A recent patient with no e
 - [POST /v2/recent_patients](https://developer.herohealth.net/apis/public-api/openapi/episode/createrecentpatientv2.md): Records that the acting admin picked this patient in the inbox's patient search, so `GET /v2/recent_patients` offers them again. Keeps the newest 5 per admin and practice. Needs an admin in context; t
