RTT 18-week Diversion: a study in metric gaming

An animated, fictional waiting list from today to 1 April 2028, under three capacity positions (surplus, balance, deficit), each run twice: once treating patients in the ordinary way throughout, and once where, for the final 18 weeks, capacity is spent only on patients who will have waited 18+ weeks on the measurement date. Pure JavaScript, deterministic, unit-tested.

1 · Inputs

The list starts as an exponential (random-order steady state) sized by Little's law for the referral rate and the chosen % under 18 weeks. Each week: everyone ages a week, referrals arrive, then capacity removes patients. Load is referrals ÷ capacity, so 1.10 means 10% more referrals than clock stops each week.

2 · The list, week by week

Each chart is the census by weeks waited (0 to 104+). The dashed rule marks 18 weeks. In the bottom row, during the final 18 weeks the hatched block is the cohort that capacity is forbidden to touch: patients who will still be under 18 weeks on 1 April. Capacity spills over to them only if the eligible cohort runs out. After 1 April the ordinary rule resumes, so the protected block is drawn from again and the two rows converge.

—

3 · The metric over time

Solid lines are the ordinary runs, dashed lines the diverted runs. The vertical rule is 1 April 2028; the moving cursor is the animation's current week. Hover for values.

4 · On the day, and ten weeks later

The headline on 1 April 2028 and the same figure ten weeks later. "Spilled" is capacity that found no eligible patient and fell back to the protected cohort.

5 · Method & caveats