auditing-safe-harbor-checklist
하는 일
이 스킬은 비식별화된 텍스트를 HIPAA Safe Harbor 방법의 식별자 18개 범주와 대조합니다. 어떤 범주를 처리했고 어떤 범주에 공백이 있을 수 있는지 보여 줍니다. 자기 데이터에 Safe Harbor가 적용되는지 결정하는 팀을 위한 스킬입니다.
사용하는 경우
- ✓노트가 HIPAA Safe Harbor 방법을 충족하는지 확인해야 할 때.
- ✓탐지된 식별자를 필요한 18개 범주에 대응시키는 체크리스트가 필요할 때.
- ✓89세를 넘는 나이, 드문 지역, 생체 정보 같은 공백을 표시해야 할 때.
스킬 링크
https://github.com/maziyarpanahi/openmed/blob/master/skills/auditing-safe-harbor-checklist/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 비식별화된 노트가 HIPAA Safe Harbor 방법을 충족하는지 확인하고, 여전히 노출될 수 있는 식별자 범주를 목록으로 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 텍스트에서 식별자를 찾고 각각을 Safe Harbor 범주에 대응시킨 뒤, 어떤 범주가 다뤄졌고 어떤 범주를 더 자세히 봐야 하는지 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Auditing against the HIPAA Safe Harbor checklist
The Safe Harbor method (45 CFR 164.514(b)(2)) de-identifies PHI by removing 18 specific identifier categories for the individual and their relatives, employers, and household members — and requires the covered entity to have no actual knowledge that the remainder could re-identify anyone. This skill turns that legal checklist into a concrete coverage check over OpenMed output: which of the 18 categories were detected and handled, and where the gaps are.
The full mapping table lives in
references/safe-harbor-identifiers.md —
all 18 categories, their OpenMed HIPAA class, the matching CANONICAL_LABELS,
and per-category cautions. Read it when you need the authoritative cross-walk.
When to use this skill
Use it after a de-identification run to prove coverage, or before release to
decide whether Safe Harbor is even achievable for this text. If the user needs a
signed, retained record of the run, hand off to auditing-deidentification-runs.
Quick start: coverage check
import openmed
from openmed.core.labels import LABEL_TO_HIPAA, HIPAA_SAFE_HARBOR_CLASSES
note = (
"Patient John Doe (MRN 1234567), age 92, of Smalltown, seen 2024-03-02. "
"SSN 123-45-6789, phone 617-555-0142."
)
# 1) Detect identifiers (spans only; no rewrite).
detected = openmed.extract_pii(note)
# 2) Roll each detected span up to its HIPAA Safe Harbor class.
covered = set()
for ent in detected.entities:
canonical = openmed.normalize_label(ent.label) # -> CANONICAL_LABELS form
hipaa_class = LABEL_TO_HIPAA.get(canonical) # -> one of 18 classes
if hipaa_class:
covered.add(hipaa_class)
# 3) Report which of the 18 classes were touched and which weren't observed.
missing = sorted(HIPAA_SAFE_HARBOR_CLASSES - covered)
print("covered:", sorted(covered))
print("not observed in this note:", missing)
"Not observed" is not the same as "absent" — a category may simply not occur in this note, or may have been missed. That is exactly what the human review step (below) is for.
Workflow
- De-identify with a Safe Harbor profile:
openmed.deidentify(note, policy="hipaa_safe_harbor"). This masks every identifier class by default and runs the mandatory structured-ID safety sweep. - Map detected spans to the 18 classes via
LABEL_TO_HIPAA(as above). Build a table of category → detected? → action taken. - Walk the checklist in
references/safe-harbor-identifiers.md
and flag the known gaps explicitly:
- Ages > 89 (
AGE) must be aggregated to "90+"; OpenMed flags but does not auto-cap — seeshifting-clinical-dates. - Dates keep only the year; everything else (admit/discharge/DOB) goes.
- ZIP beyond the first 3 digits, and small-population areas → mask whole.
- Rare geography (small towns) and rare characteristics (unusual occupation) can re-identify even when masked field-by-field.
- Fax shares the
PHONElabel; biometrics and full-face photos are out of scope for text — handle in the imaging/intake pipeline.
- Ages > 89 (
- Assess residual risk. Run
audit=Trueand readresidual_risk(auditing-deidentification-runs). Non-zero projected leakage → review. - Record the "no actual knowledge" judgment. A human must sign off that the remaining text cannot re-identify the individual. Automated coverage is necessary, not sufficient.
Hand-off to / from OpenMed
- Detect / de-id:
openmed.extract_pii(spans) andopenmed.deidentify(rewrite) — seedeidentifying-clinical-text. - Label mapping:
openmed.CANONICAL_LABELS,openmed.normalize_label, andLABEL_TO_HIPAA/HIPAA_SAFE_HARBOR_CLASSESinopenmed/core/labels.py. - Signed record + residual risk:
auditing-deidentification-runs(audit=True→AuditReport.residual_risk). - Profile choice:
configuring-privacy-policies— if you must keep dates or geography, Safe Harbor fails; use Expert Determination (hipaa_expert_review_assist) or a Limited Data Set (research_limited_dataset).
Edge cases & gotchas
- Coverage ≠ compliance. Detecting all 18 categories does not satisfy Safe Harbor on its own — the "no actual knowledge" residual-risk judgment is required and is a human decision.
- Ages over 89 are a transformation, not a detection. Masking t
자주 묻는 질문
법률 자문인가요?
아닙니다. 자가 점검 도구이며, 최종 규정 준수 결정은 개인정보 보호 담당자가 승인해야 합니다.
범주 참고 목록이 있나요?
네. 18개 범주 전체와 탐지 라벨과의 대응 관계를 담은 참고 파일을 사용합니다.
서명된 기록이 필요하면요?
실행 결과를 서명하고 보관하는 기록이 필요하다면, 감사 실행 스킬이 다음 단계로 알맞습니다.
상세 정보
작성자의 원본 설명
Verify OpenMed de-identified output against all 18 HIPAA Safe Harbor identifier categories and report residual re-identification risk. Use when the user must confirm a note meets HIPAA Safe Harbor (45 CFR 164.514(b)(2)), needs a coverage checklist mapping detected entities to the 18 categories, wants to flag gaps like ages over 89, rare geography, fax vs phone, or biometrics, or asks whether masking was complete. Maps OpenMed CANONICAL_LABELS to the 18 HIPAA classes and uses extract_pii / deidentify to check coverage. Pairs with OpenMed deidentifying-clinical-text and auditing-deidentification
repo: maziyarpanahi/openmed
인기도
- GitHub 스타
- 5.8k
- 순위
- #14671
- 라이선스
- 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, 카드 번호, 이메일, 날짜 같은 식별자를 검사하고, 남은 것이 있으면 공개를 막도록 돕습니다.