'use client'; import { taxonomy } from '@/lib/taxonomy/data'; const LAYER_COLORS = { conditions: { bg: 'bg-yellow-500/10', border: 'border-yellow-500/30', text: 'text-yellow-400', badge: 'bg-yellow-500/20 text-yellow-300', }, management: { bg: 'bg-blue-500/10', border: 'border-blue-500/30', text: 'text-blue-400', badge: 'bg-blue-500/20 text-blue-300', }, systemic: { bg: 'bg-purple-500/10', border: 'border-purple-500/30', text: 'text-purple-400', badge: 'bg-purple-500/20 text-purple-300', }, }; const LAYER_TITLES = { conditions: 'Conditions', management: 'Management', systemic: 'Systemic', }; const LAYER_DESCRIPTIONS = { conditions: 'What allowed the experience to happen?', management: 'What decisions allowed enabling conditions?', systemic: 'Why does the organization create these conditions?', }; export default function CausalCodesSection() { const layers = ['conditions', 'management', 'systemic'] as const; return (
{/* Header */}

Causal Codes

Three-layer root cause analysis framework with 16 codes

{/* Three layers visualization */}
{layers.map((layerKey) => { const layer = taxonomy.causal_codes[layerKey]; const colors = LAYER_COLORS[layerKey]; const codeCount = Object.keys(layer.codes).length; return (
{/* Layer Header */}

{LAYER_TITLES[layerKey]}

{layer.prefix}* ({codeCount})

{LAYER_DESCRIPTIONS[layerKey]}

{/* Codes list */}
{Object.entries(layer.codes).map(([codeKey, code]) => (
{codeKey} {code.name}

{code.definition}

))}
); })}
{/* Flow Indicator */}
Conditions Management Systemic
{/* Usage note */}

Usage

Causal codes are used for root cause analysis in URT-Full profile. Start with Conditions (immediate factors), trace to Management (decisions that enabled conditions), and finally to Systemic (organizational factors that created the management decisions).

); }