Action record / #68
Double booking · appointment 7841166
Moved appointment 7841166 to room 34 at the same time.
- When
- Thursday 12 November 13:50:00
- Call
- reassign slot ·
PATCH /Appointment/7841166 room=34 - Tier and status
- tier 1 auto done
- Definition
- double booking v1
- Decided by
- rules: Room clash; room 34 is free then.
- Controller
- Allowed: reassign_slot is tier 1 (do it and tell); within budget (0 of 10 actions at clinic 2 this hour).
- Signed off by
- nobody needed: tier 1
- Undo
undo_reassign_slotrestores the before-snapshot below
Evidence the detector returned
{
"appointment_id": 7841166,
"appointment_ids": [
7841166,
7779030
],
"bookings_affected": 2,
"clash": "room",
"clinic": "Sedgecombe Clinic",
"clinic_id": 2,
"clinician_id": 41,
"end_at": "2026-11-14 09:00:00",
"feed": "clinic day",
"free_clinician_id": null,
"free_room_id": 34,
"free_room_kind": "consulting room",
"other_appointment_id": 7779030,
"patient_id": 125219,
"patients_affected": 2,
"room_id": 33,
"stake_note": "two patients booked into one slot",
"start_at": "2026-11-14 08:45:00",
"started_at": "2026-11-12T13:47:48"
}
Arguments
{
"appointment_id": 7841166,
"room_id": 34
}Before and after
{
"after": {
"appointments": [
{
"cancel_reason": null,
"cancelled_at": null,
"clinician_id": 41,
"end_at": "2026-11-14T09:00:00",
"id": 7841166,
"room_id": 34,
"session_id": null,
"start_at": "2026-11-14T08:45:00",
"status": "completed"
}
],
"messages": []
},
"before": {
"appointments": [
{
"cancel_reason": null,
"cancelled_at": null,
"clinician_id": 41,
"end_at": "2026-11-14T09:00:00",
"id": 7841166,
"room_id": 33,
"session_id": null,
"start_at": "2026-11-14T08:45:00",
"status": "completed"
}
]
}
}