基于纵向结构化EHR的有来源依据的合成笔记生成多智能体管道

arXiv cs.CL 论文

摘要

本文提出了MedNotes,一个多智能体管道,用于从纵向结构化EHR数据中生成有来源依据的合成临床笔记,实现了高准确性并改善了下游临床建模任务。

arXiv:2609.22164v1 Announce Type: new Abstract: Structured EHR is abundant but sparse, coded, and difficult to use directly for note-centric clinical modeling. We present MedNotes, a multi-agent synthetic data generation pipeline that converts longitudinal structured EHR into source-grounded clinical note representations under explicit quality control. MedNotes treats structured-data-to-text synthesis as a closed-loop agentic process: a generator proposes a note, evaluator agents diagnose factual, coverage, structural, and hallucination-related failures, and a router accepts, revises, or rejects the draft. On 1,485 EHRSHOT encounters, MedNotes achieves a 91.4% pass rate, with mean factual accuracy of 0.980, completeness of 99.1%, structural fidelity of 0.761, and 0.028 critical hallucinations per encounter. Iterative refinement improves acceptance from 69.4% to 91.4%. The resulting synthetic corpus improves downstream CPT prediction and paragraph-level section prediction when combined with limited real data.
查看原文
查看缓存全文

缓存时间: 2026/09/22 09:05

