{{-- The "+" expand row on the appointment Laboratory tab — every test this request holds, with its result and reference range, instead of the compact badge list the Routine column shows. $routines is the request's recorded routines already deduplicated/ordered by LabCategories::orderedRecordedRoutines(). --}} @forelse ($routines as $item) @if (! empty($item->result_component)) @if ($item->resultcomponent) @include('patient_mangement.appointment.laboratory._result_rows', ['labType' => $item->resultcomponent, 'requestResults' => $requestResults]) @endif @else @php $res = $requestResults->firstWhere('routine_id', $item->id); @endphp @continue(! $res) @endif @empty @endforelse
Test Result Reference range
{{ $item->resultcomponent?->name }}
{{ $item->routine_name ?: $item->labType?->name }} {{ $res->result }} {{ $item->measurement?->name == 'Random sample' ? '' : $item->measurement?->name }} {!! $item->normal_range !!}
No result recorded yet.