AI-native · offline-first · open

The EMR with a clinical AI built in — not bolted on.

Dr. Elroi is an electronic medical record where the AI lives inside the chart — it listens, drafts, summarises, and surfaces what matters for this patient. The model runs on local hardware, so it works offline and patient data never leaves the building. Built for GP offices, clinics, and medical plazas.

Dr. Elroi
Dr. Elroi
AI GP assistant · on-device
Clinician
Summarise this patient's last visit and flag anything to watch.
Dr. Elroi
Summary: 34F, follow-up for hypertension.
• BP 148/94 — above target; was 152/96 last visit.
• Meds: amlodipine 5 mg — adherence reported good.
• Watch: trending high despite therapy — consider review.
Draft only — for your review and approval.
Grounded in this patient's record · never invents data
Why it's different

An assistant that lives in the chart

Most EMRs add a chatbot on the side. Dr. Elroi makes the AI a native part of the clinical workflow — and keeps it on your own hardware.

🧠

On-device clinical LLM

MedGemma runs locally via Ollama — no cloud, no per-token bill, no data leaving the clinic.

🎙️

AI Scribe

Dictate a visit; Dr. Elroi drafts structured records for the clinician to review and approve before saving.

💬

Ask about a patient

Plain-language summaries, history, medication and allergy checks — grounded only in that patient's data.

📴

Offline-first

Database, cache, AI and EMR all run on one machine. Designed for places where the internet isn't reliable.

🔐

Roles & patient portal

Admin / developer / doctor roles, per-doctor patient scoping, and a patient login for records, messaging and refills.

🗣️

Voice

Optional local text-to-speech reads answers aloud — hands-free at the point of care.

Architecture

Everything runs locally

Built on the open-source Medplum FHIR platform, with an AI connector and local-first packaging.

:3300
Dr. Elroi connector
Chat + admin
:11434
Ollama · MedGemma
Clinical LLM
:8103
Medplum API
FHIR backend
:3002
EMR + patient portal
Records & admin
:5432
PostgreSQL
Database
:6379
Redis cache
Jobs & queue
:8123
Kokoro
Voice (TTS)
:3001
Clinic app
Doctor charting

Safety-first, human-in-the-loop

Dr. Elroi is an active project and research showcase — not a certified medical device. The AI is assistive: it drafts and surfaces information for a qualified clinician to review and approve. It does not make autonomous clinical decisions and must not be used for real patient care without proper clinical validation and regulatory approval.

Explore the code on GitHub