Data Services - Analytics Service

January 16, 2024 · View on GitHub

We'd like to share our work with you

This page showcases some of the work done by teams within NHS England.

We aim to deliver world-class data and services to improve the health and wellbeing of people in England by using data, curation and advanced analytics in innovative ways.

We have created this site with this mission in mind, to share and discuss open-source technology work. We will also distribute our code, publications and internal tools for feedback, with the hope this can help us improve our production processes.

Note The repo is curated by the Data Science team: to contact us raise an issue on GitHub or via email (england.RAPchampions@nhs.net) and we will respond promptly.

Our repositories

Repo nameDescriptionLanguagesPublished Report
Open data standardsDraft of open data CSV standards for commentMarkdownNo
Data Visualisation for Health and Care Community of PracticeCommitte of folk working in data visualisation across CSUs, Trusts, NHS Digital, NHS England and others.VariousNo
Medicines text mining toolMedicines text mining application.Python, PySparkNo
MPS DiagnosticsInterpretable metadata for MPS record linkage and Person IDPython, PySparkUser Guide
NHSD analytics services blogRepo for blog webpageHTML, CSSNo
codonPythonAim to reduce the DAE barrier for new analysts at NHSD.PythonNo
Artificial Data GeneratorPipelines and reusable code for generating anonymous artificial versions of NHS Digital assets in Databricks.Python, PySparkNo
DNAttendML framework for predicting patient non-attendancePythonDocumentation
nhs_time_of_travelThis GitHub repository and accompanying webpage contain the initial proof of concept and exploratory analysis for the design of a holistic and interactive mapping tool to support decision-making in health and social care.PythonYes
MedicalMapA collaborative open source project between NHS Python Community and Google Health, building on nhs_time_of_travel to create various mapping functionality in a streamlit appPythonNo
open-cyberA webpage giving select headline stats on cybersecurity in healthcare organisationsPythonSite
antibiotic_costPlotly chart and folium map visualizing the prescribing cost of the antibiotics Amoxicillin, Doxycycline Hyclate and Caefalexin for Clinical Commissioning Groups (CCGs)PythonSite
open-health-statistcsStatistics on open source healthcare repositoriesPythonSite
ForecastingA repo of different forecasting methods for different situationsPythonNo
SynPathProof Of Concept - Open Patient Pathway Generator using and an agent based approachPythonReport
MultiNetThis command line tool provides user-friendly and automated multi-morbidity network analysis. Detect significant associations are correcting for confounding factors such as Age and Sex. Includes community detection for un-directed networks. Option to build directed networks when diagnosis times are available.PythonNo
ambulance-DESProof of concept simmer discrete event simulation for the ambulance settingRConference Slides
HSMA4-12-DES-rheumDiscrete Event Simulation - The role of Patient Initiated Follow-up in supporting the elective recovery in rheumatologyRNo
eLfH-PHM-RiskStratA worked example to support the e-Learning for Health (e-LfH) PHM Risk Stratification Module.RNo
ai-dictionaryPrototype AI Dictionary from the NHS AI LabJavaScriptSite
SystemHierarchiesAiming to visualise and represent the structure and mapping of different NHS organisationsPythonNo
nhse-io-jekyll-templateTemplate for io pages using Jekyll incorporating the NHS service manualhtml, RubySite

Open Code from Internship Programme

see Internship Site for more details

Repo NameDescriptionLanguagesPublished Report
SynthVAENHSE DS Internship developing a Synthetic data generation by a Variational AutoEncoder with Differential Privacy assessed using Synthetic Data Vault metricsPythonReports
SynPath_DiabetesNHSE DS Internship developing a SynPath module for generating type 2 diabetes pathwayPythonReport
Diabetes Prevalence Management and Health InequalitiesNHSE DS Internship looking at how to identify inequalities in population health dataPythonReport
stm-survey-textNHSE DS Internship developing a Structural Topic Modelling code to gain insights from free text responses to NHS surveys and their associated metadataPythonReport
LIME-XAI-Facial-Disease-ClassificationNHSE DS Internship Scheme project investigating if a LIME application using superpixels is appropriate for facial healthcare image classificationPythonReport
TxtRayAlignNHSE DS Internship exploring contrastive alignment of image and text encoders for image-based radiology report retrieval and generation, and identification of possible evaluation metricsPythonReports
commercial-data-healthcare-predictionsNHSE DS Internship investigating of the value of commercial sales data on respiratory death predictions using Model Class ReliancePythonReport
NHSSynthNHSE DS Internship developing a Python package alongside research and investigative materials covering the effectiveness of the package and synthetic data more generally when applied to NHS use cases.PythonNo
ELM4PSIRNHSE DS Internship exploring Language Modelling for (NHS) Patient Safety Incident Reports - DART PhD Internship ProjectPythonReport

