RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Clinician sick full list · clinician day 542:2026-11-16

Moved 11 of 11 patients to colleagues.

When
Monday 16 November 06:50:00
Call
reassign session · PATCH /Appointment ×11 (cover for clinician 542)
Tier and status
tier 1 auto done
Definition
clinician sick full list v1
Decided by
rules: 11 patients left today and colleagues have 18 free slots: move the list.
Controller
Allowed: reassign_session is tier 1 (do it and tell); within budget (0 of 10 actions at clinic 38 this hour).
Signed off by
nobody needed: tier 1
Undo
undo_reassign_session restores the before-snapshot below

Evidence the detector returned

{
  "appointment_ids": [
    7779617,
    7780116,
    7781795,
    7782283,
    7782900,
    7784067,
    7784976,
    7785370,
    7785890,
    7786296,
    7786797
  ],
  "bookings": 11,
  "bookings_affected": 11,
  "clinic": "Umbermere Clinic",
  "clinic_id": 38,
  "clinician": "Dr R. Kestford",
  "clinician_id": 542,
  "cover_clinician_ids": [
    540,
    541,
    543
  ],
  "cover_free_slots": 18.0,
  "feed": "clinic day",
  "first_start": "2026-11-16 08:00:00",
  "patients_affected": 11,
  "reported_at": "2026-11-16 06:48:27",
  "specialty": "Gastroenterology",
  "stake_note": "11 patients booked with a clinician off sick",
  "started_at": "2026-11-16T06:48:27"
}

Arguments

{
  "appointment_ids": [
    7779617,
    7780116,
    7781795,
    7782283,
    7782900,
    7784067,
    7784976,
    7785370,
    7785890,
    7786296,
    7786797
  ],
  "clinician_id": 542,
  "cover_clinician_ids": [
    540,
    541,
    543
  ]
}

Before and after

