Skip to content
项目

关于

Self-hosted, privacy-first health records. Bring labs, visits, medications, and wearable data into one place you control — with biomarker trends, an AI assistant that proposes but never writes, and privacy by default. Apache 2.0, Beta.

安全与隐私

这些数字如何统计

可以做什么

  • First-party mobile app — the bridge SDK already powers two-way sync; a dedicated app is next.
  • Deeper biomarker insights — organ/symptom correlations, contextual "why does this matter?" explanations.
  • Advanced FHIR R4 conformance — _format=xml, transaction/batch Bundle processing, POST /_search (for clinic interop).
  • End-to-end test suite — Playwright or Cypress covering the document → extraction → biomarker pipeline.

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Health Assistant logo

Health Assistant

Self-hosted, privacy-first health records

Version Status License Platform FastAPI React Docker

Health Assistant visual tour

Part of the Neuronection family — one ecosystem, four guides.

Website: health-assistant.io · Repository: health-assistant-io/health-assistant

Independent project. Health Assistant is inspired by the privacy-first, local-control philosophy of Home Assistant. It is not affiliated with, endorsed by, or connected to Home Assistant or Nabu Casa.


Table of contents


What is Health Assistant?

A self-hosted web app for centralizing the health data you care about — lab results, doctor visits, medications, wearable data, and the notes in between. You run it on your own infrastructure, so the data never leaves your servers unless you say so.

Under the hood it's built on the same HL7 FHIR standard hospitals use, with a biomarker engine that normalizes your results across labs and a time-series store for device data. The everyday experience stays simple — but the foundation is there if you ever want to connect to a clinic, pull records from a hospital, or scale the same install into something clinic-grade.

It is Beta software, built for self-hosters and technical users first.

What's different

  • Your data stays on your infrastructure. No cloud lock-in, no third-party data resale. The database, uploaded files, and task queue all live wherever you deploy them.
  • Understand your results, not just store them. Labs from different providers are normalized to common units and scored against reference ranges, so trends stay comparable over time. The AI assistant explains results in plain language.
  • The AI assists — it never writes your record. The chat assistant proposes actions (track a new journey, add a medication, define a biomarker); you review and approve every single write through a structural human-in-the-loop wall.
  • Grows with you. Today it serves a single user or a small group; the FHIR-native, multi-tenant foundation means the same installation can scale into a clinic-grade record without a rewrite.

Features

Bring all your health data together

  • Upload anything — lab reports, doctor letters, imaging, discharge summaries. Snap a photo or drop a PDF; an OCR + AI pipeline extracts the structured data (biomarkers, medications, findings) for you.
  • Examinations group every clinical visit: the documents, your notes, and the biomarker results, all in one place.
  • Medications, allergies, and vaccinations tracked per person, each with its own reference catalog.
  • Rich-text / Markdown notes per examination — your words, formatted your way.

Understand your results

  • Biomarker trends over time — cholesterol, glucose, thyroid, vitamins, anything you've had tested, charted longitudinally with normal/abnormal flagging.
  • Normalized across labs — results from different providers auto-convert to a common unit, so your trend line stays meaningful even when you switch labs.
  • Relative score — each result is positioned inside its reference range (0.0–1.0), giving you a lab-agnostic sense of where you sit.
  • An AI assistant that explains things — ask "what does this result mean?" or "how has my cholesterol changed?" and get an answer grounded in your own data, with citations back to the source.

Track the long view

  • Health journeys — a pregnancy, a chronic condition, a surgical recovery, a weight-loss effort. Journeys span multiple visits, carry their own custom fields (trimester, pain intensity, dose), and link back to the examinations that fed them.
  • Wearable & device data — heart rate, steps, continuous glucose, sleep. High-frequency data goes into a dedicated time-series store (TimescaleDB) so it doesn't bloat your clinical records, with smart downsampling that preserves spikes on the dashboard.
  • Reminders & alerts — medication and follow-up reminders, plus alerts when a new result falls outside its reference range.

