This repository contains the open-source implementation of the Reproducible Analytical Pipeline (RAP) developed for the Newcastle upon Tyne Hospitals NHS Foundation Trust (NUTH). The RAP is designed to deliver patient-level analytics and improve clinical decision-making by integrating, analysing, and visualising data from multiple sources.
The goal of this project is to demonstrate the capabilities of full open-source software (FOSS) like R, SQL, and Quarto in addressing challenges faced by NHS trusts. The datasets and scripts shared here illustrate how sophisticated analytical pipelines can be developed even in resource-constrained environments, ultimately leading to improved patient outcomes.
The RAP
- leverages the Trust's Nautilus clinical data warehouse; and
- integrates data from multiple sources such as:
- Oracle Health Electronic Patient Records (EPR)
- Laboratory Information Management System (LIMS)
- Genetics LIMS
The Reproducible Analytical Pipeline integrates this data and delivers interactive, patient-level insights through HTML reports, hosted on a secure intranet website.
- Open-source tools: Built with RStudio, R programming, Quarto, and SQL for full reproducibility and transparency.
- Interactive Reports: Generates HTML reports using Quarto.
- Data Security: Enforces strict governance to ensure appropriate security for sensitive clinical data.
- Version Control: Integration with GitHub for streamlined version control and collaboration.
- Impactful Analytics:
- Enhanced oversight of evidence-based prescribing
- Advanced infection surveillance and quick intervention
- Improved laboratory quality processes with better resource allocation through actionable insights.
The following are example reports generated by the RAP platform currently being used at NUTH:
- Critical blood culture results and antimicrobial therapy: Links critical blood culture findings with recent antimicrobial therapy prescribed to current inpatients.
- Antimicrobial expenditure tracking: Tracks ward-level antimicrobial spending.
- MRSA admission screening compliance: Monitors MRSA screening adherence and highlights compliance issues.
- Blood culture antimicrobial resistance analysis: Uses R to predict antimicrobial resistance rates based on blood culture susceptibility data.
To explore the scripts and examples provided in this repository:
-
git clone https://github.com/send2dan/AMS-eRecord-data-copy.git
-
Install the required dependencies for R and setup Quarto. Refer to the Quarto installation guide.
-
Explore and run the provided scripts to understand how the RAP processes data.
Anyone interested in contributing, replicating, or adapting the RAP is welcome to do so. Please feel free to contact Daniel Weiand for further guidance:
- Email: [email protected]
- GitHub: [https://github.com/send2dan/public]