RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Referral not booked · referral 52306

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 97591, referral 52306)
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 (1 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": "Millhaven Rise Clinic",
  "clinic_id": 19,
  "days_waiting": 2.0,
  "feed": "admin",
  "invite_sent_at": null,
  "invite_unanswered": false,
  "patient_id": 97591,
  "patients_affected": 1,
  "priority": "urgent",
  "referral_id": 52306,
  "referred_by": "Dr M. Pellmore",
  "rule_days": 2,
  "sent_at": "2026-11-14 11:05:05",
  "specialty": "Dermatology",
  "specialty_id": 3,
  "stake_note": "referral waiting 2.0 days",
  "started_at": "2026-11-16T11:05:05"
}

Arguments

{
  "patient_id": 97591,
  "referral_id": 52306
}

Before and after

{
  "after": {
    "restored_to": {},
    "undone": [
      {
        "compensated": "messages",
        "message_id": 900000136,
        "reverts_message_id": 900000130
      },
      {
        "closed": "offers",
        "id": 65
      }
    ]
  },
  "before": {
    "messages": [
      {
        "appointment_id": null,
        "id": 900000130,
        "kind": "booking_offer",
        "patient_id": 97591
      }
    ],
    "offers": [
      {
        "clinic_id": 19,
        "clinician_id": 297,
        "created_at": "2026-11-16T12:00:00",
        "created_by": "Rounds",
        "id": 65,
        "kind": "booking",
        "patient_id": 97591,
        "referral_id": 52306,
        "slot_start": "2026-11-17T08:00:00",
        "status": "offered"
      }
    ]
  }
}