OMOP CDM Setup

Before Bunny can run, it needs an OMOP CDM database to query.

You can find out more about the OMOP CDM from OHDSI, and their guidance for creating one.

We have guidance if you need to quickly build one, or have been supplied with a database backup.

Database Setup

Start the containers

The dev.compose.yml in the root of the Bunny repository can start a Postgres database container, and an init service omop-lite.

omop-lite will load a small synthetic OMOP CDM of 100 people, enough for Bunny to run queries.

Or you can use it to load your own data files by changing the dev.compose.yml file.

docker compose -f dev.compose.yml up db omop-lite

Configuration

You can connect to the now running OMOP CDM with the following configuration:

.env
DATASOURCE_DB_USERNAME=postgres
DATASOURCE_DB_PASSWORD=postgres
DATASOURCE_DB_DATABASE=omop
DATASOURCE_DB_DRIVERNAME=postgresql
DATASOURCE_DB_SCHEMA=omop
DATASOURCE_DB_PORT=5432
DATASOURCE_DB_HOST=localhost