Skip to content

alexgoodell/open-med-calc

Repository files navigation

OpenMedCalc

GitHub issues GitHub pull requests GitHub last commit DOI

About

This is a simple open-source API which allows users to calculate common medical formulas. It is built using FastAPI and follows the OpenAPI specification. It can be integrated into other applications such as OpenAI's new GPTs functionality. For educational use only. Not for patient care.

Preprint describing its use integrated into ChatGPT is available on Medrxiv.

Interactive live API documenation available here:

To run the app locally

  1. Clone the repo
  2. Install requirements
  3. Run the app
cd open-med-calc
uvicorn main:app --reload

To run the app remotely

  1. Install docker and docker-compose on remote server
  2. Transfer docker-compose.yml to remote server
  3. make the volume is created prior to running the docker container
docker volume create app
mkdir -r /var/lib/docker/volumes/app/_data
  1. run docker-compose up -d in the same directory as docker-compose.yml
  2. Run the app
cd open-med-calc
uvicorn main:app --reload

Current forumlas

  • MELD
  • MELD-Na
  • Caprini VTE
  • Wells DVT score
  • PSI/PORT (BETA)

To do

  • Improve documentation
  • Add more formulas

Similar projects

About

OpenMedCalc is a free, open-source medical calculation API

Resources

Stars

Watchers

Forks

Packages

No packages published