surgery_wait_stats
Retrieve monthly official surgical waiting-list figures by Portuguese hospital or region: patients waiting, % within maximum response time, mean admission-to-surgery days, and surgeries performed.
Instructions
Surgery access indicators per month: surgical waiting list, % within the guaranteed maximum time, mean days from admission to surgery, and surgeries performed.
Use for "how long is the wait for surgery at X?", "how many people are on the surgery list in the Norte region?", "how many operations did hospital Y do?". Official monthly statistics (latest month usually 2-3 months back, provisional). The open data has NO breakdown by specialty or procedure — say so if asked for one.
Per period (latest first):
waiting_list: patients on the surgical waiting list (LIC) at month end, how many are still within the legal maximum guaranteed response time (TMRG, 180 days for normal priority since 2018) and the % within it.
mean_days_before_surgery_in_month / _year_to_date: average days between hospital admission and the operation for scheduled inpatient surgery (this is NOT the time on the waiting list).
surgeries_in_month / surgeries_year_to_date: scheduled (= inpatient + day surgery) and urgent.
Args: institution: Hospital or ULS name ("Santa Maria", "Coimbra", "IPO Porto"); mapped to its ULS. region: Norte | Centro | LVT (Lisboa) | Alentejo | Algarve. Ignored if institution is given. period: Latest month to include, "YYYY-MM" (default: newest available). months: How many months back (default 6, max 24).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | No | ||
| period | No | ||
| region | No | ||
| institution | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||