Giter VIP home page Giter VIP logo

omop-cdm's Introduction

OMOP 5.31 with databricks

In this solution accelerator, we will build a Common Data Model for bservational research based on OMOP 5.31 CDM, on databricks lakehouse platform.

Solution Overview

Observational databases are designed to primarily empower longitudinal studies and differ in both purpose and design from Electronic Medical Records (aimed at supporting clinical practice at the point of care), or claims data that are built for the insurance reimbursement processes. The Common Data Model is designed to address this problem:

The Common Data Model (CDM) can accommodate both administrative claims and EHR, allowing users to generate evidence from a wide variety of sources. It would also support collaborative research across data sources both within and outside the United States, in addition to being manageable for data owners and useful for data users.

One of the most widely used CDMs for observational research is The OMOP Common Data Model.

The OMOP Common Data Model allows for the systematic analysis of disparate observational databases. The concept behind this approach is to transform data contained within those databases into a common format (data model) as well as a common representation (terminologies, vocabularies, coding schemes), and then perform systematic analyses using a library of standard analytic routines that have been written based on the common format.

for more information visit https://www.ohdsi.org/data-standardization/the-common-data-model/

OMOP CDM has now been adopted by more than 30 countries with more than 600M unique patient records.

Why lakehouse?

The complexity of such healthcare data, data variety, volume and varied data quality, pose computational and organizational challenges. For example, performing cohort studies on longitudinal data requires complex ETL of the raw data to transform the data into a data model that is optimized for such studies and then to perform statistical analysis on the resulting cohorts. Each step of this process currently requires using different technologies for ETL, storage, governance and analysis of the data. Each additional technology adds a new layer of complexity to the process, which reduces efficiency and inhibits collaboration.

The lakehouse paradigm, addresses such complexities: It is an architecture that by design brings the best of the two worlds of data warehousing and data lakes together: Data lakes meet the top requirement for healthcare and life sciences organizations to store and manage different data modalities and allow advanced analytics methods to be performed directly on the data where it sits in the cloud. However, datalakes lack the ability for regulatory-grade audits and data versioning. In contrast, data warehouses, which allow for quick access to data and support simple prescriptive analytics (such as simple aggregate statistics on the data), do not support unstructured data nor perform advanced analytics and ML. The lakehouse architecture allows organizations to perform descriptive and predictive analytics on the vast amounts of healthcare data directly on cloud storage where data sits while ensuring regulatory-grade compliance and security.

Notebooks

In this solution accelerator, we provide a few examples to show how the lakehouse paradigm can be leveraged to support OMOP CDM.

  1. README: This notebook
  2. RUNME: Automating the end-to-end workflow
  3. 0-config: configuration and setup
  4. 1-data-ingest: To ingest synthetic records in csv format from cloud to delta bronze layer and create a synthea database
  5. 2_omop531_cdm_setup: Definitions of OMOP 5.3.1 common data model for delta (DDL)
  6. 3-omop_vocab_setup: create OMOP vocabulary tables
  7. 4_omop531_etl_synthea: Example ETL for transforming synthea resources into OMOP 5.3.1
  8. 5-analysis/CHF-cohort-building: Example notebook to create a cohort of patients with Chronic Heart Failure and look at emergency room visit trends by gender and age
  9. 5-analysis/drug-analysis: Examples for analysis of drug prescription trends
  10. 5-analysis/sample-omop_queries: Sample SQL queries from OHDSI

Dataset

To simulate health records, we used Synthea to generate ~90K synthetic patients, from across the US. You can also access sample raw csv files in /databricks-datasets/ehr/rwe/csv for 10K patients. By running ../1-data-ingest you create the brozne tables based on the pre-simulated synthetic records.


© 2022 Databricks, Inc. All rights reserved. The source in this notebook is provided subject to the Databricks License [https://databricks.com/db-license-source]. All included or referenced third party libraries are subject to the licenses set forth below.

Library Name Library License Library License URL Library Source URL
Smolder Apache-2.0 License https://github.com/databrickslabs/smolder https://github.com/databrickslabs/smolder/blob/master/LICENSE
Synthea Apache License 2.0 https://github.com/synthetichealth/synthea/blob/master/LICENSE https://github.com/synthetichealth/synthea
OHDSI/CommonDataModel Apache License 2.0 https://github.com/OHDSI/CommonDataModel/blob/master/LICENSE https://github.com/OHDSI/CommonDataModel
OHDSI/ETL-Synthea Apache License 2.0 https://github.com/OHDSI/ETL-Synthea/blob/master/LICENSE https://github.com/OHDSI/ETL-Synthea
OHDSI/OMOP-Queries https://github.com/OHDSI/OMOP-Queries
The Book of OHDSI Creative Commons Zero v1.0 Universal license. https://ohdsi.github.io/TheBookOfOhdsi/index.html#license https://ohdsi.github.io/TheBookOfOhdsi/

To run this accelerator, clone this repo into a Databricks workspace. Attach the RUNME notebook to any cluster running a DBR 11.0 or later runtime, and execute the notebook via Run-All. A multi-step-job describing the accelerator pipeline will be created, and the link will be provided. Execute the multi-step-job to see how the pipeline runs.

The job configuration is written in the RUNME notebook in json format. The cost associated with running the accelerator is the user's responsibility.

omop-cdm's People

Contributors

danielsparing avatar dbbnicole avatar

Stargazers

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

Watchers

 avatar  avatar

omop-cdm's Issues

Typos In Setup Tables Notebook

Hi - There are some typos in the CDM setup notebook that prevent us from testing additional tools like Atlas and the Webapi to their fullest extent. I'm unable to sign the CLA to submit the PR, so can you please review and implement the fix on your end? I'm not sure if other notebooks need updated or not. We worked around it by using the modified notebooks for now. But the typos should probably be corrected for everyone else :)

Comparing databricks-industry-solutions:main...Zachary-Higgins:main · databricks-industry-solutions/omop-cdm (github.com)

Thanks!

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.