{{-- SEC 1 --}}
| {{ $group['sample'] ? $group['sample']['receive_date'] : '' }} |
{{ $group['group'] ? $group['group']['invoice_no'] : '' }} |
{{ $group['sample'] ? $group['sample']['nsc_sample_id'] : '' }} |
{{ $group['group']['institution'] ? $group['group']['institution']['nsc_code'] : '' }} |
{{ $group['group']['patient'] ? $group['group']['patient']['name'] . ' ' . $group['group']['patient']['lastname'] : '' }} |
{{-- SEC 2 --}}
{{ $group['group']['patient'] ? $group['group']['patient']['mother_name'] : '' }} |
{{ $group['group']['patient'] ? $group['group']['patient']['dob'] : '' }} |
{{ $group['sample'] ? $group['sample']['collection_date'] : '' }} |
@if ($group->sample)
@if ($group['sample']['collection_date'])
@php
$date = strtotime($group['sample']['collection_date']) - strtotime($group->group->patient->dob);
$days = round($date / (60 * 60 * 24));
@endphp
{{ $days >= 0 ? $days . ' day(s)' : '' }}
@endif
@endif
|
{{ $group['group']['patient'] ? $group['group']['patient']['nationality'] : '' }} |
{{ $group['done'] === 1 ? 'Done' : ( is_null($group['cancelled']) ? 'Pending' : ($group['cancelled'] === 0 ? 'Pending Cancellation' : 'Cancelled')) }} |
{{ $group && ($group['cancelled'] === 0 || $group['cancelled'] === 1) ? $group['comment'] : '' }} |
{{-- SEC 3 --}}
{{ $group['group']['hema'] ? $group['group']['hema']['hemoglobin_pattern'] : '' }} |
{{ $group['final_result'] ?? '' }} |
|
|
{{$group['releaseReport'] ? date('F d, Y', strtotime($group['releaseReport']['releasing_datetime'])) : ''}} |
{{-- SEC 4 --}}
|
{{isset($group['hemogram']) ? $group['hemogram']['remarks'] : ''}} |
{{$group->results()->where('code', 'INTERPRETATION')->first() != null ? html_entity_decode(strip_tags($group->results()->where('code', 'INTERPRETATION')->first()->write_up)) : ($group->test->components()->where('code', 'INTERPRETATION')->first() != null ? html_entity_decode(strip_tags($group->test->components()->where('code', 'INTERPRETATION')->first()->writeup)) : null)}} |
{{$group->results()->where('code', 'INSTRUCTION')->first() != null ? html_entity_decode(strip_tags($group->results()->where('code', 'INSTRUCTION')->first()->write_up)) : ($group->test->components()->where('code', 'INSTRUCTION')->first() != null ? html_entity_decode(strip_tags($group->test->components()->where('code', 'INSTRUCTION')->first()->writeup)) : null)}} |
{{isset($group->results()->first()->remarks) != null ? $group->results()->first()->remarks : null}} |
{{-- SEC 5 --}}
|
{{ $group->date_analyzed ?? '' }} |
|
|
{{isset($group['hemogram']) ? $group['hemogram']['rbc_baby'] : ''}} |
{{-- SEC 6 --}}
{{isset($group['hemogram']) ? $group['hemogram']['hemo_baby'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['hema_baby'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mcv_baby'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mch_baby'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mchc_baby'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['rdw_baby'] : ''}} |
{{-- SEC 7 --}}
{{isset($group['hemogram']) ? $group['hemogram']['rbc_mother'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['hemo_mother'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['hema_mother'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mcv_mother'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mch_mother'] : ''}} |
{{-- SEC 8 --}}
{{isset($group['hemogram']) ? $group['hemogram']['mchc_mother'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['rbc_father'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['hemo_father'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['hema_father'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mcv_father'] : ''}} |
{{-- SEC 9 --}}
{{isset($group['hemogram']) ? $group['hemogram']['mch_father'] : ''}} |
{{isset($group['hemogram']) ? $group['hemogram']['mchc_father'] : ''}} |
|
@endforeach