Action record / #76
Double booking · appointment 7841167
Held Fri 13:30 with clinician 45 and offered it (booking to move).
- When
- Friday 13 November 08:30:00
- Call
- send booking offer ·
POST /Communication (booking offer, patient 94655, appointment 7841167) - Tier and status
- tier 0 auto done
- Definition
- double booking v1
- Decided by
- rules: No free room or colleague at that time: offer the later-booked patient a new slot.
- Controller
- Allowed: send_booking_offer is tier 0 (just do it); within budget (0 of 10 actions at clinic 2 this hour).
- Signed off by
- nobody needed: tier 0
- Undo
undo_send_booking_offerrestores the before-snapshot below
Evidence the detector returned
{
"appointment_id": 7841167,
"appointment_ids": [
7841167,
7803830
],
"bookings_affected": 2,
"clash": "clinician",
"clinic": "Sedgecombe Clinic",
"clinic_id": 2,
"clinician_id": 46,
"end_at": "2026-11-20 15:50:00",
"feed": "clinic day",
"free_clinician_id": null,
"free_room_id": 32,
"free_room_kind": "consulting room",
"other_appointment_id": 7803830,
"patient_id": 94655,
"patients_affected": 2,
"room_id": 37,
"stake_note": "two patients booked into one slot",
"start_at": "2026-11-20 15:30:00",
"started_at": "2026-11-13T08:26:04"
}
Arguments
{
"appointment_id": 7841167,
"patient_id": 94655
}Before and after
{
"after": {
"messages": [
{
"appointment_id": 7841167,
"id": 900000055,
"kind": "booking_offer",
"patient_id": 94655
}
],
"offers": [
{
"appointment_id": 7841167,
"clinic_id": 2,
"clinician_id": 45,
"created_at": "2026-11-13T08:30:00",
"created_by": "Rounds",
"id": 30,
"kind": "booking",
"patient_id": 94655,
"slot_start": "2026-11-13T13:30:00",
"status": "offered"
}
]
},
"before": {}
}