14 September 2026 · EHR × LLM Extraction × RWD

When free-text EHR data becomes analysis data, what must an SP preserve?

A 30-minute pack on extracting computable variables from clinical notes, physician adjudication, temporal anchoring, knowledge graphs, FHIR-to-CDISC translation, and provenance that survives into analysis.

DifficultyC1
Time30 minutes
Main sourceNature Medicine
Outputderivation chain

Why this reading

An LLM-extracted clinical fact is not raw data. It is a derivation.

The new Nature Medicine paper turns unstructured EHR narratives into computable clinical entities, validates them with physician adjudication, integrates them with structured records and medical ontologies, and supports longitudinal analysis through a knowledge graph.

For SP work, the important question is what happens to source evidence, timing, terminology and provenance when an extracted concept eventually becomes a research variable or analysis result.

Reading order

Your 30-minute plan.

0-3 minPreview

Find the path from text to structured entity to knowledge graph.

3-14 minNature Medicine

Read adjudication, ontology integration, longitudinal trajectories and note-only outcomes.

14-20 minCDISC RWD

Compare event-based EHR data with protocol-based research data and FHIR-to-CDISC mapping.

20-25 minFDA

Read the regulatory quality lens for EHR and claims data used as RWD.

25-30 minOutput

Build a traceable derivation from one free-text sentence to an analysis-ready variable.

Open-access sources

Fresh EHR-AI research plus standards and regulatory context.

Brief background

Free text becomes useful only after several defensible transformations.

Clinical notes contain symptoms, adverse effects, treatment rationale and adherence information that may never appear in structured diagnosis or procedure fields.

The paper uses large pretrained language models to extract clinical entities and validates the extraction against blinded physician reference assessments. The structured concepts are combined with conventional EHR fields, embedded in medical ontologies and represented in a knowledge graph.

The demonstration reconstructs GLP-1 receptor agonist treatment journeys, models changes in weight and HbA1c, and analyzes outcomes that exist only in narrative notes.

CDISC highlights a structural mismatch that matters downstream: healthcare data are event-based, while clinical-research data are usually protocol-based. FHIR-to-CDISC mapping helps, but missingness, irregular collection, heterogeneous dictionaries and visit alignment remain difficult.

The SP implication is simple: source text → extraction → terminology → timing → research representation → analysis should remain traceable as one evidence chain.

Key vocabulary

Fifteen terms for EHR-to-analysis workflows.

Term中文Meaning / use
unstructured clinical text非结构化临床文本Narrative EHR content such as notes, symptom descriptions, treatment rationales, and adherence discussions.
computable clinical data可计算临床数据Clinical information transformed into structured representations that software can query, aggregate, and analyze.
physician adjudication医生裁定Expert clinical review used to determine whether an extracted concept or label is correct.
blinded reference standard盲态参考标准A gold-standard assessment created without access to the system's prediction.
inter-reviewer agreement审阅者间一致性The degree to which independent reviewers reach the same judgment.
medical ontology医学本体A structured vocabulary and relationship system that gives clinical concepts standardized meaning.
knowledge graph知识图谱A graph that represents entities and their relationships so complex clinical connections can be queried.
phenotype extraction表型提取Identifying clinically meaningful characteristics or conditions from raw records.
longitudinal trajectory纵向轨迹The sequence and evolution of a patient's measurements, treatments, symptoms, or outcomes over time.
temporal anchoring时间锚定Assigning an event or measurement to the correct clinical time point relative to treatment or another reference event.
time-to-event outcome事件时间结局An outcome analyzed as the time from a defined origin to an event, censoring, or competing event.
data heterogeneity数据异质性Variation in collection practices, coding systems, completeness, and structure across sources or sites.
semantic mapping语义映射Linking concepts from one data model or terminology to another while preserving meaning.
source provenance来源谱系Information showing exactly where an extracted or derived value came from.
analysis-ready representation分析就绪表示A structured form of data with enough standardization, provenance, timing, and quality control to support analysis.

Useful phrases

Language for RWD derivation and provenance discussions.

  1. turn narrative evidence into computable variables - The system turns narrative evidence into computable variables.
  2. preserve the source sentence behind every extracted concept - A defensible pipeline should preserve the source sentence behind every extracted concept.
  3. temporal alignment is part of the derivation - Temporal alignment is part of the derivation, not a cosmetic formatting step.
  4. structured and unstructured data should be reconciled rather than treated as separate worlds - Structured and unstructured data should be reconciled rather than treated as separate worlds.
  5. a clinically plausible extraction still requires validation - A clinically plausible extraction still requires validation.
  6. the ontology provides shared meaning across heterogeneous records - The ontology provides shared meaning across heterogeneous records.
  7. the knowledge graph enables patient-level and population-level queries - The knowledge graph enables patient-level and population-level queries.
  8. research data are protocol-based while EHR data are event-based - Research data are protocol-based while EHR data are event-based.
  9. missingness in routine care has a different mechanism from planned trial missingness - Missingness in routine care has a different mechanism from planned trial missingness.
  10. an analysis-ready variable should carry its provenance forward - An analysis-ready variable should carry its provenance forward into downstream analysis.

Comprehension

Five questions.

  1. Why can clinical notes contain important information that structured EHR fields miss?
  2. Why is physician adjudication important for LLM-created clinical variables?
  3. What do ontologies and knowledge graphs add after entity extraction?
  4. Why is temporal anchoring difficult when EHR events become research variables?
  5. What provenance should survive if a note-derived concept reaches ADaM or a TFL?

Retelling

Say it three times.

  • 30 seconds · Clinical note → extracted concept → structured representation → longitudinal analysis.
  • 45 seconds · Event-based healthcare data versus protocol-based research data.
  • 60 seconds · Why an AI-extracted EHR variable is a derivation rather than raw source data.

5-minute output task

Turn one clinical sentence into a defensible analysis variable.

  1. Minute 1: Choose a free-text statement.
  2. Minutes 2-3: Define extracted entities, timing, terminology, target structure and analysis use.
  3. Minute 4: Separate deterministic QC from clinical judgment.
  4. Minute 5: Explain what provenance must survive into ADaM/TFL review.

One sentence to keep

When an LLM converts clinical narrative into analysis data, the extraction itself becomes a derivation, so source evidence, timing, terminology, validation, and provenance must travel with the value downstream.