FHIR-RAG-MEDS: Integrating HL7 FHIR with Retrieval-Augmented Large Language Models for Enhanced Medical Decision Support

Read full text
Authors: Yildiray Kabak, Gökçe Banu Laleci Ertürkmen, Mert Gençtürk, Tuncay Namlı, Ali Anıl Sınacı, Rubén Alcantud Córcoles, Cristina Gómez Ballesteros, Pedro Abizanda, Volkan Atmis, Asuman Doğaç
Cited by: 0

Abstract

Background: Evidence-based clinical guidelines are essential for high-quality care yet translating them into personalized clinical decision support remains resource-intensive and time-consuming. Large language models (LLMs) show promise for supporting clinical decision-making, but their limited access to patient-specific data and explicit guideline sources constrains trustworthiness, personalization, and clinical applicability. Retrieval-augmented generation (RAG) addresses part of this challenge by grounding model outputs in curated evidence sources; however, true personalization requires structured access to electronic health record data. Methods: This study presents FHIR-RAG-MEDS, a medical decision support system that integrates HL7 Fast Healthcare Interoperability Resources (FHIR) with an RAG-enhanced LLM to enable patient-specific, guideline-concordant clinical recommendations. Through SMART on FHIR, the system retrieves real-time patient data from FHIR servers, generates structured medical summaries, and incorporates this personalized context into the RAG pipeline, grounding responses in evidence-based clinical guidelines stored in a vector database. Results: FHIR-RAG-MEDS was evaluated using 139 physician-generated clinical questions covering dementia, chronic obstructive pulmonary disease, hypertension, and sarcopenia. Performance was assessed using automated metrics, RAG-specific evaluation frameworks, and independent expert physician review. The system consistently outperformed state-of-the-art medical LLMs, demonstrating higher semantic accuracy, improved faithfulness to guideline content, and stronger clinical relevance. Conclusions: Integrating HL7 FHIR with RAG-based LLMs enables trustworthy, personalized clinical decision support, bridging the gap between static language models and real-world, patient-centered care.

Fields of Study & Subjects

Machine Learning in Healthcare Electronic Health Records Systems Artificial Intelligence in Healthcare and Education

Publication details

Journal / source
AI
Volume
7
Issue
7
Pages
246–246
Publication date
2 July 2026
Language
EN