# How to reproduce the England overheating comparison
Download the four CSV files below using the short filenames shown. Put them beside [rebuild.py](rebuild.py) and run `python rebuild.py` with Python 3.10 or later. It verifies the four SHA-256 hashes, writes [trusts.csv](trusts.csv) and prints the coverage and sensitivity calculations. All counts refer to England and the financial years ending 31 March 2025 and 31 March 2026.
| Input | 2024/25 | 2025/26 |
|---|---|---|
| Site returns, including S16_07 | [site24.csv](https://files.digital.nhs.uk/AA/2375EE/ERIC%20-%202024_25%20-%20Site%20data.csv) | [site25.csv, version 3](https://files.digital.nhs.uk/75/EEA227/ERIC%20-%202025_26%20-%20Site%20data%20-%20v3.csv) |
| Trust roster | [trust24.csv](https://files.digital.nhs.uk/9A/DF80E7/ERIC%20-%202024_25%20-%20Trust%20data.csv) | [trust25.csv](https://files.digital.nhs.uk/2E/A55649/ERIC%20-%202025_26%20-%20Trust%20data.csv) |
| Report workbook for separate check | [report24.xlsx](https://files.digital.nhs.uk/43/BCFF1F/ERIC%20-%202024_25%20-%20Report.xlsx) | [report25.xlsx, version 2](https://files.digital.nhs.uk/17/F2F9D3/ERIC%20-%202025_26%20-%20Report%20-%20v2.xlsx) |
| Data definitions | [2024/25 workbook](https://files.digital.nhs.uk/03/6B737C/ERIC%20-%202024_25%20-%20Data%20Definitions.xlsx) | [2025/26 workbook](https://files.digital.nhs.uk/01/50D81D/ERIC%20-%202025_26%20-%20Data%20Definitions.xlsx) |
**Definition and checks.** In both definition workbooks, S16_07 has identical label, unit, exclusions and counting instructions. Count each occupied ward or clinical area once on each day its maximum exceeds 26°C. Two wards exceeding on the same day count twice. The measure covers eligible clinical areas across the ERIC estate, including non-inpatient sites. Table 5 of the 2025/26 report gives both annual totals. The metric has a national entry in both reports. NHS England’s release notes record the addition of the national worksheet to report version 2 and an address-identifier format change in site CSV version 3. [2024/25 release notes](https://digital.nhs.uk/data-and-information/publications/statistical/estates-returns-information-collection/summary-page-and-dataset-for-eric-2024-25/dq-report-other-issues) · [2025/26 release notes](https://digital.nhs.uk/data-and-information/publications/statistical/estates-returns-information-collection/summary-page-and-dataset-for-eric-2025-26/dq-report-other-issues) · [Comparability guidance](https://digital.nhs.uk/data-and-information/publications/statistical/estates-returns-information-collection/summary-page-and-dataset-for-eric-2025-26/dq-report-coherence-and-comparability)
To verify the output through the other file format, place both report workbooks named as above beside [verify.py](verify.py) and trusts.csv and run `python verify.py` with openpyxl installed. It reads the site and national worksheets, checks each trust’s coverage and counts, and directly sums the remaining cohort for each omission. This second calculation reproduced both national totals, all 207 table rows and every one of the 195 omission differences. Both formats contain the same underlying ERIC returns.
**Coverage.** Match on the published trust code as printed, allowing codes longer than three characters. The trust CSVs supply the roster and the site CSVs supply the measure. Read the row beginning with “Trust Code” as the header in each CSV. Sum numeric counts including explicit zero. In each release every trust had site rows, every site code was unique, and the only nonnumeric heat value was “Not Applicable”. There were no blank heat cells. A trust with some inapplicable sites can still contribute a numeric total from its remaining sites. The ten wholly inapplicable trusts in each year were ambulance trusts. An explicit zero establishes what a site recorded. Comparable monitoring completeness within each site is unknown.
| Returned units | 2024/25 | 2025/26 |
|---|---:|---:|
| Trust codes in roster | 207 | 205 |
| Trusts with any numeric heat value | 197 | 195 |
| Trusts with a numeric total of zero | 112 | 90 |
| Site rows including pooled returns | 2,901 | 2,923 |
| Site rows with numeric heat value | 2,538 | 2,571 |
| Site rows reporting zero | 2,362 | 2,332 |
| Site rows marked inapplicable | 363 | 352 |
In the 195 paired codes, 78 reported zero in both years, 33 moved from zero to positive, 12 moved from positive to zero and 72 were positive in both. In trusts.csv, `rows`, `numeric` and `zeros` count site rows. Subtract numeric from rows to obtain inapplicable rows. A blank annual total with a site-row count denotes an entirely inapplicable return. Blank annual cells across all four fields denote an absent trust code. Names are the latest available in these two rosters. For a matched code, `change` is its later minus earlier count and `matched_change_without_trust` is the change across the other 194 codes. The strict trust comparison is based on a common identifier. Estate or reporting practices can change within it.
**Reorganisations.** Two earlier codes disappeared, with no later-only trust code. North Middlesex University Hospital (RAP) recorded seven before dropping out of the roster. Royal Free London (RAL) acquired it on 1 January 2025. RAL recorded one in each release, so together their recorded totals were eight and one. Hounslow and Richmond Community Healthcare (RY9) recorded zero. Hounslow community services transferred to West London (RKL) on 1 July 2024, and Kingston Hospital (RAX) acquired the remaining trust on 1 November 2024. Pooling RY9, RKL and RAX gives zero then 277. RAX’s rise of 276 was entirely at the continuing site RAX01. Pooling recipients keeps transfers inside each group without assigning earlier counts to individual successor sites. Outside both groups, 192 paired codes rose from 2,325 to 3,206. The national bridge is +1,158 among continuing codes, minus seven reported only in 2024/25, giving +1,151. [NHS England transactions, p. 76](https://assets.publishing.service.gov.uk/media/69036ef05c84b1206832a86f/nhs-england-annual-report-and-accounts-2024-to-2025.pdf#page=76) · [Hounslow transfer notice](https://www.kingstonandrichmond.nhs.uk/about-us/news/latest-news/transfer-hounslow-community-services-west-london-nhs-trust)
As a wider sensitivity check, also set aside Hampshire and Isle of Wight Healthcare (RW1), Isle of Wight (R1F), North London (G6V2S), Dudley Group (RNA) and Black Country Healthcare (TAJ) for the first-year transfers, acquisitions and dissolution described by NHS England and Dudley Group. Some predecessor entities already had no separate row in the first release. The remaining 187 trust codes rose from 2,310 to 3,185 (+875). This check addresses those named changes. The releases cannot certify identical service boundaries or ward coverage for every continuing trust. NHS England reported zero statutory transactions completed in 2025/26. [2024/25 transactions, p. 76](https://assets.publishing.service.gov.uk/media/69036ef05c84b1206832a86f/nhs-england-annual-report-and-accounts-2024-to-2025.pdf#page=76) · [Dudley transfer programme, p. 44](https://www.dgft.nhs.uk/wp-content/uploads/2025/03/24-09-26_CoG-Meeting-Papers.pdf#page=44) · [2025/26 statutory transactions, p. 72](https://assets.publishing.service.gov.uk/media/6a992bc45a0c25165ae46825/nhs-england-annual-report-and-accounts-2025-2026.pdf#page=72)
**Site cross-check.** All recurring site codes had the same trust code in both releases. Of the 2,538 earlier numeric rows, 68 site codes were absent later (seven occurrences) and 15 became inapplicable (zero). Of the 2,571 later numeric rows, 105 site codes were absent earlier (three occurrences) and 11 were previously inapplicable (zero). The common numeric site rows contributed +1,155. Adding three and subtracting seven reproduces the national +1,151. Codes can change on transfer. “Other Reportable Site” pools smaller sites and membership can change under a continuing code. Excluding such rows in either year leaves 2,312 individually reported paired site codes and a rise of 966. A fixed site code still allows changes in wards, occupancy, measurement and recording.
**Prior work checked on 2 December 2026.** NHS England’s report already gives the national change, and its public description of the Power BI dashboard describes historical trends and calculated measures. The interactive report could not be inspected in this text environment. Searches for ERIC, the two years, overheating, matched or same trusts, the national totals and the leading trust names located earlier national series and trust rankings. No located analysis supplied this two-year coverage reconciliation and all single-trust omissions. The dashboard’s interactive filters remain unverified. [NHS dashboard and release](https://digital.nhs.uk/data-and-information/publications/statistical/estates-returns-information-collection/summary-page-and-dataset-for-eric-2025-26) · [Earlier trust ranking, p. 14](https://roundourway.org/uploads/files/NHSOVERHEATING-RoundOurWayreport-June2023-FINAL.pdf#page=14) · [NHS England’s metric review, p. 39](https://assets.publishing.service.gov.uk/media/6a992bc45a0c25165ae46825/nhs-england-annual-report-and-accounts-2025-2026.pdf#page=39)