RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Post discharge followup overdue · discharge 756

Held Tue 09:00 with clinician 417 and offered it (discharge follow-up).

When
Monday 16 November 09:00:00
Call
send booking offer · POST /Communication (booking offer, patient 31502, discharge 756)
Tier and status
tier 0 auto done
Definition
post discharge followup overdue v1
Decided by
rules: Discharged with a follow-up due within 7 days and nothing booked.
Controller
Allowed: send_booking_offer is tier 0 (just do it); within budget (2 of 60 paperwork actions this minute).
Signed off by
nobody needed: tier 0
Undo
undo_send_booking_offer restores the before-snapshot below

Evidence the detector returned

{
  "bookings_affected": 0,
  "clinic": "Gledworth Health Centre",
  "clinic_id": 26,
  "days_since_notice": 3.0,
  "discharge_id": 756,
  "discharged_at": "2026-11-13 06:54:22",
  "feed": "admin",
  "follow_up_due_by": "2026-11-20 06:54:22",
  "follow_up_within_days": 7,
  "notified_at": "2026-11-13 08:54:13",
  "patient_id": 31502,
  "patients_affected": 1,
  "specialty": "Gynaecology",
  "specialty_id": 10,
  "stake_note": "patient discharged with no follow-up booked",
  "started_at": "2026-11-16T08:54:13",
  "unit": "Rookmere General Hospital ward 4"
}

Arguments

{
  "discharge_id": 756,
  "patient_id": 31502
}

Before and after

{
  "after": {
    "messages": [
      {
        "appointment_id": null,
        "id": 900000103,
        "kind": "booking_offer",
        "patient_id": 31502
      }
    ],
    "offers": [
      {
        "clinic_id": 26,
        "clinician_id": 417,
        "created_at": "2026-11-16T09:00:00",
        "created_by": "Rounds",
        "discharge_id": 756,
        "id": 44,
        "kind": "booking",
        "patient_id": 31502,
        "slot_start": "2026-11-17T09:00:00",
        "status": "offered"
      }
    ]
  },
  "before": {}
}