# Building With Openmed

Orient and bootstrap any project that uses OpenMed, the on-device clinical and...

- Repository: https://github.com/maziyarpanahi/openmed (5755 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add maziyarpanahi/openmed --skill building-with-openmed -g -a claude-code -y`
Codex: `npx skills add maziyarpanahi/openmed --skill building-with-openmed -g -a codex -y`
Cursor: `npx skills add maziyarpanahi/openmed --skill building-with-openmed -g -a cursor -y`
Gemini CLI: `npx skills add maziyarpanahi/openmed --skill building-with-openmed -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add maziyarpanahi/openmed`

## Description

Orient and bootstrap any project that uses OpenMed, the on-device clinical and biomedical NLP library, for named-entity recognition, PHI de-identification, FHIR export, and evaluation. Use when the user mentions OpenMed, wants to install it, asks which OpenMed capability or model fits a task, or is starting to build a clinical/medical text pipeline and needs the right entry point.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Building with OpenMed

OpenMed is an Apache-2.0, **local-first** Python library for clinical and
biomedical NLP. Models download once from the Hugging Face Hub and then run
**fully on-device**, no network calls, no telemetry, no raw PHI in logs,
caches, or temp files. This skill is the map: it tells you what OpenMed can do
and which focused skill (or API) to reach for next.

## When to use this skill

Use it to scope a task and pick an entry point. For the actual work, hand off to
the focused OpenMed skills (each is grounded in the real API):

| Task | Skill / API |
| --- | --- |
| Find and load a model | `loading-openmed-models`, `choosing-openmed-models` |
| Run clinical/biomedical NER | `extracting-clinical-entities` (`openmed.analyze_text`) |
| Zero-shot NER (no fine-tune) | `running-zeroshot-ner` (`openmed zero`) |
| Remove / mask PHI | `deidentifying-clinical-text` (`openmed.deidentify`) |
| Detect PHI spans only | `extracting-pii-entities` (`openmed.extract_pii`) |
| Restore masked PHI | `reidentifying-text` (`openmed.reidentify`) |
| Pick a privacy policy | `configuring-privacy-policies` (7 bundled profiles) |
| Non-English PHI | `deidentifying-multilingual-text` |
| Signed, no-PHI audit | `auditing-deidentification-runs` (`audit=True`) |
| Negation / temporality | `resolving-clinical-context` (`openmed.clinical`) |
| Evaluate with leakage gates | `evaluating-with-leakage-gates` (`openmed.eval`) |
| FHIR R4 export | `exporting-to-fhir` (`openmed.interop`) |
| Serve REST / MCP | `serving-openmed-rest-api`, `deploying-openmed-mcp` |
| Run on Apple Silicon / edge | `running-openmed-ondevice` (MLX / CoreML / ONNX) |

## Install

The rest: https://github.com/maziyarpanahi/openmed/blob/HEAD/skills/building-with-openmed/SKILL.md
