[Paper Review] LLM on FHIR -- Demystifying Health Records
This paper presents LLM on FHIR, an open-source iOS app that uses GPT-4 to let patients interact with their FHIR-based health records, with a pilot study using SyntheticMass data to assess health literacy, accuracy, and usability.
Objective: To enhance health literacy and accessibility of health information for a diverse patient population by developing a patient-centered artificial intelligence (AI) solution using large language models (LLMs) and Fast Healthcare Interoperability Resources (FHIR) application programming interfaces (APIs). Materials and Methods: The research involved developing LLM on FHIR, an open-source mobile application allowing users to interact with their health records using LLMs. The app is built on Stanford's Spezi ecosystem and uses OpenAI's GPT-4. A pilot study was conducted with the SyntheticMass patient dataset and evaluated by medical experts to assess the app's effectiveness in increasing health literacy. The evaluation focused on the accuracy, relevance, and understandability of the LLM's responses to common patient questions. Results: LLM on FHIR demonstrated varying but generally high degrees of accuracy and relevance in providing understandable health information to patients. The app effectively translated medical data into patient-friendly language and was able to adapt its responses to different patient profiles. However, challenges included variability in LLM responses and the need for precise filtering of health data. Discussion and Conclusion: LLMs offer significant potential in improving health literacy and making health records more accessible. LLM on FHIR, as a pioneering application in this field, demonstrates the feasibility and challenges of integrating LLMs into patient care. While promising, the implementation and pilot also highlight risks such as inconsistent responses and the importance of replicable output. Future directions include better resource identification mechanisms and executing LLMs on-device to enhance privacy and reduce costs.
Motivation & Objective
- Advance health literacy by enabling patient access to electronic health records through a patient-centered AI solution.
- Demonstrate feasibility of integrating LLMs with FHIR APIs in a mobile application.
- Stimulate reproducible evaluation of patient-facing AI in healthcare using synthetic datasets.
- Identify challenges and safety considerations in using LLMs to interpret health data for lay users.
Proposed method
- Develop an open-source Swift-based iOS app (LLM on FHIR) built on the Stanford Spezi ecosystem and GPT-4 to interact with a user’s FHIR resources.
- Connect the app to the Apple Health app via HealthKit to fetch FHIR-encoded records.
- Implement a function-calling mechanism where the LLM retrieves and summarizes relevant FHIR resources without exposing raw data to the user.
- Use prompt engineering to generate concise single-resource summaries and longer interpretations in JSON-like formats for readability.
- Evaluate the system in a pilot study with SyntheticMass cardiovascular patient data using four medical doctors as expert raters.
- Assess responses for accuracy, relevance, and understandability, and analyze variations across questions and patient profiles.
Experimental results
Research questions
- RQ1Can an LLM-driven interface accurately and understandably interpret a patient’s FHIR-based health records?
- RQ2What are the main accuracy, relevance, and understandability characteristics of LLM-generated patient-facing explanations of health data?
- RQ3What challenges (e.g., data filtering, temporal reasoning, resource retrieval) arise when deploying LLMs on patient health records?
- RQ4How does the system perform across diverse patient profiles and questions about medications, conditions, and lab values?
- RQ5What are the implications for privacy, reproducibility, and on-device vs cloud execution in patient-facing LLM applications?
Key findings
- LLM on FHIR generally achieves high accuracy and relevance in patient-facing health information across questions.
- The app translates medical data into patient-friendly language and adapts to different patient profiles.
- Variability in LLM outputs occurs across identical questions and some responses miss information or fail to request necessary resources.
- Some outputs include out-of-context information (e.g., social history) and occasional misassociations (e.g., insulin use for prediabetes).
- Lab value interpretations are often accurate in ranges but can be too strict or lack actionable insights.
- Translation (German) is largely correct but can lose contextual nuance in some instances.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.