feat(cortex): add intake_navigeer navigation handler (E5.S2)
- Add intake intents to action-parser schema and routing - Add navigation handler in command-center for intake_navigeer intent - Navigate to patient intakes page with toast feedback - Update bouwplan: E5 now complete (6/7 epics done) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,11 @@ const ActionSchema = z.object({
|
||||
'create_appointment',
|
||||
'cancel_appointment',
|
||||
'reschedule_appointment',
|
||||
// Intake intents (MVP)
|
||||
'intake_status',
|
||||
'intake_navigeer',
|
||||
'risico_query',
|
||||
'diagnose_query',
|
||||
'unknown',
|
||||
]),
|
||||
entities: z.object({
|
||||
@@ -77,6 +82,10 @@ const ActionSchema = z.object({
|
||||
'create_appointment',
|
||||
'cancel_appointment',
|
||||
'reschedule_appointment',
|
||||
// Intake blocks (MVP)
|
||||
'intake_status',
|
||||
'risico_query',
|
||||
'diagnose_query',
|
||||
'fallback',
|
||||
'patient-dashboard',
|
||||
]),
|
||||
@@ -368,6 +377,33 @@ export function routeIntentToArtifact(
|
||||
prefill: entities,
|
||||
};
|
||||
|
||||
// Intake intents (MVP)
|
||||
case 'intake_status':
|
||||
return {
|
||||
type: 'intake_status',
|
||||
title: 'Intake Status',
|
||||
prefill: entities,
|
||||
};
|
||||
|
||||
case 'risico_query':
|
||||
return {
|
||||
type: 'risico_query',
|
||||
title: 'Risicotaxatie',
|
||||
prefill: entities,
|
||||
};
|
||||
|
||||
case 'diagnose_query':
|
||||
return {
|
||||
type: 'diagnose_query',
|
||||
title: 'Diagnoses',
|
||||
prefill: entities,
|
||||
};
|
||||
|
||||
case 'intake_navigeer':
|
||||
// Navigation intent - handled separately in CommandCenter
|
||||
// Returns null to trigger navigation instead of artifact
|
||||
return null;
|
||||
|
||||
case 'unknown':
|
||||
// Unknown intent - show fallback picker
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user