deidentifying-clinical-text
一次模型下载后离线运行,适合高隐私场景
脱敏可能有漏检风险;使用前应进行验证。
在本地识别并重写临床文本中的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.
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-clinical-text/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/deidentifying-clinical-text/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