Pharmacy queue

Active prescriptions awaiting dispensing

@if (($canSwitchBranch ?? false) && isset($branches) && $branches->count() > 1)
@elseif (isset($branches) && $branches->isNotEmpty())

{{ $branches->first()->name }}

@endif
@include('care.partials.queue-ops', [ 'queueIntegration' => $queueIntegration ?? null, 'queueCallNextRoute' => 'care.prescriptions.call-next', 'queueCallNextParams' => [], 'branchId' => $branchId ?? null, ])
@forelse ($queue as $rx)

@if (! empty($queueIntegration['enabled']) && $rx->queue_ticket_number) @include('care.partials.queue-ticket', [ 'ticketNumber' => $rx->queue_ticket_number, 'ticketStatus' => $rx->queue_ticket_status, ]) @endif {{ $rx->patient->fullName() }}

{{ $rx->patient->patient_number }} · {{ $rx->visit->branch?->name }}

    @foreach ($rx->items as $item)
  • {{ $item->is_procedure ? 'Procedure' : 'Med' }}: {{ $item->name }} {{ $item->dosage }} {{ $item->frequency }}
  • @endforeach
@if ($canDispense)
@if (! empty($queueIntegration['enabled']) && $rx->queue_ticket_uuid && ($rx->queue_ticket_status ?? '') !== 'serving') @php $pointUuid = (string) ($rx->queue_service_point_uuid ?? ''); $mine = empty($memberCounterUuid) || $pointUuid === '' || $pointUuid === (string) $memberCounterUuid; @endphp @if ($mine)
@csrf
@endif @endif
@csrf @php $allocIndex = 0; @endphp @foreach ($rx->items as $item) @if (! $item->is_procedure)
@php $allocIndex++; @endphp
@endif @endforeach
View details
@endif
@unless ($canDispense) View @endunless
@empty

No prescriptions in queue.

@endforelse