Clinical text extraction
Pulls diseases, drugs, anatomy and genes out of medical notes with OpenMed and saves them as JSON or CSV.
Claude's review
7/10 Concrete OpenMed API usage, parameters and gotchas for clinical entity extraction.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Run clinical and biomedical named-entity recognition on medical text with OpenMed's analyze_text. Use when the user wants to extract diseases, drugs, anatomy, genes, or other biomedical entities from notes; needs NER output as dict/json/html/csv; wants to filter by confidence, group entities, toggle sentence detection, or save spans to JSONL; or wants the openmed analyze CLI. Pairs with loading-openmed-models and choosing-openmed-models, and runs after deidentifying-clinical-text in a privacy-first pipeline.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: extracting-clinical-entities
description: "Run clinical and biomedical named-entity recognition on medical text with OpenMed's analyze_text. Use when the user wants to extract diseases, drugs, anatomy, genes, or other biomedical entities from notes; needs NER output as dict/json/html/csv; wants to filter by confidence, group entities, toggle sentence detection, or save spans to JSONL; or wants the openmed analyze CLI. Pairs with loading-openmed-models and choosing-openmed-models, and runs after deidentifying-clinical-text in a privacy-first pipeline."
license: Apache-2.0
metadata:
project: OpenMed
category: openmed-core
pairs: adjacent
version: "1.0"
---
# Extracting Clinical Entities
`openmed.analyze_text` runs a token-classification model over medical text and
returns structured entities with character offsets and confidence scores. It runs
**on-device** after a one-time model download.
## When to use
- Pull diseases, medications, anatomy, genes, proteins, etc. out of clinical text.
- You need exact **character spans** (start/end) plus **confidence** per entity.
- You want output as objects, JSON, an HTML highlight view, or CSV.
- You are building the "extract entities" stage of a clinical NLP pipeline.
To choose a model, see `choosing-openmed-models`. To load it once and reuse it,
see `loading-openmed-models`. **In a PHI workflow, de-identify first** (see
`deidentifying-clinical-text`), then run NER on the redacted text.
## Install
```bash
pip install "openmed[hf]"
```
## Quick start
```python
import openmed
note = (
...From maziyarpanahi's repository, Apache-2.0 licence.
Related skills
-
Checked
PyHealth clinical models
Builds and checks PyHealth machine learning pipelines on clinical data, avoiding data leakage and API traps.
7/101 credit -
Checked
Patient Explanation Helper
Helps clinicians explain scans and diagnoses in plain words that ease fear without overpromising.
7/101 credit -
Checked
NeuroKit2 Biosignal Analysis
Runs reproducible heart rate, skin response and breathing signal analysis in Python with NeuroKit2.
7/101 credit -
Checked
Drug Safety Signal Finder
Mines FDA adverse event reports for drug reactions reported more often than expected, using standard statistics.
7/101 credit