@extends('hms.layout') @section('title','Pharmacy') @section('content')

Prescriptions routed to the facility pharmacy. Internal dispensing requires a matching medication batch with available, unexpired stock.

@forelse($prescriptions as $rx) @php($e=$encounters[$rx->encounter_id]??null) @php($p=$e?($patients[$e->patient_id]??null):null) @empty@endforelse
PatientMedicationDoseDirectionsStatusAction
{{ $p?->first_name }} {{ $p?->last_name }}{{ $rx->medication_name }}{{ $rx->dose }} · {{ $rx->frequency }}{{ $rx->instructions }} {{ $rx->status }} @if($canDispense && $rx->status==='prescribed')
@csrf
@endif
No facility pharmacy prescriptions.
{{ $prescriptions->links() }}
@endsection