Home Applications FHIRInsight

FHIRInsight

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
3
Views
0
IPM installs
0
0
Details
Releases (1)
Reviews
Issues
FHIRInsight: Transform complex health data into clear, actionable insights. A tool to convert FHIR blood test data into a comprehensive, easy-to-understand analysis report.

What's new in this version

Initial Release

Gitter
Quality Gate Status
Reliability Rating

License: MIT

FHIRInsight made by AI

FHIRInsight

🚀 Motivation

Reading blood test results can be confusing — not just for patients, but even for healthcare providers who aren’t experts in lab diagnostics. That’s where FHIRInsight comes in. It takes the complicated FHIR JSON data behind your blood work and turns it into a clear, easy-to-understand report. By using smart technology, FHIRInsight makes health data simpler and more accessible, so anyone can understand what’s going on in their body.

🛠️ How It Works

FHIRInsight utilizes several cutting-edge technologies to perform its task:

  1. FHIR: Fast Healthcare Interoperability Resources (FHIR) standard is used to handle healthcare-related data. It provides the JSON structure required for representing blood test data.

  2. InterSystems IRIS: A high-performance data platform that supports the storage and querying of the data efficiently.

  3. AI Agent using LangChain (WIP): The analysis and conversion of the raw data into insightful reports are powered by an AI agent developed with the LangChain framework, offering contextual understanding and generating user-friendly reports.

📋 Prerequisites

🛠️ Installation

  1. Clone the Repository

    git clone https://github.com/musketeers-br/FHIRInsight.git
    cd FHIRInsight
    
  2. Configure Environment Variables

    • This project relies on LiteLLM library to accesse several LLM service providers. A complete list of providers and their expected environment variables could be found here. For instance:
      • To set up an OpenAI API Key: export OPENAI_API_KEY=your-openai-key
      • To set up an Anthropic API Key: export ANTHROPIC_API_KEY=your-anthropic-key
    • Another variable is the System LLM Model name: FHIR_INSIGHT_LLM_MODEL. The value for this variable follows the LiteLLM definitions, which you prefix the model name with its provider. For instance:
      • To set up the OpenAI o4-mini model: export FHIR_INSIGHT_LLM_MODEL=openai/o4-mini
      • To set up the Anthropic claude-3-sonnet model: export FHIR_INSIGHT_LLM_MODEL=anthropic/claude-3-sonnet
    • You can also set up the model by the Production parameter LLMModel
      • By default, this parameter uses a reference to the FHIR_INSIGHT_LLM_MODEL environment variable, using the sinxta @<environment variable>.
      • But you can define a model directly, like openai/gpt-4o, for instance.
  3. Build the Docker Container

    • Always use the following command to build the container so that no caching interferes, ensuring a clean build process:
      docker-compose build --no-cache --progress=plain
      
  4. Start the Application

    docker-compose up -d
    
  5. Wait until IRIS startup

    docker-compose logs -f
    

    Wait until see logs like this:

fhirinsight-iris-1  | [INFO] ...started InterSystems IRIS instance IRIS
fhirinsight-iris-1  | [INFO] Executing command /docker-entrypoint.sh iris-after-start ...
fhirinsight-iris-1  | [INFO]

You can also checkout the Production for its status

💡 How to Use

Once FHIRInsight is up and running, you can start converting FHIR JSON data with blood test information into informative reports. Follow these simple steps:

  • Select a FHIR Bundle resource with Patient information, like its demographics, Observations, Encounter etc.
  • Issue a HTTP Post to the FHIRInsight REST API.
  • The analysis report in Markdown formmat will be gererated

For instance:

curl --location 'http://localhost:62773/FHIRInsight/analyze' \
--user _system:SYS \
--header 'Content-Type: application/json' \
--data-binary '@./FHIR_Samples/joe.json'

If you use Postman, you can find a collection for your convinience here

With FHIRInsight, transform the complexity of medical data into clarity, empowering patients and healthcare providers to make informed decisions.

📂 FHIR Samples

In the repository, you will find a directory named FHIR_Samples that contains JSON files, each representing a patient. Each patient entry includes an inferred medical condition based on the JSON data. Below is a summary of the patients and their conditions:

Patient Name Condition (Inferred)
Carter DUMMY Normal (No condition detected)
Emily Johnson Type 1 Diabetes
Jane Smith Hypothyroidism
Joe DUMMY Anemia
John Doe Liver dysfunction (Hyperbilirubinemia)
John Ramsey Coagulopathy (High INR and PT)
Mary Doe Type 2 Diabetes
Phillipe DUMMY Normal (No condition detected)
Sophie D’Abbraccio Hormonal imbalance (Low Estrogen & Progesterone)

These samples serve as a quick reference for testing the application’s capabilities to analyze and interpret medical data.

🌐 Frontend Testing Interface

FHIRInsight provides a user-friendly frontend page to test and explore the application’s functionalities interactively. This frontend is accessible via the following URL:

This page allows users to input data, run analyses, and view results directly through a web interface, enhancing the user experience and providing a visual understanding of how FHIRInsight transforms complex JSON data into insightful reports.

See FHIRInsight in action

🎖️ Credits

FHIRInsight is developed with ❤️ by the Musketeers Team

Made with
Install
zpm install FHIRInsight download archive
Version
1.0.024 May, 2025
Category
Solutions
Works with
InterSystems IRISInterSystems IRIS for Health
First published
24 May, 2025
Last edited
24 May, 2025