mirror of
https://github.com/complexcaresolutions/dak.c2s.git
synced 2026-03-17 18:23:42 +00:00
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:
parent
7a372922e6
commit
c0f78278e4
2 changed files with 23 additions and 21 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -324,17 +324,19 @@ export function CasesPage({ pendingIcdOnly = false }: CasesPageProps) {
|
|||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<span className="inline-flex items-center gap-1 cursor-help border-b border-dashed border-muted-foreground/40">
|
||||
Fall-ID
|
||||
<Info className="size-3 text-muted-foreground" />
|
||||
</span>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Eindeutige Kennung: Jahr-KW-Fallgruppe-KVNR</TooltipContent>
|
||||
</Tooltip>
|
||||
</TableHead>
|
||||
{isAdmin && (
|
||||
<TableHead>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<span className="inline-flex items-center gap-1 cursor-help border-b border-dashed border-muted-foreground/40">
|
||||
Fall-ID
|
||||
<Info className="size-3 text-muted-foreground" />
|
||||
</span>
|
||||
</TooltipTrigger>
|
||||
<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) }}
|
||||
>
|
||||
<TableCell className="font-mono text-sm">
|
||||
{c.fall_id || '-'}
|
||||
</TableCell>
|
||||
{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>}
|
||||
|
|
|
|||
Loading…
Reference in a new issue