@php $patient = $prescription->patient; $outstanding = $prescription->items->filter(fn ($item) => ! $item->is_dispensed); @endphp {{ $prescription->prescription_no }} · Prescription

{{ $prescription->prescription_no }} — {{ $prescription->items->count() }} medicine(s). Use your browser's print dialog to send this to the printer.

Back to the prescription   
{{ Str::upper(hospital_name()) }}
{{ setting('facility_address', '') }} @if (setting('facility_phone', '')) · Tel {{ setting('facility_phone') }} @endif
@if ($prescription->prescription_type === 'ipd') Inpatient prescription @elseif ($prescription->prescription_type === 'discharge') Discharge prescription @elseif ($prescription->prescription_type === 'emergency') Emergency prescription @elseif ($prescription->prescription_type === 'controlled') Controlled drug prescription @else Outpatient prescription @endif
{{ $prescription->status_label }} · Written {{ $prescription->prescribed_at?->format('d M Y H:i') }} @if ($prescription->prescribedBy) by {{ $prescription->prescribedBy->name }} @endif
@foreach ($symbol['bars'] as $bar)
@endforeach
{{ $prescription->prescription_no }}
@if ($prescription->status === 'cancelled') @elseif ($prescription->status === 'on_hold') @endif @if ($patient?->isRestricted()) @endif @if ($prescription->is_controlled) @endif @if ($patient?->allergies_summary && auth()->user()?->can('patients.view-clinical')) @endif
Patient {{ $patient?->full_name ?? '—' }} MRN {{ $patient?->medical_record_number ?? '—' }}
Age / sex {{ $patient?->age_display ?? '—' }} · {{ $patient?->gender_label ?? '—' }} Phone {{ $patient?->phone ?? '—' }}
Visit {{ $prescription->visit?->visit_no ?? '—' }} @if ($prescription->visit?->token_number) · token {{ $prescription->visit->token_number }} @endif Encounter {{ $prescription->encounter?->encounter_no ?? '—' }}
@if ($prescription->diagnosis_notes)
Working diagnosis

{{ $prescription->diagnosis_notes }}

@endif
Medicine prescribed
@forelse ($prescription->items as $index => $item) $prescription->status === 'cancelled'])> @empty @endforelse
# Medicine Dose Frequency Duration Qty
{{ $index + 1 }} {{ $item->drug_name }} @if ($item->is_stat)Stat@endif @if ($item->is_prn)PRN@endif @if ($item->drug?->is_controlled){{ $item->drug->controlled_schedule ? 'Ctrl '.Str::upper($item->drug->controlled_schedule) : 'Controlled' }}@endif @if ($item->is_dispensed) dispensed {{ rtrim(rtrim(number_format((float) $item->quantity_dispensed, 2), '0'), '.') }} @endif
{{ collect([$item->drug?->form ? lookup_label('drug_form', $item->drug->form) : null, $item->drug?->strength])->filter()->implode(' · ') }} @if ($item->drug?->name && $item->drug->name !== $item->drug_name) · {{ $item->drug->name }} @endif
@if ($item->instructions)
{{ $item->instructions }}
@endif @if ($item->is_prn && $item->prn_indication)
For: {{ $item->prn_indication }}
@endif @if ($item->notes)
{{ $item->notes }}
@endif
{{ $item->dose }} {{ lookup_label('dose_unit', $item->dose_unit, $item->dose_unit) }}
{{ lookup_label('drug_route', $item->route, $item->route) }}
{{ lookup_label('drug_frequency', $item->frequency, $item->frequency) }} {{ $item->duration ?? '—' }} {{ rtrim(rtrim(number_format((float) $item->quantity, 2), '0'), '.') }} {{ lookup_label('dose_unit', $item->quantity_unit, $item->quantity_unit) }}
No medicine stands on this prescription.
@if ($outstanding->isNotEmpty() && in_array($prescription->status, ['pending', 'partially_dispensed', 'on_hold'], true)) @endif @if ($prescription->general_instructions)
Instructions to the patient

{{ $prescription->general_instructions }}

@endif @if ($prescription->is_controlled && $prescription->pharmacist_notes)
Pharmacy notes

{{ $prescription->pharmacist_notes }}

@endif
Prescriber — {{ $prescription->prescribedBy?->name ?? 'signature' }}
Dispensed by @if ($prescription->dispensedBy) — {{ $prescription->dispensedBy->name }} @if ($prescription->dispensed_at) · {{ $prescription->dispensed_at->format('d M Y H:i') }} @endif @endif
Received by (patient or attendant)
Keep this slip — bring it back for a repeat, a refund or a claim query. Printed {{ now()->format('d M Y H:i') }} by {{ auth()->user()?->name ?? 'system' }} · {{ config('app.timezone') }}