# Edition file: ntpf_edition_2026-11.csv - SHA-256: see `ntpf_edition_2026-11.csv.sha256` (b51ef7d5f5958d59e415466b9bc52e9726fd48e90ff159690a4dfeb006778652 at build time). - Built by `../build_edition.py raw edition` from the 56 NTPF CSVs and the CSO PEA01 file listed in `../raw/manifest.csv`. - 130,398 data rows. Rebuilding from the same raw files gives the same bytes (sorted keys, fixed line endings). - Source: National Treatment Purchase Fund (NTPF), Open Data, https://www.ntpf.ie/waiting-list-data/open-data/ , copyright NTPF, re-used under the NTPF re-use conditions (https://www.ntpf.ie/information-re-use/: acknowledge the source and copyright, reproduce accurately, do not use in a misleading way). Population: Central Statistics Office, PEA01. ## Columns | Column | Meaning | |---|---| | snapshot_date | NTPF census date (ISO), e.g. 2026-09-24. For population rows, `YYYY-04-15` stands for "April of that year". | | month | YYYY-MM of the snapshot. There is one snapshot per month in every report. | | list_type | Outpatient, Inpatient/Day Case, GI Endoscopy, or Population. | | report | OPNational01/02, IPDCNational01-04 (open data, Apr 2021 on); Legacy_OP, Legacy_IPDC, Legacy_GI (Jan 2014 / Jan 2018 to Mar 2021); CSO_PEA01. | | report_cut | What the report is broken down by. | | source_format, source_file | legacy, opendata or cso; the raw file name (look it up in the manifest). | | adult_child | Adult / Child as published (blank in 58 legacy outpatient rows). | | hospital_group | Legacy files only (groups as published at the time). Blank in open data. | | hospital, specialty, case_type | As published, trimmed. Blank where the report does not have that cut. | | w0_6, w6_12, w12_18, w18_plus | People waiting in each time band (months). | | w_band_unknown | Legacy rows with a blank time band (2 rows, 1 person each). Counted in `total`, not in any band. | | total | Sum of the band columns. | | total_published | Open data: the published Total column (repeated rows summed). Legacy: the published count. Population rows: persons. | | w0_3_legacy_only | Legacy rows only: people in the 0-3 month band. Blank for open-data rows. | ## The reports are cuts of the same lists: never add reports together For a national total use one report per list: OP = Legacy_OP then OPNational01; IPDC = Legacy_IPDC then IPDCNational01; GI = Legacy_GI then IPDCNational04. `compute.py` does exactly this. ## Quirks found while parsing 1. **Two formats.** Legacy files (to March 2021) are long: one row per hospital x specialty x case type x age profile x three-month time band (0-3, 3-6, 6-9, 9-12, 12-15, 15-18, 18+). They are aggregated to the four open-data bands, summing age profiles. Open-data files (from April 2021) are wide, four bands plus Total, with separate adult and child rows. 2. **Header names vary by year** (`Archive Date` / `Archive_Date` / `ArchiveDate`; `Specialty` / `Speciality` / `Specialty_Name`; `Hospital` / `Hospital_Name` / `HospitalName`; `Count` / `Total`; `Time Band` / `Time Bands`). Headers are normalised (case, spaces, underscores, slashes). 3. **Date formats vary**: ISO (2014 to 2017 legacy) and dd/mm/yyyy (2018 on). 4. **Byte order mark** at the start of most files; some 2018 files have none. All files decoded as UTF-8; no file needed a fallback. 5. **Band label spelling** varies (`18+ Months`, `18 Months +`, leading spaces, quoted values). Normalised. 6. **Blank time band**: 2 legacy outpatient rows (Dec 2019, Apr 2020) have no time band, count 1 each. Kept in `w_band_unknown`. 7. **Repeated rows in open data**: 85 rows repeat the same report/date/adult-child/hospital/specialty/case-type key (for example "Breast Surgery", Adult, Jan 2026, twice in OPNational02). As in the Airmid collector, these are summed. 8. **Published Total is not always the sum of the bands**: 5,754 open-data rows differ, by a few people each. Nationally the gap is under 40 people a month per report (Sep 2026: published minus band-sum is -15 for OP, -6 for IPDC, -10 for GI). It looks like disclosure control (rounding or perturbation of small cells), but the NTPF does not say so on the open-data page: **uncertain, ask the NTPF**. Different reports for the same list and month also differ by a few dozen people for the same reason. `compute.py` uses the published Total for totals and the bands for long-wait counts, and stress test 11 repeats the headline with band sums. 9. **Small Volume**: specialties or hospitals with small counts are grouped as "Small Volume Specialities/Specialties" or "Small Volume Hospitals". Names vary in spelling. 10. **2021 split**: the legacy 2021 files cover January to March, the open-data 2021 files April to December. There is no overlap month to test the join directly. From March to April 2021 the national totals change by +0.25% (OP), -3.75% (IPDC) and -3.46% (GI), which is within normal month-to-month movement, so we treat the series as continuous, with the caveat that the adult/child reporting split began in April 2021. 11. **Hospital renames** (Tipperary University Hospital, National Maternity Hospital (Holles Street)) mean a few open-data hospital names do not match the March 2021 legacy names. They stay "Unmatched" in the hospital-group test rather than being mapped by hand. 12. **No break found**: the number of hospitals reporting never changes by more than 3 from one month to the next. National totals move by more than 10% in a month only in Feb 2014 (GI), Mar to Apr 2020 (pandemic) and Jan 2021 (IPDC, GI).