Skip to content

prabathjayatissa/FHIROntopOMOP

 
 

Repository files navigation

FHIROntopOMOP

This project exposes

The Observational Medical Outcomes Partnership (OMOP) data as a queryable Knowledge Graph compliant with the HL7 FHIR standard using the Ontop Virtual Knowledge Graph engine.

Prerequisite:

a working connection to the OMOP PostgreSQL database. If the database and the Docker engine are running on the same machine, some additional configuration might be needed (see the end of this document)

Docker-based Installation Instruction

cp .env.example .env

and modify the .env file to configure the connection to the database

Endpoint

Additional Database configuration

If the PostgreSQL DB and the Docker engine are on the same machine, we need to make sure the Docker container can access the DB.

  1. Edit the file postgresql.conf (located at e.g. /etc/postgresql/11/main/postgresql.conf). This configures which IP addresses the DB engine is listening on.
#listen_addresses = 'localhost'         # what IP address(es) to listen on
listen_addresses = '*'          # PostgreSQL listen on all the IP address(es), including the address for Docker
  1. Edit the file pg_hba.conf (located at e.g. /etc/postgresql/11/main/pg_hba.conf). This configures the addresses of the clients, which can access the DB. Add the following block to this file.
# Docker
host    all             all             172.17.0.0/16           md5
host    all             all             172.18.0.0/16           md5
host    all             all             172.19.0.0/16           md5

Docker run with sample data

For this tutorial, we assume that the ports 7777 (used for database) and 8080 (used by Ontop) are free. If you need to use different ports, please edit the file .env.demo. Run the docker-compose commands in 2 separate terminals.

cp .env.demo .env
sudo docker-compose -f docker-compose.demo.yml up demo-db
sudo docker-compose -f docker-compose.demo.yml up ontop

Data from a sample physionet project https://physionet.org/content/mimic-iv-demo-omop/0.9/ is run locally for this demo.

About

FHIR Ontop OMOP Implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 70.6%
  • Java 24.9%
  • Shell 3.0%
  • q 1.4%
  • Dockerfile 0.1%