A comprehensive formal verification ruleset for HIPAA Privacy Rule, Security Rule (including 2025 updates),
and AI governance requirements. Version 2.0.0 with 76 constraints.
76
Formal Constraints
104
Data Extractors
14
Categories
Z3
SMT Verified
1. Overview
The HIPAA ontology provides formal verification of AI/LLM outputs against
healthcare compliance requirements. Unlike pattern-matching or ML-based approaches, aare.ai
uses the Z3 SMT solver to mathematically prove
whether outputs comply with HIPAA regulations.
Why Automated Reasoning? Traditional guardrails use probabilistic detection
(e.g., "98% accuracy"). For healthcare compliance with penalties up to $2.1M per violation,
you need mathematical certainty. Z3 provides provable guarantees.
AI Governance - Training data consent, human review, algorithm transparency, BAA for AI vendors
Special Protections - Psychotherapy notes, substance abuse (42 CFR Part 2), genetic info (GINA)
Business Associates - Third-party BAA, subcontractor chains, cloud provider compliance
2. What Problem Does This Solve?
Healthcare organizations deploying LLMs face significant compliance risks:
$9.77 million - Average cost of a healthcare data breach in 2024 $2.1 million - Maximum HIPAA penalty per violation 259 million - Individuals affected by healthcare breaches in 2024 (up from 27M in 2020)
The Challenge with AI in Healthcare
LLMs can inadvertently disclose PHI in responses
AI-generated recommendations may lack required disclosures
External AI vendors (ChatGPT, Claude) require Business Associate Agreements
The 2025 HIPAA Security Rule makes many safeguards mandatory (no longer "addressable")
OCR now explicitly states AI systems processing ePHI are subject to the Security Rule
How aare.ai Helps
This ontology enables real-time verification of LLM outputs before they reach users.
When integrated via the MCP server, Claude can self-verify
its healthcare responses against 76 formal constraints.
3. Constraint Categories
PHI Detection (15 constraints)
Detects and blocks disclosure of the 18 HIPAA identifiers:
Patient names, dates of birth, Social Security numbers
Street addresses, phone numbers, email addresses
Medical record numbers, health plan IDs, account numbers
Device identifiers, IP addresses, URLs
Biometric data, photographs, vehicle identifiers
AI Governance (6 constraints)
New requirements for AI systems processing PHI:
AI_TRAINING_DATA_CONSENT - PHI used for AI training requires explicit patient consent
AI_MODEL_BIAS_DISCLOSURE - AI recommendations must disclose model limitations
AI_HUMAN_REVIEW - AI clinical decisions require qualified human review
AI_ALGORITHM_TRANSPARENCY - AI outputs must reference algorithm version/source
AI_VENDOR_BAA - External AI vendors (OpenAI, Anthropic) require BAA
AI_RISK_ASSESSMENT - AI systems require documented risk assessment
2025 Security Rule (6 constraints)
Based on the December 2024 HHS proposed rule updates:
SECURITY_MFA_REQUIRED - Multi-factor authentication for PHI access
SECURITY_ENCRYPTION_AT_REST - PHI must be encrypted at rest
SECURITY_ASSET_INVENTORY - PHI systems must be in documented inventory
from aare_core import SMTVerifier, LLMParser, OntologyLoader
loader = OntologyLoader()
ontology = loader.load('hipaa-v1')
parser = LLMParser()
verifier = SMTVerifier()
llm_output = """
Based on the patient's medical record, the AI system recommends
considering metformin. This recommendation was reviewed by Dr. Smith
and has limitations - consult your physician for clinical judgment.
"""
values = parser.parse(llm_output, ontology)
result = verifier.verify(values, ontology)
print(f"Compliant: {result['verified']}")
print(f"Violations: {len(result['violations'])}")