Healthcare (U.S. — HIPAA)
Start with selected HIPAA controls for protected health information, minimum-necessary access, retention and clinical review.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Similarity threshold 0.70 | Block |
| rbac | Request | Requires the X-User-ID, X-Org-ID and X-User-Role headers | Block |
| hipaa-phi-detector | Request | Adds HIPAA-style PHI checks to the shared redaction pipeline | Redact |
| pii-detector | Request | Healthcare identifiers; 11 custom identifier patterns | Redact |
| dlp-filter | Request | 4 blocked terms such as “export all patients” and “download patient database”; 7 custom patterns | Block |
| healthcare-compliance | Response | 13 blocked phrases such as “diagnosis:” and “you likely have”; adds 2 disclaimers; FDA class II | Block, add disclaimers |
| citation-verifier | Response | Requires cited sources; confidence ≥ 0.90 | Flag |
| quality-scorer | Response | Accuracy ≥ 0.92; combined score ≥ 0.85; healthcare profile | Block |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "cfg_demo_healthcare_us_hipaa"
name: "demo-healthcare-us-hipaa"
version: "0.2.0"
enabled: true
author: "local"
description: "HIPAA Privacy & Security Rule compliance for US healthcare AI systems"
# HIPAA §164.312(b) — audit controls require logging all access
history:
capture:
enabled: true
mode: redacted
# Rate limiting prevents bulk PHI extraction attempts
distributed_rate_limit:
backend: valkey
url_env: VERDICTAN_REDIS_URL
policies:
chain:
- "prompt-injection"
- "rbac"
- "hipaa-phi-detector"
- "pii-detector"
- "dlp-filter"
- "healthcare-compliance"
- "citation-verifier"
- "quality-scorer"
- "audit-logger"
policy:
prompt-injection:
embedding_threshold: 0.70
response:
action: "block"
rbac:
# §164.312(a)(1) — access control: require authenticated user identity
deny_if_missing:
- "X-User-ID"
- "X-Org-ID"
- "X-User-Role"
hipaa-phi-detector:
# Safe Harbor method (§164.514(b)(2)) — all 18 HIPAA identifiers
action: redact
pii-detector:
healthcare_mode: true
action: redact
detect_patterns:
- "(?i)(?:mrn|mr#|medical\\s+record)\\s*(?:#|:|number)?\\s*[:#-]?\\s*[A-Z0-9-]{6,12}"
- "(?i)(?:patient\\s*id|patient\\s*#|pt\\s*id)\\s*[:#-]?\\s*[A-Z0-9-]{6,16}"
- "(?i)(?:insurance|member|policy)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{6,20}"
- "(?i)\\bmedicare\\s*(?:id|#|number|beneficiary)?\\s*[:#-]?\\s*[A-Z0-9-]{6,20}"
- "(?i)\\bmedicaid\\s*(?:id|#|number)?\\s*[:#-]?\\s*[A-Z0-9-]{6,20}"
- "(?i)\\bnpi\\s*[:#-]?\\s*\\d{10}\\b"
- "(?i)\\bdea\\s*[#-]?\\s*[A-Z]{2}\\d{7}\\b"
- "(?i)(?:device|unit|asset)\\s+serial\\s*(?:#|number)?\\s*[:#-]?\\s*[A-Z0-9-]{4,24}"
- "(?i)\\bbiometric\\s*(?:id|identifier|template)\\s*[:#-]?\\s*[A-Z0-9-]{4,40}"
- "(?i)\\b(?:facial\\s+image|face\\s+photo|portrait)\\b"
- "(?i)(?:vehicle|unit|fleet)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
dlp-filter:
# Prevent bulk extraction of clinical data
detect_patterns:
- "(?i)\\bpatient\\s+(?:list|roster|census)\\b"
- "(?i)\\bcensus[_\\s-]+report\\b"
- "(?i)\\bdischarge\\s+summary\\b"
- "(?i)\\boperative\\s+note\\b"
- "(?i)\\bpathology\\s+report\\b"
- "(?i)\\bradiology\\s+report\\b"
- "(?i)\\bpharmacy\\s+(?:record|profile|history)\\b"
action: block
blocked_terms:
- "export all patients"
- "download patient database"
- "list all records"
- "bulk extract"
healthcare-compliance:
# Prevent AI from providing clinical advice (practicing medicine)
blocked_patterns:
- "diagnosis:"
- "you likely have"
- "you are suffering from"
- "your diagnosis is"
- "i diagnose you"
- "prescribe"
- "take this medication"
- "increase your dosage"
- "stop taking"
- "discontinue"
- "your prognosis is"
- "you will recover"
- "you have cancer"
required_disclaimers:
- "This is not medical advice"
- "Consult your healthcare provider"
fda_class: "II"
citation-verifier:
require_sources: true
min_confidence: 0.90
quality-scorer:
industry: healthcare
thresholds:
min_aggregate: 0.85
min_accuracy: 0.92
audit-logger: {}