{
  "after": {
    "appointments": [
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 540,
        "end_at": "2026-11-16T08:30:00",
        "id": 7779617,
        "room_id": 523,
        "session_id": 47088,
        "start_at": "2026-11-16T08:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 540,
        "end_at": "2026-11-16T09:30:00",
        "id": 7780116,
        "room_id": 523,
        "session_id": 47088,
        "start_at": "2026-11-16T09:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 541,
        "end_at": "2026-11-16T10:00:00",
        "id": 7781795,
        "room_id": 524,
        "session_id": 47089,
        "start_at": "2026-11-16T09:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 541,
        "end_at": "2026-11-16T11:30:00",
        "id": 7782283,
        "room_id": 524,
        "session_id": 47089,
        "start_at": "2026-11-16T11:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 543,
        "end_at": "2026-11-16T11:30:00",
        "id": 7782900,
        "room_id": 526,
        "session_id": 47091,
        "start_at": "2026-11-16T11:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 543,
        "end_at": "2026-11-16T14:30:00",
        "id": 7784067,
        "room_id": 524,
        "session_id": 47512,
        "start_at": "2026-11-16T14:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 541,
        "end_at": "2026-11-16T15:00:00",
        "id": 7784976,
        "room_id": 522,
        "session_id": 47510,
        "start_at": "2026-11-16T14:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 540,
        "end_at": "2026-11-16T15:30:00",
        "id": 7785370,
        "room_id": 521,
        "session_id": 47509,
        "start_at": "2026-11-16T15:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 540,
        "end_at": "2026-11-16T16:00:00",
        "id": 7785890,
        "room_id": 521,
        "session_id": 47509,
        "start_at": "2026-11-16T15:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 540,
        "end_at": "2026-11-16T12:00:00",
        "id": 7786296,
        "room_id": 523,
        "session_id": 47088,
        "start_at": "2026-11-16T11:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 541,
        "end_at": "2026-11-16T12:00:00",
        "id": 7786797,
        "room_id": 524,
        "session_id": 47089,
        "start_at": "2026-11-16T11:30:00",
        "status": "booked"
      }
    ],
    "messages": [
      {
        "appointment_id": 7779617,
        "id": 900000080,
        "kind": "change",
        "patient_id": 146561
      },
      {
        "appointment_id": 7780116,
        "id": 900000081,
        "kind": "change",
        "patient_id": 172286
      },
      {
        "appointment_id": 7781795,
        "id": 900000082,
        "kind": "change",
        "patient_id": 105097
      },
      {
        "appointment_id": 7782283,
        "id": 900000083,
        "kind": "change",
        "patient_id": 42122
      },
      {
        "appointment_id": 7782900,
        "id": 900000084,
        "kind": "change",
        "patient_id": 143122
      },
      {
        "appointment_id": 7784067,
        "id": 900000085,
        "kind": "change",
        "patient_id": 6701
      },
      {
        "appointment_id": 7784976,
        "id": 900000086,
        "kind": "change",
        "patient_id": 52118
      },
      {
        "appointment_id": 7785370,
        "id": 900000087,
        "kind": "change",
        "patient_id": 56303
      },
      {
        "appointment_id": 7785890,
        "id": 900000088,
        "kind": "change",
        "patient_id": 139807
      },
      {
        "appointment_id": 7786296,
        "id": 900000089,
        "kind": "change",
        "patient_id": 56346
      },
      {
        "appointment_id": 7786797,
        "id": 900000090,
        "kind": "change",
        "patient_id": 73928
      }
    ]
  },
  "before": {
    "appointments": [
      {
        "cancel_reason": "clinician unwell (patient sent home)",
        "cancelled_at": "2026-11-16T07:55:00",
        "clinician_id": 542,
        "end_at": "2026-11-16T08:30:00",
        "id": 7779617,
        "room_id": 525,
        "session_id": 47090,
        "start_at": "2026-11-16T08:00:00",
        "status": "cancelled"
      },
      {
        "cancel_reason": "clinician unwell (patient sent home)",
        "cancelled_at": "2026-11-16T08:25:00",
        "clinician_id": 542,
        "end_at": "2026-11-16T09:00:00",
        "id": 7780116,
        "room_id": 525,
        "session_id": 47090,
        "start_at": "2026-11-16T08:30:00",
        "status": "cancelled"
      },
      {
        "cancel_reason": "clinician unwell (patient sent home)",
        "cancelled_at": "2026-11-16T09:55:00",
        "clinician_id": 542,
        "end_at": "2026-11-16T10:30:00",
        "id": 7781795,
        "room_id": 525,
        "session_id": 47090,
        "start_at": "2026-11-16T10:00:00",
        "status": "cancelled"
      },
      {
        "cancel_reason": "clinician unwell (patient sent home)",
        "cancelled_at": "2026-11-16T10:25:00",
        "clinician_id": 542,
        "end_at": "2026-11-16T11:00:00",
        "id": 7782283,
        "room_id": 525,
        "session_id": 47090,
        "start_at": "2026-11-16T10:30:00",
        "status": "cancelled"
      },
      {
        "cancel_reason": "clinician unwell (patient sent home)",
        "cancelled_at": "2026-11-16T10:55:00",
        "clinician_id": 542,
        "end_at": "2026-11-16T11:30:00",
        "id": 7782900,
        "room_id": 525,
        "session_id": 47090,
        "start_at": "2026-11-16T11:00:00",
        "status": "cancelled"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 542,
        "end_at": "2026-11-16T14:00:00",
        "id": 7784067,
        "room_id": 523,
        "session_id": 47511,
        "start_at": "2026-11-16T13:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 542,
        "end_at": "2026-11-16T15:00:00",
        "id": 7784976,
        "room_id": 523,
        "session_id": 47511,
        "start_at": "2026-11-16T14:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 542,
        "end_at": "2026-11-16T15:30:00",
        "id": 7785370,
        "room_id": 523,
        "session_id": 47511,
        "start_at": "2026-11-16T15:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 542,
        "end_at": "2026-11-16T16:00:00",
        "id": 7785890,
        "room_id": 523,
        "session_id": 47511,
        "start_at": "2026-11-16T15:30:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 542,
        "end_at": "2026-11-16T16:30:00",
        "id": 7786296,
        "room_id": 523,
        "session_id": 47511,
        "start_at": "2026-11-16T16:00:00",
        "status": "booked"
      },
      {
        "cancel_reason": null,
        "cancelled_at": null,
        "clinician_id": 542,
        "end_at": "2026-11-16T17:00:00",
        "id": 7786797,
        "room_id": 523,
        "session_id": 47511,
        "start_at": "2026-11-16T16:30:00",
        "status": "booked"
      }
    ]
  }
}