# A Multi-Agent Pipeline for Source-Grounded Synthetic Note Generation from Longitudinal Structured EHR
Source: [https://arxiv.org/html/2609.22164](https://arxiv.org/html/2609.22164)
Reihaneh HassanzadehAffiliation:Optum AI, UnitedHealth Group, Minneapolis, Minnesota, USAMeysam GhaffariAffiliation:Optum AI, UnitedHealth Group, Minneapolis, Minnesota, USAAnimesh AgrawalAffiliation:Optum AI, UnitedHealth Group, Minneapolis, Minnesota, USACarlos MoratoAffiliation:Optum AI, UnitedHealth Group, Minneapolis, Minnesota, USACorrespondence to:[carlos\.morato@optum\.com](mailto:[email protected])

###### Abstract

Structured EHR is abundant but sparse, coded, and difficult to use directly for note\-centric clinical modeling\. We present MedNotes, a multi\-agent synthetic data generation pipeline that converts longitudinal structured EHR into source\-grounded clinical note representations under explicit quality control\. MedNotes treats structured\-data\-to\-text synthesis as a closed\-loop agentic process: a generator proposes a note, evaluator agents identify factual, coverage, structural, and hallucination\-related failures, and an automatic routing component accepts, revises, or rejects the draft\. On 1,485 EHRSHOT encounters, MedNotes achieves a 91\.4% pass rate, with mean factual accuracy of 0\.980, completeness of 99\.1%, structural fidelity of 0\.761, and 0\.028 critical hallucinations per encounter\. Iterative refinement improves acceptance from 69\.4% to 91\.4%\. The resulting synthetic corpus improves downstream CPT prediction and paragraph\-level section prediction when combined with limited real data\.

###### Keywords:

Machine Learning, ICML

## 1Introduction

Structured EHR is abundant but difficult to use directly for many downstream clinical language\-modeling tasks because it is sparse, coded, longitudinal, and often lacks shareable free\-text notes\. At the same time, authentic clinical notes are valuable for model development but difficult to release at scale because of privacy, governance, and annotation constraints\. This has motivated growing interest in synthetic clinical text and source\-grounded data generation, especially when synthetic artifacts preserve task\-relevant structure while remaining traceable to the underlying data\([Nadas et al\., 2025](https://arxiv.org/html/2609.22164#bib.bib9);[Lupidi et al\., 2024](https://arxiv.org/html/2609.22164#bib.bib4);[Amad et al\., 2025](https://arxiv.org/html/2609.22164#bib.bib5)\)\. Recent work on tabular generation and structured\-data serialization suggests that language\-model\-style representations can serve as useful interfaces for structured records\([Borisov et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib10);[Hegselmann et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib14);[Solatorio and Dupriez, 2023](https://arxiv.org/html/2609.22164#bib.bib11);[Hollmann et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib15)\)\. Most clinical note generation work assumes richer source modalities, such as encounter dialogue, audio, or paired clinician\-authored notes, as in MEDIQA\-Chat and ACI\-Bench\([Abacha et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib1);[Yim et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib2)\)\. In many realistic settings, however, the available data are longitudinal structured EHR: diagnoses, medications, procedures, laboratory results, vital signs, and coded observations\. EHRSHOT is a representative example of this structured\-only setting\([Wornow et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib3)\)\. This creates a modality gap: many downstream note\-centric models expect text, while the most accessible clinical data source is often coded EHR\.

We study this setting as a quality\-gated synthetic data generation problem\. The goal is not to reproduce clinician\-authored documentation, but to construct source\-grounded clinical note representations that can support downstream adaptation, benchmarking, and structured\-data learning\. We instantiate the target format as SOAP because its sectioned anatomy provides a useful interface for controlled generation: it separates evidence\-bearing content from interpretation and planning, supports section\-aware feedback, and enables structural consistency checks\.

We introduce MedNotes, a multi\-agent pipeline for converting longitudinal structured EHR into source\-grounded synthetic clinical notes\. MedNotes treats structured\-data\-to\-text synthesis as a closed\-loop agentic process: a generator proposes a note, evaluator agents identify factual, coverage, structural, and hallucination\-related failures, an aggregator constructs repair signals and preservation anchors, and a router accepts, revises, or rejects the draft under explicit quality constraints\. This adapts iterative feedback and textual\-gradient ideas\([Madaan et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib6);[Shinn et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib7);[Pryzant et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib8)\)to quality\-gated synthetic corpus construction from structured clinical data\.

## 2Methods and Cohort

We present MedNotes, a controlled synthetic data generation pipeline that transforms longitudinal structured EHR into source\-grounded clinical note representations under explicit quality gating\. We instantiate the target representation as SOAP because its sectioned structure supports modular prompting, feedback assignment, and structural evaluation, but the method is intended more broadly as quality\-gated structured\-data\-to\-text synthesis\.

### 2\.1Task Formulation

Leteie\_\{i\}denote the current encounter for patientppat indexii, and letHi\(k\)H\_\{i\}^\{\(k\)\}denote up tok=2k=2prior encounters used as longitudinal context\. The generator input is

xi=\(ei,Hi\(k\)\),x\_\{i\}=\\left\(e\_\{i\},H\_\{i\}^\{\(k\)\}\\right\),\(1\)where encounters contain structured clinical information such as diagnoses, medications, procedures, laboratories, and vital signs after code resolution into human\-readable text\. Givenxix\_\{i\}, the system generates a synthetic sectioned clinical notenin\_\{i\}\.

Accepted outputs form a synthetic corpus

𝒟syn=\{\(xi,ni\):PASS⁡\(ni,xi\)=1\},\\mathcal\{D\}\_\{\\mathrm\{syn\}\}=\\\{\(x\_\{i\},n\_\{i\}\):\\mathrm\{PASS\}\(n\_\{i\},x\_\{i\}\)=1\\\},\(2\)intended for downstream adaptation, benchmarking, and representation learning when authentic notes or paired supervision are unavailable\. Because structured EHR rarely contains recoverable patient\-reported narrative, the Subjective section is treated conservatively: the model may summarize supported contextual information but must abstain from inventing unsupported patient\-reported details\.

For each candidate note, MedNotes evaluates four quality dimensions:

fi\\displaystyle f\_\{i\}=Fact⁡\(ni,xi\)∈\[0,1\],\\displaystyle=\\mathrm\{Fact\}\(n\_\{i\},x\_\{i\}\)\\in\[0,1\],\(3\)ci\\displaystyle c\_\{i\}=Comp⁡\(ni,xi\)∈\[0,100\],\\displaystyle=\\mathrm\{Comp\}\(n\_\{i\},x\_\{i\}\)\\in\[0,100\],si\\displaystyle s\_\{i\}=SFS⁡\(ni,xi\)∈\[0,1\],\\displaystyle=\\mathrm\{SFS\}\(n\_\{i\},x\_\{i\}\)\\in\[0,1\],hicrit\\displaystyle h\_\{i\}^\{\\mathrm\{crit\}\}=CritHall⁡\(ni,xi\)∈ℕ0,\\displaystyle=\\mathrm\{CritHall\}\(n\_\{i\},x\_\{i\}\)\\in\\mathbb\{N\}\_\{0\},wherefif\_\{i\}is factual accuracy,cic\_\{i\}is entity completeness,sis\_\{i\}is structural fidelity Score \(SFS\) under the target note format, andhicrith\_\{i\}^\{\\mathrm\{crit\}\}is the number of critical hallucinations\. A note is accepted only if

PASS\(ni,xi\)=𝕀\[\\displaystyle\\mathrm\{PASS\}\(n\_\{i\},x\_\{i\}\)=\\mathbb\{I\}\\big\[fi≥0\.95∧ci≥90\\displaystyle f\_\{i\}\\geq 0\.95\\;\\wedge\\;c\_\{i\}\\geq 90\(4\)∧si≥0\.67∧hicrit=0\]\.\\displaystyle\\wedge\\;s\_\{i\}\\geq 0\.67\\;\\wedge\\;h\_\{i\}^\{\\mathrm\{crit\}\}=0\\big\]\.Generation is iterative\. Letni\(0\)n\_\{i\}^\{\(0\)\}be the initial draft\. After roundrr, evaluator agents produce section\-specific corrective feedbackΓi\(r\)\\Gamma\_\{i\}^\{\(r\)\}and positive anchorsAi\(r\)A\_\{i\}^\{\(r\)\}for already\-correct content:

ni\(0\)\\displaystyle n\_\{i\}^\{\(0\)\}=G⁡\(xi\),\\displaystyle=G\(x\_\{i\}\),\(5\)ni\(r\+1\)\\displaystyle n\_\{i\}^\{\(r\+1\)\}=G⁡\(xi,ni\(r\),Γi\(r\),Ai\(r\)\)\.\\displaystyle=G\\\!\\left\(x\_\{i\},n\_\{i\}^\{\(r\)\},\\Gamma\_\{i\}^\{\(r\)\},A\_\{i\}^\{\(r\)\}\\right\)\.The pipeline runs for at mostRmax=3R\_\{\\max\}=3rounds\. If no draft satisfies the acceptance criterion, the system abstains and returns no note\.

### 2\.2Dataset and Cohort

We evaluate on 100 patients from EHRSHOT, a de\-identified longitudinal EHR benchmark spanning 2009–2022\([Wornow et al\., 2023](https://arxiv.org/html/2609.22164#bib.bib3)\)\. Patients were selected by balanced stratified sampling across diabetes, hypertension, obesity, and a general cohort\. The final evaluation set contains 1,485 encounters, with 10–20 encounters per patient\. Each encounter includes structured codes from multiple vocabularies, including ICD\-10\-CM, RxNorm, CPT, LOINC, and SNOMED\. All codes are resolved to human\-readable descriptions before generation to reduce ambiguity and code\-interpretation errors\.

### 2\.3MedNotes Pipeline

![Refer to caption](https://arxiv.org/html/2609.22164v1/agentic_soap.png)Figure 1:MedNotes pipeline architecture\. Each encounter passes through generation, evaluation, aggregation, and decision stages\. Factual verification, entity completeness, and structural fidelity are computed in parallel, followed by hallucination categorization\. Evaluator outputs are converted into section\-specific repair signals and positive anchors for the next round\.MedNotes treats structured\-EHR\-to\-text synthesis as a closed\-loop agentic control problem rather than a one\-shot prompting task\. The generator proposes an initial note from the current encounter and limited longitudinal context\. Evaluator agents then decompose note quality into complementary dimensions: factual support against the source EHR, recall\-style coverage of structured entities, structural consistency across note sections, and severity of unsupported claims\. The aggregator compiles evaluator outputs into section\-specific repair signals and positive anchors, and the automatic routing component either accepts the note, sends it back for revision, or rejects the encounter after the round budget is exhausted\.

The generator is GPT\-4\.1 \(Azure OpenAI; temperature 0\.25\) with a conservative rule\-based system prompt\. In the first round, it generates a note from the current encounter and up to two prior encounters\. In later rounds, it is re\-invoked with the previous note, section\-grouped feedback, and positive anchors\. The prompt emphasizes resolved clinical descriptions rather than raw codes, comprehensive use of current\-encounter evidence, qualified historical references, conservative handling of missing patient\-reported content, and abstention from unsupported inference\.

The evaluation layer uses specialized agents to measure source\-grounded quality\. A factual consistency evaluator compares note claims against structured EHR data\.; a completeness evaluator measures coverage of clinically significant entities; a structural fidelity evaluator scores cross\-section consistency; and a hallucination categorizer identifies and categorizes unsupported claims by type and severity\. These outputs are merged into targeted feedback for the next generation round\. A note is retained in𝒟syn\\mathcal\{D\}\_\{\\mathrm\{syn\}\}only when all thresholds are satisfied jointly; otherwise, the system revises the note or abstains after three rounds\.

## 3Experiments and Results

We evaluate three questions\. First, can MedNotes construct source\-grounded synthetic notes from structured longitudinal EHR under explicit quality gating? Second, how much does iterative evaluator\-guided refinement improve acceptance? Third, do the accepted synthetic notes carry useful signal for downstream note\-centric prediction tasks? The primary quality metric is encounter\-level acceptance under Eq\.[4](https://arxiv.org/html/2609.22164#S2.E4); we also report final\-round factual accuracy, entity completeness, structural fidelity, critical hallucinations, and total categorized error burden\. Supporting development studies, including prompt optimization, lookback\-window sensitivity, relevance\-based history selection, the full error\-recovery breakdown, and further downstream task details, are provided in the appendix\.

### 3\.1Quality\-Gated Synthesis on EHRSHOT

Table[1](https://arxiv.org/html/2609.22164#S3.T1)summarizes aggregate system performance\. MedNotes achieves a 91\.4% encounter\-level pass rate, with 1,357 accepted encounters and 128 discarded encounters\. No API failures occurred during evaluation\. Across final outputs, the system achieves a mean factual accuracy of 0\.980, mean completeness of 99\.1%, mean structural fidelity of 0\.761, and 0\.028 critical hallucinations per encounter\. These results indicate that the multi\-agent control loop can satisfy strict source\-grounded quality criteria for most encounters while preserving an explicit abstention mechanism for cases that remain too sparse or ambiguous\. In a runtime benchmark over the same 1,485 encounters, MedNotes processed encounters in 76\.8 seconds on average at an estimated API cost of $0\.0958 per encounter \(Appendix[A](https://arxiv.org/html/2609.22164#A1)\); this reflects the deployed API configuration for this run, and model versions and pricing may differ across configurations\.

Table 1:Overall results on the 100\-patient evaluation cohort\.
### 3\.2Reflection and Error Recovery

To isolate the contribution of iterative reflection, we analyzed the round at which each encounter first satisfied the joint acceptance criterion\. As shown in Table[2](https://arxiv.org/html/2609.22164#S3.T2), 1,031 encounters passed in Round 1, corresponding to 69\.4% of all encounters and 76\.0% of accepted encounters\. Round 2 added 266 accepted encounters and Round 3 added 60 more, yielding a final pass rate of 91\.4%\.

Without reflection, MedNotes would achieve only a 69\.4% pass rate\. The iterative repair loop therefore contributes a net gain of 22\.0 percentage points\. Among the 454 encounters that failed in Round 1, reflection recovered 326, corresponding to a 71\.8% recovery rate\. A finer\-grained analysis showed that isolated hallucination and factuality failures were more recoverable than persistent structural or completeness failures\. Full recovery breakdowns are in Appendix[C](https://arxiv.org/html/2609.22164#A3)\.

Table 2:Pass rate by reflection round\.
### 3\.3Preliminary Clinician Review

We obtained exploratory feedback from a practicing physician on a small subset of generated notes, focusing on source support, clinically important omissions, and overall usefulness\. This was intended as a qualitative expert assessment rather than a formal human\-evaluation study\.

Across reviewed cases, the physician feedback was consistent with the intended conservative operating point of MedNotes\. Accepted notes were readable and source\-grounded, but often reflected the sparsity of the underlying structured EHR: they summarized coded events and available context rather than adding unsupported narrative detail, exam findings, or clinical reasoning absent from the source\. This supports our framing of the current pass criterion as a source\-grounded quality gate for synthetic corpus construction, rather than a guarantee of clinician\-level documentation utility\.

### 3\.4Downstream Task Utility

We next tested whether the accepted synthetic corpus carries reusable note\-centric signal in downstream prediction tasks\. We evaluate two settings: CPT prediction from notes and paragraph\-level section prediction\.

#### 3\.4\.1CPT Prediction from Synthetic Notes

Given a clinical note, the model predicts the set of CPT codes associated with the encounter\. This is formulated as a multi\-label prediction problem\. We compare an untuned Llama\-3 8B baseline, fine\-tuning on 100 MIMIC note–CPT pairs, and a mixed\-data setting using synthetic notes plus 100 MIMIC examples\. Table[3](https://arxiv.org/html/2609.22164#S3.T3)reports performance on a held\-out MIMIC test set\([Johnson et al\., 2016](https://arxiv.org/html/2609.22164#bib.bib12)\)\. The mixed synthetic\+MIMIC setting achieved the best performance across all reported metrics, suggesting that synthetic notes provide useful task\-relevant supervision when combined with limited real data\.

Table 3:CPT prediction results on the held\-out MIMIC test set\.
#### 3\.4\.2Paragraph\-Level Section Prediction

We also evaluate paragraph\-level section prediction, where each paragraph is classified as Subjective, Objective, Assessment, or Plan\. Using MediSOAP as the evaluation benchmark\([MediSOAP Contributors, 2023](https://arxiv.org/html/2609.22164#bib.bib13)\), we compare training on 100 real notes against training on synthetic data combined with 100 real notes\. As shown in Table[3\.4\.2](https://arxiv.org/html/2609.22164#S3.SS4.SSS2), the combined model reaches 0\.972 accuracy and 0\.972 macro\-F1, achieving higher results on 100 real notes alone \(see Appendix[F](https://arxiv.org/html/2609.22164#A6)for section\-wise performance\)\. This indicates that the synthetic corpus provides useful complementary supervision for structural note understanding\.

Table 4\. Overall performance on the MediSOAP test set\.

## 4Discussion

MedNotes is a quality\-gated synthetic data generation framework for converting sparse, coded, longitudinal EHR into source\-grounded text representations\. Rather than introducing a new foundation model, its main contribution is a closed\-loop agentic controller for structured\-data\-to\-text synthesis: evaluator agents identify unsupported claims, missing entities, structural inconsistencies, and hallucination risks; the aggregator converts these signals into repair instructions and preservation anchors; and the automatic routing component accepts, revises, or discards drafts\. This makes synthetic corpus construction more controlled than one\-shot prompting when generated text may later be used for downstream model training\.

The results suggest that accepted synthetic notes can serve as useful intermediate representations when authentic notes are unavailable, especially when combined with limited real data\. At the same time, preliminary clinician review clarifies the operating point: source\-groundedness and structural consistency do not guarantee clinical richness, particularly when structured EHR lacks detailed subjective narrative, exam findings, or clinical reasoning\. Future work should improve salience\-aware history selection and synthesis while preserving the evidence constraints that make the corpus traceable\.

## 5Conclusion

We presented MedNotes, a multi\-agent pipeline for quality\-gated synthetic note generation from longitudinal structured EHR\. The system couples generation, evaluator\-guided refinement, and abstention to construct source\-grounded clinical text representations from sparse coded records\. On EHRSHOT, MedNotes achieves high acceptance under strict quality thresholds, and downstream experiments show that the resulting synthetic corpus provides useful signal for clinical code prediction and section prediction when paired with limited real data\. Taken together these findings may support quality\-gated synthetic notes as a practical bridge between structured EHR and note\-centric machine learning, while motivating future work on richer clinical salience and context selection\.

## References

- Abachaet al\.\(2023\)A\. B\. Abacha, W\. Yim, G\. Adams, N\. Snider, and M\. Yetisgen\-YildizOverview of the mediqa\-chat 2023 shared tasks on the summarization & generation of doctor\-patient conversations\.InProceedings of the 5th Clinical Natural Language Processing Workshop,pp\. 503–513\.Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Amadet al\.\(2025\)H\. Amad, Z\. Qian, D\. Frauen, J\. Piskorz, S\. Feuerriegel, and M\. van der SchaarImproving the generation and evaluation of synthetic data for downstream medical causal inference\.arXiv preprint arXiv:2510\.18768\.Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Borisovet al\.\(2023\)V\. Borisov, K\. Seßler, T\. Leemann, M\. Pawelczyk, and G\. KasneciLanguage models are realistic tabular data generators\.InThe Eleventh International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=cEygmQNOeI)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Hegselmannet al\.\(2023\)S\. Hegselmann, A\. Buendia, H\. Lang, M\. Agrawal, X\. Jiang, and D\. SontagTabLLM: few\-shot classification of tabular data with large language models\.InProceedings of The 26th International Conference on Artificial Intelligence and Statistics,Proceedings of Machine Learning Research, Vol\.206,pp\. 5549–5581\.External Links:[Link](https://proceedings.mlr.press/v206/hegselmann23a.html)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Hollmannet al\.\(2023\)N\. Hollmann, S\. Müller, K\. Eggensperger, and F\. HutterTabPFN: a transformer that solves small tabular classification problems in a second\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=cp5PvcI6w8_)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Johnsonet al\.\(2016\)A\. E\. W\. Johnson, T\. J\. Pollard, L\. Shen, L\. H\. Lehman, M\. Feng, M\. Ghassemi, B\. Moody, P\. Szolovits, L\. A\. Celi, and R\. G\. MarkMIMIC\-III, a freely accessible critical care database\.Scientific Data3,pp\. 160035\.External Links:[Document](https://dx.doi.org/10.1038/sdata.2016.35)Cited by:[§3\.4\.1](https://arxiv.org/html/2609.22164#S3.SS4.SSS1.p1.1)\.
- Lupidiet al\.\(2024\)A\. Lupidi, C\. Gemmell, N\. Cancedda, J\. Dwivedi\-Yu, J\. Weston, J\. Foerster, R\. Raileanu, and M\. LomeliSource2synth: synthetic data generation and curation grounded in real data sources\.arXiv preprint arXiv:2409\.08239\.Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Madaanet al\.\(2023\)A\. Madaan, N\. Tandon, P\. Gupta, S\. Hallinan, L\. Gao, S\. Wiegreffe, U\. Alon, N\. Dziri, S\. Prabhumoye, Y\. Yang, S\. Gupta, B\. P\. Majumder, K\. Hermann, S\. Welleck, A\. Yazdanbakhsh, and P\. ClarkSelf\-refine: iterative refinement with self\-feedback\.InAdvances in Neural Information Processing Systems,Vol\.36\.External Links:[Link](https://openreview.net/forum?id=S37hOerQLB)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p3.1)\.
- MediSOAP Contributors \(2023\)MediSOAP ContributorsMediSOAP: enhanced clinical note generation with fine\-tuned llama2\.Note:[https://github\.com/aman\-17/MediSOAP](https://github.com/aman-17/MediSOAP)Accessed 2026Cited by:[§3\.4\.2](https://arxiv.org/html/2609.22164#S3.SS4.SSS2.p1.1)\.
- Nadaset al\.\(2025\)M\. Nadas, L\. Diosan, and A\. TomescuSynthetic data generation using large language models: advances in text and code\.IEEE Access13,pp\. 134615–134633\.External Links:[Link](https://arxiv.org/abs/2503.14023)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Pryzantet al\.\(2023\)R\. Pryzant, D\. Iter, J\. Li, Y\. T\. Lee, C\. Zhu, and M\. ZengAutomatic prompt optimization with “gradient descent” and beam search\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,pp\. 7957–7968\.External Links:[Link](https://aclanthology.org/2023.emnlp-main.494/)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p3.1)\.
- Shinnet al\.\(2023\)N\. Shinn, F\. Cassano, E\. Berman, A\. Gopinath, K\. Narasimhan, and S\. YaoReflexion: language agents with verbal reinforcement learning\.InAdvances in Neural Information Processing Systems,Vol\.36\.External Links:[Link](https://openreview.net/forum?id=vAElhFcKW6)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p3.1)\.
- Solatorio and Dupriez \(2023\)A\. V\. Solatorio and O\. DupriezREaLTabFormer: generating realistic relational and tabular data using transformers\.arXiv preprint arXiv:2302\.02041\.External Links:[Link](https://arxiv.org/abs/2302.02041)Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.
- Wornowet al\.\(2023\)M\. Wornow, R\. Thapa, E\. Steinberg, J\. Fries, and N\. ShahEhrshot: an ehr benchmark for few\-shot evaluation of foundation models\.Advances in Neural Information Processing Systems36,pp\. 67125–67137\.Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1),[§2\.2](https://arxiv.org/html/2609.22164#S2.SS2.p1.1)\.
- Yimet al\.\(2023\)W\. Yim, Y\. Fu, A\. Ben Abacha, N\. Snider, T\. Lin, and M\. YetisgenAci\-bench: a novel ambient clinical intelligence dataset for benchmarking automatic visit note generation\.Scientific data10\(1\),pp\. 586\.Cited by:[§1](https://arxiv.org/html/2609.22164#S1.p1.1)\.

## Appendix ACost and Latency Analysis

We measured runtime and API cost over the 1,485\-encounter evaluation run\. Cost estimates use recorded token usage from the deployed API configuration and the model prices at the time of execution\. These costs exclude engineering, storage, orchestration overhead, and human review time\.

Table 5:System cost and latency analysis over 1,485 encounters\. Token counts are empirical estimates and may vary with encounter complexity\.
## Appendix BGenerator Prompt Rule Summary

The generator prompt enforces a conservative source\-grounded operating point\. The main rules are: \(1\) use resolved clinical descriptions rather than raw codes; \(2\) include all current\-encounter structured evidence; \(3\) follow strict section structure; \(4\) use prior encounters only as contextual support; \(5\) qualify all historical references; \(6\) do not infer absent findings; \(7\) treat Subjective content as a conservative proxy when patient\-reported narrative is unavailable; \(8\) handle medication continuity conservatively and never infer start dates; \(9\) keep Objective evidence\-bearing only; \(10\) restrict Assessment to current\-encounter\-grounded impressions; and \(11\) keep Plan grounded and non\-empty\. Together, these rules prioritize traceability and hallucination control over unconstrained narrative richness\.

## Appendix CError Analysis of Round\-1 Failures

Table[6](https://arxiv.org/html/2609.22164#A3.T6)reports the full recovery analysis for the 454 encounters that failed in Round 1\. Categories are mutually exclusive and defined from Round\-1 threshold violations only\. Recovery denotes eventual pass after up to two additional refinement rounds\.

Table 6:Error trajectory of Round\-1 failures\. Confidence intervals are patient\-clustered 95% bootstrap intervals\.
## Appendix DPrompt Optimization on the Development Cohort

We performed offline prompt optimization on a fixed 10\-patient development cohort containing 155 encounters\. Each cycle followed three phases: diagnose recurring failures, modify the base prompt, and validate on the same cohort\. Table[7](https://arxiv.org/html/2609.22164#A4.T7)summarizes the version progression\.

Table 7:Prompt version comparison on the 10\-patient development cohort\.
## Appendix EHistory\-Selection Sensitivity Studies

We conducted two supporting analyses for longitudinal context\. First, a pre\-agentic lookback\-window study variedk∈\{0,1,2,5\}k\\in\\\{0,1,2,5\\\}using the earlier single\-shot generator\. Completeness increased only modestly fromk=0k=0tok=5k=5, while available factuality runs suggested possible carry\-forward risk at longer windows; this motivated the default choice ofk=2k=2\. Second, a 30\-patient relevance\-based history pilot compared the default recent\-2 policy against selecting the two most similar prior encounters under a structured overlap heuristic\. The relevance\-based selector underperformed the recent\-2 baseline \(60% vs\. 87% pass rate\), so the final system retained the recent\-history policy\.

Table 8:Pilot comparison of recent\-history and relevance\-based history selection\.
## Appendix FDetailed Section Prediction Results

Table[9](https://arxiv.org/html/2609.22164#A6.T9)reports section\-wise precision, recall, and F1 for the paragraph\-level section prediction task\.

Table 9:Section\-wise performance on the MediSOAP test set\.langley00

相似文章

加速合成电子健康记录生成中的可重复研究

arXiv cs.LG

本文介绍了一个轻量级、端到端的基准测试框架,用于可重复的合成电子健康记录(EHR)生成,将多个基线模型(MedGAN、CorGAN、PromptEHR、HALO)和一个GPT-2基线统一到单个流水线中,并配备严格的隐私-效用评估套件。

长期历史感知的医疗对话合成与评估

arXiv cs.CL

本文介绍了一种利用大语言模型(LLMs)合成长期医疗对话数据集的框架,并创建了 MediLongChat,包含三个基准任务,用于评估医疗智能体的记忆与推理能力。实验表明,即使是最先进的 LLMs 也难以完成这些任务。

MiGHT-EHR:面向异质时序电子健康记录的多任务图变换器

arXiv cs.LG

本文介绍了MiGHT-EHR,一种针对异质时序EHR数据的多任务图变换器,联合建模临床实体、时间轨迹和任务依赖。在MIMIC-III和MIMIC-IV上,它在药物推荐、住院时长、死亡率和再入院预测方面均优于现有最先进方法。