feat: add agenda intent scaffolding

This commit is contained in:
colinislit
2025-12-27 21:46:24 +01:00
parent 5b27a3b538
commit 6460b4361f
7 changed files with 751 additions and 51 deletions

View File

@@ -7,7 +7,15 @@
import type { VerpleegkundigCategory } from '@/lib/types/report';
// Intent types
export type SwiftIntent = 'dagnotitie' | 'zoeken' | 'overdracht' | 'unknown';
export type SwiftIntent =
| 'dagnotitie'
| 'zoeken'
| 'overdracht'
| 'agenda_query'
| 'create_appointment'
| 'cancel_appointment'
| 'reschedule_appointment'
| 'unknown';
export type BlockType = Exclude<SwiftIntent, 'unknown'> | 'patient-dashboard';
@@ -29,6 +37,9 @@ export interface ExtractedEntities {
category?: VerpleegkundigCategory;
content?: string;
query?: string;
date?: string;
time?: string;
identifier?: string;
}
// Block sizes
@@ -62,6 +73,30 @@ export const BLOCK_CONFIGS: Record<BlockType, BlockConfig> = {
size: 'lg',
icon: 'ArrowRightLeft',
},
agenda_query: {
type: 'agenda_query',
title: 'Agenda',
size: 'lg',
icon: 'Calendar',
},
create_appointment: {
type: 'create_appointment',
title: 'Nieuwe afspraak',
size: 'lg',
icon: 'Plus',
},
cancel_appointment: {
type: 'cancel_appointment',
title: 'Afspraak annuleren',
size: 'lg',
icon: 'X',
},
reschedule_appointment: {
type: 'reschedule_appointment',
title: 'Afspraak verzetten',
size: 'lg',
icon: 'Clock',
},
'patient-dashboard': {
type: 'patient-dashboard',
title: 'Patiëntoverzicht',