EHR Real-World Data: Strengths, Gaps and Research Use

EHR real world data is the clinical information captured in electronic health records (EHRs) during routine care: diagnoses, medications, lab results, vital signs, procedures and clinical notes. It shows how patients are actually treated outside of trials, which makes it one of the richest sources of real-world evidence, provided it is cleaned, standardized and analyzed in a setting where data never leaves the source.
Why EHR real world data matters now
Regulators, payers and drug developers increasingly ask what happens to patients after a product reaches the market. The US 21st Century Cures Act of 2016 directed the FDA to develop a program for using real-world evidence in regulatory decisions, and the FDA published its Framework for Real-World Evidence in 2018. In Europe, the European Health Data Space (EHDS) regulation sets out rules for the secondary use of health data, including EHR data, for research and policy.
EHRs sit at the center of this shift because they hold the clinical detail that other sources lack. Claims data records what was billed. Registries record a defined set of variables. EHRs record what the clinician saw and did, often visit by visit. That depth is valuable, and it is also why EHR data is hard to use well.
What EHR real world data contains
An EHR is built to support care and billing, not research. Knowing how each part of the record is created helps teams judge what it can and cannot answer.
Structured fields
Structured data includes coded diagnoses (often ICD-10), medication orders and prescriptions, lab results with units and reference ranges, vital signs, procedures, allergies and demographics. These fields are the easiest to analyze, but codes are chosen for billing and workflow as much as for clinical accuracy.
Unstructured notes
Clinical notes, discharge summaries, pathology and radiology reports hold detail that structured fields miss: disease stage, symptom severity, reasons for stopping a drug, smoking history and family history. Extracting this information requires natural language processing or manual abstraction, and both need validation.
Time and context
Every entry has a time stamp and a care setting. This lets researchers build patient timelines, which is essential for questions about treatment sequences, time to event and outcomes after a given therapy.
Strengths and gaps of EHR data for research
EHR data is powerful, but it was not collected to answer your study question. Good studies start by naming the gaps and planning around them.
Strengths
- Clinical depth. Lab values, vital signs and notes describe disease severity and response in ways claims cannot.
- Representative populations. EHRs include patients often excluded from trials, such as older adults and people with several conditions.
- Long follow-up. Records can span many years of care within a health system.
- Timeliness. Data accumulates continuously, so it can reflect current practice.
Gaps
- Fragmentation. Patients see providers on different systems, so one EHR may miss care received elsewhere.
- Missing data. Values are recorded when clinically needed, not on a study schedule, and missingness is rarely random.
- Coding variation. The same condition can be coded differently across sites, clinicians and years.
- Limited outcomes outside the system. Deaths, pharmacy fills and hospital stays elsewhere may not appear without linkage.
Linking EHR data to other sources closes many of these gaps. Our guide on how to link claims and EHR data covers that step in detail.
Comparing EHR data with other real-world sources
No single source answers every question. The table shows where EHR real world data fits beside the other common sources.
| Dimension | EHR data | Claims data | Disease registries |
|---|---|---|---|
| Clinical detail | High: labs, vitals, notes | Low: billed codes only | Medium: defined variables |
| Coverage of care | Within one health system | Across providers for an insured group | Patients enrolled in the registry |
| Data quality | Variable, needs curation | Consistent for billing fields | Usually high for core variables |
| Timeliness | Near real time | Lag for claims to settle | Depends on registry schedule |
| Best for | Severity, response, treatment patterns | Utilization, costs, long-term follow-up | Specific diseases and outcomes |
| Main risk | Missing and inconsistent data | Limited clinical context | Selection of who enrolls |
Preparing EHR data for research
Raw EHR extracts are rarely ready for analysis. Four steps turn them into research-grade data.
Standardize to a common data model
Mapping local codes and tables to the OMOP CDM (Observational Medical Outcomes Partnership Common Data Model) lets the same analysis run across hospitals and countries. HL7 FHIR (Fast Healthcare Interoperability Resources) is often used to extract data from the EHR in a consistent format before it is mapped.
Assess data quality
Check completeness, plausibility and consistency for each variable you plan to use. The OHDSI community publishes open tools for data quality checks on OMOP data, and results should be documented with each study.
Define cohorts and outcomes carefully
Phenotype definitions, the rules that decide who has a condition, should combine codes, labs and medications, and be validated against chart review where possible. Published, reusable phenotypes reduce the chance of each team defining the same disease differently.
Keep the data where it is
EHR data is highly sensitive and often subject to national rules on where it may be stored. Copying extracts to each research team multiplies risk. A Trusted Research Environment (TRE) lets approved researchers analyze the data inside the hospital’s or health system’s own environment, with results checked before release. In a federated model, the same analysis runs at several sites and only aggregate results come back, so data never leaves the source.
Governance and privacy for EHR research
Technical preparation is only half the work. EHR data describes identifiable people, and patients and clinicians need to trust how it is used. Most governance frameworks for health data research follow some version of the Five Safes model used by the UK Office for National Statistics: safe people, safe projects, safe settings, safe data and safe outputs.
In practice this means a few concrete controls. Researchers are trained and approved before they see any data. Each project has a stated purpose that an access committee reviews against the legal basis for use, whether that is consent, a research exemption or a public interest provision. Direct identifiers are removed or replaced with pseudonyms before analysis. The analysis runs in a controlled setting rather than on a laptop. Every result is checked for disclosure risk, such as small cell counts, before it is released.
These controls are easier to apply consistently when they are built into the platform rather than handled through paperwork. An environment that records who ran what analysis on which dataset, and that holds every output for review, gives the data custodian evidence it can show to ethics boards, regulators and the public. It also shortens approval times for future projects, because the custodian has already seen the controls work.
Example uses of EHR real world data
EHR data supports a wide range of studies. Common examples include describing treatment patterns for a disease, comparing outcomes between therapies in routine care, finding patients who may be eligible for a trial, building external control arms, and monitoring safety signals after launch. For more examples by data type, see our overview of real-world data examples.
Each use has different requirements. Feasibility counts need broad coverage but little detail. Comparative effectiveness needs careful confounder control and validated outcomes. Regulatory submissions need full traceability from source record to result, which is easier to show when analysis happens in a governed environment with an audit trail.
Practical next steps
- Start with the question. Write down the exposure, outcome and population, then check whether the EHR records them reliably.
- Profile the data. Measure completeness and coding patterns for every variable before committing to a design.
- Standardize early. Map to OMOP so methods and tools can be reused across sites.
- Plan linkage. Identify which outcomes need claims, registry or death data to be complete.
- Choose a governed setting. Run analysis in a TRE with output checks rather than moving extracts.
- Document everything. Record code lists, phenotype logic and quality checks so results can be reproduced and audited.
Frequently asked questions
What is EHR real world data?
It is clinical information recorded in electronic health records during routine care, such as diagnoses, medications, lab results and notes, used to study how patients are treated and how they fare outside clinical trials.
How is EHR data different from claims data?
EHR data holds clinical detail such as lab values and notes but usually covers one health system. Claims data covers care across providers for an insured group but holds only billed codes.
Can EHR data be used for regulatory decisions?
Regulators including the FDA have published frameworks for considering real-world evidence. Whether EHR data is fit for a given decision depends on data quality, study design and traceability.
What are the main limitations of EHR real world data?
The main limitations are fragmented care across systems, missing data, coding variation and incomplete outcomes. Linkage, standardization and careful study design reduce these problems.
Why map EHR data to OMOP?
OMOP gives every site the same tables and vocabularies, so one analysis can run across many datasets and results can be compared and reproduced.
How can EHR data be analyzed without moving it?
A federated Trusted Research Environment sends the analysis to each site, runs it next to the data and returns only checked, aggregate results, so data never leaves the source.
