A subscription to JoVE is required to view this content. Sign in or start your free trial.

Research Article

Interoperable Web Platform Based on Large Language Models for Medical Data Analysis: A Protocol for Clinical Decision Support

128 views

⸱

DOI:

10.3791/72085

⸱

August 25th, 2026

 ,  ,  ,  , 

In This Article

Summary

This protocol describes the implementation of an interoperable web platform that integrates FHIR-based clinical data with Retrieval-Augmented Generation and multi-agent large language models for clinical decision support. The workflow enables reproducible deployment, standardized data integration, and evaluation of artificial intelligence (AI)-assisted medical data analysis.

Abstract

Clinical decision-making is frequently hindered by fragmented electronic health records and limited interoperability among heterogeneous healthcare information systems. This article presents a step-by-step protocol for implementing an interoperable web platform that integrates clinical data via the Fast Healthcare Interoperability Resources (FHIR) standard, along with Retrieval-Augmented Generation (RAG), Large Language Models (LLMs), and a multi-agent clinical reasoning framework to support medical data analysis and clinical decision support. The protocol describes the complete workflow, including computational environment configuration, clinical dataset preprocessing, FHIR-based data integration, vector database construction, retrieval configuration, prompt engineering, multi-agent orchestration, and system evaluation. Representative results demonstrate the platform's ability to generate clinically relevant and contextually consistent responses while improving semantic interoperability across heterogeneous data sources. System performance was evaluated using complementary quantitative and semantic metrics, including BLEU, ROUGE, BERTScore, and cosine similarity. A qualitative assessment was conducted using publicly available, fully anonymized benchmark healthcare datasets to evaluate the reproducibility of the proposed methodological workflow. The proposed architecture combines standardized healthcare interoperability with retrieval-enhanced language models to improve contextual reasoning, reduce hallucination, and support reproducible AI-assisted clinical workflows. This protocol provides a scalable and reproducible framework for researchers and developers seeking to implement interoperable, privacy-aware, and intelligent healthcare systems for clinical decision support, medical data analysis, and future translational research.

Introduction

Health information is routinely generated across hospitals, diagnostic centers, laboratories, and outpatient clinics, often remaining distributed among heterogeneous information systems. This fragmentation limits interoperability and restricts timely access to comprehensive patient records, creating persistent challenges for clinical care, data integration, and healthcare management1,2,3,4.

The consequences of this fragmentation become particularly evident in clinical workflows that depend on timely access to pati....

Access restricted. Please log in or start a trial to view this content.

Protocol

This study did not involve the recruitment of human participants, access to identifiable patient records, or experiments involving animals. The protocol was developed and evaluated exclusively using publicly available and fully anonymized datasets for methodological validation. No personal health information was accessed or processed. Therefore, approval from an Institutional Review Board (IRB) or Research Ethics Committee was not required. The protocol was developed in accordance with applicable data protection principles, including the Brazilian General Data Protection Law (LGPD), to support future applications involving clinical data.

Access restricted. Please log in or start a trial to view this content.

Results

System performance was assessed using complementary quantitative metrics together with qualitative analysis to examine both linguistic accuracy and semantic consistency of the generated outputs. This evaluation strategy combines lexical and semantic measures to provide a broader characterization of model behavior in healthcare-related language generation tasks.

Table 1 presents the quantitative results obtained with BLEU, ROUGE, and BERTScore. These metrics were selected becau.......

Access restricted. Please log in or start a trial to view this content.

Discussion

The evaluation presented in this study represents a methodological validation performed using publicly available and fully anonymized benchmark healthcare datasets. No prospective clinical validation involving healthcare professionals or patient recruitment was conducted, as the objective of this work is to demonstrate a reproducible implementation protocol rather than clinical effectiveness.

The findings of this study suggest that combining healthcare interoperability standards with large lan.......

Access restricted. Please log in or start a trial to view this content.

Disclosures

The authors declare no competing financial interests or personal relationships that could have influenced the work reported in this manuscript. Generative artificial intelligence (AI) tools were used exclusively to assist with language editing, grammar correction, and improvements in manuscript readability. All scientific content, study design, methodology, data analysis, interpretation of results, and editorial decisions were developed, verified, and approved by the authors, who assume full responsibility for the content of this manuscript.

Acknowledgements

The authors would like to thank the Laboratory of Embedded and Distributed Systems (LESC), Federal University of Ceará (UFC), for providing the research environment and technical discussions that supported the development of this work. The authors also acknowledge the developers and maintainers of the open-source software, interoperability standards, and publicly available datasets used throughout this study.

....

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
FAISSMeta Platforms Inc.Version 1.8.0Vector database used for similarity search in the Retrieval-Augmented Generation (RAG) pipeline.
FHIR StandardHL7 InternationalRelease 4 (R4)Healthcare interoperability standard adopted for structured clinical data exchange.
FlaskPallets ProjectsVersion 3.0.3Python web framework used to implement the RESTful backend API.
HL7 StandardHL7 InternationalVersion 2.xLegacy messaging protocol used for interoperability with hospital information systems.
HTTP REST APICustom ImplementationN/ARESTful communication layer between frontend, backend, database and AI services.
LangChainLangChain Inc.Version 0.3.xFramework used to integrate LLMs, prompt engineering and Retrieval-Augmented Generation workflows.
LangGraphLangChain Inc.Version 0.2.xFramework used for orchestrating the multi-agent clinical reasoning workflow.
LLaMA 3.1 8B InstructMeta Platforms Inc.Version 3.1Large Language Model employed for clinical reasoning and natural language generation.
MySQL Community ServerOracle CorporationVersion 8.0Relational database used to store structured clinical data.
OllamaOllama Inc.Version 0.9.xLocal inference engine used for executing Large Language Models while preserving patient privacy.
PythonPython Software FoundationVersion 3.11Programming language used for implementing the complete platform.
PyTorchLinux FoundationVersion 2.4Deep learning framework used for Large Language Model inference.
Retrieval-Augmented Generation (RAG) PipelineCustom ImplementationN/AAI framework combining semantic retrieval with LLM inference for context-aware response generation.
Sentence TransformersHugging Face Inc.all-MiniLM-L6-v2Embedding model used to generate dense vector representations for semantic document retrieval.
Ubuntu LinuxCanonical Ltd.Version 24.04 LTSOperating system used for development and experimental evaluation.
Visual Studio CodeMicrosoft CorporationVersion 1.100Integrated development environment used for software implementation and debugging.

References

  1. Chukwu E, Garg L. A systematic review of blockchain in healthcare: frameworks, prototypes, and implementations. IEEE Access. 2020;8:21196-21214. doi:10.1109/ACCESS.2020.2969881.
  2. Al-Nbhany WANA, Zahary AT, Al-Shargabi AA. Blockchain-IoT healthcare applications and trends: a review. IEEE Access. 2024;12:4178-4212. doi:10.1109/ACCESS.2023.3349187.
  3. Tan Y, et al. MedChatZH: a Chinese medical large language model. Comput Biol Med. 2024;172:108290.
  4. OLLAMA TEAM. Ollama: Run Large Language Models locally. Version 0.x. San Francisco: Ollama, 2024.
  5. Jahan I, Laskar MTR, Peng C, Huang JX. A comprehensive evaluation of large language models on benchmark bi....

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Explore More Articles

FHIR IntegrationRetrieval-Augmented GenerationMulti-Agent ReasoningVector DatabaseSemantic InteroperabilityPrompt Engineering