<%- include("partials/page-header", { user, title: "Patientenübersicht", subtitle: patient.firstname + " " + patient.lastname, showUserName: true, hideDashboardButton: false }) %>
<%- include("partials/flash") %>

👤 <%= patient.firstname %> <%= patient.lastname %>

Geboren am <%= new Date(patient.birthdate).toLocaleDateString("de-DE") %>

  • E-Mail: <%= patient.email || "-" %>
  • Telefon: <%= patient.phone || "-" %>
  • Adresse: <%= patient.street || "" %> <%= patient.house_number || "" %>, <%= patient.postal_code || "" %> <%= patient.city || "" %>
💊 Aktuelle Medikamente
<% if (medications.length === 0) { %>

Keine aktiven Medikamente

<% } else { %> <% medications.forEach(m => { %> <% }) %>
Medikament Variante Anweisung
<%= m.medication_name %> <%= m.variant_dosage %> <%= m.dosage_instruction || "-" %>
<% } %>
🧾 Rechnungen
<% if (invoices.length === 0) { %>

Keine Rechnungen vorhanden

<% } else { %> <% invoices.forEach(i => { %> <% }) %>
Datum Betrag PDF
<%= new Date(i.invoice_date).toLocaleDateString("de-DE") %> <%= Number(i.total_amount).toFixed(2) %> € <% if (i.file_path) { %> 📄 Öffnen <% } else { %> - <% } %>
<% } %>