Skip to content
All projects

Mirth AI — AI Monitoring for Healthcare Integration

An LLM agent that explains why a Mirth Connect channel failed

Status
Archived
Timeline
Jul–Aug 2026 · hackathon
Kind
Experiment
Role
Lead Developer (team of two)
Client
Cybage internal hackathon

Overview

Mirth Connect is the integration engine many hospitals use to move HL7 messages between systems. Mirth AI plugs into an existing Mirth installation, watches its channels and logs through the REST API, detects problems — malformed messages, failing downstream systems, stuck queues — and uses an LLM to explain the root cause in plain English, creating an issue report that shows exactly where the problem is.

Problem

When a Mirth channel fails, engineers usually find out late and then debug it by hand, reading through logs and message histories to work out what went wrong.

Approach

I built the agent backend in FastAPI (a monitor loop, the Mirth client, AI diagnosis and the incident service), a Streamlit dashboard for channel health, incidents and history, and an SQLite audit trail. The LLM runs on Groq through the OpenAI-compatible SDK. To demo it realistically, I built Mirth channels provisioned by code through the Mirth REST API — including a real MLLP listener with an HL7-to-JSON transformation to a mock insurance API — and a mock HL7 traffic generator. Everything runs in Docker Compose, with a one-command AWS EC2 deployment script.

Architecture

Agent API
Monitor loop, anomaly detection, incidentsFastAPI
AI diagnosis
Root cause in plain English, with a categoryGroq LLM
Dashboard
Channel health, incidents, history, token usageStreamlit
Audit trail
Every detection and diagnosisSQLite
Demo environment
Code-provisioned channels + mock HL7 trafficMirth · MLLP

Stack

backend
  • Python
  • FastAPI
  • LLMs (Groq)
frontend
  • Streamlit
tools
  • Mirth Connect
data
  • HL7
  • SQLite
cloud-devops
  • Docker Compose
  • Amazon EC2