# Alerts and episodes

Canonical page: https://docs.ovok.com/signals/alerts-and-episodes

An alert is one breach, and an episode is the clinical event that groups the breaches of one patient and one vital. Signals always records alerts; it records episodes only while the tenant setting `episodicAlerts` is on, which the Console shows as **Record episodes**.

| | Alert | Episode |
| --- | --- | --- |
| Created by | A reading that breaches a trigger, or an empty reading, a note or a quiet patient | The first breaching reading of a patient's vital; the readings that follow join it |
| Closes when | A trigger resolves it, or someone acknowledges it | One of the [close reasons](/signals/connected-ovok#how-an-episode-behaves) applies, such as `RECOVERED` or `TIMEOUT` |
| Webhook events | [`alert.triggered`](/signals/standalone/webhooks/alert-triggered), [`alert.refired`](/signals/standalone/webhooks/alert-refired), [`alert.resolved`](/signals/standalone/webhooks/alert-resolved), [`alert.acknowledged`](/signals/standalone/webhooks/alert-acknowledged) and the empty, note and inactive events | [`episode.opened`](/signals/standalone/webhooks/episode-opened), [`episode.closed`](/signals/standalone/webhooks/episode-closed) |
| FHIR resource | `DetectedIssue` | `Flag` |
| Needs `episodicAlerts` | No | Yes |

## When Record episodes is off [#when-record-episodes-is-off]

Signals records no episodes: you get `DetectedIssue`s but no `Flag`s, and episode feeds stay empty. Episode webhook events cannot be subscribed to, and the episode routes answer `403` `FEATURE_DISABLED`. See [Alerts, episodes and annotations](/signals/with-ovok/gotchas#alerts-episodes-and-annotations).

While it is off, Signals stops closing episodes too: the stale-episode check skips the tenant, so an episode that was open when you turned the switch off is not closed by `TIMEOUT` until you turn it back on.

## The medical feed and the bells [#the-medical-feed-and-the-bells]

The medical feed and the bells are Easycarehub's views of open episodes.

## See also [#see-also]

- [How an episode behaves](/signals/connected-ovok#how-an-episode-behaves)
- [Webhooks](/signals/standalone/webhooks)
- [Annotations in FHIR](/signals/with-ovok/fhir-annotations)
