RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Referral not booked · referral 52305

an urgent referral is booked by phone, not by an offer; withdrew the offer and called the patient [scripted staff responses (synthetic)]

When
Monday 16 November 12:25:00
Call
send booking offer · undo: POST /Communication (booking offer, patient 10089, referral 52305)
Tier and status
tier 0 rolled back
Definition
referral not booked v1
Decided by
rules: urgent referral unbooked after 2.0 days and no invite sent: offer the first free slot.
Controller
Allowed: send_booking_offer is tier 0 (just do it); within budget (0 of 60 paperwork actions this minute).
Signed off by
Ines Wendmore (records lead, scripted)
Undo
nothing to undo

Evidence the detector returned

{
  "bookings_affected": 0,
  "clinic": "Pellbrook Clinic",
  "clinic_id": 28,
  "days_waiting": 2.0,
  "feed": "admin",
  "invite_sent_at": null,
  "invite_unanswered": false,
  "patient_id": 10089,
  "patients_affected": 1,
  "priority": "urgent",
  "referral_id": 52305,
  "referred_by": "Dr O. Iversbrook",
  "rule_days": 2,
  "sent_at": "2026-11-14 11:03:23",
  "specialty": "Orthopaedics",
  "specialty_id": 4,
  "stake_note": "referral waiting 2.0 days",
  "started_at": "2026-11-16T11:03:23"
}

Arguments

{
  "patient_id": 10089,
  "referral_id": 52305
}

Before and after

{
  "after": {
    "restored_to": {},
    "undone": [
      {
        "compensated": "messages",
        "message_id": 900000135,
        "reverts_message_id": 900000129
      },
      {
        "closed": "offers",
        "id": 64
      }
    ]
  },
  "before": {
    "messages": [
      {
        "appointment_id": null,
        "id": 900000129,
        "kind": "booking_offer",
        "patient_id": 10089
      }
    ],
    "offers": [
      {
        "clinic_id": 28,
        "clinician_id": 426,
        "created_at": "2026-11-16T12:00:00",
        "created_by": "Rounds",
        "id": 64,
        "kind": "booking",
        "patient_id": 10089,
        "referral_id": 52305,
        "slot_start": "2026-11-17T08:40:00",
        "status": "offered"
      }
    ]
  }
}