RAP Guidance Repositories

Repo nameDescriptionLanguagesPublished Report
RAP Community of PracticeCollection of NHSD RAP resources to help analysts adopt and apply RAP practices. The github pages website of this repo is here: RAP Community of Practice WebsitePython, PySpark, MarkdownNo
RAP package templateRAP package templatePythonNo
RAP Example Pipeline - PySparkExample of good practices in a simple pipeline using artificial HES dataPythonNo

RAP Publication Repositories

An easy way to find all fo the NHS Digital publication repos, is to look at the #nhs-digital-publication topic

Repo nameDescriptionLanguagesPublished ReportFirst Published
ASC-Outcomes-FrameworkThis is the code repository for Adult Social Care Outcomes FrameworkPython:heavy_check_mark:2023-04-17
ASC-OverviewCode repository for Adult Social Care OverviewPython:heavy_check_mark:2023-06-13
ASC-Safeguarding-AdultsSafeguarding Adults is a legal obligation for English Councils responsible for Adult Social Services. It aims to protect vulnerable adults from abuse or neglect. The Safeguarding Adults Collection (SAC) gathers data from these councils, generating insights on national, regional, and local safeguarding efforts.Python:heavy_check_mark:2023-06-13
ASC-User-SurveyCode repository for the Personal Social Services Adult Social Care Survey publicationR, Python, Markdown:heavy_check_mark:2022-09-20
ASC_LA_Peer_GroupsCalculates statistical neighbours (aka peers) for Local Authorities in England, for use in Adult Social Care statistics.Python, Markdown:heavy_check_mark:2024-01-16
GDPPR_Analytical_CodeTo share analysis code using the GDPPR dataset.SQL, Python, Markdown:heavy_check_mark:2021-03-08
IAPT Patient Outcomes Data Science Accelerator ProjectCode used to produce the Data Science Accelerator on IAPT patient outcomesPython, Markdown2022-11-03
idhc_publicationCode used to produce the Learning Disability Health Check Scheme publicationPython:heavy_check_mark:2023-04-17
iif_indicatorsCode for the following IIF indicators: AC-02: Emergency admissions for specified Ambulatory Care Sensitive Conditions per registered patient. ACC-08: Number of general practice appointments for which the time from booking to appointment was two weeks or less. EHCH-04: Number of general practice appointments categorised as 'patient contact as part of weekly care home round'.Python, PySpark2023-01-10
mental-health-act-annual-statisticsThis repository contains all of code used to create the Annual Uses of The Mental Health Act publication.Python, PySpark:heavy_check_mark:2023-06-29
mental-health-bulletinThis repository contains all of code used to create the Mental Health Bulletin publication.Python, PySpark:heavy_check_mark:2023-06-29
mental-health-monthly-statisticsThis repository contains all of code used to create the Mental Health Monthly Statistics publication.Python, PySpark:heavy_check_mark:2023-06-29
National Child Measurement Programme Provisional Report CodeCodebase for NCMP Report publicationSQL, Python:heavy_check_mark:2022-08-11
National Child Measurement Programme Report CodeCodebase for NCMP Report publicationSQL, Python:heavy_check_mark:2022-12-12
National Diabetes AuditA sample repo for working with Reproducible Analytical Pipelines (RAP).Python, PySpark2021-10-14
NCDes packageCode used to produce the Network Contract Directed Enhanced Service publicationPython, Markdown:heavy_check_mark:2022-10-07
NHS-Breast-Screening-Programme-Report-CodeCode repository for the NHS Breast Screening Programme reportPython:heavy_check_mark:2023-03-15
Sexual-Reproductive-Health-Services-Report-CodeThis project produces the required publication outputs for the Sexual and Reproductive Health Services (Contraception) publication: Data tables, charts, and map data.Python:heavy_check_mark:2023-06-19
Smoking-Drinking-and-Drug-Use-Report-CodeCode repository for the Smoking Drinking and Drug Use ReportR, Python, Markdown:heavy_check_mark:2022-08-26
Workforce: Absence RatesCodebase for Absence Rates publicationSQL, Python:heavy_check_mark:2022-07-21

We blog!

Please visit our NHS Digital Blog to discover the latest developments and updates from our analytics teams.

Work with us

Our teams design, develop and operate the national IT and data services that support clinicians at work, help patients get the best care, and use data to improve health and care. Our mission demands smart, usable, and reliable technology. Come serve the people by helping us design and build better products.

Learn more about the work we do in Data, Insights and Statistics group of the Data services - NHS Digital.

Licence

Data Analytics Services codebase is released under the MIT License.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.