Home Applications EpInsights

EpInsights Awaiting Review

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
15
Views
0
IPM installs
0
0
Details
Releases (1)
Reviews
Issues
Videos (2)
Contest
This app has a demo View
Conversational epidemiological intelligence platform with AI

What's new in this version

Initial Release

EpiAtlas Banner

Transform healthcare data into actionable insights through natural language conversations, geospatial visualization, and AI-assisted epidemiological investigation.

📋 About

EpInsights is an intelligent epidemiological analysis platform designed to help healthcare professionals, researchers, and public health teams explore FHIR-based clinical data through a conversational interface.

Instead of manually querying databases or navigating complex healthcare records, users can ask questions in natural language and receive answers grounded in real FHIR resources and epidemiological datasets.

EpiAtlas screen

✨ Features

Ask questions/prompts such as:

  1. “Show scorpion sting cases by state in the last 30 days”
  2. “Which regions reported the highest dengue incidence this month?”
  3. “Are there any active COVID-19 clusters right now?”
  4. “Yellow fever in the last month”
  5. “Diarrhea map
  6. “Patients with Ebola group by location”
  7. “Which regions have similar behavior to Recife, PE?”

The AI agent translates questions into validated queries and retrieves data directly from FHIR resources.

  • 💬 Conversational Interface —et-based visualization of disease distribution across regions
  • 🔍 Hybrid Search — Combines FHIR SQL execution with semantic vector search for richer answers
  • 🤖 AI Agent (LangChain4j) — Intelligent agent that decides when to query FHIR SQL vs. vector store
  • 🏥 FHIR R4 Compliant — Ask epidemiological questions in natural language, maintaining session context via chatId
  • 🗺️ Geospatial Heatmaps — LeaflBuilt on top of InterSystems IRIS for Health FHIR repository

🔒 Controlled Data Access

For safety and auditability:

  • All generated SQL or FHIR queries are logged so that judges can see the transparency.
  • All database access is mediated through predefined tools.
  • Queries are validated before execution.
  • Results are generated exclusively from real healthcare data.

This approach follows the same principle used by modern healthcare AI systems that rely on controlled FHIR access instead of unrestricted database interaction.

🚀 Getting Started

EpInsights is fully containerized and can be started locally using Docker Compose.

✅ Prerequisites

  • Make sure you have the following installed:
    • 🔗 git
    • 🐳 Docker
    • 🧩 Docker Compose
    • 🔑 An OpenAI API key

📂 Clone the Repository

git clone https://github.com/luanavma/epi-insights.git

🧬 Generate Synthetic FHIR Data

Before starting the application, generate the synthetic FHIR dataset used by EpInsights.

cd epi-insights/iris
  • Create a Python virtual environment:
python3 -m venv venv
  • Activate the virtual environment:
source venv/bin/activate
  • Install the required dependency:
pip install faker
  • Generate the synthetic dataset:
python seed.py --patients 500 --output ./data --days 45 --seed 42

This command creates a synthetic epidemiological FHIR dataset that will be automatically loaded into InterSystems IRIS during the container build process.

⚙️ Configure Environment Variables

  • Before starting the stack, from the project root directory, create your .env to define the OPENAI_API_KEY environment variable on your machine. Inside your epi-insights directory, run:

    cp .env.example .env
    
  • Inside your new .env file, insert your OPENAI_API_KEY

    OPENAI_API_KEY=your_openai_api_key_here
    

⚡ Start the Application

  • From the project root directory, run:

      docker compose up --build
    

The first startup may take several minutes while Docker downloads the required images.

  • Docker Compose will automatically:

    • 🟦 Build and start the InterSystems IRIS container
    • ⏳ Wait for IRIS to become healthy
    • 🖥️ Start the Quarkus backend (AI agent + SQL analytics)
    • 🗄️ Start the Angular frontend (conversational UI)

🌐 Accessing the Services

Architecture

EpInsights Diagram

  1. Synthetic FHIR Data Layer
    Patient bundles with ICD-10 and SNOMED CT coded conditions, symptom observations, and geolocated encounters are loaded into the InterSystems IRIS for Health FHIR repository, providing the clinical foundation for all analysis.
  2. Regional Clinical Vectorization [Embedded Python + Vector Search]
    Embedded Python runs natively inside IRIS to aggregate clinical features per region over a rolling 30-day window. Features are hashed into a 384-dimensional vector, normalized, and stored using IRIS Vector Search capabilities. This enables VECTOR_COSINE similarity queries that identify cities with epidemiologically similar profiles.
  3. Disciplined AI Agent with Tool Calling [LangChain4j + Quarkus]
    The conversational agent never guesses. Every question passes through a terminology discovery step that reads real codes from the FHIR repository before SQL is generated. The SQL builder follows strict FHIR-aware rules. The validator compiles every query against the live IRIS instance before execution. All answers come from real data.
  4. Conversational Epidemiological Interface [Angular]
    A live dashboard that responds to natural language questions. Each answer updates the heatmap, the epicenter panel, and the similar regions table — the last powered by Vector Search — in a single conversational turn.

🎥 Demo Videos

Want to see EpInsights in action?

Full Demo

Watch the complete project walkthrough, including architecture, setup, natural language querying, epidemiological dashboards, heat maps, and Vector Search capabilities:

🔗 https://www.youtube.com/watch?v=Q_v5ag7TAhM

Quick Overview (YouTube Shorts)

For a quick look at the platform and its key features:

🔗 https://www.youtube.com/shorts/E8jvhfop588

Authors

Version
1.0.007 Jun, 2026
Ideas portal
https://ideas.intersystems.com/ideas/DPI-I-637
Category
Analytics
Works with
InterSystems IRIS for HealthInterSystems Vector SearchInterSystems FHIR
First published
07 Jun, 2026
Last edited
07 Jun, 2026