Follow-ups due
fhir_find_followups_dueFind discharged patients with no live follow-up booked within a set window. Returns overdue and upcoming contacts, oldest discharge first, for outreach scheduling.
Instructions
Finished encounters that ended in a date range with no live follow-up appointment booked within withinDays of discharge. Cancelled or no-show follow-ups do not count as booked. Returns the patients to contact, oldest discharge first, whether the window has already closed (overdue) or can still be met, and any follow-up booked too late.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Restrict to resources carrying this meta.tag, as `system|code` or `code`. Useful for scoping to one tenant or one demo dataset. | |
| withinDays | No | ||
| dischargedTo | No | Defaults to now. | |
| maxEncounters | No | ||
| dischargedFrom | Yes | ||
| encounterClass | No | v3 ActCode, e.g. IMP (inpatient), EMER, AMB. |