Initial Release
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.
FHIRInsight utilizes several cutting-edge technologies to perform its task:
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.
InterSystems IRIS: A high-performance data platform that supports the storage and querying of the data efficiently.
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.
Clone the Repository
git clone https://github.com/musketeers-br/FHIRInsight.git
cd FHIRInsight
Configure Environment Variables
export OPENAI_API_KEY=your-openai-key
export ANTHROPIC_API_KEY=your-anthropic-key
FHIR_INSIGHT_LLM_MODEL
. The value for this variable follows the LiteLLM definitions, which you prefix the model name with its provider. For instance:
o4-mini
model: export FHIR_INSIGHT_LLM_MODEL=openai/o4-mini
claude-3-sonnet
model: export FHIR_INSIGHT_LLM_MODEL=anthropic/claude-3-sonnet
LLMModel
FHIR_INSIGHT_LLM_MODEL
environment variable, using the sinxta @<environment variable>
.openai/gpt-4o
, for instance.Build the Docker Container
docker-compose build --no-cache --progress=plain
Start the Application
docker-compose up -d
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
Once FHIRInsight is up and running, you can start converting FHIR JSON data with blood test information into informative reports. Follow these simple steps:
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.
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.
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.
FHIRInsight is developed with ❤️ by the Musketeers Team