@extends('layouts.app') @section('title', 'Discharge Summary | ' . ($admission->patient->full_name ?? '')) @section('styles') @endsection @section('content') @php $patient = $admission->patient; $visit = $admission->visit; $los = $admission->length_of_stay ?? '-'; $cond = $admission->condition_on_discharge ?? ''; // Only dispensed meds explicitly marked as take-home appear on the summary. // One-off inpatient items (IV fluids, STAT injections, gloves, syringes) // are excluded so the patient's take-home list is accurate. $dispDrugs = $visit?->prescriptions ->where('status', 'dispensed') ->where('is_take_home', true) ?? collect(); $condLabel = [ 'improved' => 'Improved', 'stable' => 'Stable', 'deteriorated' => 'Deteriorated', 'absconded' => 'Absconded', 'deceased' => 'Deceased', ][$cond] ?? '-'; @endphp
| Name: | {{ $patient->full_name ?? '' }} | Patient ID: | {{ $patient->mrn ?? '' }} | Gender: | {{ ucfirst($patient->gender ?? '') }} | Age: | {{ $patient->age ?? '—' }} |
| Ward / Bed: | {{ ($admission->ward?->name ?? '-') }} / {{ ($admission->bed?->bed_number ?? '-') }} | Admitted: | {{ $admission->admission_date?->format('d M Y H:i') ?? '-' }} | Discharged: | {{ $admission->discharge_date?->format('d M Y H:i') ?? 'Pending' }} |
| Length of Stay: | {{ $los }} {{ $los == 1 ? 'day' : 'days' }} | Condition on Discharge: | {{ $condLabel }} | Attending Clinician: | {{ $admission->clinician?->name ?? '-' }} |
Diagnosis on Admission
{{ $admission->diagnosis_on_admission ?? '-' }}
Discharge Diagnosis
{{ $admission->discharge_diagnosis ?? '-' }}
Reason for Admission
{{ $admission->reason_for_admission ?? '-' }}
Hospital Course / Summary
{{ $admission->discharge_summary ?? '-' }}
Medications on Discharge
| Medication | Dose | Route | Frequency | Duration | Qty |
|---|---|---|---|---|---|
| {{ $rx->drug_name }} | {{ $rx->dosage ?? '-' }} | {{ $rx->route ?? '-' }} | {{ $rx->frequency ?? '-' }} | {{ $rx->duration ?? '-' }} | {{ $rx->quantity ?? '-' }} |
| Instructions: {{ $rx->instructions }} | |||||
Discharge Instructions
{{ $admission->discharge_instructions ?? '-' }}
Follow-up Plan
{{ $admission->follow_up_plan ?? '-' }}
Discharged By:
{{ $admission->clinician?->name ?? auth()->user()->name ?? '-' }}
{{ $admission->discharge_date?->format('d M Y H:i') ?? '' }}
Patient / Guardian Signature:
Acknowledged receipt of discharge summary & medications