Command Palette

Search for a command to run...

Назад к скиллам
скилл № 14063

hipaa-compliance

HIPAA compliance for software that handles protected health information (PHI): which data counts as PHI, what the Security Rule requires of encryption, access…

БесплатноБез исполняемых скриптов
TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Установить hipaa-compliance в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

HIPAA Compliance

Overview

HIPAA's rules are in 45 CFR Parts 160 and 164. The Security Rule (45 CFR 164.302-318) applies to covered entities (providers, health plans, clearinghouses) and to business associates (vendors that create, receive, maintain or transmit PHI for them). Rule text was read from eCFR, current to 2026-10-22; HHS web pages were not reachable for this check, so everything below comes from the regulation itself.

Key points that are often misstated:

  • The Security Rule is flexible. Standards are mandatory; many implementation specifications are "addressable", meaning you must implement them or document why an equivalent measure is reasonable (164.306(d)). Encryption at rest and in transit and automatic logoff are addressable, not mandatory, in the rule text as of this date. Unique user IDs, emergency access, audit controls and risk analysis are required.
  • The rule names no cipher, key length, TLS version or idle-timeout number. AES-256 and TLS 1.2+ are good practice and the usual way to treat PHI as "secured", not a regulatory number.
  • Civil money penalties depend on culpability tier (did not know; reasonable cause; willful neglect corrected within 30 days; willful neglect not corrected) in 45 CFR 160.404. The dollar amounts are inflation-adjusted every year in 45 CFR 102.3; look them up there rather than quoting a fixed range.

Instructions

1. Identify PHI

PHI is individually identifiable health information held by a covered entity or business associate. De-identification by the Safe Harbor method (164.514(b)(2)) means removing all 18 identifier types for the individual and relatives, employers and household members, and having no actual knowledge the rest could identify the person:

  1. Names
  2. Geographic subdivisions smaller than a state (street, city, county, ZIP; the first three ZIP digits are allowed only where that area holds more than 20,000 people)
  3. All elements of dates except year directly related to the person (birth, admission, discharge, death), and all ages over 89
  4. Telephone numbers
  5. Fax numbers
  6. Email addresses
  7. Social security numbers
  8. Medical record numbers
  9. Health plan beneficiary numbers
  10. Account numbers
  11. Certificate/license numbers
  12. Vehicle identifiers and serial numbers, including license plates
  13. Device identifiers and serial numbers
  14. Web URLs
  15. IP addresses
  16. Biometric identifiers, including finger and voice prints
  17. Full-face photographs and comparable images
  18. Any other unique identifying number, characteristic or code

An automatic detector (regex or NER) can help find candidates in logs and free text, but it cannot prove data is de-identified. Treat its output as a review aid.

2. Encrypt PHI

Encryption is addressable (164.312(a)(2)(iv) at rest, 164.312(e)(2)(ii) in transit), and PHI encrypted per the Secretary's guidance counts as not "unsecured" for breach purposes (164.402), which usually removes the notification duty if the key was not exposed. In practice, encrypt both.

import base64, os
from cryptography.hazmat.primitives.ciphers.aead import AESGCM

def encrypt_field(plaintext: str, key: bytes, context: bytes) -> dict:
    nonce = os.urandom(12)  # unique per encryption, 96 bits for GCM
    ct = AESGCM(key).encrypt(nonce, plaintext.encode(), context)
    return {"nonce": base64.b64encode(nonce).decode(), "ciphertext": base64.b64encode(ct).decode()}

def decrypt_field(blob: dict, key: bytes, context: bytes) -> str:
    return AESGCM(key).decrypt(
        base64.b64decode(blob["nonce"]), base64.b64decode(blob["ciphertext"]), context
    ).decode()

key = AESGCM.generate_key(bit_length=256)  # in production: fetched from a KMS, never stored with the data
blob = encrypt_field("Hypertension, stage 2", key, b"patient:48213:diagnosis")
print(decrypt_field(blob, key, b"patient:48213:diagnosis"))   # Hypertension, stage 2
# decrypt_field(blob, key, b"patient:99999:diagnosis") raises InvalidTag: the context binds the field to its record

Keep keys in a managed KMS or vault (AWS KMS, Google Cloud KMS, HashiCorp Vault), separate from the database that holds the ciphertext. For data in transit, terminate TLS 1.2 or newer (disable SSLv3, TLS 1.0 and 1.1), and use disk or database encryption from your cloud provider for the storage layer.

3. Audit controls and access control

164.312(b) requires mechanisms that record and examine activity in systems with ePHI; 164.308(a)(1)(ii)(D) requires regular review of those records. Log who did what to which patient record, never the PHI itself.

import hashlib, json
from datetime import datetime, timezone

def audit_entry(prev_hash: str, user_id: str, action: str, patient_id: str,
                resource: str, ip: str, success: bool) -> dict:
    entry = {
        "timestamp": datetime.now(timezone.utc).isoformat(),
        "user_id": user_id, "action": action, "patient_id": patient_id,
        "resource": resource, "ip_address": ip, "success
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _scores.json

FAQ

Что делает скилл hipaa-compliance?

HIPAA compliance for software that handles protected health information (PHI): which data counts as PHI, what the Security Rule requires of encryption, access control, audit controls and logoff, how business associate agreements work, and the Breach Notification Rule deadlines. Use when someone asks to "make this app HIPAA compliant", "encrypt PHI", "add audit logging for patient records", "check what a BAA needs", or "prepare for a hospital security review". Not legal advice.

Как установить скилл hipaa-compliance?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hipaa-compliance запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hipaa-compliance с