An AI assistant that helps — carefully

  • Grounded in your data — the assistant answers using your biomarker history, medications, documents, and catalog. It cites what it's drawing from.
  • Proposes, never writes — it can suggest "track this as a new journey", "add this medication", or "define this biomarker". A review card opens; you edit and approve. Every write goes through the same REST endpoint a manual action would. The AI cannot edit your clinical record directly.
  • Bring your own LLM — any OpenAI-compatible provider works: OpenAI, a local model via vLLM or Ollama, a self-hosted gateway. Configure per instance.
  • Magic Fill — paste discharge notes or lab text; the assistant maps it into structured examination records for you to confirm.

Private by default

  • Self-hosted — the database, object storage, and queue live on your infrastructure. Nothing phones home.
  • No accounts to create with us — you run it; you manage the users.
  • Encrypted AI keys — your LLM API key is Fernet-encrypted at rest and masked in every response.
  • Prompt-injection screening on all AI input, and an audit log on every clinical write.

For multiple people

  • Multi-person records under one installation — yourself and the other people you track.
  • Role-based access — an admin manages everyone's records; each person can have a scoped view of their own.
  • Smart patient-context switching — the whole UI refocuses on the selected person.
  • Multi-tenant under the hood — today that means "one install per tenant"; tomorrow the same isolation can serve "one install per clinic, separated per department".

Make it yours

  • Installable PWA — add it to your phone or desktop, works offline, supports push notifications.
  • Draggable dashboard — arrange the cards (trend charts, imaging previews, reminders) per person and save the layout.
  • Secure full-screen viewers for images, PDFs, and Markdown documents.

Connect your tools

  • Webhook — receive data from any app or custom script via HTTP POST (HMAC-verified).
  • Bridge SDKs (Python + TypeScript) — connect a mobile app or any custom client.
  • FHIR Server sync — pull records from a hospital or personal-health-record that supports SMART-on-FHIR.
  • MCP client — expose external Model Context Protocol tool servers to the AI assistant.
  • Build your own with the Integrations SDK (BaseHealthProvider, BaseConfigFlow, ObservationBuilder) — connection pooling, rate-limit handling, cursor-based delta sync, and OAuth2+PKCE included.

Languages

The interface ships in 6 languages; choose one in Settings → Language.

Language Native name Locale
English English en
Greek Ελληνικά el
Spanish español es
German Deutsch de
French français fr
Chinese (Simplified) 简体中文 zh-Hans

Clinic-compatible by design

