healthcare-phi-compliance

Implement Row-Level Security and audit trails for healthcare PHI and PII data.

2|Updated May 11, 2026
One-click install
npx skills add https://github.com/himanshu231204/AI_Research_agent --skill healthcare-phi-compliance-himanshu231204
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: healthcare-phi-compliance
Source: https://github.com/himanshu231204/AI_Research_agent/tree/main/.opencode/skills/healthcare-phi-compliance
Command: npx skills add https://github.com/himanshu231204/AI_Research_agent --skill healthcare-phi-compliance-himanshu231204

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Healthcare applications face severe regulatory fines, data breaches, and loss of patient trust when sensitive protected health information (PHI) and personally identifiable information (PII) are exposed via leaks, unauthorized access, or non-compliant data handling practices.

Core Features & Use Cases

  • Data Classification Tagging: Mark PHI/PII columns in database schemas to clearly identify sensitive data assets across patient records, clinician details, and financial information.
  • Access Control Implementation: Deploy Row-Level Security (RLS) policies to restrict data access to authorized staff based on their assigned facility and role, enabling multi-tenant healthcare system isolation.
  • Leak Prevention & Audit Trails: Eliminate common data exfiltration vectors (PHI in error messages, URLs, logs, and browser storage) and implement tamper-proof audit logs for all PHI access and modifications.
  • Use Case: A hospital building a new patient portal can use this skill to ensure only assigned doctors can access patient medical records, all access is logged for compliance audits, and no patient identifiers are exposed in API error responses.

Quick Start

Use the healthcare-phi-compliance skill to implement Row-Level Security policies and audit trail configurations for your patient records database to meet HIPAA and DISHA regulatory requirements.

Frequently Asked Questions about healthcare-phi-compliance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Row-Level Security to protect patient health information in a multi-tenant healthcare portal?

Row-Level Security (RLS) protects patient health information by restricting database access to authorized staff based on their assigned facility and role, ensuring multi-tenant healthcare system isolation. This prevents unauthorized access to sensitive patient medical records.

How do I prevent PHI data exfiltration through API error messages and application logs?

To prevent PHI data exfiltration, eliminate common leak vectors by ensuring protected health information is not exposed in API error responses, URLs, application logs, or browser storage. This mitigates unauthorized data access and regulatory non-compliance risks.

What is data classification tagging for PHI and PII in database schema design?

Data classification tagging for PHI and PII involves marking sensitive database columns to clearly identify protected health information and personally identifiable information across patient records, clinician details, and financial data assets to ensure proper regulatory handling.

Does this approach satisfy HIPAA and DISHA audit trail requirements for clinical systems?

Yes, this approach satisfies HIPAA, DISHA, and GDPR requirements by implementing tamper-proof audit trails that log all protected health information access and modifications, ensuring clinical systems remain compliant with healthcare data protection regulations.

When do I need to configure PHI compliance guardrails for my healthcare application?

You need to configure PHI compliance guardrails during healthcare application development workflows including database schema design, API implementation, access control configuration, and code review for clinical systems, patient portals, and administrative tools.

What is the best way to restrict access to patient medical records for assigned doctors only?

The best way to restrict access to patient medical records is deploying Row-Level Security policies combined with data classification tagging, ensuring only assigned doctors can access patient data while maintaining tamper-proof audit logs for compliance audits.