Related Experiment Video
Updated: Jan 28, 2026

TBase - an Integrated Electronic Health Record and Research Database for Kidney Transplant Recipients
Published on: April 13, 2021
MedAlign: A Clinician-Generated Dataset for Instruction Following with Electronic Medical Records
Scott L Fleming1,2, Alejandro Lozano1, William J Haberkorn3,4
1Department of Biomedical Data Science, Stanford School of Medicine, Stanford, CA, USA.
Abstract:
The ability of large language models (LLMs) to follow natural language instructions with human-level fluency suggests many opportunities in healthcare to reduce administrative burden and improve quality of care. However, evaluating LLMs on realistic text generation tasks for healthcare remains challenging. Existing question answering datasets for electronic health record (EHR) data fail to capture the complexity of information needs and documentation burdens experienced by clinicians. To address these challenges, we introduce MedAlign, a benchmark dataset of 983 natural language instructions for EHR data. MedAlign is curated by 15 clinicians (7 specialities), includes clinician-written reference responses for 303 instructions, and provides 276 longitudinal EHRs for grounding instruction-response pairs. We used MedAlign to evaluate 6 general domain LLMs, having clinicians rank the accuracy and quality of each LLM response. We found high error rates, ranging from 35% (GPT-4) to 68% (MPT-7B-Instruct), and 8.3% drop in accuracy moving from 32k to 2k context lengths for GPT-4. Finally, we report correlations between clinician rankings and automated natural language generation metrics as a way to rank LLMs without human review. MedAlign is provided under a research data use agreement to enable LLM evaluations on tasks aligned with clinician needs and preferences.
Related Concept Videos
Electron Transport Chains
The ETC is comprised of...
Electron Carriers
Over the many stages of cellular respiration, glucose breaks down into carbon dioxide and water. Electron carriers pick up electrons lost by glucose in these reactions, temporarily storing and releasing them into the electron...
Electron Affinity
Inhaled Medications
Electron Behavior
Electrons are negatively charged subatomic particles that are attracted to an orbit around the positively-charged nucleus of an atom. They reside in locations that are associated with energy levels called shells and are further organized into sub-shells and orbitals within each shell.
Electrons Orbit the Nucleus
Electrons are found in specific locations outside of the nucleus. The shell in which an electron resides indicates the general energy level of the electron: those closer to the...
Electron Orbital Model
The first shell is closest to the nucleus, and it has only one subshell with a single spherical orbital called the...

