configuring-privacy-policies
하는 일
이 스킬은 임상 텍스트를 비식별화할 때 쓰는 개인 정보 프로필을 고르고 맞춤 설정하도록 돕습니다. 예를 들어 HIPAA Safe Harbor, GDPR 가명처리, 연구용 데이터 세트가 있습니다. 규제 환경에 맞는 보호 수준이 필요한 팀을 위한 스킬입니다.
사용하는 경우
- ✓HIPAA Safe Harbor, 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 건강 기록을 EHR로 보낼 수 있도록 하나의 트랜잭션 Bundle로 묶고, 내부 참조를 올바르게 연결하도록 에이전트를 돕습니다.
auditing-deid-leakage
5.8k비식별화된 임상 텍스트에 남은 SSN, 카드 번호, 이메일, 날짜 같은 식별자를 검사하고, 남은 것이 있으면 공개를 막도록 돕습니다.