hipaa-rails

Implement HIPAA Security Rule technical safeguards in Ruby on Rails applications.

21|2|Updated May 24, 2026
One-click install
npx skills add https://github.com/sandeepmvl/rails-skills --skill hipaa-rails
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hipaa-rails
Source: https://github.com/sandeepmvl/rails-skills/tree/main/skills/50-hipaa-rails
Command: npx skills add https://github.com/sandeepmvl/rails-skills --skill hipaa-rails

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rails applications that handle protected health information (PHI) often fail to meet HIPAA requirements, exposing organizations to legal penalties, data breaches, and compliance failures. This Skill encodes the engineering controls required by the HIPAA Security Rule for Rails apps, eliminating guesswork for developers building healthcare or telehealth products.

Core Features & Use Cases

  • PHI Encryption at Rest: Implements Rails Active Record Encryption for sensitive health data, with guidance on deterministic vs non-deterministic encryption for queryable fields.
  • Immutable Audit Logging: Provides patterns for logging all PHI access with 6-year retention, ensuring logs survive source record deletion as required by HIPAA.
  • Access Control & Session Security: Includes role-based access control (RBAC) examples, minimum necessary access redaction, and HIPAA-aligned session timeout configurations.
  • Compliance Workflows: Covers break-glass access logging, PHI deletion request handling, vendor BAA validation, and breach detection setup.
  • Use Case: A telehealth startup building a Rails app to store patient medical records can use this Skill to implement required safeguards like encrypting SSNs, logging all patient record access, and verifying all third-party vendors have signed BAAs.

Quick Start

Use the hipaa-rails skill to implement required HIPAA engineering controls for your Rails app that handles protected health information, including encryption, audit logging, and access restrictions.

Frequently Asked Questions about hipaa-rails

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

FAQPage Schema
How do I encrypt protected health information (PHI) at rest in a Ruby on Rails application?

Encrypt PHI at rest in Rails using Active Record Encryption, applying deterministic encryption for queryable fields and non-deterministic encryption for sensitive health data like SSNs.

What are the HIPAA Security Rule technical safeguards for Rails apps handling protected health information?

HIPAA technical safeguards for Rails apps handling PHI include encryption at rest, immutable audit log retention for 6 years, minimum necessary access controls, and Business Associate Agreement validation for vendor services.

How do I implement immutable audit logging for PHI access in Rails to meet HIPAA compliance?

Implement immutable audit logging for PHI access in Rails by creating patterns that log all data access and retain logs for 6 years, ensuring logs survive even if the source record is deleted.

Can I use Rails Active Record Encryption for healthcare applications while maintaining queryable PHI fields?

Yes, you can use Rails Active Record Encryption for healthcare applications by applying deterministic encryption to maintain queryable PHI fields while keeping sensitive health data secure at rest.

Does a telehealth Rails app need signed Business Associate Agreements for all third-party services processing PHI?

Yes, telehealth Rails apps processing PHI must validate that all third-party vendor services have signed Business Associate Agreements (BAAs) as part of HIPAA vendor management compliance workflows.

What is the best way to set up minimum necessary access controls and session timeouts for HIPAA-compliant Rails apps?

The best way to enforce minimum necessary access in Rails is through role-based access control (RBAC), data redaction for unauthorized roles, and HIPAA-aligned session timeout configurations.