@php $patient = $prescription->patient; $outstanding = $prescription->items->filter(fn ($item) => ! $item->is_dispensed); @endphp
| 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 ?? '—' }} |
{{ $prescription->diagnosis_notes }}
@endif| # | 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 @if ($item->instructions) @endif @if ($item->is_prn && $item->prn_indication) @endif @if ($item->notes) @endif | {{ $item->dose }} {{ lookup_label('dose_unit', $item->dose_unit, $item->dose_unit) }} | {{ 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. | |||||
{{ $prescription->general_instructions }}
@endif @if ($prescription->is_controlled && $prescription->pharmacist_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)
|