rank_trusts_by_wait
Rank NHS trusts by longest wait for a specialty using My Planned Care weekly data. Restrict by region and limit count; trusts with no wait figure are listed after ranked ones, exposing coverage gaps.
Instructions
Rank NHS trusts by their latest waiting time for a specialty (longest first), using My Planned Care weekly data. Provide the specialty; optionally restrict to a region and cap the number of trusts returned. Trusts that publish the specialty but no wait figure are listed after the ranked ones, so coverage gaps are visible rather than hidden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| region | No | ||
| specialty | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||