Designed and built by the RCPCH, by clinicians for clinicians.
This project is part of the Public Money Public Code community
An API (application programming interface) in python 3.10 to produce calculations for the resuscitation of children and young people <18y with diabetic ketoacidos, produced and validated by The Royal College of Paediatrics and Child Health (RCPCH, and British Society of Paediatric Endocrinology and Diabetes).
- Create a virtual environment based on python 3.10 (pyenv is recommended)
pip install -r requirements.txt
uvicorn main:app --reload --port:8000
- Set up Postman for localhost on port 8000
- Post a request using raw json in the body
{
"birth_date": "2015-04-12",
"resuscitation_start_date_time": "2022-02-06",
"sex": "female",
"weight": 23,
"pH": 6.86,
"shocked": true,
"insulin_infusion_rate": 0.05
}
- Wire up OpenAPI
- Fix resuscitation start_date_time to be a time also
- Validate calculations
- Implement a database if needed server-side
- anything else