@php $isEdit = $summary !== null; $action = $action ?? ($isEdit ? route('discharge-summaries.update', $summary) : route('discharge-summaries.store')); $method = $method ?? ($isEdit ? 'PUT' : 'POST'); $backRoute = $backRoute ?? ($isEdit ? route('discharge-summaries.show', $summary) : route('admissions.show', $admission)); $deathLocked = (bool) ($summary?->is_death_summary ?? false); $deathOpen = (bool) old('is_death_summary', $deathLocked); $canDeath = auth()->user()->can('discharge-summaries.death'); $typeOptions = \App\Support\Lookup::options('discharge_type'); $conditionOptions = \App\Support\Lookup::options('condition_at_discharge'); $icdOptions = $icdCodes->mapWithKeys(fn ($c) => [$c->id => $c->code.' — '.$c->description])->all(); $medDefaults = [ 'drug_name' => '', 'dose' => '', 'route' => 'oral', 'frequency' => '', 'duration' => '', 'instructions' => '', ]; $seedMeds = is_array(old('medications')) ? array_values(old('medications')) : ($summary?->medications->map(fn ($m) => [ 'drug_name' => $m->drug_name, 'dose' => $m->dose ?? '', 'route' => $m->route ?? 'oral', 'frequency' => $m->frequency ?? '', 'duration' => $m->duration ?? '', 'instructions' => $m->instructions ?? '', ])->all() ?? []); $seedMeds = collect($seedMeds) ->map(fn ($row) => array_merge($medDefaults, is_array($row) ? $row : [])) ->values() ->all(); @endphp
@csrf @if ($method !== 'POST') @method($method) @endif @if (! $isEdit) @endif @if ($deathLocked) @endif @if (isset($errors) && $errors->any())

The summary was not saved.

    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif

Routine and on-medical-advice discharges close a completed course of care; on-request and against-advice (DAMA/LAMA) record that the patient chose to leave; transfer and referral name the receiving facility below; extended/home care hands over to a continuing provider.

@if ($canDeath && ! $deathLocked)
@endif
@if (! $isEdit)
On admission: {{ $admission->admission_diagnosis ?? $admission->provisional_diagnosis ?? 'Not recorded on the admission.' }} The snapshot is copied onto the summary so the paper still reads true after the bed has turned over.
@endif
The DTT list — what the patient carries out, how it is taken, and for how long. It prints on the back of the summary.

Medicines

item(s)

No medicines listed

Add what the patient takes home — leave blank only if nothing goes home.

@foreach ($drugs as $drug)

Required when the discharge type is a transfer or a referral.

Cancel

{{ $admission->patient->full_name }}

{{ $admission->patient->medical_record_number }}

Admission
{{ $admission->admission_no }}
Date
{{ $admission->admission_date->format('d M Y') }}
Ward
{{ $admission->ward?->name ?? 'Not yet bedded' }}
Bed
{{ $admission->bed?->bed_number ?? '—' }}
Admitting
{{ $admission->admittingDoctor?->name ?? '—' }}
  1. 1 · Draft. Written here; editable until prepared.
  2. 2 · Prepared. Submitted for approval.
  3. 3 · Approved. By a second clinician — never the author.
  4. 4 · Issued. After billing clearance; books the follow-up visit.

An issued summary is a legal record — corrections go through amendment, not editing.