@php $pharmacyCustomers = $customers->map(fn($customer) => ['id'=>$customer->id,'pets'=>$customer->pets->map(fn($pet)=>['id'=>$pet->id,'name'=>$pet->name,'species'=>$pet->species])->values()])->values(); @endphp

Clinical governance

Veterinary pharmacy

Immutable e-prescriptions, FEFO stock, consent and dual-authorised controlled dispensing.

@foreach(['prescriptions'=>'Prescriptions','inventory'=>'Inventory','controlled'=>'Controlled log'] as $key=>$label)@endforeach
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf

Issue e-prescription

Signed by the current veterinarian and locked after issuance.

@forelse($prescriptions as $rx)

{{ $rx->prescription_number }}

{{ $rx->pet->name }} · {{ $rx->customer->name }}

Dr {{ $rx->vet->name }} · Issued {{ $rx->issued_at->format('d M Y H:i') }} · Valid to {{ $rx->valid_until->format('d M Y') }}

{{ str($rx->status)->headline() }}
@foreach($rx->items as $line)@endforeach
MedicationDoseRouteRemaining
{{ $line->pharmacyItem->name }} {{ $line->pharmacyItem->controlled_substance ? '⚠' : '' }}{{ $line->dose }} · {{ $line->frequency }} · {{ $line->duration }}{{ $line->route }}{{ $line->quantity - $line->dispensed_quantity }}
@if($rx->status==='active')
@csrf

Dispense using earliest non-expired batches

@foreach($rx->items as $line)@endforeach
@endif
@empty
No prescriptions issued.
@endforelse
{{ $prescriptions->links() }}