@php
$results=$custom_test['results'];
$blood_picture_tests=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['blood']);
});
$platelates_tests=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['plt','pct','mpv','pdw']);
});
// WBC
$wbc=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['wbc']);
})
->first();
// relatives & absolutes
$neutrophils['relative']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['neutrophil']);
})
->first();
$neutrophils['absolute']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['neutrophil_absolute']);
})
->first();
$lymphocytes['relative']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['lymphocytes']);
})
->first();
$lymphocytes['absolute']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['lymphocytes_absolute']);
})
->first();
$monocytes['relative']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['monocytes']);
})
->first();
$monocytes['absolute']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['monocytes_absolute']);
})
->first();
$eosinophils['relative']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['eosinophils']);
})
->first();
$eosinophils['absolute']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['eosinophils_absolute']);
})
->first();
$basophils['relative']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['basophils']);
})
->first();
$basophils['absolute']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['basophils_absolute']);
})
->first();
$ig['relative']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['ig']);
})
->first();
$ig['absolute']=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['ig_absolute']);
})
->first();
$extra_tests=$results->filter(function ($value, $key) {
return in_array($value['component']['custom_name'],['micro']);
});
@endphp
@if(count($blood_picture_tests))
@endif
@if(count($platelates_tests))
@endif
@if($wbc||$neutrophils['relative']||$lymphocytes['relative']||$monocytes['relative']||$eosinophils['relative']||$basophils['relative']||$ig['relative'])
@if($wbc)
|
WBCs
|
@include('partials.custom_tests.cbc.result',['result'=>$wbc])
|
@include('partials.custom_tests.cbc.reference_range',['result'=>$wbc])
|
@include('partials.custom_tests.cbc.status',['result'=>$wbc])
|
@endif
| {{__('Test')}} |
Relative count % |
Absolute count K/uL |
|
Neutrophils
|
|
|
|
Lymphocytes
|
|
|
|
Monocytes
|
|
|
|
Eosinophils
|
|
|
|
Basophils
|
|
|
@if($ig['relative'])
|
IG
|
|
|
@endif
|
Sum
|
0
|
@endif
@if(count($extra_tests))
| {{__('Test')}} |
{{__('Result')}} |
{{__('Reference range')}} |
{{__('Status')}} |
@endif