# fhir

This Claude Code skill connects to FHIR R4 servers and extracts structured findings from patient records. It activates for requests to access a live EHR or retrieve clinical notes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 111 installs · ★ 456 repo stars
- Author: anthropics · official Anthropic repository
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/anthropics/healthcare/tree/HEAD/plugins/healthcare/skills/fhir/SKILL.md
- Updated: 2026-08-27
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/fhir

## What it does

The skill retrieves a patient’s clinical data and notes from a FHIR R4 server, then passes note text to `clinical-note-extract` for structured analysis. It searches for a patient by name, date of birth, or MRN before fetching the requested resources; date filters can narrow the time window.

It orchestrates the `fhir` MCP server bundled with the `healthcare` plugin. Node must be on `PATH`. A secured hospital endpoint needs its FHIR R4 base URL and the organization’s registered `client_id`; authentication uses SMART. In headless environments, `connect` returns a sign-in URL. The skill itself does not write files to disk.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add anthropics/healthcare --skill fhir -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/fhir/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/fhir/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add anthropics/healthcare --skill fhir -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/fhir/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add anthropics/healthcare --skill fhir -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/fhir/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install anthropics/healthcare plugins/healthcare/skills/fhir
```

2. **Manually: put the files in place**
- File: `.github/skills/fhir/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add anthropics/healthcare --skill fhir -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/anthropics/healthcare --path plugins/healthcare/skills/fhir
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/fhir/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add anthropics/healthcare --skill fhir -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/anthropics/healthcare/tree/HEAD/plugins/healthcare/skills/fhir/SKILL.md

## When to use it
- connect to an EHR and locate a patient
- retrieve patient notes from a specified date range
- extract structured findings from clinical records

## Example prompts
- Connect to the EHR and find the patient by MRN.
- Retrieve notes about the patient's back pain from the last six months.
- Extract structured findings from the patient's clinical records.

## Similar
- [FHIR MCP Server](https://affpapa.org/en/nevibecode/mcp/fhir-mcp-server.md) — MCP server · ★ 139 repo stars
- [langcare-mcp-fhir](https://affpapa.org/en/nevibecode/mcp/langcare-mcp-fhir.md) — MCP server · ★ 75 repo stars
- [DICOM/HL7/FHIR Interoperability MCP Server](https://affpapa.org/en/nevibecode/mcp/dicomhl7fhir-interoperability-mcp-server.md) — MCP server · ★ 5 repo stars
- [Anpheros FHIR](https://affpapa.org/en/nevibecode/mcp/anpheros-fhir.md) — MCP server
- [find-skills](https://affpapa.org/en/nevibecode/skills/find-skills.md) — skill · 4400000 installs
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1600000 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 802600 installs

From the same set: [anthropics/healthcare](https://affpapa.org/en/nevibecode/by/anthropics/healthcare.md) — 9 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
