Giter Site home page Giter Site logo

omopfhirmap's Introduction

omopfhirmap for mapping FHIR <--> OHDSI OMOP CDM

omopfhirmap GitHub tag (latest by date)

About

Omopfhirmap is a command-line tool for mapping a OHDSI cohort, defined in ATLAS, to a FHIR bundle that can be optionally submitted to a FHIR server for processing. Conversely, it can process a FHIR bundle and add resources to an existing CDM database ignoring duplicates. Unlike GT-FHIR2, the OMOP on FHIR Project at Georgia Tech omopfhirmap does not expose OMOP database as FHIR endpoints.

Use cases

  • To export a cohort to a FHIR based analytics tool.
  • To load new resources to OMOP CDM databases for incremental ETL.

Build

mvn clean install spring-boot:repackage

Usage

java -jar <omopfhirmap.jar> <function> <source> <destination> --spring.config.location=<properties file>

Examples

  • java -jar target/omopfhirmap-0.0.1.jar help

  • java -jar target/omopfhirmap-0.0.1.jar tofhirbundle 2 test-fhir.json --spring.config.location=application.properties This will convert the cohort defined in Atlas with an ID of 2 (looks in the cohort table in results schema) and writes the FHIR (collection) bundle.

  • java -jar target/omopfhirmap-0.0.1.jar toomop test-fhir.json 3 --spring.config.location=application.properties Imports the FHIR bundle in the above file, creates persons, observations, measurements, procedure and visit occurences. Finally it creates a new cohort with ID 3 (Can be seen in Atlas)

  • Sample application.properties

spring.main.banner-mode=off
logging.level.org.springframework=ERROR
logging.level.root=ERROR
logging.level.org.foo.bar.baz=INFO

spring.jpa.hibernate.ddl-auto=none

spring.datasource.initialization-mode=always
spring.datasource.platform=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/username_db?currentSchema=synpuf_results,synpuf5,ohdsi
spring.datasource.username=username
spring.datasource.password=secret

spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true

# used for saving the OMOP identifier in FHIR resource
omopfhir.system.name=mySystem

Work in progress

  • I have only mapped FHIR.Patient <-> OMOP.Person so far.
  • PRs welcome if you want to map others.
  • Please star the repo, if you find this useful and want to see other mappings completed.

Design

  • JAVA >= 13
  • FHIR R4
  • Multi-Threaded
  • Uses spring-boot and JPA for wiring of services and abstraction of database.
  • Can easily add support for other databases using spring-boot

Other projects

Contributors

Demo

omopfhirmap

omopfhirmap's People

Contributors

dependabot[bot] avatar dermatologist avatar github-actions[bot] avatar jasper-vandemalle avatar sinujackson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

omopfhirmap's Issues

Mapping rest of FHIR resources to OHDSI

Help needed to complete mappers of other resources in this command-line tool for OHDSI <-> FHIR. This should be relatively simple as the Patient resource mapping can be a template. Ideal for those interested in healthIT, FHIR and OHDSI data models.

Tests fail on bumping spring-boot-starter-parent from 2.4.5 to 2.5.2

bumping spring-boot-starter-parent from 2.4.5 to 2.5.2 leads to
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceScriptDatabaseInitializer'
while initializing h2 database for tests.

Steps to reproduce:

  1. Update spring boot in parent pom
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.5.2</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
  1. mvn clean test

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.