RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Double booking · appointment 7841163

Held Wed 10:00 with clinician 549 and offered it (booking to move).

When
Wednesday 11 November 07:55:00
Call
send booking offer · POST /Communication (booking offer, patient 103629, appointment 7841163)
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 39 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": 7841163,
  "appointment_ids": [
    7841163,
    7779198
  ],
  "bookings_affected": 2,
  "clash": "clinician",
  "clinic": "Brindle Quay Health Centre",
  "clinic_id": 39,
  "clinician_id": 550,
  "end_at": "2026-11-14 11:00:00",
  "feed": "clinic day",
  "free_clinician_id": null,
  "free_room_id": 533,
  "free_room_kind": "consulting room",
  "other_appointment_id": 7779198,
  "patient_id": 103629,
  "patients_affected": 2,
  "room_id": 532,
  "stake_note": "two patients booked into one slot",
  "start_at": "2026-11-14 10:45:00",
  "started_at": "2026-11-11T07:51:16"
}

Arguments

{
  "appointment_id": 7841163,
  "patient_id": 103629
}

Before and after

{
  "after": {
    "messages": [
      {
        "appointment_id": 7841163,
        "id": 900000019,
        "kind": "booking_offer",
        "patient_id": 103629
      }
    ],
    "offers": [
      {
        "appointment_id": 7841163,
        "clinic_id": 39,
        "clinician_id": 549,
        "created_at": "2026-11-11T07:55:00",
        "created_by": "Rounds",
        "id": 9,
        "kind": "booking",
        "patient_id": 103629,
        "slot_start": "2026-11-11T10:00:00",
        "status": "offered"
      }
    ]
  },
  "before": {}
}