When machine learning researchers want to train a model on images or text, they benefit from standardized formats: a JPEG is a JPEG, and a text file is a sequence of characters. In healthcare, however, data is notoriously fragmented. Every hospital system utilizes its own bespoke database schemas, local terminologies, and clinical logging conventions. One hospital might record a blood glucose level using an internal proprietary code, while another uses an international standard; one database might store patient histories in deeply nested relational tables, while another logs them as flat text files.
This heterogeneity creates an $M \times N$ engineering bottleneck. If you have $M$ clinical prediction models and $N$ hospital databases, deploying every model at every site traditionally requires building $M \times N$ custom data-cleaning and feature-engineering pipelines.
To bypass this bottleneck, the field of clinical informatics relies on Common Data Models (CDMs). A CDM acts as a universal translation layer, mapping disparate data sources into a single, standardized schema. By transforming the problem from $M \times N$ to $M + N$, CDMs decouple clinical analysis from local database infrastructure, enabling portable machine learning and large-scale federated studies without requiring institutions to share sensitive raw patient data.
The Two Layers of Harmonization
To understand why a Common Data Model works, it helps to separate the harmonization process into two distinct layers: structural standardization (how the data is shaped) and semantic mapping (what the data means).
[Hospital A (Proprietary Schema)] ---\
--> [Extract-Transform-Load (ETL)] --> [Common Data Model (OMOP/FHIR)]
[Hospital B (Legacy Relational)] ----/ |
v
[Unified Analytical Code]
1. Structural Standardization
In their raw form, electronic health records (EHRs) are organized to optimize hospital billing and daily operations, not statistical analysis. As described by Alistair E. W. Johnson and Tom Pollard in their documentation of the MIMIC-III, a freely accessible critical care database, a typical critical care database must resolve relationships between patient demographics, hospital encounters, laboratory results, and physiological vitals.
A CDM standardizes these relationships. For instance, the Observational Medical Outcomes Partnership (OMOP) CDM forces all source databases into a fixed set of relational tables (such as PERSON, DRUG_EXPOSURE, and CONDITION_OCCURRENCE). This structural predictability means that an algorithm designed to extract a patient's longitudinal history can safely assume exactly which table and column will contain a given data type, regardless of the underlying hospital IT infrastructure.
2. Semantic Mapping
Structure alone is insufficient if two hospitals use different words for the same concept. Semantic mapping uses Extract-Transform-Load (ETL) pipelines to translate local, proprietary codes into standardized international vocabularies. For example, laboratory test results are mapped to LOINC (Logical Observation Identifiers Names and Codes), while medications are mapped to RxNorm.
As highlighted by Haridimos Kondylakis et al. in the Position of the AI for Health Imaging (AI4HI) network on metadata models for imaging biobanks, this dual harmonization ensures that variables from entirely different institutions become both structurally and semantically consistent, rendering them "AI-ready."
Why It Works: Decoupling Code from Data
The core intuition behind the success of CDMs is that they allow analytical code to travel to the data, rather than bringing the data to the code.
In traditional multi-center research, aggregating data requires centralizing raw patient records—a process that introduces severe data privacy liabilities and regulatory hurdles. CDMs solve this through federated execution. Because every participating site maintains a local copy of the dataset formatted to the exact same CDM schema, a researcher can write a single script (e.g., an R package or a Python machine learning pipeline) and distribute it globally. Each site runs the code locally behind its institutional firewall and returns only aggregate, de-identified results.
This mechanism enabled massive multinational studies during the COVID-19 pandemic. For example, Carlen Reyes et al. utilized the OMOP CDM in Characteristics and outcomes of patients with COVID-19 with and without prevalent hypertension: a multinational cohort study to synthesize data from 3.4 million patients across diverse global healthcare systems using a single analytical pipeline. Similarly, Elena Roel leveraged this standardized architecture in Use of repurposed and adjuvant drugs in hospital patients with covid-19: multinational network cohort study to track real-time clinical practice shifts across three continents simultaneously.
This capability is not limited to pandemics; Seng Chan You et al. demonstrated in Comparison of First-Line Dual Combination Treatments in Hypertension: Real-World Evidence from Multinational Heterogeneous Cohorts that identical analytical code could evaluate hypertension treatments across nearly one million patients in the US and South Korea without ever sharing raw medical records.
Ensuring Machine Learning Portability
For machine learning practitioners, CDMs solve the "reproducibility crisis" in clinical AI. When models are trained on non-standardized data, they often learn shortcuts based on site-specific data artifacts (such as local coding quirks or specific missingness patterns), causing them to fail when deployed at a new hospital.
By abstracting data into a common standard, models become inherently portable. Egill A. Friðgeirsson and Peter R. Rijnbeek demonstrated this in Attention-based neural networks for clinical prediction modelling on electronic health records, showing that mapping diverse EHR datasets to a standardized model allows predictive architectures to generalize across different institutions without extensive feature re-engineering.
Furthermore, frameworks like the Yet Another ICU Benchmark (YAIB), introduced by Robin Van De Water et al. in Yet Another ICU Benchmark: A Flexible Multi-Center Framework for Clinical ML, reveal that cohort definitions and preprocessing pipelines often influence model performance more than the underlying neural network architecture itself. A modular harmonization layer ensures that models are evaluated on truly identical task definitions across international datasets.
[Raw EHR Data]
|
v (ETL Transformation)
[Standardized Timeline (e.g., FHIR / MEDS)]
|
v (Tokenization / Embedding)
[Deep Learning Model (Transformer / LSTM)]
From Relational Tables to Event Timelines
As clinical AI shifts toward deep learning and foundation models, the nature of common data models is evolving. Traditional CDMs rely on rigid relational database tables. However, modern architectures like Transformers require data structured as chronological sequences of events.
To meet this need, researchers are increasingly mapping raw data to interoperable, event-driven standards. Alvin Rajkomar and Eyal Oren demonstrated in Scalable and accurate deep learning for electronic health records that mapping raw EHR data directly into the Fast Healthcare Interoperability Resources (FHIR) standard creates a consistent chronological timeline of all clinical events. This approach completely eliminates the need for manual, site-specific data cleaning.
Building on this concept, Nassim Oufattole et al. introduced MEDS-torch in MEDS-torch: An ML Pipeline for Inductive Experiments for EHR Medical Foundation Models, which utilizes the Medical Event Data Standard (MEDS). This format provides a universal schema specifically optimized for medical time-series data, allowing machine learning pipelines to seamlessly generalize across different hospital systems for foundation model training.
Whether implemented via relational tables like OMOP or event timelines like FHIR and MEDS, the core principle remains identical: standardizing the representation of clinical data abstracts away institutional idiosyncrasies, unlocking the scale necessary for robust, generalizable medical AI.