Mapping Radiologi

@php $number = 0; @endphp @if (!empty($mst_param_rad)) @foreach ($mst_param_rad as $value) @php $bodysite_name = null; $bodysite_id = null; $loinc_name = null; $loinc_code = null; $map = $ss_map_radiologi->where('tera_rad_param_id', $value->rsid); if ($map->isNotEmpty()) { $map = $map->values()[0]; $loinc_code = $map->loinc_code; $bodysite_id = $map->bodysite_snomed_id; $loinc = $mst_loinc->where('loinc_code', $map->loinc_code); $bodysite = $mst_bodysite->where('snomed_id', $map->bodysite_snomed_id); $loinc_name = $loinc->isEmpty() ? null : $loinc->values()[0]->loinc_name; $bodysite_name = $bodysite->isEmpty() ? null : $bodysite->values()[0]->snomed_nama; } @endphp @endforeach
nama pemeriksaan Loinc Bodysite
{{ $value->rsid }} - {{ $value->jenis_periksa }} ({{ $loinc_code ?? '-' }}) {{ $loinc_name ?? '-' }} ({{ $bodysite_id ?? '-' }}){{ $bodysite_name ?? '-' }}
@endif