auditing-safe-harbor-checklist
O que ela faz
Esta skill confere textos desidentificados com as 18 categorias de identificadores do método Safe Harbor da HIPAA e mostra quais categorias foram tratadas e quais podem ter lacunas. É para equipes que decidem se o Safe Harbor se aplica aos seus dados.
Quando usar
- ✓Quando você precisa confirmar que uma nota atende ao método Safe Harbor da HIPAA.
- ✓Quando você quer uma lista de verificação que relacione os identificadores detectados às 18 categorias exigidas.
- ✓Quando você precisa sinalizar lacunas, como idades acima de 89 anos, geografia rara ou dados biométricos.
Link da skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/auditing-safe-harbor-checklist/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Verifique se estas notas desidentificadas atendem ao método Safe Harbor da HIPAA e liste as categorias de identificadores que ainda possam estar expostas.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente detecta identificadores no texto, relaciona cada um a uma categoria do Safe Harbor e informa quais categorias estão cobertas e quais precisam de uma análise mais atenta.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Isso é aconselhamento jurídico?
Não. É uma ferramenta de autoavaliação, e um responsável pela privacidade deve aprovar a decisão final de conformidade.
Há uma lista de referência das categorias?
Sim. A skill usa um arquivo de referência com as 18 categorias e seus mapeamentos para os rótulos de detecção.
E se eu precisar de um registro assinado?
Para um registro assinado e guardado da execução, a próxima etapa adequada é a skill de auditoria de execuções.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 5,8 mil
- Posição no ranking
- #14671
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
annotating-variants
5,8 milAjuda seu agente a prever o efeito de variantes genéticas, converter nomes HGVS em posições do genoma e incluir frequências populacionais, com anotadores gratuitos.
ask-openmed
5,8 milAjuda seu agente a escolher o fluxo de trabalho certo do OpenMed para um pedido de texto clínico, começando por uma verificação de privacidade sempre que houver dados de pacientes.
assembling-fhir-bundles
5,8 milAgrupa vários registros de saúde FHIR em um único Bundle de transação pronto para ser enviado a um prontuário eletrônico, com as referências internas ligadas corretamente.
auditing-deid-leakage
5,8 milProcura em textos clínicos desidentificados identificadores que sobraram, como SSN, números de cartão, e-mails e datas, e bloqueia a liberação se restar algum.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.