@php $statuses = \App\Modules\Patients\Enums\ClinicalRecordStatus::class; @endphp {{-- Medications ---------------------------------------------------------- --}} @can('manageClinical', $patient) @endcan @can('manageClinical', $patient)
{{-- A medication list is read out in one go; the panel takes it that way rather than one drug per round trip. --}}
@csrf
@endcan @forelse ($medications as $medication)
{{ $medication->name }} {{ collect([$medication->dose, $medication->frequency, $medication->route])->filter()->implode(' ยท ') }} @if ($medication->is_external) {{ __('patients::messages.clinical.external') }} @endif @if ($medication->status !== $statuses::Active) {{ $medication->status->label() }} @endif
@include('patients::partials.clinical-entry-actions', [ 'type' => 'medication', 'entry' => $medication, 'resolveLabel' => __('patients::messages.clinical.mark_stopped'), ])
@empty

{{ __('patients::messages.clinical.no_medications') }}

{{ __('patients::messages.clinical.no_medications_text') }}

@endforelse