Skip to content

Releases: The-Strategy-Unit/nhp_data

v4.4.0

29 Jan 12:08
67bbe80

Choose a tag to compare

What's Changed

Added new population catchments #227

We now use the same logic for creating catchment populations for both the inputs rates data and the model demographics module. The logic has been slightly refined to be closer to OHID's earlier work to create hospital catchments.

Abstract inputs geography type by #230

We now have inputs data available both at provider level, and local authority (LAD23CD) level.

We also now include all providers in the inputs data, not just acute providers (#233)

Removes mental health providers from tables by #231

By including all providers in the inputs data, we introduced a new issue where mean lengths of stay for inpatients were being skewed by Mental Health providers, where patients can have significantly greater lengths of stays than in acute providers. We remove these providers from all of our data extracts.

We do this slightly later for ECDS data though, as some providers which are classed as Mental Health do run walk in centres/minor injury units (#234).

Other PR's

Full Changelog: v4.3.0...v4.4.0

v4.3.0

27 Nov 11:04
957576b

Choose a tag to compare

What's Changed

Full Changelog: v4.2.1...v4.3.0

v4.2.1

07 Oct 12:53
b2e58a4

Choose a tag to compare

What's Changed

Full Changelog: v4.2.0...v4.2.1

v4.2.0

01 Oct 10:13
0a5af88

Choose a tag to compare

What's Changed

Refactored to be a python package

The code is now a python package that can be built and deployed to databricks.

Switch to asset bundle deployments

All of the workflows are deployed via GitHub actions now on push to main.

Implemented inequalities changes

Inequalities is now calculated by both provider and ICB.

Data changes

  • we were previously dropping some inpatients rows when they had a missing hsagrp. We now introduce an "unknown" group, so a very small amount of additional rows included
  • we move the filtering of speldur to earlier in the pipeline. This only has a small impact on some of the mitigators and inputs data
  • we have updated the day procedures code list to use the same filtering on procedure codes as the has_procedures column in inpatients, and based on 2023/24 rather than 2019/20.

PR's

Full Changelog: v4.1.0...v4.2.0

v4.1.0

03 Sep 13:05
7581b2d

Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.1.0

v4.0.0

11 Jul 13:09
5d0f5a9

Choose a tag to compare

What's Changed

Add 2022 pop projections #146

2022-based Subnational Population Projections have been released by ONS. We now use these for the demographic adjustment in the model. This PR introduced this new data into the code base. The following PR's are fixes to ensure that this actually worked.

  • update provider catchment methodology by @tomjemmett in #151
  • changes which schema the catchments table lives in by @tomjemmett in #153
  • fix demographic extract by @tomjemmett in #154
  • remove 2019 and 2022 from gams scripts, change principal_proj to migration_category by @yiwen-h in #155
  • fixes birth extract logic by @tomjemmett in #158
  • switches the file we use for the migration_category variant by @tomjemmett in #157
  • adds local authority successor mappings by @tomjemmett in #156
  • adds missing var_proj_zero_net_migration to snpp step by @tomjemmett in #159
  • fix error with partitioning in custom birth factors by @yiwen-h in #160
  • ensures we union in the base birth adjustment data with custom projections by @tomjemmett in #163

Alter tretspef cols #141

Previously, we had a bit of a bodge with the tretspef (treatment specialty function) column. When we extracted the data, we grouped these specialties to only keep the specialties used in RTT reporting. We later added in the ungrouped tretspef column, but in order not to break other code we added this as tretspef_raw.

We now handle this a bit more cleanly by having the actual values in tretspef, introducing a new column called tretspef_grouped. This has reduced the need for the same bit of code to be present in multiple locations, as we now handle the grouping early in the processing.

General tidying up

Full Changelog: v3.6.0...v4.0.0

v3.6.0

11 Jun 11:08
f381107

Choose a tag to compare

What's Changed

Custom Population Projections

Data Changes

  • switch to using both ccg of residence and responsibility by @tomjemmett in #108
  • uses correct columns for ecds ccgs by @tomjemmett in #117
  • switch EBI mitigators to age field by @tomjemmett in #110
  • adds the ethnic category (ethnos) to the raw_data schema tables by @tomjemmett in #115
  • adds the fyear/provider partition columns to mitigators table by @tomjemmett in #116
  • force maternity spells to be Other (Medical) treatment function by @tomjemmett in #107

Refactors

Full Changelog: v3.5.0...v3.6.0

v3.5.0

14 May 13:41
7c9736c

Choose a tag to compare

What's Changed

Population Data

Previously, we had been using an older code base (nhp_demogr_module_inputs).
This code base was not in any automated processes and hasn't been re-run in a long time.

This process has now been moved across to run in databricks with the rest of our data pipelines.
Also, they are now ready for switching to newer population projections when ONS releases them.

Health Status Adjustment GAMs

A bug was discovered in the way we generate the activity rates which are used by the GAMs for Health Status Adjustment.
When we work out the amount of activity by provider, we join to the catchment population for that provider.
However, the join was incorrect and was not including the provider, so we were dividing by all of the populations (for every provider).

Full Changelog: v3.4.0...v3.5.0

v3.4.0

23 Apr 10:37
f7dd3dc

Choose a tag to compare

What's Changed

Replaced AEC mitigators with SDEC mitigators

These new mitigators (mostly) target the same activity as before, but instead of reducing the length of stay to 0, the activity is removed from inpatients and added to the type-05 activity in A&E/ECDS.

Other minor changes

Full Changelog: v3.3.0...v3.4.0

v3.3.0

25 Mar 12:09
59d73f5

Choose a tag to compare

What's Changed

Full Changelog: v3.2.1...v3.3.0