Health Assistant is self-hosted and privacy-first. But the foundation is the same one hospitals use, so the same installation can grow into a clinic-grade record — or interoperate with one — without a rewrite. You don't need to care about any of this for everyday use; it's here for when you do.

  • HL7 FHIR R4 storage — clinical data is stored as FHIR-enhanced relational rows and validated on write, so invalid FHIR never lands in the database.
  • FHIR R4 server facade — a conformant REST API at /api/v1/fhir/R4/* exposes 20 resources (Patient, Observation, Condition, EpisodeOfCare, Encounter, AllergyIntolerance, MedicationStatement, MedicationRequest, Medication, Substance, Immunization, DiagnosticReport, DocumentReference, Device, Communication, Organization, Practitioner, Provenance, CodeSystem, ValueSet) with CapabilityStatement, search Bundles, pagination, Provenance-on-write, and soft-delete tombstones.
  • Unified clinical catalogs — biomarkers, medications, allergies, vaccines, anatomy, and a taxonomy/knowledge graph (25 relation types) with recursive multi-hop traversal.
  • Hard multi-tenant isolation — every query is tenant-scoped; cross-tenant access is impossible.
  • Role-based access control — four roles: System Admin, Admin, Manager, User.
  • Export & import — FHIR R4B Bundle + BagIt-style ZIP backups at patient/group/system scope, with SHA256 manifest verification and cross-tenant id remapping on restore.
  • Audit provenance — every clinical create/delete records who, what, and when.

External terminology code sets (LOINC, SNOMED CT, ICD-10, ATC, CVX) are used in the seed catalogs under their respective licenses — see NOTICE for the per-system terms and the SNOMED country-availability note.

Visual tour

Reproducible screenshots captured against a seeded clinical dataset — see the full visual tour.

Patient dashboard — Draggable dashboard AI assistant — AI chat with review cards
Biomarker detail — Longitudinal biomarker trends Examination detail — Examination with linked journeys

Quick start

Production (Docker, recommended)

The fastest path from a fresh clone to a running instance — one command:

git clone https://github.com/health-assistant-io/health-assistant.git
cd health-assistant
./scripts/install.sh    # asks the app URL, generates secure keys, starts the standalone stack

The installer asks one question (the public app URL — press Enter on this machine for http://localhost), generates all secure keys and passwords, checks that the host ports are free, starts the stack, and prints your URLs plus a one-click first-run setup link. It is safe to re-run: it keeps .env, refreshes the images, and restarts only what changed. Prefer no clone at all? curl -fsSL https://neuronection.com/install/health.sh | bash — the canonical one-line entry point (the old health-assistant.io/install.sh URL redirects to the same release asset; see the Installation Guide).

Create your initial admin by opening http://localhost — a fresh install auto-redirects to a setup wizard where you pick the email, password, and organization name. There are no default credentials; you choose them.

Already running a reverse proxy, want the manual steps, or a headless/automation deploy? See the Installation Guide — deployment flavors, security checklist, troubleshooting, and updates.

Development

./scripts/run-dev.sh                  # venv, deps, migrations, then honcho (backend + worker + beat + flower + frontend)

Frontend: http://localhost:3000 · API docs: http://localhost:8000/docs · Flower: http://localhost:5555

Prerequisites

  • Docker and Docker Compose (production) or Python 3.12+ / Node 26+ (development).
  • PostgreSQL with the TimescaleDB extension is required — a plain Postgres will crash on the telemetry hypertable migration. The Docker compose files include a compatible image.
  • An OpenAI-compatible LLM provider (API key + endpoint) for OCR, document extraction, and the chat assistant. Configure it in /settings/ai-config or via env vars. The app works without one — you just lose the AI features.
  • Redis for the task queue (included in the compose files).

Architecture at a glance

The frontend talks to domain endpoints optimized for the UI. External systems (a hospital's FHIR server, a webhook sender) talk to the FHIR R4 facade. Both surfaces sit on the same FHIR-enhanced relational tables — there is no dual-write.

Background work (document OCR/extraction, integration sync, reminders, alert checks) runs in a separate Celery process coordinated through Redis; the FastAPI process does not run background jobs itself.

Deep dive — system diagram, data model, and subsystem breakdown: ARCHITECTURE.md.

Documentation

Getting started

Everyday use & core systems

AI

Integrations & API

Development & operations

Interactive API docs are also available at /docs on a running backend.

Tech stack

Layer Technology
Backend FastAPI (Python 3.12+), async, SQLAlchemy 2.0 (asyncpg), Pydantic v2
Frontend React 18 + Vite 5 + TypeScript 5.3 (strict) + Tailwind 3.4
State Zustand 4 (slices, some persisted)
Database PostgreSQL + TimescaleDB (required)
Cache / Queue Redis + Celery (JSON serializer, UTC, per-task event loops)
Migrations Alembic (sync psycopg2 engine)
AI / NLP LangChain unified factory, OpenAI-compatible (langchain_openai.ChatOpenAI), spaCy fallback
Container Docker + Docker Compose
PWA vite-plugin-pwa (injectManifest), Web Push (VAPID), Dexie offline cache
Charts / UI recharts, react-grid-layout, lucide-react, react-markdown, i18next

Scope & limitations

Health Assistant is Beta (0.8.x). The points below are honest boundaries — not every limitation is a bug.

  • Pre-1.0 APIs. REST endpoints, DB schemas, and FHIR projections may change before 1.0. Pin a version for production deployments.
  • Self-hosted only. There is no managed/cloud hosted offering. You run it on Linux via Docker, on your own AWS or Azure VM or on-prem hardware. No native Windows or macOS desktop installers.
  • TimescaleDB is mandatory. A plain Postgres will crash on the telemetry hypertable migration. Use the bundled compose image or install the extension.
  • Celery is a separate process. The FastAPI process does not run background jobs. If you run uvicorn standalone, document extraction, reminders, and integration sync will queue silently in Redis. The provided compose files and run-dev.sh start them together.
  • AI features need an external LLM. OCR, document extraction, and the chat assistant call an OpenAI-compatible endpoint you provide (OpenAI, vLLM, Ollama, etc.). The rest of the app works without one.
  • Mobile data arrives via integrations. High-frequency telemetry (heart rate, steps, CGM) is stored and charted via the webhook, the bridge SDK, or a FHIR server integration; a first-party phone app is on the roadmap.
  • Notification channels. In-app (WebSocket) and Web Push (VAPID) are fully implemented. Email and SMS are stubbed.
  • FHIR coverage. 20 R4 resources are exposed on the facade (not the full spec). _format=xml, transaction/batch Bundle processing, and POST /_search are roadmap. Telemetry data is stored outside strict FHIR (performance tradeoff) and excluded from FHIR exports.
  • Test coverage. The backend has 3900+ pytest tests; the frontend has 100+ co-located vitest files (775 tests) run in CI; there is no end-to-end suite yet.
  • No medical certification. This software is not certified for clinical use, is not HIPAA/GDPR-certified, and must not be relied upon for diagnosis or treatment decisions (see Disclaimer).

Highlights

Shipped recently — unified catalog registry with ownership-based access, cross-catalog knowledge graph, hybrid (trigram + FTS + RRF) search, FHIR R4 facade, human-in-the-loop proposals with auto-resume, a unified notifications system, and an Android bridge SDK for two-way mobile sync.

On the roadmap

  • First-party mobile app — the bridge SDK already powers two-way sync; a dedicated app is next.
  • Deeper biomarker insights — organ/symptom correlations, contextual "why does this matter?" explanations.
  • Advanced FHIR R4 conformance — _format=xml, transaction/batch Bundle processing, POST /_search (for clinic interop).
  • End-to-end test suite — Playwright or Cypress covering the document → extraction → biomarker pipeline.

Contributing

Contributions are welcome. Read CONTRIBUTING.md and CODE_OF_CONDUCT.md, set up a working dev environment via Quick start → Development, and read the Development Guide for code style, testing, and the versioning workflow.

For backend changes, run ruff check / ruff format and the pytest suite (cd backend && ./run-tests.sh) before submitting. For frontend changes, pnpm run build (tsc strict + vite) and pnpm run lint must pass.

Support the project

If Health Assistant has helped you take control of your health data, or if you believe privacy-first health infrastructure should exist, please consider supporting continued development and maintenance.

Buy Me A Coffee

Security

Found a vulnerability? Do not open a public issue — read SECURITY.md and use GitHub's private vulnerability reporting to disclose it responsibly.


Part of the Neuronection family

Health Assistant is one of four connected, open-source (Apache-2.0) AI assistants for life's big decisions — structured data instead of text dumps, AI that explains its reasoning, and you in control of your information.

Health Assistant
Health Assistant · this repo
Self-hosted, privacy-first health records — lab results, biomarkers, documents and AI-powered insights into your own data.
GitHub · health-assistant.io
Career Assistant
Career Assistant
A mapped universe of jobs — family tree + relation graph, AI match scoring and university pathways, built for students deciding their future.
GitHub · Docs
Study Assistant
Study Assistant
A local-first study workbench, in browser or on desktop — AI-powered course library, handwriting, chat and practice; math-first, subject-agnostic.
GitHub · Docs
Desktop Assistant
Desktop Assistant
A system-tray AI launcher for Windows, Linux and macOS — global hotkey, streaming chat, voice input, attachments; local-only history.
GitHub · Docs

Created and maintained by Ilias Chatzopoulos · LinkedIn · [email protected] · [email protected]

neuronection.com — one ecosystem, four guides · ♥ Support development · star what you use

License

Apache License 2.0 — see LICENSE and NOTICE for details. Third-party assets (anatomy surface diagrams, CC BY-SA 3.0) and clinical terminology code sets (LOINC, SNOMED CT, ICD-10, ATC, CVX) are used under their respective licenses — see NOTICE for the per-system terms and the SNOMED country-availability note.

Disclaimer

This software, including its AI chatbot and agentic features that may offer health-related information, guidance, or medication explanations, is for informational and wellness purposes only. It does not provide medical diagnosis and is not a substitute for professional medical care. Always consult qualified medical professionals for health advice, diagnoses, or before making any medical decisions based on the software's output.

探索相关项目

加载中…