Skip to content
Backend
Skill

/healthchain

Use when building or debugging Python software that connects to FHIR APIs, builds or validates FHIR resources, serves CDS Hooks or clinical documents, or exposes FHIR tools over MCP or LangChain — including work with Epic, Cerner, Medplum, and other FHIR servers.

From plugin
healthchain
2311 skill

Claude Code

$ npx -y skills add healthchainai/HealthChain --skill healthchain --agent claude-code

SKILL.md

healthchain.SKILL.md
name: healthchain
description: Use when building or debugging Python software that connects to FHIR APIs, builds or validates FHIR resources, serves CDS Hooks or clinical documents, or exposes FHIR tools over MCP or LangChain — including work with Epic, Cerner, Medplum, and other FHIR servers.

HealthChain

HealthChain is an open-source Python library for live FHIR connectivity and validated FHIR tooling, built for research software, healthcare data, and AI teams.

Install: `pip install healthchain`. Optional capability comes from extras: `healthchain[mcp]`, `[langchain]`, `[cda]`, `[sandbox]`, `[examples]`.

Four building blocks

Pick by what the task needs. Full signatures are in `reference/api.md`; end-to-end runnable code is in `reference/recipes.md`.

| Block | Use it when | Entry point | |---|---|---| | **Gateway** | Connecting to one or many EHR FHIR APIs, or serving CDS Hooks / clinical documents | `HealthChainAPI`, `FHIRGateway` | | **FHIR & Validation** | Creating, validating, reading, or coding FHIR resources | `healthchain.fhir` | | **Agent Tools** | Handing an agent typed FHIR tools over MCP or LangChain | `FHIRToolkit` | | **Sandbox** | Proving the service works with no real EHR | `SandboxClient`, `healthchain sandbox run` |

`Pipeline` and `Document` sit under the hood — supporting primitives that carry text plus FHIR through protocol flows. Reach for them when wiring a model into a gateway flow, not as a starting point.

Common CLI workflows

healthchain new my-app -t fhir-gateway   # scaffold (also: cds-hooks, default)
healthchain serve                        # run app:app with uvicorn
healthchain sandbox run --url URL        # fire test requests at it (--url required)
healthchain seed medplum ./data          # load demo FHIR into a test server
healthchain mcp --bundle patient.json    # serve FHIR agent tools over stdio
healthchain status                       # what healthchain.yaml is configured to do

Starting from nothing, `healthchain new my-app` creates the directory. Already inside a project the user chose? `healthchain new .` scaffolds into the current directory instead, and refuses rather than overwriting anything already there. Either way you get `healthchain.yaml`, which holds service settings and named FHIR sources while credentials remain in environment variables. Hand-writing `app.py` skips the config-driven setup.

Why the helpers instead of raw Pydantic

`create_*` gives flat constructors — scalars in, correctly nested resources out — and reduces FHIR boilerplate. Callers remain responsible for clinical assertions; helpers provide documented defaults and never guess clinical codes. Some helpers generate IDs or metadata, and `create_document_reference` currently adds a timestamp. `validate_resource` checks structure and required primitive-code bindings, returning a `ValidationReport` rather than raising so a build → validate → correct loop reads the report as data.

What's not checked: profiles, FHIRPath invariants, `CodeableConcept` value-set bindings, and reference integrity. Full conformance may require a server's `$validate`. Licensed terminologies like SNOMED need their own license to resolve display text.

Before writing code

Check exact signatures — and removed 0.15 names — in `reference/api.md` before using the Gateway surface; it is not guessable from memory alone.

  • Deeper API docs: https://healthchainai.github.io/HealthChain/llms.txt
Read more
Stats
231
Stars
Active
Maintenance
Python
Language
Apache-2.0
License
Last commit
Created
Added

Repo: healthchainai/HealthChain

@healthchainai
Ships withhealthchain

Python SDK for healthcare AI — typed, validated FHIR tools for agents, real-time EHR connectivity, production deployment ✨ 🏥

Stars on GitHub

Momentum

stars in total
231
Star history of healthchainai/HealthChain on GitHub, a chart by star-history.com

More skills from other plugins.

cli

cli

SpacetimeDB CLI reference for initializing projects, building modules, publishing databases, querying data, and managing servers

spacetimedbtoday26k
@clockworklabs@clockworklabsInstall Skill
backend

backend

Use this skill when contributing to InsForge's backend package. This is for maintainers editing backend routes, services,…

insforge11d13k
@insforge@insforgeInstall Skill
exa-agent

exa-agent

Use Exa Agent for multi-step web research, list-building, enrichment, structured output, run continuation, and coverage…

exa13d5.2k
@exa-labs@exa-labsInstall Skill
fde-ontology

fde-ontology

多源输入→本体检出→AI审核→场景升级→代码生成 自动化管线

dgiot5w4.9k
@dgiot@dgiotInstall Skill

Questions about healthchain.

Which coding agents can use healthchain?
healthchain installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.