|
{{-- The name, and nothing that could be mistaken for
part of it. A remark about the run once sat here
in small grey type directly under the analyte,
where "normal" read as a description of the test
rather than of this patient's result. It has a
column of its own now, under a heading that says
what it is. --}}
{{ $item->test_name }}
@if ($result?->status === \App\Modules\Laboratory\Enums\ResultStatus::Amended)
{{ __('laboratory::messages.print.amended_note') }}
@endif
|
@if ($result?->isReleased())
$result->flag?->isAbnormal(),
'critical' => $result->flag?->isCritical(),
])>{{ $result->printableValue($item->decimal_places) }}
@if ($item->unit)
{{ $item->unit }}
@endif
{{-- The one thing a clinician scans a report for.
Given its own weight rather than trailing the
number as a small letter: on a page of forty
analytes it is what the eye is hunting. --}}
@if ($result->flag && $result->flag->mark() !== '')
$result->flag->isCritical()])>{{ $result->flag->mark() }}
@endif
@else
{{-- An unverified value is not a result and does
not appear on paper. --}}
{{ __('laboratory::messages.print.not_reported') }}
@endif
|
{{-- For an assay the threshold takes the place of a
range: it is what the number was read against,
and a report showing the index without it
cannot be interpreted at all. --}}
@if ($result?->isReleased() && $item->result_type === \App\Modules\Laboratory\Enums\ResultType::Cutoff && $result->cutoff !== null)
{{ __('laboratory::messages.cutoff.threshold', ['value' => rtrim(rtrim((string) $result->cutoff, '0'), '.')]) }}
@else
{{ $result?->printableRange($item->decimal_places) }}
{{-- The unit rides with the value, and there is no
value yet on a test still being run — which
left its range printing as a bare "13.0 - 18.0".
A range with no unit is not a range. So when
nothing has been reported, the unit is stated
here instead; it is named once either way. --}}
@if ($item->unit && ! $result?->isReleased())
{{ $item->unit }}
@endif
@endif
|
{{-- The bench's remark about this run, on the line it
belongs to.
Only for a released result, for the same reason the
value beside it is withheld: a remark on a number
nobody has signed off describes work in progress,
and on paper it reads as a finding. --}}
{{-- The verdict is the answer the clinician asked for; the
index is the working. --}}
@if ($result?->isReleased() && $result->cutoff_verdict !== null)