Healthcare providers store a variety of data such as diagnosis, electronic health records (EHRs), and claims. This wealth of information provides a complete picture of a patient’s medical history, allowing health professionals to make the most informed decisions regarding care. For example, a patient’s past medical records can enable a doctor to personalize the treatment plan by intensifying medication that is more effective and can help recover the patient.
These data are not only valuable to a patient but also offers opportunities to gain insights into overall population health, emerging health challenges, and to evidence for science-based policy making. However, the lack of a standard data representation format severely hinders the realization of this health data potential. In practice, hospitals or clinics use databases managed internally or by a third-party. While this arrangement grants freedom in selecting database structure that best suits the institution’s needs, it results in every database being unique and requiring custom analysis code for data extraction.
Analysis challenge with clinical data in different structures
To illustrate this problem, consider the example shown in Figure 1: three tables storing patient cholesterol measurements from Estonia, USA and Germany. Here, we see that each table uses a different coding system (e.g., LOINC, local coding), which is quite common in real-world practice.
As a data scientist, you have been given a simple and straightforward task of performing the task below:
Task: Extract patients with total cholesterol > 240 mg/dL
To extract the patient records matching the criteria of total cholesterol > 240 mg/dL, you would need:
- A method to identify the records that store total cholesterol.
- A way to convert measurement values if they differ from
mg/dL.
The identifier for the total cholesterol varies depending on the lab codes used by each hospital. A common way to represent lab results, also illustrated in our example, is by using international standards (e.g., LOINC) or local codes. Additionally, hospitals may also use different measurement units for lab results (mg/dL, nmol/L in our example).
Logical Observation Identifiers Names and Codes (LOINC): LOINC is an international standard for identifying health observations, measurements and documents. In simple terms, it provides a standard way to encode which health measurement of a patient is taken and its value.
Due to these differences, we would need three different versions of SQL queries, each customized to the specific table format, simply to achieve a common analytics goal (i.e., identifying patients with cholesterol > 240 mg/dL). Now, imagine the efforts required to build such a solution from scratch for full-scale clinical databases (e.g., diagnosis, lab results, prescriptions, pathology, surgeries).
Needless to say that health data carries substantial data privacy risks, and must be treated with utmost care. This necessitates an approach that enables insight extraction from highly sensitive patient records without requiring the data to move from its source (a technique known as federated analysis).
OMOP Common Data Model (CDM)
The Observational Medical Outcomes Partnership (OMOP) CDM is a data standard designed to address the challenges of disparate data formats and facilitate privacy-preserving analytics. Simply put, OMOP CDM offers a common format that enables scalable analytics.
Let’s revisit our example from Figure 1 to understand how CDM alleviates these challenges with format and privacy.
CDM facilitates translation of each unique measurement type into a common identifier and standardize its value and unit. This transformation brings all three tables into a uniform format (Figure 2), which allows extraction of patient data (e.g., cholesterol < 240 mg/dL) using a single SQL query.
This transformation requires three pieces of information:
- Pre-defined target tables (The destination schema)
- Standardised terminologies for measurements and units (e.g.,
3027114represents cholesterol measurements).- Mapping of measurements, units from their source format to agreed-upon vocabularies (e.g.,
14647-2=>3027114)
In this scenario, we do not need a separate SQL query for each table, a single query suffices across all three. Furthermore, the transformation into OMOP CDM eliminates the need to physically move the underlying data. Instead, the query can be sent to the source database for execution and only the generated insights are retrieved. This is the power of federated analysis.
OMOP CDM provides a standard data model and terminologies to standardises healthcare data into a common format for analytics purposes.
- It enables the reusability of analysis methods, facilitating large-scale collaborative reserach.
- It supports federated analysis: bringing the analytics code to data instead of moving the data to the code.
- It is designed specifically for analytics, not primary long-term storage.
OMOP CDM core components
OMOP CDM standardises two critical aspects of patient health records: first, data table structures and relationships among them; second, a unique vocabulary to represent every piece of information.
OMOP CDM tables
OMOP CDM includes a total of 37 tables. OMOP CDM provides definitions of these tables for all major database applications. You can check those DDL here.
These tables can be divided into five groups (Figure 3). The first group records everything relevant to the patient direct care including diagnoses, medication, and procedures. The remaining groups cover aspects such as costs, insurance, healthcare providers, information derived from the patients’ data, and metadata.
Think of these tables as an already existing empty database waiting to be populated with your data. They tell you exactly what information is needed and where it belongs.
Standard terminologies
This second component covers the types of information held in the original source databases. This standardisation process is crucial to ensure uniformity across heterogeneous data sources.
Our earlier example (Figure 2) demonstrated that various standards were used to represent cholesterol (i.e., LOINC, local codes). CDM recommeds use of a specific standard LOINC code for all cholesterol measurements. Similarly, for diagnoses and drugs, CDM recommends using standar terminologies like SNOMED CT and RxNorm. Table 1 provides these standards along with examples and common source codes.
concept_ids.
| Domain | Stored in (CDM table · field) | Common source codes | Standard vocabulary used for storage | Example |
|---|---|---|---|---|
| Conditions | CONDITION_OCCURRENCE · condition_concept_id |
ICD-10 (WHO), national ICD-10 versions (e.g. ICD-10-CM, ICD-10-GM), ICD-9-CM, Read, ICPC | SNOMED CT | ICD-10 E11.9 → Type 2 diabetes mellitus (201826) |
| Drugs | DRUG_EXPOSURE · drug_concept_id |
National product codes, NDC (US), dm+d (UK), brand names | RxNorm, RxNorm Extension (non-US drugs), CVX (vaccines) | “Metformin 500 mg tablet” → RxNorm metformin 500 MG Oral Tablet |
| Procedures | PROCEDURE_OCCURRENCE · procedure_concept_id |
National procedure codes (e.g. NCSP, OPCS-4, OPS), local codes | SNOMED CT (US data also uses CPT4, HCPCS, ICD-10-PCS) | “Apendektoomia” → Appendectomy (SNOMED 80146002) |
| Lab tests & measurements | MEASUREMENT · measurement_concept_id |
Local lab codes, in-house test names | LOINC | KOL-01 → Cholesterol [Mass/volume] in Serum or Plasma, LOINC 2093-3 (3027114) |
| Units | *_unit_concept_id |
Free text: “mg/dl”, “MG/DL”, “mmol/l” | UCUM | “mg/dl” → mg/dL (8840); “mmol/l” → mmol/L (8753) |
| Qualitative results | MEASUREMENT · value_as_concept_id |
“pos”, “+”, “positiivne” | SNOMED CT / LOINC answers | “positiivne” → Positive (9191) |
| Observations | OBSERVATION · observation_concept_id |
Questionnaires, family and social history | SNOMED CT, LOINC | “suitsetaja” → Smoker (SNOMED) |
| Devices | DEVICE_EXPOSURE · device_concept_id |
Local device catalogues, GMDN | SNOMED CT (HCPCS in the US) | “südamestimulaator” → Cardiac pacemaker (SNOMED) |
| Drug route | DRUG_EXPOSURE · route_concept_id |
“PO”, “i.v.”, “per os” | SNOMED CT | “PO” → Oral route |
| Visits | VISIT_OCCURRENCE · visit_concept_id |
Local encounter types | Visit (OMOP vocabulary) | “statsionaarne” → Inpatient Visit (9201) |
| Sex | PERSON · gender_concept_id |
“M/F”, “1/2”, “mees/naine” | Gender (OMOP vocabulary) | “naine” → Female (8532); “mees” → Male (8507) |
| Record origin | *_type_concept_id |
Where the record came from | Type Concept (OMOP vocabulary) | EHR record → EHR (32817); claim → Claim (32810) |
| Currency | COST · currency_concept_id |
“€”, “EUR” | Currency (ISO 4217) | “€” → Euro |
CDM workflow
The CDM workflow involves six steps (Figure 5). The first step is understanding the information contained within the source database. Tools like WhiteRabbit (a Java-based application) can be used here to generate a report on the source database.
The second step is designing an ETL (Extract, Transform, Load) pipeline. This involves defining target tables, fields, values for migrating the source data (e.g., moving Laboratory results into the Measurement table).
Following this is arguably the most critical phase: the third step, where source codes, units, or values (e.g., “Male”, “Female”) are mapped to the OMOP CDM concepts (Table 1) (e.g., “Male” –> 8507; “Female” –>8532).
You can check these mappings for Estonian databases here for a concrete example. These mappings were developed by Health informatic groups at Tartu University (Oja et al. 2023).
The forth step involves building and execution of the designed ETL pipeline to fill OMOP data tables. This is often where implementation errors or missed details occur, making assessment crucial to ensure the successful transformation of the source database into OMOP CDM.
The fifth step is where we perform quality checks for aspects (e.g., for completeness, plausability). Upon identification of any errors or issues during this step, the process loops back to Step 4 for correction and re-execution, repeating until all data quality errors are resolved.
The final step is where the hard work pays off: leveraging a rich library of analytics tools provided by the amazing community of Observational Health Data Sciences and Informatics (OHDSI).
Figure 5 provides an illustrative case for CDM workflow with the help of our running example of cholesterol.
Key Takeaways
- OMOP CDM is a standard that uses pre-defined tables and standard vocabularies to represent information from diverse databases uniformly.
- Once converted, the same analysis can run across different databases.
- It enables large-scale collaborative research through reusable analysis code, tools, and study designs, all without compromising patient data.
- It facilitates federated research: the code travels to the data, not the data to the code.