wait_time_trend
Check how NHS waiting times for a trust and specialty have moved across months. Get start and end values, change in weeks, percentage change, trend direction, and the full monthly series.
Instructions
Summarise how the waiting time for a given NHS trust and specialty has moved over time, using NHS England RTT monthly data. Waits are in weeks. Provide the provider code (e.g. 'RGT') and specialty (e.g. 'Cardiology'). Returns the start and end values, the change in weeks, the percentage change, a direction (improving | worsening | flat), and the full monthly series. If no data is held for that trust/specialty, returns found=false; do not invent a trend in that case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specialty | Yes | ||
| provider_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||