This repository contains the code required to build the Aseptic demand and capacity model for NHS England.
├───data
└───raw
├───documents
├───images
├───src
├───etl
├───load.R
├───processing.R
└───utils.R
└───requirements
└───packages.R
├───www
└───nhse_theme.css.R
├───.gitignore
├───app.R
├───LICENSE
└───README.md
This folder contains the demand and capacity excel model developed by Karl Taylor at NHSE. The version of the model you want to use within the model will be loaded from here.
Contains the assumptions_guide.md providing an overview of the assumptions used in the model.
Contains the TU logo for the README.md
Contains scripts used for loading and processing the data for use in the shiny app. Also contains utility functions for creating data tables with totals and a plotly waterfall plot.
Contains the .css file for formatting the app.
This is the shiny app containing both the ui and server components.
You can run the model by cloning the repository and running the app in R.
git clone https://github.com/NHS-Transformation-Unit/aseptic_services_modelling.git
cd aseptic_services_modellingPackages will be installed via the src/requirements/packages.R script but you can run this first to ensure they are all installed correctly.
Run the app.R script to run the app locally.
If you wish to change the input data file to a new version of the mode this will need to first be saved in data/raw/.
Update the file name in each load stage within src/etl/load.R so that it reads:
read_excel(here("data", "raw", "NEW_FILE_NAME_HERE.xlsx"), ...)Ensure that any cell references are still correct.
This repository has been created and developed by:
The model has been built and developed from the original modelling undertake by Karl Taylor at NHS England.
This project is licensed under the GPL-3.0 license - see the LICENSE file for details.
