Action record / #100
Double booking · appointment 7841170
Moved appointment 7841170 to clinician 109 at the same time.
- When
- Friday 13 November 16:00:00
- Call
- reassign slot ·
PATCH /Appointment/7841170 clinician=109 - Tier and status
- tier 1 auto done
- Definition
- double booking v1
- Decided by
- rules: Clinician double-booked; colleague 109 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 5 this hour).
- Signed off by
- nobody needed: tier 1
- Undo
undo_reassign_slotrestores the before-snapshot below
Evidence the detector returned
{
"appointment_id": 7841170,
"appointment_ids": [
7841170,
7801300
],
"bookings_affected": 2,
"clash": "clinician",
"clinic": "Easterholme Health Centre",
"clinic_id": 5,
"clinician_id": 108,
"end_at": "2026-11-20 09:30:00",
"feed": "clinic day",
"free_clinician_id": 109,
"free_room_id": 70,
"free_room_kind": "consulting room",
"other_appointment_id": 7801300,
"patient_id": 80512,
"patients_affected": 2,
"room_id": 89,
"stake_note": "two patients booked into one slot",
"start_at": "2026-11-20 09:00:00",
"started_at": "2026-11-13T15:58:35"
}
Arguments
{
"appointment_id": 7841170,
"clinician_id": 109
}Before and after
{
"after": {
"appointments": [
{
"cancel_reason": null,
"cancelled_at": null,
"clinician_id": 109,
"end_at": "2026-11-20T09:30:00",
"id": 7841170,
"room_id": 90,
"session_id": 49660,
"start_at": "2026-11-20T09:00:00",
"status": "booked"
}
],
"messages": [
{
"appointment_id": 7841170,
"id": 900000072,
"kind": "change",
"patient_id": 80512
}
]
},
"before": {
"appointments": [
{
"cancel_reason": null,
"cancelled_at": null,
"clinician_id": 108,
"end_at": "2026-11-20T09:30:00",
"id": 7841170,
"room_id": 89,
"session_id": 49659,
"start_at": "2026-11-20T09:00:00",
"status": "booked"
}
]
}
}