deidentifying-clinical-text

仓库创建 2025年10月4日最近提交 3 小时前SkillHot 收录 3 小时前
▸ 精选理由

一次模型下载后离线运行,适合高隐私场景

▸ 风险提示

脱敏可能有漏检风险;使用前应进行验证。

这个 Skill 做什么

在本地识别并重写临床文本中的PHI/PII以便共享或分析。

把临床文本里的姓名、日期、病历号等可识别信息在本地删除、遮盖或替换,方便把病历共享或做后续分析。会在你需要对病历、出院小结等做去标识化或选不同策略(mask/remove/replace/hash/shift_dates)时用。所有处理都在设备上完成,不会把原始 PHI/PII 发到网络,同时支持可复现的替代值、可逆映射和置信度阈值来控制安全性。

▸ 展开 SKILL.md 英文原文

Remove, mask, or replace PHI/PII in clinical free text on-device with OpenMed's deidentify(). Use when the user needs to de-identify medical notes, strip patient identifiers, redact PHI before sharing or analysis, anonymize discharge summaries, or pick a de-id method (mask vs remove vs replace vs hash vs shift_dates). Covers confidence_threshold for safety, consistent+seed for stable surrogates, keep_mapping for reversible de-id, policy= profiles, and the DeidentificationResult fields. Pairs with OpenMed extract_pii (detect spans), reidentify (restore), configuring-privacy-policies, and auditing-deidentification-runs.

数据与抓取文本脱敏医疗NLP本地执行通用
4.7k
Stars
581
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-clinical-text/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-clinical-text/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# De-identifying clinical text

`openmed.deidentify` detects PHI/PII and rewrites the text so it can be shared,
stored, or analyzed without exposing patients. It runs **fully on-device** after
a one-time model download — no network calls, no telemetry, no raw PHI leaving
the process. This is the single most important OpenMed entry point for privacy
work; everything else (policies, audit, multilingual, date-shifting) layers on
top of it.

## When to use this skill

Reach for `deidentify` when you need to transform text — replace, mask, remove,
hash, or date-shift the identifiers. If you only need to **locate** PHI spans
without changing the text, use `extract_pii` (see `extracting-pii-entitie
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有