RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Double booking · appointment 7841172

Moved appointment 7841172 to room 318 at the same time.

When
Monday 16 November 11:45:00
Call
reassign slot · PATCH /Appointment/7841172 room=318
Tier and status
tier 1 auto done
Definition
double booking v1
Decided by
rules: Room clash; room 318 is free then.
Controller
Allowed: reassign_slot is tier 1 (do it and tell); within budget (0 of 10 actions at clinic 21 this hour).
Signed off by
nobody needed: tier 1
Undo
undo_reassign_slot restores the before-snapshot below

Evidence the detector returned

{
  "appointment_id": 7841172,
  "appointment_ids": [
    7841172,
    7815249
  ],
  "bookings_affected": 2,
  "clash": "room",
  "clinic": "Ivystone Clinic",
  "clinic_id": 21,
  "clinician_id": 335,
  "end_at": "2026-11-25 11:00:00",
  "feed": "clinic day",
  "free_clinician_id": null,
  "free_room_id": 318,
  "free_room_kind": "consulting room",
  "other_appointment_id": 7815249,
  "patient_id": 60410,
  "patients_affected": 2,
  "room_id": 322,
  "stake_note": "two patients booked into one slot",
  "start_at": "2026-11-25 10:40:00",
  "started_at": "2026-11-16T11:44:44"
}

Arguments

{
  "appointment_id": 7841172,
  "room_id": 318
}

Before and after

{
  "after": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 335,
        "end_at": "2026-11-25T11:00:00",
        "id": 7841172,
        "room_id": 318,
        "session_id": null,
        "start_at": "2026-11-25T10:40:00",
        "status": "booked"
      }
    ],
    "messages": []
  },
  "before": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 335,
        "end_at": "2026-11-25T11:00:00",
        "id": 7841172,
        "room_id": 322,
        "session_id": null,
        "start_at": "2026-11-25T10:40:00",
        "status": "booked"
      }
    ]
  }
}