HIPAA (Covered Entity)

Map HIPAA covered-entity controls for protected health information, access, audits, transmission security and breach response.

Control framework · Clinical zero-retention, Private cloud

What it checks

Policies in the HIPAA (Covered Entity) template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestDetects jailbreak and prompt-injection signalsBlock
rbacRequestRequires the X-User-ID, X-Org-ID and X-User-Role headersBlock
hipaa-phi-detectorRequestAll 18 Safe Harbor identifier typesRedact
pii-detectorRequestHealthcare identifiers; 3 custom identifier patternsRedact
dlp-filterRequest3 blocked terms such as “export all patients” and “download patient database”Block
healthcare-complianceResponse3 blocked phrases such as “diagnosis:” and “prescribe”; adds 2 disclaimers; FDA class IIBlock, add disclaimers
quality-scorerResponseAccuracy ≥ 0.90; combined score ≥ 0.85Block
human-oversightResponseReturns an escalated result instead of the assistant contentEscalate
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "fw_hipaa_baseline"
  name: "hipaa-baseline"
  version: "0.1.0"
  enabled: true
  author: "verdictan"
  description: "HIPAA baseline starter controls for PHI handling, disclaimers, and review."
policies:
  chain:
    - "prompt-injection"
    - "rbac"
    - "hipaa-phi-detector"
    - "pii-detector"
    - "dlp-filter"
    - "healthcare-compliance"
    - "quality-scorer"
    - "human-oversight"
    - "audit-logger"
policy:
  prompt-injection: {}
  rbac:
    deny_if_missing: ["X-User-ID", "X-Org-ID", "X-User-Role"]
  hipaa-phi-detector:
    mode: hipaa_18
    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}"]
  dlp-filter:
    blocked_terms: ["export all patients", "download patient database", "list all records"]
    action: block
  healthcare-compliance:
    blocked_patterns: ["diagnosis:", "prescribe", "you likely have"]
    required_disclaimers: ["This is not medical advice", "Consult your healthcare provider"]
    fda_class: "II"
  quality-scorer:
    thresholds:
      min_aggregate: 0.85
      min_accuracy: 0.90
  human-oversight:
    action: escalate
  audit-logger: {}