RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Double booking · appointment 7841171

Moved appointment 7841171 to room 276 at the same time.

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

Evidence the detector returned

{
  "appointment_id": 7841171,
  "appointment_ids": [
    7841171,
    7794506
  ],
  "bookings_affected": 2,
  "clash": "room",
  "clinic": "Corrowgate Clinic",
  "clinic_id": 18,
  "clinician_id": 287,
  "end_at": "2026-11-18 12:00:00",
  "feed": "clinic day",
  "free_clinician_id": null,
  "free_room_id": 276,
  "free_room_kind": "consulting room",
  "other_appointment_id": 7794506,
  "patient_id": 119767,
  "patients_affected": 2,
  "room_id": 279,
  "stake_note": "two patients booked into one slot",
  "start_at": "2026-11-18 11:40:00",
  "started_at": "2026-11-16T09:42:06"
}

Arguments

{
  "appointment_id": 7841171,
  "room_id": 276
}

Before and after

{
  "after": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 287,
        "end_at": "2026-11-18T12:00:00",
        "id": 7841171,
        "room_id": 276,
        "session_id": null,
        "start_at": "2026-11-18T11:40:00",
        "status": "booked"
      }
    ],
    "messages": []
  },
  "before": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 287,
        "end_at": "2026-11-18T12:00:00",
        "id": 7841171,
        "room_id": 279,
        "session_id": null,
        "start_at": "2026-11-18T11:40:00",
        "status": "booked"
      }
    ]
  }
}