본문으로 건너뛰기
Skillpedia
보안5.8k · #14686

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/maziyarpanahi/openmed/blob/master/skills/configuring-privacy-policies/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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), or keep. Set per label in the profile's actions map.
  • 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_leak uses high_recall_union across 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