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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user