chore(strip): verwijder kapotte intake-tabs anamnese, onderzoeken en ROM
Opslaan faalde altijd door label/code-mismatch met de database-constraints (reviewbevinding). Tabs komen terug bij de rebuild op het nieuwe datamodel. - tab-mappen anamnese/, examination/, rom/ verwijderd - tabs uit intake-tabs.tsx, server actions uit actions.ts - intake-status API telt de secties niet meer mee (voortgangsring klopt) - Cortex-navigatiedoelen (regex, entity-mapping, prompt) bijgewerkt zodat 'ga naar anamnese' geen 404 meer geeft Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -685,9 +685,6 @@ export type IntakeTab =
|
||||
| 'contacts'
|
||||
| 'kindcheck'
|
||||
| 'risk'
|
||||
| 'anamnese'
|
||||
| 'examination'
|
||||
| 'rom'
|
||||
| 'diagnosis'
|
||||
| 'behandeladvies';
|
||||
|
||||
@@ -703,10 +700,6 @@ const INTAKE_TAB_KEYWORDS: Record<string, IntakeTab> = {
|
||||
'diagnose': 'diagnosis',
|
||||
'diagnoses': 'diagnosis',
|
||||
'dsm': 'diagnosis',
|
||||
// Anamnese
|
||||
'anamnese': 'anamnese',
|
||||
'voorgeschiedenis': 'anamnese',
|
||||
'geschiedenis': 'anamnese',
|
||||
// Contacts
|
||||
'contact': 'contacts',
|
||||
'contacten': 'contacts',
|
||||
@@ -714,14 +707,6 @@ const INTAKE_TAB_KEYWORDS: Record<string, IntakeTab> = {
|
||||
// Kindcheck
|
||||
'kindcheck': 'kindcheck',
|
||||
'kinderen': 'kindcheck',
|
||||
// Examination
|
||||
'onderzoek': 'examination',
|
||||
'psychiatrisch': 'examination',
|
||||
// ROM
|
||||
'rom': 'rom',
|
||||
'meetinstrumenten': 'rom',
|
||||
'vragenlijst': 'rom',
|
||||
'vragenlijsten': 'rom',
|
||||
// Behandeladvies
|
||||
'behandeladvies': 'behandeladvies',
|
||||
'advies': 'behandeladvies',
|
||||
|
||||
@@ -170,17 +170,15 @@ const INTENT_PATTERNS: Record<Exclude<CortexIntent, 'unknown'>, PatternConfig[]>
|
||||
// Navigation to specific intake tabs/sections
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?(risico|risicotaxatie)/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?diagnose[ns]?/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?anamnese/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?behandelgeschiedenis/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?medicatie/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?meetinstrumenten/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(het\s+)?netwerk/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?doelen/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?samenvatting/i, weight: 1.0 },
|
||||
// Open patterns
|
||||
{ pattern: /^open\s+(de\s+)?(risico|diagnose|anamnese|medicatie|netwerk|doelen|samenvatting)/i, weight: 0.95 },
|
||||
{ pattern: /^open\s+(de\s+)?(risico|diagnose|medicatie|netwerk|doelen|samenvatting)/i, weight: 0.95 },
|
||||
// Show patterns
|
||||
{ pattern: /^(toon|laat\s+zien)\s+(de\s+)?(risico|diagnose|anamnese|medicatie|netwerk|doelen|samenvatting)/i, weight: 0.9 },
|
||||
{ pattern: /^(toon|laat\s+zien)\s+(de\s+)?(risico|diagnose|medicatie|netwerk|doelen|samenvatting)/i, weight: 0.9 },
|
||||
],
|
||||
|
||||
risico_query: [
|
||||
|
||||
@@ -179,18 +179,15 @@ const INTENT_PATTERNS: Record<Exclude<CortexIntent, 'unknown'>, PatternConfig[]>
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?(risico|risicotaxatie)/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?diagnose/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?kindcheck/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?anamnese/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?behandeladvies/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?(rom|vragenlijst)/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?onderzoek/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?contact/i, weight: 1.0 },
|
||||
{ pattern: /^ga\s+naar\s+(de\s+)?algemeen/i, weight: 1.0 },
|
||||
|
||||
// "Open [sectie]" patterns
|
||||
{ pattern: /^open\s+(de\s+)?(risico|diagnose|kindcheck|anamnese)/i, weight: 0.95 },
|
||||
{ pattern: /^open\s+(de\s+)?(risico|diagnose|kindcheck)/i, weight: 0.95 },
|
||||
|
||||
// "Naar [sectie]" patterns (shorter)
|
||||
{ pattern: /^naar\s+(risico|diagnose|kindcheck|anamnese|behandeladvies)/i, weight: 0.9 },
|
||||
{ pattern: /^naar\s+(risico|diagnose|kindcheck|behandeladvies)/i, weight: 0.9 },
|
||||
],
|
||||
|
||||
risico_query: [
|
||||
|
||||
@@ -92,7 +92,7 @@ export interface ExtractedEntities {
|
||||
time?: string;
|
||||
|
||||
// Intake navigation (MVP)
|
||||
navigationTarget?: 'contacts' | 'kindcheck' | 'risk' | 'anamnese' | 'examination' | 'rom' | 'diagnosis' | 'behandeladvies';
|
||||
navigationTarget?: 'contacts' | 'kindcheck' | 'risk' | 'diagnosis' | 'behandeladvies';
|
||||
}
|
||||
|
||||
// Block sizes
|
||||
|
||||
Reference in New Issue
Block a user