Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jun;4(6 Pt 1):101780.
doi: 10.1016/j.jacadv.2025.101780. Epub 2025 May 14.

LLMonFHIR: A Physician-Validated, Large Language Model-Based Mobile Application for Querying Patient Electronic Health Data

Affiliations

LLMonFHIR: A Physician-Validated, Large Language Model-Based Mobile Application for Querying Patient Electronic Health Data

Paul Schmiedmayer et al. JACC Adv. 2025 Jun.

Abstract

Background: To improve healthcare quality and empower patients, federal legislation requires nationwide interoperability of electronic health records (EHRs) through Fast Healthcare Interoperability Resources (FHIR) application programming interfaces. Nevertheless, key barriers to patient EHR access-limited functionality, English, and health literacy-persist, impeding equitable access to these benefits.

Objectives: This study aimed to develop and evaluate a digital health solution to address barriers preventing patient engagement with personal health information, focusing on individuals managing chronic cardiovascular conditions.

Methods: We present LLMonFHIR, an open-source mobile application that uses large language models (LLMs) to allow users to "interact" with their health records at any degree of complexity, in various languages, and with bidirectional text-to-speech functionality. In a pilot evaluation, physicians assessed LLMonFHIR responses to queries on 6 SyntheticMass FHIR patient datasets, rating accuracy, understandability, and relevance on a 5-point Likert scale.

Results: A total of 210 LLMonFHIR responses were evaluated by physicians, receiving high median scores for accuracy (5/5), understandability (5/5), and relevance (5/5). Challenges summarizing health conditions and retrieving lab results were noted, with variability in responses and occasional omissions underscoring the need for precise preprocessing of data.

Conclusions: LLMonFHIR's ability to generate responses in multiple languages and at varying levels of complexity, along with its bidirectional text-to-speech functionality, give it the potential to empower individuals with limited functionality, English, and health literacy to access the benefits of patient-accessible EHRs.

Keywords: artificial intelligence; digital health; large language model; literacy; mobile application.

PubMed Disclaimer

Conflict of interest statement

Funding support and author disclosures This study was financially supported by the Mussallem Center for Biodesign. The authors have reported that they have no relationships relevant to the contents of this paper to disclose.

Figures

None
Graphical abstract
Central Illustration
Central Illustration
The LLMonFHIR iOS Application: LLM-Enabled FHIR Data Access This figure illustrates the workflow of the LLMonFHIR application, which enables patient interaction with their electronic health records (EHRs) using large language models (LLMs). The process begins with user questions (1), which are processed through a targeted function call for relevant Fast Healthcare Interoperability Resources (FHIR) (2). These resources, are retrieved from the health system's certified EHR system via FHIR endpoints using Apple HealthKit, include structured EHR data such as demographics, medications, and laboratory results. The retrieved FHIR resources (3) are then analyzed by a cloud-hosted LLM, such as OpenAI's GPT-4, to generate a tailored response. The final output is delivered as an AI agent response (4), providing users with comprehensible and actionable health insights. Arrows in the diagram represent the flow of information between the LLMonFHIR app, the EHR system, and the LLM.
Figure 1
Figure 1
The LLMonFHIR User Interface (UI) The LLMonFHIR mobile application provides an intuitive interface for patients to interact with their electronic health records (EHRs) using large language models (LLMs). (A) An overview of all available FHIR (Fast Healthcare Interoperability Resources)-standardized health records, enabling users to browse their data comprehensively. (B) The app's ability to localize, translate, and summarize a selected resource into patient-friendly language, shown here in German. (C) The interactive chat feature, which allows users to ask questions about their health data and receive tailored responses in natural language.
Figure 2
Figure 2
Physician Evaluation of LLMonFHIR Responses The figure illustrates the scoring of LLMonFHIR-generated responses by expert physician reviewers across 6 synthetic FHIR (Fast Healthcare Interoperability Resources) patient datasets. A total of 210 responses were evaluated for accuracy, understandability, and relevance, with median scores of 5, 5, and 5 out of 5, respectively. Score ranges are provided to indicate variability in scoring across questions and categories.
Figure 3
Figure 3
Example of Reviewed LLMonFHIR Outputs This figure illustrates examples of LLMonFHIR-generated responses to physician queries during the pilot evaluation, highlighting the model's strengths and limitations. (A) A response to Question 3 accurately identifies no allergies, demonstrating high accuracy without hallucinations. (B) A response to Question 2 provides a complete and relevant list of medications, showcasing clarity and precision. (C) A response to Question 5 includes verbose, generic suggestions, reflecting limited relevance and specificity. (D) A response to Question 7 fails to retrieve relevant laboratory values, underscoring challenges in resource identification and data preprocessing.

Similar articles

References

    1. D'Costa S.N., Kuhn I.L., Fritz Z. A systematic review of patient access to medical records in the acute setting: practicalities, perspectives and ethical consequences. BMC Med Ethics. 2020;21(1):18. doi: 10.1186/s12910-020-0459-6. - DOI - PMC - PubMed
    1. Brands M.R., Gouw S.C., Beestrum M., Cronin R.M., Fijnvandraat K., Badawy S.M. Patient-centered digital health records and their effects on health outcomes: systematic review. J Med Internet Res. 2022;24(12) doi: 10.2196/43086. - DOI - PMC - PubMed
    1. Beard L., Schein R., Morra D., Wilson K., Keelan J. The challenges in making electronic health records accessible to patients. J Am Med Inform Assoc. 2011;19(1):116–120. doi: 10.1136/amiajnl-2011-000261. - DOI - PMC - PubMed
    1. Tapuria A., Porat T., Kalra D., Dsouza G., Xiaohui S., Curcin V. Impact of patient access to their electronic health record: systematic review. Inform Health Soc Care. 2021;46(2):194–206. doi: 10.1080/17538157.2021.1879810. - DOI - PubMed
    1. Hägglund M., McMillan B., Whittaker R., Blease C. Patient empowerment through online access to health records. BMJ. 2022;378 doi: 10.1136/bmj-2022-071531. - DOI - PMC - PubMed

LinkOut - more resources