Healthcare

Start with health-data protection, clinical safety and cross-border control mapping for AI workflows.

Industry starter · Regulated SaaS, Sovereign region

What it checks

Policies in the Healthcare template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestSimilarity threshold 0.75Block
pii-detectorRequestHealthcare identifiers; 6 custom identifier patternsRedact
dlp-filterRequest6 custom patternsRedact
healthcare-complianceResponse10 blocked phrases such as “diagnosis:” and “you likely have”; adds 2 disclaimersBlock, add disclaimers
citation-verifierResponseRequires cited sources; confidence ≥ 0.85Flag
quality-scorerResponseAccuracy ≥ 0.90; combined score ≥ 0.80; healthcare profileBlock
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "cfg_e2e_healthcare"
  name: "e2e-healthcare"
  version: "0.2.0"
  enabled: true
  author: "local"
  description: "Healthcare AI governance — global baseline for health data protection"

# Rate limiting to prevent abuse of clinical AI systems
distributed_rate_limit:
  backend: valkey
  url_env: VERDICTAN_REDIS_URL

# Capture interactions in redacted form for clinical audit
history:
  capture:
    enabled: true
    mode: redacted

policies:
  chain:
    - "prompt-injection"
    - "pii-detector"
    - "dlp-filter"
    - "healthcare-compliance"
    - "citation-verifier"
    - "quality-scorer"
    - "audit-logger"

policy:
  prompt-injection:
    embedding_threshold: 0.75
    response:
      action: "block"

  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}"
      - "\\b\\d{3}\\s?\\d{3}\\s?\\d{4}\\b"
      - "(?i)\\bhealth\\s+card\\s*(?:#|number)?\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
      - "(?i)\\b\\d{1,6}\\s+[A-Za-z0-9][A-Za-z0-9\\s.\\-]{2,}\\s+(?:st|street|ave|avenue|rd|road|blvd|drive|ln|lane|dr|way|court|place)\\b"

  dlp-filter:
    # Prevent leakage of clinical identifiers and administrative data
    detect_patterns:
      - "(?i)(?:diagnosis|dx)\\s*(?:code|#)?\\s*[:#-]?\\s*[A-Z0-9]{3,7}"
      - "(?i)(?:procedure|cpt|hcpcs)\\s*(?:code|#)?\\s*[:#-]?\\s*[A-Z0-9]{3,7}"
      - "(?i)\\btreatment\\s+plan\\b"
      - "(?i)\\blab\\s+(?:result|report|values)\\b"
      - "(?i)\\bmedication\\s+(?:list|schedule|orders)\\b"
      - "(?i)(?:clinical\\s+trial|study|nct)\\s*(?:id|#|number)?\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
    action: redact

  healthcare-compliance:
    # Block AI from making diagnostic or prescriptive statements
    blocked_patterns:
      - "diagnosis:"
      - "you likely have"
      - "you may have"
      - "you are suffering from"
      - "your diagnosis is"
      - "i diagnose you"
      - "prescribe"
      - "take this medication"
      - "increase your dosage"
      - "stop taking"
    required_disclaimers:
      - "consult your healthcare provider"
      - "not a substitute for professional medical advice"

  citation-verifier:
    require_sources: true
    min_confidence: 0.85

  quality-scorer:
    industry: healthcare
    thresholds:
      min_aggregate: 0.80
      min_accuracy: 0.90

  audit-logger: {}