emergency_stats
Get official monthly emergency-department visit counts by type and Manchester triage colour for a Portuguese hospital, region, or all mainland SNS hospitals; use historical data, not live waiting times.
Instructions
Emergency-department (urgência) visits per month: by type and by Manchester triage colour.
Use for "how busy is the ER at X?", "how many emergency visits in the Algarve last month?", "what share of ER visits are green/blue (non-urgent)?". OFFICIAL MONTHLY STATISTICS ONLY — not the live queue (the latest month is usually 2-3 months back and provisional). For live waiting times send the user to https://tempos.min-saude.pt. Not medical advice: in an emergency call 112; SNS 24 (808 24 24 24) for advice.
Scope: one institution, one region, or (neither) all of mainland Portugal's SNS hospitals.
Per period (latest first): visits_in_month and visits_year_to_date by type (general, paediatric, obstetric, psychiatric, total), triage_in_month by colour (red = immediate, orange = very urgent, yellow = urgent, green = less urgent, blue = non-urgent, white = not clinical / other) and triage_share_in_month_pct.
Args:
institution: Hospital or ULS name, accent-insensitive ("Santa Maria", "São João",
"Hospital de Faro"). A hospital is mapped to its ULS; check scope.
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 to return (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 | |||