configuring-privacy-policies
できること
このスキルは、臨床テキストの匿名化で使うプライバシープロファイルを選び、調整します。HIPAAセーフハーバー、GDPRの仮名化、研究用データセットなどです。規制の状況に合った保護の水準が必要なチーム向けです。
使う場面
- ✓HIPAAセーフハーバー、GDPR、PIPEDA、研究用データセットのプライバシープロファイルを選ぶとき。
- ✓研究で日付や地域を残しつつ、直接の識別子は取り除く必要があるとき。
- ✓自分の記録番号の形式など、独自の代替データの形式が必要なとき。
スキルのリンク
https://github.com/maziyarpanahi/openmed/blob/master/skills/configuring-privacy-policies/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“日付と郵便番号が必要な研究用データセットには、どの匿名化プロファイルを使うべきですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは規制の文脈を、同梱の7つのプロファイルのいずれかに対応づけ、それが何を変えるかを説明します。必要に応じて、研究用や独自の形式に設定を調整します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Configuring privacy policies
A policy profile is a named bundle of de-identification decisions: which
action (mask/redact/replace/keep) applies to each label, how aggressively
detectors arbitrate, whether the mandatory safety sweep runs, and whether a
reversible mapping is produced. OpenMed ships seven profiles. Pass one by name
to deidentify(policy=...) and you get a compliance-aligned default without
hand-wiring 50+ per-label actions. Everything runs on-device.
When to use this skill
Use it to pick the right policy= for a regulatory context, to understand what
a profile actually changes, or to go beyond the bundle — keeping quasi-
identifiers for research, or registering a custom surrogate generator (e.g. your
own MRN format).
Quick start
import openmed
note = "Jane Roe, DOB 1979-04-11, lives in Cambridge MA 02139. SSN 123-45-6789."
# HIPAA Safe Harbor: mask every identifier class.
safe = openmed.deidentify(note, policy="hipaa_safe_harbor")
# GDPR pseudonymization: replace with fakes AND keep a reversible mapping.
gdpr = openmed.deidentify(note, policy="gdpr_pseudonymization")
mapping = gdpr.mapping # present because the profile sets keep_mapping=True
# Research limited dataset: mask direct identifiers, KEEP quasi-identifiers
# (dates, age, ZIP, geography) so the data stays analytically useful.
lds = openmed.deidentify(note, policy="research_limited_dataset")
The seven bundled profiles
Each profile lives in openmed/core/policies/<name>.json. Summary of what each
actually configures:
| Profile | Default action | Quasi-identifiers | Mapping | Safety sweep | Use case |
|---|---|---|---|---|---|
hipaa_safe_harbor |
mask all | masked | none | mandatory | HIPAA §164.514(b)(2) Safe Harbor — strip all 18 identifier classes |
hipaa_expert_review_assist |
redact | redacted; clinical concepts kept | none | optional | Assist Expert Determination (§164.514(b)(1)); keeps microbiology/clinical terms for a statistician to assess residual risk |
gdpr_pseudonymization |
replace | replaced; clinical kept | kept + reversible | mandatory | GDPR Art. 4(5) pseudonymization — reversible under controlled key |
canada_pipeda |
replace (IDs masked) | replaced | kept + reversible | mandatory | PIPEDA-aligned; like GDPR but masks ID_NUM/SSN outright |
research_limited_dataset |
mask direct ids | keeps dates, age, ZIP, geography, org, job | none | mandatory | HIPAA Limited Data Set (§164.514(e)) — usable for research with a DUA |
clinical_minimal_redaction |
mask direct ids | keeps quasi-identifiers | none | optional | Internal clinical use where readability matters; lighter cascade |
strict_no_leak |
mask everything | masked; even clinical concepts masked | none | mandatory | Maximum-recall, union arbitration, all cascade tiers — zero-leakage posture |
Key dimensions to reason about:
default_action—mask([NAME]),redact,replace(fake value), orkeep. Set per label in the profile'sactionsmap.policy_label_actions— coarse action by class:DIRECT_IDENTIFIER/QUASI_IDENTIFIER/CLINICAL_CONCEPT. Research and minimal-redaction profiles keep quasi-identifiers; strict-no-leak masks even clinical concepts.keep_mapping/reversible_id— only GDPR and PIPEDA produce a reversible mapping. Treat that mapping as PHI.safety_sweep_mandatory— deterministic structured-ID sweep (SSN, MRN- like, emails) that runs regardless of model confidence. Off only for the two "minimal/assist" profiles.arbitration_mode/forced_cascade_tiers—strict_no_leakuseshigh_recall_unionacross tiers R0–R3 (most aggressive); minimal redaction uses only R0–R1.
Choosing: map regulation → profile
- Publish or share data with no DUA, US →
hipaa_safe_harbor. - Statistician will certify low risk (keep clinical signal) →
hipaa_expert_review_assist, then human Expert Determination. - EU subjects, need reversibility under a key →
gdpr_pseudonymization. - Canadian subjects →
canada_pipeda. - Research cohort needing dates/age/geography →
research_limited_dataset(requires a Data Use Agreement). - Internal clinical workflow, readability first →
clinical_minimal_redaction. - Adversarial / zero-tolerance leakage →
strict_no_leak.
Customizing beyond the bundle
When a profile is close but not
よくある質問
プロファイルはいくつありますか?
OpenMedには7つの同梱プロファイルがあり、それぞれが決まった匿名化の判断のまとまりです。
テキストはコンピューターの外に出ますか?
いいえ。プロファイルは端末上で動くので、テキストはそこにとどまります。
独自の生成器を作れますか?
はい。MRNの形式など、独自の代替データの生成器を登録する方法も扱います。
詳細
作者による元の説明
Select and customize OpenMed's seven bundled privacy policy profiles for de-identification, and build custom surrogate generators. Use when the user asks which policy fits HIPAA Safe Harbor vs Expert Determination vs GDPR vs PIPEDA vs a research limited dataset vs strict no-leak, wants to pass policy= to deidentify(), needs to keep quasi-identifiers for research, or must register a custom MRN/name/address surrogate provider. Covers the profile-to-use-case map, AnonymizerConfig/Anonymizer for fine control, and register_clinical_provider / register_label_generator. Pairs with OpenMed deidentifyi
repo: maziyarpanahi/openmed
人気
- GitHubのスター
- 5.8k
- ランキング
- #14686
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
annotating-variants
5.8kエージェントが、無料の公開アノテーターを使って、遺伝子バリアントの作用を予測し、HGVS名をゲノム上の位置に変換し、集団の頻度を付与できるよう支援します。
ask-openmed
5.8kエージェントが、臨床テキストの依頼に合ったOpenMedのワークフローを選べるよう支援します。患者データが含まれる可能性がある場合は、必ずプライバシーの確認から始めます。
assembling-fhir-bundles
5.8kエージェントが、複数のFHIR健康記録を、内部の参照を正しくつないだ一つのトランザクションBundleにまとめ、EHRに送れる状態にします。
auditing-deid-leakage
5.8kエージェントが、匿名化済みの臨床テキストに残っている識別子(SSN、カード番号、メール、日付など)をスキャンし、残っていれば公開を止めます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。