Giter Club home page Giter Club logo

drr's Introduction

Health Recommendation App

This is an initial prototype for an app that does this:

  1. Let users enter or upload basic current health information, including any medications, supplements. Also request information about medical history, including family history. Optionally let the user upload specific details like blood chemistry, genomics, microbiome, etc.
  2. Respond with general observations and recommendations. Point to any markers that might be out of range and suggest actions.
  3. Ask about dietary preferences and current exercise levels.
  4. Propose general guidelines for daily macronutrient percentages (protein, carbs, etc.) and calories.
  5. Propose additional tests that could reveal more in-depth information.

Sample Output

A summary table personalized to this user

Specific dietary recommendations

Docker

The easiest way to get started is to use Docker. There are three Dockerfiles of interest:

  1. docker-compose.yml
  2. frontend/drr_frontend/Dockerfile
  3. backend/Dockerfile
docker-compose up --build -d

Look over the docker-compose.yml file and adjust as required.

Install

To generate everything from sources, first create a project directory and download everything from this repo.

Backend

You'll need Python

python3 -m venv venv
source venv/bin/activate
pip install -r ./backend/requirements.txt

Frontend

Requires npm 9.5 and node 18

cd frontend/drr_frontend
npm install

Environments

You'll need two .env files with your secret environment variables.

In the top directory (these settings should work "out of the box" -- it'll still run in demo mode if you don't change these credentials):

[email protected]
23ANDME_PASSWORD=password
OPENAI_API_KEY=somelongapikey
REACT_APP_BACKEND_URL=http://0.0.0.0:5005
FLASK_RUN_HOST=0.0.0.0
FLASK_RUN_PORT=5005
DRR_DEMO_MODE=true
DRR_ASSET_PATH=/path/to/sample/files

In the frontend directory (frontend/drr_frontend/.env) , you'll need to set whatever you want as the backend port. In development I've generally been using `5005.

REACT_APP_BACKEND_URL=http://localhost:5005

In production, under a Docker environment, you'll want this to be

REACT_APP_BACKEND_URL=http://backend:5005

VS Code

If you use VS Code, the ./vscode directory contains various launch and task settings you might find useful.

Run

Start the backend:

python backend/app.py

Start the frontend:

cd frontend/drr_frontend
npm start

drr's People

Contributors

richardsprague avatar hyunggilwoo avatar sigaihealth avatar allisonh12 avatar kearnsw 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.