Skip to content

cumc-dbmi/drug-condition-incidence

Repository files navigation

Drug Condition Incidence Rate

Directory Structure

  • client: HTML5 app using angular
  • incidence-api: RESTful API using Python flask

Getting started

To get this application up and running you will need to know the following:

  • DATASOURCE_USERNAME
  • DATASOURCE_PASSWORD
  • DATASOURCE_HOSTNAME

Create environment file

Copy the .env_template to a .env file and edit it accordingly.

VOCAB_BASE_URL='http://api.ohdsi.org/WebAPI/vocabulary/1PCT'
DATASOURCE_USERNAME='YOUR_USERNAME'
DATASOURCE_PASSWORD='YOUR_PASWORD'
DATASOURCE_HOSTNAME='YOUR_HOST'
DATASOURCE_PORT='1433'
DATASOURCE_DATABASE='incidence_rate'
DATASOURCE_SCHEMA='dbo'

Build images

docker compose build

Launch containers

docker compose up -d

Open application

Open browser and visit http://127.0.0.1:9999