From 91b61d215b709226646c3079be18f3d08a5ccea8 Mon Sep 17 00:00:00 2001 From: colinislit Date: Wed, 4 Feb 2026 00:14:53 +0100 Subject: [PATCH] feat(cortex): add intake suggestions to chat UI Add intake-related suggestions to both chat interfaces: 1. Cortex Command Center (lib/cortex/suggestions.ts): - New "Intake" category with status, risico, diagnose examples - Triggers intake_status, risico_query, diagnose_query, intake_navigeer 2. Docs Chat Widget (components/docs-chat/chat-suggestions.tsx): - Updated CLIENT_SUGGESTION_CATEGORIES with intake options - Categories: Intake Status, Risicotaxatie, Diagnoses, Navigatie Co-Authored-By: Claude Opus 4.5 --- components/docs-chat/chat-suggestions.tsx | 54 ++++++++++++++++------- lib/cortex/suggestions.ts | 20 ++++++++- 2 files changed, 55 insertions(+), 19 deletions(-) diff --git a/components/docs-chat/chat-suggestions.tsx b/components/docs-chat/chat-suggestions.tsx index 80082af..8a1c5e2 100644 --- a/components/docs-chat/chat-suggestions.tsx +++ b/components/docs-chat/chat-suggestions.tsx @@ -52,6 +52,36 @@ const DOC_SUGGESTION_CATEGORIES: SuggestionCategory[] = [ * Client suggestions - shown when in a patient dossier */ const CLIENT_SUGGESTION_CATEGORIES: SuggestionCategory[] = [ + { + id: 'intake-status', + label: 'Intake Status', + icon: 'πŸ“‹', + questions: [ + 'Wat moet ik nog doen?', + 'Is de intake compleet?', + 'Welke secties zijn nog niet ingevuld?', + ], + }, + { + id: 'risico', + label: 'Risicotaxatie', + icon: '⚠️', + questions: [ + 'Wat zijn de risico\'s?', + 'Toon risicotaxatie', + 'Ga naar risico', + ], + }, + { + id: 'diagnose', + label: 'Diagnoses', + icon: '🩺', + questions: [ + 'Welke diagnoses?', + 'Wat is de diagnose?', + 'Ga naar diagnose', + ], + }, { id: 'rapportages', label: 'Rapportages', @@ -59,27 +89,17 @@ const CLIENT_SUGGESTION_CATEGORIES: SuggestionCategory[] = [ questions: [ 'Geef een samenvatting van de rapportages', 'Wat is er de laatste tijd genoteerd?', - 'Zijn er behandeladviezen?', + 'Maak een notitie', ], }, { - id: 'intake', - label: 'Intake & Behandeling', - icon: 'πŸ₯', + id: 'navigatie', + label: 'Navigatie', + icon: '🧭', questions: [ - 'Wat is het behandeladvies?', - 'Op welke afdeling loopt de intake?', - 'Is de intake afgerond?', - ], - }, - { - id: 'screening', - label: 'Screening', - icon: 'πŸ“‹', - questions: [ - 'Wat was de hulpvraag?', - 'Wat is de screeningbeslissing?', - 'Is de cliΓ«nt geschikt bevonden?', + 'Ga naar anamnese', + 'Ga naar kindcheck', + 'Ga naar behandeladvies', ], }, ] diff --git a/lib/cortex/suggestions.ts b/lib/cortex/suggestions.ts index 45d1a1b..3916c4b 100644 --- a/lib/cortex/suggestions.ts +++ b/lib/cortex/suggestions.ts @@ -24,7 +24,7 @@ export interface SuggestionExample { /** * Suggestion categories with examples - * Based on the 7 implemented intents: + * Based on the 11 implemented intents: * - dagnotitie * - zoeken * - overdracht @@ -32,8 +32,24 @@ export interface SuggestionExample { * - create_appointment * - cancel_appointment * - reschedule_appointment + * - intake_status (MVP) + * - risico_query (MVP) + * - diagnose_query (MVP) + * - intake_navigeer (MVP) */ export const SUGGESTION_CATEGORIES: SuggestionCategory[] = [ + { + id: 'intake', + label: 'Intake', + icon: 'πŸ“‹', + description: 'Intake status, risico\'s en diagnoses bekijken', + examples: [ + { text: 'Wat moet ik nog doen?', intent: 'intake_status' }, + { text: 'Wat zijn de risico\'s?', intent: 'risico_query' }, + { text: 'Welke diagnoses?', intent: 'diagnose_query' }, + { text: 'Ga naar risicotaxatie', intent: 'intake_navigeer' }, + ], + }, { id: 'notities', label: 'Notities', @@ -73,7 +89,7 @@ export const SUGGESTION_CATEGORIES: SuggestionCategory[] = [ { id: 'overdracht', label: 'Overdracht', - icon: 'πŸ“‹', + icon: 'πŸ”„', description: 'Dienstoverdrachten en samenvattingen', examples: [ { text: 'Overdracht', intent: 'overdracht' },