Aller au contenu
Skillpedia
Analyse et tableurs5.8k · #14680

building-with-openmed

Ce qu’il fait

Cette compétence sert de carte de départ pour OpenMed, une bibliothèque qui analyse et dépersonnalise les textes cliniques sur votre propre ordinateur. Elle s'adresse aux équipes qui commencent un projet de texte clinique ou médical et ont besoin du bon point d'entrée.

Quand l’utiliser

  • ✓Quand vous voulez installer OpenMed ou démarrer une chaîne de texte clinique avec lui.
  • ✓Quand vous ne savez pas quelle capacité ou quel modèle d'OpenMed convient à votre tâche.
  • ✓Quand vous avez besoin de trouver la bonne compétence OpenMed ciblée pour l'extraction, la dépersonnalisation ou l'évaluation.

Lien du skill

https://github.com/maziyarpanahi/openmed/blob/master/skills/building-with-openmed/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/maziyarpanahi/openmed/blob/master/skills/building-with-openmed/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je commence un projet de notes cliniques. Quelles fonctionnalités d'OpenMed dois-je utiliser pour extraire les diagnostics et retirer les noms des patients ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent identifie votre objectif, le relie à la capacité ou à la compétence ciblée d'OpenMed correspondante, puis vous indique la bonne première étape.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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

pip install openmed                 # core: NER + de-identification
pip install "openmed[hf]"           # add Hugging Face model downloads
pip install "openmed[mcp]"          # Model Context Protocol server
pip install "openmed[service]"      # FastAPI REST service
pip install "openmed[mlx]"          # Apple Silicon acceleration
pip install "openmed[presidio]"     # Microsoft Presidio bridge

Extras map to capabilities: cli, mcp, service, presidio, spacy, langchain, gliner (zero-shot), multimodal/ocr-paddle (document intake), mlx/coreml/onnx (on-device backends), hf (model hub), dev (tests/lint).

The three core calls

import openmed

# 1) Named-entity recognition (token classification)
result = openmed.analyze_text(
    "Patient prescribed 500 mg metformin for type 2 diabetes.",
    model_name="disease_detection_superclinical",  # registry key, HF id, or local path
    output_format="dict",                           # dict | json | html | csv
)

# 2) De-identify PHI (mask | remove | replace | hash | shift_dates)
deid = openmed.deidentify(
    "John Doe (MRN 12345) seen on 2024-03-02.",
    method="replace",
    policy="hipaa_safe_harbor",   # bundled policy profile
)
print(deid.deidentified_text)     # PHI removed; deid.pii_entities lists the spans

# 3) Detect PHI spans without changing the text
pii = openmed.extract_pii("Call Dr. Smith at 617-555-0123.")  # PredictionResult
spans = pii.entities                                          # the PHI spans

analyze_text and deidentify are the workhorses. Everything else (multilingual, audit, policies, FHIR, eval) layers on top of these.

Discover what is available at runtime

Never hardcode model lists or language counts — query them:

import openmed
openmed.list_model_categories()          # e.g. Privacy, Disease, Oncology, Genomics ...
openmed.get_models_by_category("Disease")
openmed.get_pii_models_by_language("es")
from openmed.core.pii_i18n import SUPPORTED_LANGUAGES   # de-id language set

CLI equivalents: openmed models list, openmed models info <key>, openmed analyze --text "<text>" --model <key> --format json. MCP/REST expose the same surface as tools (openmed_analyze_text, openmed_deidentify, openmed_list_models, …).

Non-negotiable rules when building with OpenMed

  • Local-first. Do not add cloud calls to PHI workflows. Models run on-device after a one-time download.
  • No raw PHI in artifacts. Logs, caches, audit reports, and error messages must use offsets, hashes, and labels — never plaintext identifiers. Use audit=True for tamper-evident, no-PHI audit output.
  • Permissive licensing only. Do not bundle UMLS, SNOMED CT, CPT, MIMIC, i2b2, or n2c2 assets. Call restricted terminologies out-of-process with the user'
Questions fréquentes

OpenMed envoie-t-il mes données sur Internet ?

Non. Les modèles sont téléchargés une fois depuis le hub de modèles, puis le traitement s'effectue sur votre appareil sans appel réseau.

Appelle-t-il un service cloud ?

Non. Le traitement est local, et le seul téléchargement est celui du modèle depuis le hub de modèles.

OpenMed est-il gratuit ?

Il s'agit d'une bibliothèque sous licence Apache-2.0, donc open source.

Détails

Description originale de l’auteur

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.

repo: maziyarpanahi/openmed

Popularité

Étoiles GitHub
5.8k
Position au classement
#14680
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires