RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Referral not booked · referral 50087

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

When
Tuesday 10 November 12:25:00
Call
send booking offer · undo: POST /Communication (booking offer, patient 45261, referral 50087)
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": "Orrinford Health Centre",
  "clinic_id": 30,
  "days_waiting": 2.0,
  "feed": "admin",
  "invite_sent_at": null,
  "invite_unanswered": false,
  "patient_id": 45261,
  "patients_affected": 1,
  "priority": "urgent",
  "referral_id": 50087,
  "referred_by": "Dr O. Iversbrook",
  "rule_days": 2,
  "sent_at": "2026-11-08 11:32:39",
  "specialty": "Gastroenterology",
  "specialty_id": 6,
  "stake_note": "referral waiting 2.0 days",
  "started_at": "2026-11-10T11:32:39"
}

Arguments

{
  "patient_id": 45261,
  "referral_id": 50087
}

Before and after

{
  "after": {
    "restored_to": {},
    "undone": [
      {
        "compensated": "messages",
        "message_id": 900000002,
        "reverts_message_id": 900000001
      },
      {
        "closed": "offers",
        "id": 1
      }
    ]
  },
  "before": {
    "messages": [
      {
        "appointment_id": null,
        "id": 900000001,
        "kind": "booking_offer",
        "patient_id": 45261
      }
    ],
    "offers": [
      {
        "clinic_id": 30,
        "clinician_id": 471,
        "created_at": "2026-11-10T12:00:00",
        "created_by": "Rounds",
        "id": 1,
        "kind": "booking",
        "patient_id": 45261,
        "referral_id": 50087,
        "slot_start": "2026-11-11T08:00:00",
        "status": "offered"
      }
    ]
  }
}