@php $filtered = ($patientQuery ?? '') !== ''; @endphp @if (! $patient) Search by MRN, name, phone or national ID.
@if ($filtered) Clear @endif
@if ($patientQuery === '')

Start with the patient. The ward, consultant and clinical detail come next.

@elseif (! auth()->user()->can('patients.view')) Your account cannot search the patient register. Open the patient's clinical record and admit from there. @elseif ($matches->isEmpty()) Nothing in the register matches. Check the spelling, or register the patient first. @can('patients.create') Register a new patient @endcan @else
    @foreach ($matches as $match)
  • {{ Str::of($match->first_name)->substr(0, 1)->upper() }}{{ Str::of($match->last_name)->substr(0, 1)->upper() }}

    {{ $match->full_name }}

    {{ $match->medical_record_number }} · {{ $match->age_display }} · {{ $match->gender_label }} @if ($match->phone) · {{ $match->phone }} @endif

    @if ($match->isRestricted()) @endif Admit
  • @endforeach
@endif
@else @if ($activeAdmission) {{ $patient->full_name }} already has an open stay — {{ $activeAdmission->admission_no }} in {{ $activeAdmission->ward?->name }}. Admitting twice is blocked; open that chart instead. @endif
@csrf @if ($encounter) @endif
{{ Str::of($patient->first_name)->substr(0, 1)->upper() }}{{ Str::of($patient->last_name)->substr(0, 1)->upper() }}

{{ $patient->full_name }}

{{ $patient->medical_record_number }} · {{ $patient->age_display }} · {{ $patient->gender_label }} @if ($patient->phone) · {{ $patient->phone }} @endif

@if ($patient->isRestricted()) Restricted record @endif @if ($encounter) From encounter {{ $encounter->encounter_no }} @endif
@if ($canAssignBeds)
@else

The stay opens bedless — ward staff cleared to assign beds will bed the patient from the bed board.

@endif
Cancel
@endif