RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Authorisation expiring · authorisation 7239

Asked clinician 419 to renew the prior authorisation for joint injection.

When
Thursday 12 November 07:00:00
Call
request authorisation renewal · POST /Task (renewal request, authorisation 7239, clinician 419)
Tier and status
tier 0 auto done
Definition
authorisation expiring v1
Decided by
rules: The prior authorisation runs out before the booked appointment; ask the prescriber to decide on a renewal.
Controller
Allowed: request_authorisation_renewal is tier 0 (just do it); within budget (2 of 60 paperwork actions this minute).
Signed off by
nobody needed: tier 0
Undo
undo_request_authorisation_renewal restores the before-snapshot below

Evidence the detector returned

{
  "already_expired": false,
  "appointment_at": "2026-11-27 15:30:00",
  "appointment_id": 7823073,
  "authorisation_id": 7239,
  "bookings_affected": 1,
  "clinic": "Gledworth Health Centre",
  "clinic_id": 26,
  "clinician_id": 419,
  "days_to_expiry": 13.7,
  "expires_at": "2026-11-26 00:00:00",
  "feed": "admin",
  "item": "joint injection",
  "kind": "prior_authorisation",
  "patient_id": 27259,
  "patients_affected": 1,
  "prescriber": "Dr C. Langmere",
  "stake_note": "prior authorisation runs out before a booked appointment",
  "started_at": "2026-11-12T00:00:00"
}

Arguments

{
  "authorisation_id": 7239,
  "clinician_id": 419
}

Before and after

{
  "after": {
    "authorisations": [
      {
        "id": 7239,
        "renewal_requested_at": "2026-11-12T07:00:00"
      }
    ],
    "tasks": [
      {
        "body": "The prior authorisation for joint injection runs out Thu 00:00 and the patient is booked after that. Please decide on the renewal.",
        "clinician_id": 419,
        "created_at": "2026-11-12T07:00:00",
        "id": 9,
        "kind": "renewal_request",
        "patient_id": 27259,
        "status": "open",
        "subject": "Renewal needed: joint injection"
      }
    ]
  },
  "before": {
    "authorisations": [
      {
        "id": 7239,
        "renewal_requested_at": null
      }
    ]
  }
}