What does this skill do?

The Health Data Compliance Skill provides compliance patterns to protect Protected Health Information (PHI) and Personally Identifiable Information (PII) in healthcare applications. It covers the classification of sensitive data, the implementation of row-level security (RLS), immutable audit trails, and leak prevention through logs, URLs, and client-side errors, ensuring compliance with regulations such as HIPAA, GDPR, and DISHA.

Classification of Sensitive Data
Identify which information is PHI (name, diagnosis, medical ID) and which is sensitive PII so that you can apply the appropriate controls.
Row-Level Security (RLS)
Restrict access to patient tables by facility or medical center, ensuring that staff can only view assigned records.
Immutable Audits
Creates insert-only log tables that record every access, modification, or export of PHI, including the user, IP address, and action.
Data Leak Prevention
Avoid exposing PHI in error messages, URL parameters, console logs, or localStorage by using opaque UUIDs as identifiers.

Usage examples

🔒 Configure RLS by installation
I need to implement row-level security on the "patients" table so that each doctor can only see the patients at their facility.
📋 Create an audit table
Design an immutable, insert-only audit log that records every access to PHI, including the user, IP address, and type of action.
🛡️ Debugging and log analysis
Review this TypeScript code and fix any PHI leaks in error messages or console logs.
✅ Pre-deployment verification
Before releasing to production, verify that RLS is enabled on all sensitive tables and that there are no service keys on the client.

Features

PHI/PII Classification It distinguishes between protected health information and personally identifiable information and applies different controls to each type.
Multi-tenant isolation with RLS Implement row-level security policies so that each facility or medical center can access only its own records.
Traceable and immutable audit trail Generates insert-only log tables that prevent modification or deletion, ensuring complete traceability of access to PHI.
Prevention of Leakage Vectors Prevent the exposure of sensitive data in error messages, URLs, logs, and browser storage by using opaque UUIDs.
Regulatory Compliance It brings the system into compliance with HIPAA, GDPR, and DISHA through access control, auditing, and data protection measures.

Frequently asked questions

The skill provides compliance templates aligned with HIPAA, GDPR, and DISHA, covering data classification, access control, auditing, and data leakage prevention.
No. The skill provides code templates and guidelines that are applied directly to your database (SQL) and application (TypeScript or other languages).
The examples of RLS are geared toward databases that support Row Level Security (such as PostgreSQL or Supabase), but the principles of classification and auditing apply to any system.
Yes. The skill is designed as a guide to reusable patterns. You can adapt policies, audit tables, and error handling to your application's architecture.
Health Data Compliance — Protecting PHI/PII with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.