arXiv:2609.07601cs.CLSep 2026

Manuscript Offprint

arXiv:2609.07601

ObGynLongBench: Revealing the Evidence-to-EHR Gap in Longitudinal EHR Decision-Making

Jun Xiang, Zhijie Bao, Rong Hu, Kaizhou Qin, Wei Chen, Zhongyu Wei

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The application of large language models (LLMs) to personalized medical assistants has garnered growing interest. However, existing medical benchmarks largely rely on static question answering with pre-selected evidence, leaving unclear whether LLMs can make reliable clinical decisions from real longitudinal electronic health records (EHRs). To bridge this gap, we introduce ObGynLongBench, a rule-grounded long-context EHR benchmark for obstetric and gynecologic decision-making, comprising 1,500 clinical decision-point cases from 976 real pregnancy EHR histories and traceable rules. Each case is anchored to a patient, a pregnancy-timeline point, and a pre-decision information boundary, enabling Evidence-only, Visit-level EHR, and History-level EHR evaluation. Evaluating 17 LLMs reveals a substantial Evidence-to-EHR Gap: models perform well when evidence is directly provided, but accuracy drops when evidence must be extracted from same-day records or full pre-decision EHR histories. Further analyses identify evidence utilization as a key bottleneck: performance decreases with longer EHR contexts and more complex evidence requirements, and earlier failures often predict later failures within the same patient history. Finally, active-search agents perform best among EHR access strategies, highlighting patient-specific evidence utilization as a central challenge for reliable personalized medical assistants. Resources are available at https://github.com/xiangjun2003/ObgynLongbench.

1 Introduction

Large language models (LLMs) have achieved strong performance on medical examinations and

Figure

Figure 1: Static QA vs. Longitudinal EHR QA. Static QA uses human-provided decision-relevant evidence, while longitudinal EHR QA requires LLMs to extract patient-specific evidence from the pre-decision EHR history during inference.

static clinical question answering benchmarks such as MedQA, MedMCQA, PubMedQA, and MultiMedQA (Jin et al., 2021; Pal et al., 2022; Jin et al., 2019; Singhal et al., 2023). However, real-world personalized medical assistants must go beyond static QA and reason directly over raw patient EHRs. Obstetrics and gynecology provides a representative setting: clinical decisions are often anchored to gestational age and require integrating longitudinal, multi-source evidence accumulated throughout prenatal care (American College of Obstetricians and Gynecologists, 2017; Peahl and Howell, 2021).

Existing LLM evaluations in obstetrics and gynecology mainly rely on specialty examinations, board-style questions, or patient-facing question answering (Bachmann et al., 2024; Lugowski et al., 2025; Srikanth et al., 2024). As summarized in Table 1, these settings largely follow a static QA paradigm analogous to our Evidence-only scope, where relevant clinical facts are provided directly in the question, primarily assessing models' medi-

¹These authors contributed equally to this work. †Corresponding authors.

WorkSizeData SourceTask FormatInputGuideline
Obstetrics, gynecology, and maternal-infant QA benchmarks
Exploring ChatGPT in MRCOG (Bachmann et al., 2024)1,824ExamMCQEvidence✗
Comparative Ob/Gyn Board-style QA (Ługowski et al., 2025)352ExamMCQEvidence✗
Pregnant Questions(Srikanth et al., 2024)500Patient QAOpenEvidence✗
EHR benchmarks
MedAlign(Fleming et al., 2024)983HospitalOpenHistory✗
MIMIC-Instr(Wu et al., 2024)400K+HospitalMixedHistory✗
TIMER(Cui et al., 2025)402 / 248HospitalMixedHistory✗
ObGynLongBench (ours)1,500HospitalMCQHistory✓

Table 1: Comparison between existing obstetrics and gynecology QA benchmarks, general EHR benchmarks, and ObGynLongBench. In the “Input” column, Evidence denotes the Evidence-only setting, where evidence is provided directly in the question; History denotes the History-level EHR setting, where LLMs reason over longitudinal EHR records. “Guideline” indicates grounding in traceable clinical rules from guidelines or textbooks.

cal knowledge and clinical reasoning ability. More broadly, general EHR benchmarks have shown that strong performance on static QA does not readily translate to robust performance on EHR-based clinical tasks (Fleming et al., 2024; Cui et al., 2025).

As illustrated in Figure 1, static QA typically presents evidence in an Evidence-only manner directly in the question, thereby primarily assessing models' medical knowledge. In real-world obstetric care, however, the relevant evidence is no longer pre-provided in the question, but scattered across the History-level EHR. Before making a decision, the model must first infer what information is needed for the current clinical problem, retrieve the corresponding evidence from heterogeneous records, time-anchor each piece of evidence along the gestational timeline, and integrate findings across visits, examinations, and clinical notes.

To study this problem, we propose ObGynLongBench, a rule-grounded long-context EHR benchmark for obstetric decision-making along the pregnancy timeline. The benchmark is built from real longitudinal EHRs of 976 pregnant patients, covering the process from early pregnancy registration to pre-delivery assessment. Based on textbooks and clinical guidelines, we extract 1,500 traceable clinical decision points across 16 obstetric clinical domains and instantiate them on patient-specific gestational histories. Each question is anchored to a concrete decision point and associated with a clinical rule and a gold-standard answer. ObGynLongBench therefore evaluates whether LLMs can locate, time-anchor, and integrate evidence from real longitudinal pregnancy EHRs before making clinical decisions.

ObGynLongBench evaluates LLMs along two controlled axes: evidence complexity and input scope. For evidence complexity, clinical rules are assigned to three levels: L1 single-evidence recognition, L2 multi-source integration, and L3 long-horizon reasoning over temporally distributed evidence. The level of a case is determined by the clinical rule used to construct it. For input scope, each case is tested under three within-case settings: Evidence-only (Evidence), Visit-level EHR (Visit), and History-level EHR (History). Here, Evidence provides pre-localized key evidence, Visit provides same-day records, and History provides the full pre-decision EHR history, enabling us to measure the Evidence-to-EHR Gap and the sufficiency of visit-level information.

Experimental results reveal a clear Evidence-to-EHR Gap: LLMs perform well under Evidence-only, but accuracy drops substantially when they answer from Visit-level EHR or History-level EHR.

We highlight three main findings. First, the gap is largely driven by evidence utilization: LLM accuracy decreases as EHR contexts become longer and evidence requirements become more complex. Second, errors show patient-level associations: LLMs that fail at an earlier decision point are more likely to fail again at a later decision point from the same patient history. Third, among different EHR access strategies, a medically motivated active-search agent performs best by first identifying the current clinical decision target and then actively gathering relevant patient-specific evidence before answering.

Figure

Figure 2: Construction pipeline of ObGynLongBench. Stage 1 derives traceable clinical decision rules from obstetrics and gynecology textbooks and guidelines, structures them into executable rules, and matches them to longitudinal EHR histories through programmatic screening and agent-based review. Stage 2 constructs rule-grounded clinical questions, verifies patient-specific evidence, enforces the pre-decision cutoff, and generates the final benchmark cases.