Hospitals, long-term care homes and retirement homes in Toronto must report respiratory and enteric outbreaks to Toronto Public Health (TPH), and the City publishes every declared outbreak as open data, refreshed each Thursday. TPH’s own respiratory dashboard shows one citywide chart of weekly institutional outbreaks for the current season. It doesn’t show which settings or facilities are affected, how long outbreaks last, which homes keep having them, whether the RSV season has started, or how this season compares with earlier ones. This project is the routine surveillance a public health unit would run on these data: an automated weekly pipeline, a dashboard, and documented methods with honest limitations.
The left panel answers the weekly question: are influenza, COVID-19 and RSV outbreaks higher, similar or lower than last week, using TPH's own rule. The tabs show active outbreaks on a map with each facility's history, this season against pre- and post-pandemic ranges, influenza and RSV season onset, the pathogen mix, how long outbreaks last, repeat outbreaks, and the full table to download. Pick a season, week, setting and outbreak type at the top. Data: City of Toronto Open Data, Outbreaks in Toronto Healthcare Institutions (Open Government Licence – Toronto). Unofficial; not produced or endorsed by Toronto Public Health.
The pipeline
Every Thursday, about two hours after the City refreshes the data, a GitHub Action downloads all eleven annual files and saves a dated snapshot of the current year’s file. The City overwrites its files each week, so these snapshots are the only way to see later how long outbreaks take to be reported and what is edited afterwards. The run then checks the files against the expected schema and the reference tables, rebuilds the cleaned dataset, runs the test suite and publishes the dashboard. If a column is renamed or a new pathogen label appears, the run stops and opens a GitHub issue that says exactly what changed.
Matching the official numbers
Weeks run Sunday to Saturday, the epidemiological weeks used by TPH, Public Health Ontario and the national FluWatch reports. With them, the pipeline reproduces the institutional outbreak counts on TPH’s Integrated Respiratory Diseases Dashboard week for week. The weekly higher / similar / lower call uses the decision rule published in TPH’s technical notes, so the two can be checked against each other. TPH doesn’t assess RSV, because outside institutional outbreaks it isn’t a reportable disease in Ontario. That makes these data the only Toronto-specific RSV signal, so the dashboard applies the influenza rule to RSV and adds a season-onset alert for it.
Free-text records data cleaning
The source is one row per outbreak per ward, typed by hand over ten years, and pathogen labels drift. For example, Norovirus-like becomes Norovirus in 2023, Coronavirus becomes Coronavirus* in 2020 to separate seasonal coronaviruses from COVID-19, and co-detections move from one row with two agents to two separate rows. 101 raw labels are mapped to eleven analysis groups in a reviewed lookup table. Facility addresses, with their typos, abbreviations and ward suffixes, are normalized and matched to the City’s Address Points register. The match itself exposed an address that does not exist and had split one home into two facilities.
Pre vs Post-Pandemic comparisons
Outbreak counts roughly doubled after 2020, and most of that is not disease. COVID-19 added hundreds of outbreaks a season, outbreaks are now declared ward by ward (about 1.4 wards per facility episode, up from 1.1), and almost every respiratory outbreak now has a pathogen identified (none was identified in 26–29% in 2018 and 2019, against 1–4% since 2020). So the dashboard never pools the eras: each season is compared separately with a pre-pandemic and a post-pandemic range. Season onset for influenza and RSV uses the moving epidemic method, the approach ECDC and WHO Europe use. Outbreak duration uses Kaplan–Meier so that outbreaks still open are not counted as short ones.
Limitations
The open data has no case counts, attack rates, hospitalizations or deaths, so everything is at the outbreak level: how often outbreaks happen and how long they last, not how severe they are. Counts reflect testing and reporting practices as well as disease activity. Facilities are listed by their number of separate outbreak episodes, but not compared as rates, because there are no bed counts to adjust for size. The most recent weeks are provisional, and how much they grow will be measured from the weekly snapshots as they accumulate. Every methodological choice is recorded in the decisions log.