diff --git a/backend/app/api/cases.py b/backend/app/api/cases.py index d72bff3..d95c4d8 100644 --- a/backend/app/api/cases.py +++ b/backend/app/api/cases.py @@ -246,18 +246,16 @@ def export_cases( ] else: columns = [ - ("Fall-ID", lambda c: c.fall_id or ""), ("Datum", lambda c: c.datum.strftime("%d.%m.%Y") if isinstance(c.datum, date) else str(c.datum or "")), ("KVNR", lambda c: c.kvnr or ""), ("Fallgruppe", lambda c: FALLGRUPPEN_LABELS.get(c.fallgruppe, c.fallgruppe or "")), ("ICD", lambda c: c.icd or ""), - ("Gutachten-Typ", lambda c: c.gutachten_typ or ""), - ("Therapieänderung", lambda c: c.therapieaenderung or ""), - ("Unterlagen", lambda c: "Ja" if c.unterlagen else "Nein"), ("Gutachten", lambda c: "Ja" if c.gutachten else "Nein"), - ("Abgelehnt", lambda c: "Ja" if c.ablehnung else "Nein"), - ("Abgerechnet", lambda c: "Ja" if c.abgerechnet else "Nein"), - ("Abbruch", lambda c: "Ja" if c.abbruch else "Nein"), + ("Status", lambda c: ", ".join(filter(None, [ + "Abgelehnt" if c.ablehnung else None, + "Abgerechnet" if c.abgerechnet else None, + "Abbruch" if c.abbruch else None, + ])) or "Offen"), ] wb = Workbook() diff --git a/frontend/src/pages/CasesPage.tsx b/frontend/src/pages/CasesPage.tsx index 583e135..5f852b9 100644 --- a/frontend/src/pages/CasesPage.tsx +++ b/frontend/src/pages/CasesPage.tsx @@ -324,17 +324,19 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) { - - - - - Fall-ID - - - - Eindeutige Kennung: Jahr-KW-Fallgruppe-KVNR - - + {isAdmin && ( + + + + + Fall-ID + + + + Eindeutige Kennung: Jahr-KW-Fallgruppe-KVNR + + + )} Datum {isAdmin && Nachname} {isAdmin && Vorname} @@ -392,9 +394,11 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) { className={pendingIcdOnly && batchMode ? '' : 'cursor-pointer'} onClick={() => { if (!(pendingIcdOnly && batchMode)) openDetail(c) }} > - - {c.fall_id || '-'} - + {isAdmin && ( + + {c.fall_id || '-'} + + )} {formatDate(c.datum)} {isAdmin && {c.nachname}} {isAdmin && {c.vorname || '-'}}