From 45f75e613f4f69d0c7024f10fe50a955a0016315 Mon Sep 17 00:00:00 2001 From: YiWen Hon Date: Mon, 1 Jul 2024 17:17:03 +0100 Subject: [PATCH 1/3] data log added and 2.0 information added --- data_extraction/data_log.qmd | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 data_extraction/data_log.qmd diff --git a/data_extraction/data_log.qmd b/data_extraction/data_log.qmd new file mode 100644 index 0000000..c860c49 --- /dev/null +++ b/data_extraction/data_log.qmd @@ -0,0 +1,65 @@ +--- +title: Data log +order: 250 +--- + +This page contains information about changes to the data underpinning the NHP model. If there are no changes logged for a particular version (such as 1.0) then the changes were only to the model code, and not to the underlying data. + +## Version 2.0 + +Date updated: 04/07/2024 + +### Inpatients + +A bug was identified in the data where the Virtual Wards efficiency mitigators were wrongly flagged as activity avoidance mitigators. This meant that if any Virtual Wards efficiency mitigators were set, these were not having any impact on the model results. This error was corrected and the data re-extracted. + +## Version 1.1 + +Date updated: 23/04/2024 + +### A&E + +Moved to ECDS data. + +### Inpatients + +- Virtual Ward and Day Procedures mitigators added. + +- Data was re-extracted and there were two missing specialties from the RTT specialties list in the model but not inputs. In the model to date, these specialties were mapped to one of the three other groups. + +- Changes to the way in which Well Babies are flagged and excluded, new logic given below: + + + ``` + -- remove well babies babies + NOT ( + -- neonatal level of care is 0 + i.WELL_BABY_IND = 'Y' + OR + -- healthy baby HRG + i.SUSHRG = 'PB03Z' + OR + ( + -- well baby specialty on a birth episode + i.TRETSPEF = '424' + AND + i.EPITYPE = '3' + ) + ); + + +``` + +Previously, we just had WELL_BABY_IND = 'N' (note the converse logic in this group). + +The issue with the Well Baby indicator is it requires the provider to have a single birth episode (`epiorder` = 1 & is last episode in spell), as well as a neonatal level of care of 0. + +A large amount of trusts incorrectly complete the neonatal level of care field, so we have altered the logic to include more potential cases, including the healthy baby HRG, and episodes where the treatment specialty is 424 (Well Baby service) and it is a birth episode (`epitype` = 3). + +## Version 0.6.3 + +Date updated: 31/01/2024 + +### Inpatients + +General Length of Stay mitigator added. From 5545cc2df11baf659a601968dcb334f3ca25b4e2 Mon Sep 17 00:00:00 2001 From: YiWen Hon Date: Tue, 2 Jul 2024 16:06:06 +0100 Subject: [PATCH 2/3] added in 1.2 to data log --- data_extraction/data_log.qmd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/data_extraction/data_log.qmd b/data_extraction/data_log.qmd index c860c49..cde58c7 100644 --- a/data_extraction/data_log.qmd +++ b/data_extraction/data_log.qmd @@ -13,6 +13,22 @@ Date updated: 04/07/2024 A bug was identified in the data where the Virtual Wards efficiency mitigators were wrongly flagged as activity avoidance mitigators. This meant that if any Virtual Wards efficiency mitigators were set, these were not having any impact on the model results. This error was corrected and the data re-extracted. +## Version 1.2 + +Date updated: 06/06/2024 + +### A&E + +The A&E Patients Left Before Being Treated mitigators now utilise the SNOMED codes "1066301000000103", "1066311000000101" and "1066321000000107". Previously, they only used the SNOMED code "1066321000000107". + +### Outpatients + +In the inputs app, the Outpatients mitigators were showing all attendances, not just those without procedures. This has been corrected. There were no changes required in the actual model data. + +### Inpatients + +Bedday rows removed; these were previously used for capacity conversion. Since this functionality was taken out, the bedday rows were no longer required. This may impact on random sampling, meaning that the same scenario run on v1.1 and v1.2 could have different results due to the absence of these rows. However on the whole the impact should be minimal. + ## Version 1.1 Date updated: 23/04/2024 From 82ad763be51014362d0c28f1150a6cc8185e432d Mon Sep 17 00:00:00 2001 From: YiWen Hon Date: Tue, 2 Jul 2024 16:15:01 +0100 Subject: [PATCH 3/3] Update data_extraction/data_log.qmd Co-authored-by: Tom Jemmett --- data_extraction/data_log.qmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data_extraction/data_log.qmd b/data_extraction/data_log.qmd index cde58c7..d8396d5 100644 --- a/data_extraction/data_log.qmd +++ b/data_extraction/data_log.qmd @@ -13,6 +13,8 @@ Date updated: 04/07/2024 A bug was identified in the data where the Virtual Wards efficiency mitigators were wrongly flagged as activity avoidance mitigators. This meant that if any Virtual Wards efficiency mitigators were set, these were not having any impact on the model results. This error was corrected and the data re-extracted. +A bug was identified in the way that "main ICB" was calculated for providers that succeeded other providers after 2019. The activity that was selected for calculating the main ICB only used the recorded provider code in HES data, but if that provider didn't exist prior to 2019 no data could be selected. We now use the "succeeded" provider codes in this calculation. + ## Version 1.2 Date updated: 06/06/2024