64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
<table>
|
|
<tr>
|
|
<td style="text-align: center" colspan="@if($tipo_inconsistencia === 'Procedimento') 9 @else 7 @endif">
|
|
<strong>{{ $title }}</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><strong>Competência</strong></td>
|
|
<td><strong>Tipo de inconsistência</strong></td>
|
|
<td><strong>Unidade</strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{{$competencia}}</td>
|
|
<td>{{$tipo_inconsistencia}}</td>
|
|
<td>{{$unidade}}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Data de admissão</th>
|
|
<th>Data de conclusão</th>
|
|
<th>Unidade</th>
|
|
<th>Nome do paciente</th>
|
|
<th>CNS do paciente</th>
|
|
|
|
@if($tipo_inconsistencia === 'Procedimento')
|
|
<th>Tipo de RAAS</th>
|
|
<th>Procedimento</th>
|
|
@endif
|
|
|
|
<th>CID</th>
|
|
<th>Inconsistências</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
@foreach($data['itens'] as $item)
|
|
<tr>
|
|
<td>{{$item['data_admissao']}}</td>
|
|
<td>{{$item['data_conclusao']}}</td>
|
|
<td>{{$item['unidade_nome_fantasia']}}</td>
|
|
<td>{{$item['paciente_nome']}}</td>
|
|
<td>{{$item['paciente_cns']}}</td>
|
|
|
|
@if($tipo_inconsistencia === 'Procedimento')
|
|
<td>{{$item['registro_nome']}}</td>
|
|
<td>{{$item['procedimento']}}</td>
|
|
@endif
|
|
|
|
<td>{{$item['cid']}}</td>
|
|
|
|
<td>
|
|
@foreach($item['inconsistencias'] as $inconsistencia)
|
|
<div>{{$inconsistencia->inconsistencia_descricao}}</div>
|
|
@endforeach
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table> |