RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Double booking · appointment 7841168

Moved appointment 7841168 to clinician 451 at the same time.

When
Friday 13 November 12:30:00
Call
reassign slot · PATCH /Appointment/7841168 clinician=451
Tier and status
tier 1 auto done
Definition
double booking v1
Decided by
rules: Clinician double-booked; colleague 451 has a free slot at that time.
Controller
Allowed: reassign_slot is tier 1 (do it and tell); within budget (0 of 10 actions at clinic 30 this hour).
Signed off by
nobody needed: tier 1
Undo
undo_reassign_slot restores the before-snapshot below

Evidence the detector returned

{
  "appointment_id": 7841168,
  "appointment_ids": [
    7841168,
    7796678
  ],
  "bookings_affected": 2,
  "clash": "clinician",
  "clinic": "Orrinford Health Centre",
  "clinic_id": 30,
  "clinician_id": 458,
  "end_at": "2026-11-18 17:15:00",
  "feed": "clinic day",
  "free_clinician_id": 451,
  "free_room_id": 435,
  "free_room_kind": "consulting room",
  "other_appointment_id": 7796678,
  "patient_id": 42088,
  "patients_affected": 2,
  "room_id": 439,
  "stake_note": "two patients booked into one slot",
  "start_at": "2026-11-18 17:00:00",
  "started_at": "2026-11-13T12:26:48"
}

Arguments

{
  "appointment_id": 7841168,
  "clinician_id": 451
}

Before and after

{
  "after": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 451,
        "end_at": "2026-11-18T17:15:00",
        "id": 7841168,
        "room_id": 435,
        "session_id": 48847,
        "start_at": "2026-11-18T17:00:00",
        "status": "booked"
      }
    ],
    "messages": [
      {
        "appointment_id": 7841168,
        "id": 900000061,
        "kind": "change",
        "patient_id": 42088
      }
    ]
  },
  "before": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 458,
        "end_at": "2026-11-18T17:15:00",
        "id": 7841168,
        "room_id": 439,
        "session_id": 48851,
        "start_at": "2026-11-18T17:00:00",
        "status": "booked"
      }
    ]
  }
}