@php $debounceMs = (int) config('clinical_ai.performance.debounce_ms', 800); $streamingEnabled = config('clinical_ai.performance.streaming_enabled', true); $consentStateJs = [ 'required' => (bool) ($aiConsent['required'] ?? false), 'patient' => (bool) ($aiConsent['patient'] ?? false), 'doctor' => (bool) ($aiConsent['doctor'] ?? false), ]; @endphp