Skip to content

Releases: The-Strategy-Unit/nhp_data

v5.2.0

Choose a tag to compare

@tomjemmett tomjemmett released this 25 Jun 14:03
38c68b5

What's Changed

Add susspellid to apc data

This field allows you to link to all of the other episodes in the spell. Will make the capacity conversion work simpler in the future. (adds susspellid to apc data by @tomjemmett in #258)

Changes to definition of maternity patients

In inpatients, we now capture more patients in the maternity definition by looking at the treatment function, as well as the admission method. We also ensure that the maternity group is applied to valid patients (only females between age of 13 and 55) (alters logic for group in inpatients by @tomjemmett in #259)

Changes to demographic modelling

Introduced a new column demog_type which is either "demographics" or "births". This makes it simpler to figure out which type of demographic modelling to apply in the model. It also has allowed us to choose the births adjustment for appropriate outpatient appointments.

Improved synthetic data generation

Working towards removing any disclosure risks from the synthetic data. Note that this has not yet been validated, so the synthetic data should still be treated as sensitive.

Other fixes/changes

Full Changelog: v5.0.0...v5.2.0

v5.0.0

Choose a tag to compare

@tomjemmett tomjemmett released this 21 May 11:11
28e2236

What's Changed

Switch to UDAL

We've move away from our own infrastructure to use UDAL ( Switch over to UDAL by @tomjemmett in #237).

This has allowed us to add 2024/25 data to the pipeline (updates pipeline to extract 2024/25 data by @tomjemmett in #242).

We've also increased the maximum year supported to model to to 2047 (updates maximum year for demographics to 2047 by @tomjemmett in #249).

Other changes

Full Changelog: v4.4.0...v5.0.0

v4.4.0

Choose a tag to compare

@tomjemmett tomjemmett released this 29 Jan 12:08
67bbe80

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

Choose a tag to compare

@tomjemmett tomjemmett released this 27 Nov 11:04
957576b

What's Changed

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

v4.2.1

Choose a tag to compare

@tomjemmett tomjemmett released this 07 Oct 12:53
b2e58a4

What's Changed

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

v4.2.0

Choose a tag to compare

@tomjemmett tomjemmett released this 01 Oct 10:13
0a5af88

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

Choose a tag to compare

@tomjemmett tomjemmett released this 03 Sep 13:05
7581b2d

What's Changed

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

v4.0.0

Choose a tag to compare

@tomjemmett tomjemmett released this 11 Jul 13:09
5d0f5a9

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

Choose a tag to compare

@tomjemmett tomjemmett released this 11 Jun 11:08
f381107

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

Choose a tag to compare

@tomjemmett tomjemmett released this 14 May 13:41
7c9736c

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