PatientFlowSynth: Evaluating FHIR Agents with Matched Patient Charts was submitted to arXiv on 2026-11-23 by Anthony Cuturrufo, Ratul Ghosh, Devashish Khatwani, Krishnaram Kenthapadi. Read it on arXiv or as a PDF.
Key findings
- On 225 synthetic patients (3,600 matched pairs), adding explicit Encounter-status guidance increased strict success for GPT-5.6 Luna from 40.7% to 51.3% (+10.6 percentage points; 95% confidence interval, 8.4 to 12.8).
- In the same GPT-5.6 Luna study, among 900 cases where the primary reference label was insufficient_evidence, label agreement fell from 49.2% to 29.3% as visit retrieval rose from 661/900 to 900/900.
- In a prespecified two-model replication, strict success rose from 37.76% to 48.89% for GPT-5.6 Luna (+11.13 points) and from 35.87% to 80.40% for GPT-5.6 Terra (+44.53 points), while insufficient_evidence label agreement dropped by 13.02 to 30.21 points across repeats.
- Across 24 additional patients, Encounter-status guidance increased strict success by +13.15 points for GPT-5.6 Luna (35.16% to 48.31%) compared with +1.43 points for Qwen3.8-27B (8.85% to 10.29%), which already retrieved the visit in 99.48% of natural-wording episodes.
- In an external evaluation on 74 patients with visible search and citation requirements, adding full lifecycle mappings raised strict success from 62.67% to 97.13% for GPT-5.6 Luna and from 62.50% to 99.16% for GPT-5.6 Terra.
The main takeaway. In this FHIR benchmark, fixing tool retrieval through prompt guidance can expose classification errors that failed searches previously hid, and the size of the gain depends heavily on the specific model.
The abstract, as written
Agents that search patient charts must classify claims from retrieved records, including cases with missing or conflicting evidence. In Fast Healthcare Interoperability Resources (FHIR), status fields can change how those records should be interpreted. PatientFlowSynth provides 18,000 tasks from 225 synthetic patients and 18 templates that hold the patient, question, and retrieval program fixed across chart variants representing four evidence states. Re-executing the program verifies each variant’s reference answer, evidence sets, and search requirements. Strict success requires a completed response with correct labels and citations exactly matching an accepted evidence set retrieved during the episode. Where required, a tool response must also show a complete search at the specified scope. In a study using GPT-5.6 Luna and 225 synthetic patients (3,600 matched pairs), explicit Encounter-status guidance increased strict success from 40.7% to 51.3% (+10.6 percentage points; 95% patient-bootstrap confidence interval, 8.4 to 12.8). Among cases whose primary reference label was insufficient evidence, label agreement fell from 49.2% to 29.3%. A prespecified two-model replication reproduced both changes. Failed retrieval can mask interpretation errors by producing a correct insufficient-evidence label without examining the relevant records. Additional model comparisons showed that the benefit of guidance was model-dependent. Retrieval, citation, and classification should be evaluated separately.
Key terms
- Fast Healthcare Interoperability Resources (FHIR): A health data standard that stores clinical information as typed, linked records with specific lifecycle status fields.
- Matched family: A group of four synthetic chart variants that keep the same patient, question, and retrieval program while changing records to represent supported, refuted, insufficient, or conflicting evidence.
- Strict success: An evaluation score that requires a completed response with exact answer labels, citations matching an accepted evidence set, and complete searches at the required scope.
- Witness: A declared set of record IDs that reproduces the benchmark’s reference answer when the retrieval program is rerun on those records.
- Complete-search certificate: A check verifying that an agent’s single observed tool response contains all matching records and reproduces the reference search scope.
From the paper
The paper describes why retrieving a clinical record does not guarantee reading its lifecycle state correctly.
Correct retrieval does not guarantee correct interpretation: a MedicationRequest describes a request, such as an order, and does not establish administration; an Observation marked entered-in-error is not a negative result; and FHIR R4 encodes a completed Encounter as status=finished ; completed is not a valid Encounter status
The authors summarize why separate metrics and family-level checks are needed when evaluating retrieval agents.
Family-level checks caught errors missed by per-task replay. Failed retrieval can mask interpretation errors: guidance repairs the visit lookup, not necessarily classification. Effects vary by model, rule family, and note content. Full mappings improve rule adherence, whereas incomplete notes can encourage unsupported labels.
What the authors say it means
- Evaluating agents with family-level matched chart variants catches classification errors that per-task replay misses.
- Failed retrieval can mask interpretation errors because guidance may fix the initial record lookup without fixing how the model classifies the retrieved records.
- The effect of prompt guidance varies across models, rule families, and note content, and incomplete notes can encourage unsupported positive labels.
- Benchmarks for chart-search agents should report retrieval completeness, citation accuracy, and claim classification separately across each evidence state.
What to do with it
- Score retrieval completeness, citation matching, and claim classification as separate metrics when evaluating chart-search agents. Supported by: In the 900 insufficient-evidence cases for GPT-5.6 Luna, evidence sufficiency rose from 71.44% to 97.00% while label agreement fell from 49.22% to 29.33%.
- Test retrieval agents across matched chart variants covering supported, refuted, insufficient, and conflicting evidence states. Supported by: Across 3,600 matched pairs on 225 synthetic patients, Encounter-status guidance raised overall strict success for GPT-5.6 Luna from 40.7% to 51.3% while lowering insufficient-evidence agreement from 49.2% to 29.3%.
- Provide complete lifecycle status mappings rather than partial notes when testing rule adherence in FHIR workflows. Supported by: In the 74-patient external evaluation with visible requirements, full lifecycle mappings increased strict success from 62.67% to 97.13% for GPT-5.6 Luna and from 62.50% to 99.16% for GPT-5.6 Terra, whereas incomplete Observation notes harmed performance in the four-note comparison.
- Measure prompt guidance changes separately on each target model rather than assuming uniform improvements across model families. Supported by: In the 24-patient comparison, Encounter-status guidance changed strict success by +13.15 points for GPT-5.6 Luna (35.16% to 48.31%) and by +1.43 points for Qwen3.8-27B (8.85% to 10.29%).
Caveat. The 18,000 tasks come from 225 synthetic Synthea patients, 18 structured templates, and three lifecycle rules rather than independent clinical cases, and the external evaluation used one MIMIC-to-FHIR pipeline on 74 patients. Exploratory comparisons on Claude Opus 4.8 and Gemini 3.1 Pro Preview covered smaller subsets, and the authors state that these read-only results do not establish clinical safety or deployment readiness.
In short
PatientFlowSynth evaluates FHIR chart-search agents across 18,000 tasks built from 225 synthetic patients and four matched evidence states. Adding explicit Encounter-status guidance raised strict success for GPT-5.6 Luna from 40.7% to 51.3% by fixing visit retrieval, yet lowered insufficient-evidence label agreement from 49.2% to 29.3% because newly retrieved visits were often misclassified. Across additional models and note conditions, guidance effects depended on the model and completeness of the lifecycle rules.
Written from the paper's own text. Quoted passages are verbatim and the numbers are the authors' own. For the method and full results, read the paper.