Giter VIP home page Giter VIP logo

ijnihr / aif_allocation_tool_nenc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nhsx/aif_allocation_tool

0.0 0.0 0.0 105.88 MB

This project is a tool built in Python to assist Integrated Care Boards (ICBs) to perform need based allocation based on defined place. It uses the most recently produced GP Registered Practice Populations as well as the weighted populations calculated from the Allocation model for each of its components.

License: Other

Python 100.00%

aif_allocation_tool_nenc's Introduction

ICB Place Based Allocation Tool

Python v3.8

This project is a tool built in Python to assist Integrated Care Boards (ICBs) to perform need based allocation based on defined place. It uses the most recently produced GP Registered Practice Populations as well as the weighted populations calculated from the Allocation model for each of its components. More information on the Allocations process, as well as useful documentation can be found at https://www.england.nhs.uk/allocations/

The tool allows a new 'place' to be defined in an ICB as a cluster of GP practices. This allows place to be flexibly defined, whether that is as GP practices in the same Primary Care Network (PCN), Local Authority, or that feed into the same Secondary services for example. That is at the discretion of the ICB. Once GP practices have been allocated to a place, the relative need indices can be calculated and the output can be downloaded as a CSV.

ICB Place Based Allocation Tool

Deployment (local)

The tool has been built using Streamlit, a Python app framework that can be used to create web apps. To deploy the streamlit app locally we advise using a virtual environment (venv for example) and following the instructions below:

The project virtual environment can be activated in bash using the following command

python3 -m venv <path to virtual env>
source <path to virtual env>/bin/activate

To activate the virtual environment in Windows the following command can be used

<path to virtual env>\Scripts\activate

To install all the prerequisite packages to run the tool, in the terminal run the following command:

pip install -r requirements.txt

To run the tool locally, open a terminal whilst in the directory containing the app and run

streamlit run dashboard.py

Streamlit will then render the tool and display it in your default web browser at

http://localhost:8501/

When run in this way, any changes to the script in your editor will change the app running locally.

More information about Streamlit can be found from the following link: https://docs.streamlit.io/en/stable/

Deployment (cloud)

The tool is deployed from the GitHub repository using Streamlit's sharing service. To make changes to the deployed app, push changes that have been made to the source code to the GitHub repository, these changes will then be reflected in the app. Full instructions for using the tool can be found in the user guide.

The .streamlit directory contains configuration settings that affect the appearance of the application when it is deployed.

Support

For support with using the AIF Allocation tool, or enquiries about the overall allocation process can be directed to: [email protected]

For information on the use of .JSON format files, see: Json Format Primer

Copyright and License

Unless otherwise specified, all content in this repository and any copies are subject to Crown Copyright, dual licensed under the MIT License and the Open Government License v3.

Any new work added to this repository must conform to the conditions of these licenses. In particular this means that this project may not depend on GPL-licensed or AGPL-licensed libraries, as these would violate the terms of those libraries' licenses.

aif_allocation_tool_nenc's People

Contributors

christodd-nhsx avatar umehliseli avatar craig-shenton avatar oliolioli-jonesjonesjones avatar jrpearson500 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.