Privacy-, linguistic-, and information-preserving synthesis of clinical documentation through generative agents
Open Access
- 16 September 2025
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Artificial Intelligence
- Vol. 8, 1644084
Abstract
The widespread adoption of generative agents (GAs) is reshaping the healthcare landscape. Nonetheless, broad utilization is impeded by restricted access to high-quality, interoperable clinical documentation from electronic health records (EHRs) due to persistent legal, ethical, and technical barriers. Synthetic health data generation (SHDG), leveraging pre-trained large language models (LLMs) instantiated as GAs, could offer a practical solution by creating synthetic patient information that mimics genuine EHRs. The use of LLMs, however, is not without issues; significant concerns remain regarding privacy, potential bias propagation, the risk of generating inaccurate or misleading content, and the lack of transparency in how these models make decisions. We therefore propose a privacy-, linguistic-, and information-preserving SHDG protocol that employs multiple context-aware, role-specific GAs. Guided by targeted prompting and authentic EHRs—serving as structural and linguistic templates—role-specific GAs can, in principle, operate collaboratively through multi-turn interactions. We theorized that utilizing GAs in this fashion permits LLMs not only to produce synthetic EHRs that are accurate, consistent, and contextually appropriate, but also to expose the underlying decision-making process. To test this hypothesis, we developed a no-code GA-driven SHDG workflow as a proof of concept, which was implemented within a predefined, multi-layered data science infrastructure (DSI) stack—an integrated ensemble of software and hardware designed to support rapid prototyping and deployment. The DSI stack streamlines implementation for healthcare professionals, improving accessibility, usability, and cybersecurity. To deploy and validate GA-assisted workflows, we implemented a fully automated SHDG evaluation framework—co-developed with GenAI technology—which holistically compares the informational and linguistic features of synthetic, anonymized, and real EHRs at both the document and corpus levels. Our findings highlight that SHDG implemented through GAs offers a scalable, transparent, and reproducible methodology for unlocking the potential of clinical documentation to drive innovation, accelerate research, and advance the development of learning health systems. The source code, synthetic datasets, toolchains and prompts created for this study can be accessed at the GitHub repository: https://github.com/HR-DataLab-Healthcare/RESEARCH_SUPPORT/tree/main/PROJECTS/Generative_Agent_based_Data-Synthesis.Keywords
This publication has 102 references indexed in Scilit:
- GenAI in nursing and clinical practice: a rapid review of applications and challengesJournal of Public Health, 2025
- On the suitability of hugging face hub for empirical studiesEmpirical Software Engineering, 2025
- World Medical Association Declaration of HelsinkiJAMA, 2025
- Preserving privacy in healthcare: A systematic review of deep learning approaches for synthetic data generationComputer Methods and Programs in Biomedicine, 2024
- Transforming Software Development with Generative AI: Empirical Insights on Collaboration and Workflow2024
- Evolution of Data Architecture2023
- Prevalence and Sources of Duplicate Information in the Electronic Medical RecordJAMA Network Open, 2022
- The Double Diamond Model: In Pursuit of Simplicity and Flexibility2021
- Natural Language Processing in Biomedicine: A Unified System Architecture Overview2014
- A Mathematical Theory of CommunicationBell System Technical Journal, 1948