fix(overdracht): Filter op rapportages i.p.v. encounters + report types

Overdracht dashboard:
- Patiënten nu gefilterd op rapportages (laatste 24u) i.p.v. encounters
- Reports-block toont correcte type labels en kleuren

Rapportage module:
- Alle report types toegevoegd aan centrale lib/types/report.ts
- Quick actions met alle 8 rapportage types en icons
- Default type gewijzigd naar 'voortgang'

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
colinislit
2025-12-06 01:05:38 +01:00
parent 9e4e16035b
commit d9340ba296
5 changed files with 49 additions and 22 deletions

View File

@@ -5,7 +5,17 @@ export type Report = Database['public']['Tables']['reports']['Row'];
export type ReportInsert = Database['public']['Tables']['reports']['Insert'];
export type ReportUpdate = Database['public']['Tables']['reports']['Update'];
export const REPORT_TYPES = ['behandeladvies', 'vrije_notitie'] as const;
export const REPORT_TYPES = [
'voortgang',
'observatie',
'incident',
'medicatie',
'contact',
'crisis',
'intake',
'behandeladvies',
'vrije_notitie',
] as const;
export type ReportType = (typeof REPORT_TYPES)[number];
export const CreateReportSchema = z.object({