RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Referral not booked · referral 50939

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

When
Thursday 12 November 10:25:00
Call
send booking offer · undo: POST /Communication (booking offer, patient 91426, referral 50939)
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": "Saltholme Clinic",
  "clinic_id": 10,
  "days_waiting": 2.0,
  "feed": "admin",
  "invite_sent_at": null,
  "invite_unanswered": false,
  "patient_id": 91426,
  "patients_affected": 1,
  "priority": "urgent",
  "referral_id": 50939,
  "referred_by": "Dr N. Greyby",
  "rule_days": 2,
  "sent_at": "2026-11-10 09:41:09",
  "specialty": "Neurology",
  "specialty_id": 7,
  "stake_note": "referral waiting 2.0 days",
  "started_at": "2026-11-12T09:41:09"
}

Arguments

{
  "patient_id": 91426,
  "referral_id": 50939
}

Before and after

{
  "after": {
    "restored_to": {},
    "undone": [
      {
        "compensated": "messages",
        "message_id": 900000036,
        "reverts_message_id": 900000035
      },
      {
        "closed": "offers",
        "id": 23
      }
    ]
  },
  "before": {
    "messages": [
      {
        "appointment_id": null,
        "id": 900000035,
        "kind": "booking_offer",
        "patient_id": 91426
      }
    ],
    "offers": [
      {
        "clinic_id": 10,
        "clinician_id": 183,
        "created_at": "2026-11-12T10:00:00",
        "created_by": "Rounds",
        "id": 23,
        "kind": "booking",
        "patient_id": 91426,
        "referral_id": 50939,
        "slot_start": "2026-11-16T08:00:00",
        "status": "offered"
      }
    ]
  }
}