auditing-safe-harbor-checklist
Fungsinya
Skill ini memeriksa teks yang sudah dihapus identitasnya terhadap 18 kategori pengenal dalam metode Safe Harbor HIPAA, dan menunjukkan kategori mana yang sudah ditangani serta mana yang mungkin masih celah. Skill ini untuk tim yang memutuskan apakah Safe Harbor berlaku untuk data mereka.
Kapan dipakai
- βSaat Anda harus memastikan sebuah catatan memenuhi metode Safe Harbor HIPAA.
- βSaat Anda ingin daftar periksa yang memetakan pengenal yang terdeteksi ke 18 kategori yang disyaratkan.
- βSaat Anda perlu menandai celah seperti usia di atas 89 tahun, geografi yang jarang, atau data biometrik.
Link skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/auditing-safe-harbor-checklist/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPeriksa apakah catatan yang sudah dihapus identitasnya ini memenuhi metode Safe Harbor HIPAA, dan daftarkan kategori pengenal yang mungkin masih terpapar.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mendeteksi pengenal dalam teks, memetakan setiap pengenal ke kategori Safe Harbor, lalu melaporkan kategori mana yang sudah tercakup dan mana yang perlu diperiksa lebih dekat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah ini nasihat hukum?
Tidak. Ini adalah alat bantu pemeriksaan mandiri, dan petugas privasi harus menyetujui keputusan kepatuhan akhir.
Apakah ada daftar referensi untuk kategori itu?
Ya. Skill memakai file referensi dengan semua 18 kategori dan pemetaannya ke label deteksi.
Bagaimana jika saya membutuhkan catatan yang ditandatangani?
Untuk catatan run yang ditandatangani dan disimpan, skill audit run adalah langkah berikutnya yang tepat.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.8k
- Peringkat
- #14671
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
annotating-variants
5.8kMembantu agent Anda memperkirakan apa yang dilakukan varian genetik, mengubah nama HGVS menjadi posisi genom, dan menambahkan frekuensi populasi, dengan memakai anotator publik yang gratis.
ask-openmed
5.8kMembantu agent Anda memilih alur kerja OpenMed yang tepat untuk permintaan teks klinis, dimulai dengan pemeriksaan privasi setiap kali data pasien mungkin ada.
assembling-fhir-bundles
5.8kMengemas beberapa rekam kesehatan FHIR menjadi satu Bundle transaksi yang siap dikirim ke EHR, dengan referensi internal yang terhubung dengan benar.
auditing-deid-leakage
5.8kMemindai teks klinis yang sudah dihapus identitasnya untuk mencari pengenal yang tertinggal, seperti nomor SSN, nomor kartu, email, dan tanggal, dan memblokir rilis jika masih ada.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.