RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Double booking · appointment 7841162

Held Wed 08:00 with clinician 173 and offered it (booking to move).

When
Tuesday 10 November 14:05:00
Call
send booking offer · POST /Communication (booking offer, patient 67076, appointment 7841162)
Tier and status
tier 0 auto done
Definition
double booking v1
Decided by
rules: No free room or colleague at that time: offer the later-booked patient a new slot.
Controller
Allowed: send_booking_offer is tier 0 (just do it); within budget (0 of 10 actions at clinic 9 this hour).
Signed off by
nobody needed: tier 0
Undo
undo_send_booking_offer restores the before-snapshot below

Evidence the detector returned

{
  "appointment_id": 7841162,
  "appointment_ids": [
    7841162,
    7765883
  ],
  "bookings_affected": 2,
  "clash": "clinician",
  "clinic": "Langwater Clinic",
  "clinic_id": 9,
  "clinician_id": 173,
  "end_at": "2026-11-11 11:30:00",
  "feed": "clinic day",
  "free_clinician_id": null,
  "free_room_id": 157,
  "free_room_kind": "consulting room",
  "other_appointment_id": 7765883,
  "patient_id": 67076,
  "patients_affected": 2,
  "room_id": 156,
  "stake_note": "two patients booked into one slot",
  "start_at": "2026-11-11 11:00:00",
  "started_at": "2026-11-10T14:03:29"
}

Arguments

{
  "appointment_id": 7841162,
  "patient_id": 67076
}

Before and after

{
  "after": {
    "messages": [
      {
        "appointment_id": 7841162,
        "id": 900000007,
        "kind": "booking_offer",
        "patient_id": 67076
      }
    ],
    "offers": [
      {
        "appointment_id": 7841162,
        "clinic_id": 9,
        "clinician_id": 173,
        "created_at": "2026-11-10T14:05:00",
        "created_by": "Rounds",
        "id": 6,
        "kind": "booking",
        "patient_id": 67076,
        "slot_start": "2026-11-11T08:00:00",
        "status": "offered"
      }
    ]
  },
  "before": {}
}