feat: hide Fall-ID column and simplify export for DAK-Mitarbeiter

Fall-ID is redundant for DAK staff since KVNR is shown separately.
Export now only includes Datum, KVNR, Fallgruppe, ICD, Gutachten, Status.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
CCS Admin 2026-03-01 15:08:29 +00:00
parent 7a372922e6
commit c0f78278e4
2 changed files with 23 additions and 21 deletions

View file

@ -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()

View file

@ -324,6 +324,7 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) {
<Table>
<TableHeader>
<TableRow>
{isAdmin && (
<TableHead>
<Tooltip>
<TooltipTrigger asChild>
@ -335,6 +336,7 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) {
<TooltipContent>Eindeutige Kennung: Jahr-KW-Fallgruppe-KVNR</TooltipContent>
</Tooltip>
</TableHead>
)}
<TableHead>Datum</TableHead>
{isAdmin && <TableHead>Nachname</TableHead>}
{isAdmin && <TableHead>Vorname</TableHead>}
@ -392,9 +394,11 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) {
className={pendingIcdOnly && batchMode ? '' : 'cursor-pointer'}
onClick={() => { if (!(pendingIcdOnly && batchMode)) openDetail(c) }}
>
{isAdmin && (
<TableCell className="font-mono text-sm">
{c.fall_id || '-'}
</TableCell>
)}
<TableCell>{formatDate(c.datum)}</TableCell>
{isAdmin && <TableCell className="font-medium">{c.nachname}</TableCell>}
{isAdmin && <TableCell>{c.vorname || '-'}</TableCell>}