Leave as Fast as You Can: Using Generative AI to Automate and Accelerate Hospital Discharge Reports
Author
Publication date
2025-05-28ISSN
2073-431X
Abstract
Clinical documentation, particularly the hospital discharge report (HDR), is
essential for ensuring continuity of care, yet its preparation is time-consuming and places
a considerable clinical and administrative burden on healthcare professionals. Recent advancements in Generative Artificial Intelligence (GenAI) and the use of prompt engineering
in large language models (LLMs) offer opportunities to automate parts of this process,
improving efficiency and documentation quality while reducing administrative workload.
This study aims to design a digital system based on LLMs capable of automatically generating HDRs using information from clinical course notes and emergency care reports.
The system was developed through iterative cycles, integrating various instruction flows
and evaluating five different LLMs combined with prompt engineering strategies and
agent-based architectures. Throughout the development, more than 60 discharge reports
were generated and assessed, leading to continuous system refinement. In the production
phase, 40 pneumology discharge reports were produced, receiving positive feedback from
physicians, with an average score of 2.9 out of 4, indicating the system’s usefulness, with
only minor edits needed in most cases. The ongoing expansion of the system to additional
services and its integration within a hospital electronic system highlights the potential of
LLMs, when combined with effective prompt engineering and agent-based architectures,
to generate high-quality medical content and provide meaningful support to healthcare
professionals. Hospital discharge reports (HDRs) are pivotal for continuity of care but
consume substantial clinician time. Generative AI systems based on large language models
(LLMs) could streamline this process, provided they deliver accurate, multilingual, and
workflow-compatible outputs. We pursued a three-stage, design-science approach. Proofof-concept: five state-of-the-art LLMs were benchmarked with multi-agent prompting to
produce sample HDRs and define the optimal agent structure. Prototype: 60 HDRs spanning six specialties were generated and compared with clinician originals using ROUGE
with average scores compatible with specialized news summarizing models in Spanish and
Catalan (lower scores). A qualitative audit of 27 HDR pairs showed recurrent divergences
in medication dose (56%) and social context (52%). Pilot deployment: The AI-HDR service was embedded in the hospital’s electronic health record. In the pilot, 47 HDRs were autogenerated in real-world settings and reviewed by attending physicians. Missing information and factual errors were flagged in 53% and 47% of drafts, respectively, while written
assessments diminished the importance of these errors. An LLM-driven, agent-orchestrated
pipeline can safely draft real-world HDRs, cutting administrative overhead while achieving
clinician-acceptable quality, not without errors that require human supervision. Future
work should refine specialty-specific prompts to curb omissions, add temporal consistency
checks to prevent outdated data propagation, and validate time savings and clinical impact
in multi-center trials.
Document Type
Article
Document version
Published version
Language
English
Subject (CDU)
628 - Public health engineering. Water. Sanitation. Illuminating engineering
Keywords
Pages
19
Publisher
MDPI
Collection
14; 6
Is part of
Computers
Recommended citation
Trejo Omeñaca, Alex; Llargués Rocabruna, Esteve; Sloan, Jonny[et al.] Leave as Fast as You Can: Using Generative AI to Automate and Accelerate Hospital Discharge Reports. Computers 2025, 14(6), 210. Disponible en <https://www.mdpi.com/2073-431X/14/6/210>. Fecha de acceso: 13 nov. 2025. DOI: 10.3390/ computers14060210
This item appears in the following Collection(s)
- Ciències de la Salut [974]
Rights
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/ licenses/by/4.0/)
Except where otherwise noted, this item's license is described as https://creativecommons.org/
licenses/by/4.0/


