chore(strip): verwijder behandelplan-module

AI-generatie negeerde de geregistreerde diagnose en ernst — elk plan was
generiek (reviewbevinding). Module komt terug bij de rebuild, gekoppeld
aan het nieuwe datamodel.

- app/epd/patients/[id]/behandelplan/ en /api/behandelplan/ verwijderd
- components/behandelplan/ (view, list, forms) verwijderd
- lib/ai/behandelplan-prompt.ts, lib/ai/intervention-mapping.ts,
  lib/types/behandelplan.ts verwijderd
- behandelplan-sectie uit patientdashboard, dashboard-API en
  Cortex patient-dashboard-block
- 'Doorzetten naar behandelplan' uit behandeladvies-formulier

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
colinislit
2026-07-14 22:47:58 +02:00
parent a8b02c1ef3
commit 96848ecc81
27 changed files with 3 additions and 6407 deletions

View File

@@ -41,23 +41,10 @@ interface EncounterSummary {
status: string;
}
interface CarePlanSummary {
id?: string;
title?: string | null;
status?: string | null;
based_on_intake_id?: string | null;
behandelstructuur?: unknown;
goals?: unknown;
activities?: unknown;
evaluatiemomenten?: unknown;
}
interface PatientDashboardResponse {
patient: FHIRPatient;
intakes: Intake[];
encounters: EncounterSummary[];
carePlan: CarePlanSummary | null;
hulpvraag?: string | null;
}
const STATUS_LABELS: Record<string, string> = {
@@ -179,11 +166,6 @@ export function PatientDashboardBlock({ prefill }: PatientDashboardBlockProps) {
return displayEncounters;
}, [encounters]);
const goalsCount = Array.isArray(data?.carePlan?.goals) ? data?.carePlan?.goals.length : 0;
const interventionsCount = Array.isArray(data?.carePlan?.activities)
? data?.carePlan?.activities.length
: 0;
// E3.S2: Use patientNameFromPrefill for title
const title = patientNameFromPrefill
? `${config.title} - ${patientNameFromPrefill}`
@@ -337,36 +319,6 @@ export function PatientDashboardBlock({ prefill }: PatientDashboardBlockProps) {
</div>
)}
</section>
{/* Behandelplan */}
<section className="bg-white rounded-lg border border-slate-200 p-4">
<div className="flex items-center gap-2 mb-3">
<ClipboardList className="h-4 w-4 text-purple-600" />
<h3 className="text-sm font-medium text-slate-700">Actief behandelplan</h3>
</div>
{data.carePlan ? (
<div className="space-y-3">
{data.hulpvraag && (
<div className="bg-slate-50 rounded-lg p-3 text-sm text-slate-700">
<p className="text-xs font-medium text-slate-500 mb-1">Hulpvraag</p>
<p className="italic">&ldquo;{data.hulpvraag}&rdquo;</p>
</div>
)}
<div className="grid grid-cols-2 gap-3 text-sm">
<div className="bg-teal-50 border border-teal-200 rounded-lg p-3">
<p className="text-xs text-teal-700 mb-1">Doelen</p>
<p className="text-base font-semibold text-teal-900">{goalsCount}</p>
</div>
<div className="bg-purple-50 border border-purple-200 rounded-lg p-3">
<p className="text-xs text-purple-700 mb-1">Interventies</p>
<p className="text-base font-semibold text-purple-900">{interventionsCount}</p>
</div>
</div>
</div>
) : (
<p className="text-sm text-slate-500">Geen actief behandelplan</p>
)}
</section>
</div>
) : (
<div className="text-sm text-slate-500">Geen gegevens beschikbaar</div>