Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/pronto-atendimento/faa-simplificada-conteudo.blade.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

788 lines
29 KiB
PHP

<div class="page">
<div class="fieldset" style="padding:0;">
<div class="legend">
<strong>FAA</strong>
</div>
<div class="text-left">
<table>
<tr>
<td class="text-left col-3 border-bottom " style="padding:1px 5px;">
<strong>Data:
<span class="font-senha"> {{ $recepcao['data'] }} {{ $recepcao['horaEntrada'] }} </span>
</strong>
</td>
<td class="text-left col-4 border-bottom border-left" style="padding:3px 5px 0 5px">
<strong>Origem de entrada:</strong>
{{ $origemEntrada['nome'] }}
</td>
<td class="text-center col-2 border-left border-bottom" rowspan="2">
<table>
<tr>
<td class="text-center col-12">
<strong>Senha</strong>
</td>
</tr>
<tr>
<td class="text-center col-12 font-senha">
<strong> {{ $senha }} </strong>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="text-left col-7 border-bottom" style="padding:3px 5px 0 5px" colspan="2">
<strong>Unidade:</strong>
{{ $unidade['nomeFantasia'] }}
</td>
</tr>
<tr>
<td class="text-left col-6 border-bottom" style="padding:1px 5px;">
<strong>Recepcionista:</strong>
{{ $recepcao['recepcionista'] }}
</td>
<td class="text-left col-6 border-bottom border-left" style="padding:1px 5px;" colspan="2">
<strong>Médico(a) SAMU:</strong>
{{ $recepcao['medicoSamu'] }}
</td>
</tr>
<tr>
<td class="text-left col-6 border-bottom" style="padding:1px 5px;">
<strong>Profissional:</strong>
</td>
<td class="text-left col-6 border-bottom border-left" style="padding:1px 5px;" colspan="2">
<strong>Especialidade:</strong>
{{ $recepcao['especialidade'] }}
</td>
</tr>
<tr>
<td class="text-left col-12" style="padding:1px 5px;" colspan="4">
<strong>Motivo do atendimento:</strong>
{{ $recepcao['motivoAtendimento'] }}
</td>
</tr>
@if (!empty($faa['dor_toracica']))
<tr>
<td class="text-left col-7 border-top" style="padding:3px 5px 0 5px" colspan="4">
<strong>Paciente com dor tóracica</strong>
</td>
</tr>
@endif
</table>
</div>
</div>
<div class="fieldset" style="padding: 0;">
<div class="legend">
<strong>Paciente</strong>
</div>
<div class="text-left">
<table>
<tr>
<td class="text-left col-9 font-senha border-bottom" style="padding:1px 5px;" colspan="3">
<strong>
{{ $paciente['nome'] }}
@if($paciente['prefereNome'] == 2)
({{ $paciente['nomeSocial'] }})
@endif
</strong>
</td>
<td class="text-left col-3 border-bottom border-left" style="padding:1px 5px;">
<strong>Prontuário:
<span class="font-senha">{{ $paciente['prontuarioUnidade'] }}</span>
</strong>
</td>
</tr>
<tr>
<td class="text-left col-3 border-bottom" style="padding:1px 5px;">
<strong>Sexo:</strong>
{{ $paciente['sexo'] }}
</td>
<td class="text-left col-3 border-bottom border-left" style="padding:1px 5px;">
<strong>CPF:</strong>
{{ $paciente['cpf'] }}
</td>
<td class="text-left col-3 border-bottom border-left" style="padding:1px 5px;">
<strong>CNS:</strong>
{{ $paciente['cns'] }}
</td>
<td class="text-left col-4 border-bottom border-left" style="padding:1px 5px;">
<strong>Idade:</strong>
@if($paciente['idade']['anos'] !== 'Não informada')
{{ $paciente['idade']['anos'] }} ano(s),
{{ $paciente['idade']['meses'] }} mes(es) e
{{ $paciente['idade']['dias'] }} dia(s)
@else
{{ $paciente['idade']['anos'] }}
@endif
</td>
</tr>
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Data de nascimento:</strong>
{{ $paciente['dataNascimento'] }}
</td>
<td class="text-left col-8 border-bottom border-left" style="padding:1px 5px;" colspan="3">
<strong>Nome da mãe:</strong>
{{ $paciente['nomeMae'] }}
</td>
</tr>
<tr>
<td class="text-left col-8 border-bottom" style="padding:1px 5px;" colspan="3">
<strong>Endereço:</strong>
@if (strlen($paciente['endereco']) <= 65)
<span>
{{ $paciente['endereco'] }}
</span>
@elseif (strlen($paciente['endereco']) <= 70)
<span style="font-size: 11px !important;">
{{ $paciente['endereco'] }}
</span>
@elseif (strlen($paciente['endereco']) <= 78)
<span style="font-size: 10px !important;">
{{ $paciente['endereco'] }}
</span>
@else
<span style="font-size: 9px !important;">
{{ $paciente['endereco'] }}
</span>
@endif
</td>
<td class="text-left col-4 border-bottom border-left" style="padding:1px 5px;">
<strong>CEP:</strong>
{{ $paciente['cep'] }}
</td>
</tr>
@if(sizeof($telefones) == 0)
<tr>
<td class="text-left col-4" style="padding:1px 5px;" colspan="1">
<strong>Contato:</strong>
</td>
<td class="text-left col-8 border-left" style="padding:1px 5px;" colspan="3">
<strong>Obs:</strong>
</td>
</tr>
@else
<tr>
<td class="text-left col-12" colspan="4" style="padding:1px 5px;">
<strong>Contato:</strong>
@foreach ($telefones as $i => $telefone)
{{$telefone['numero'] . ($i < count($telefones) - 1 ? ' / ' : '')}}
@endforeach
</td>
</tr>
@endif
</table>
</div>
</div>
@if(sizeof($ultimasConsultas) !== 0)
<div class="fieldset" style="padding: 0;">
<div class="legend">
<strong>Últimas consultas</strong>
</div>
<div class="text-left">
<table>
@foreach($ultimasConsultas as $consulta)
<tr>
<td class="text-left col-12 border-bottom" style="padding:1px 5px;">
<span style="font-size: 10px !important;">
{{ $consulta['data'] }} / {{ $consulta['horaEntrada'] }} - {{ $consulta['unidade'] }}
- {{ $consulta['medico'] }} ({{ $consulta['especialidade'] }})
</span>
</td>
</tr>
@endforeach
</table>
</div>
</div>
@endif
<div class="fieldset" style="padding:0;">
<div class="legend">
<strong>Sinais Vitais</strong>
</div>
<div class="text-left">
<table>
@if(sizeof($sinaisVitais) !== 0)
@foreach($sinaisVitais as $sinalVital)
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Data:</strong> {{ $sinalVital['data'] }}
@if($sinalVital['data'] == null)
<span style="padding-left: 25px;">/</span>
<span style="padding-left: 25px;">/</span>
@endif
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Hora:</strong> {{ $sinalVital['horario'] }}
@if($sinalVital['horario'] == null)
<span style="padding-left: 25px;">:</span>
<span style="padding-left: 25px;">h</span>
@endif
</td>
<td class="col-4 border-bottom" style="padding:1px 5px;">
<table>
<tr>
<td class="col-2">
<strong>Peso:</strong>
</td>
<td class="col-2"> {{ $paciente['peso'] }} </td>
<td class="col-2">kg</td>
</tr>
</table>
</td>
<td class="col-4 border-bottom" style="padding:1px 5px;">
<table>
<tr>
<td class="col-2">
<strong>Altura:</strong>
</td>
<td class="col-2"> {{ $paciente['altura'] }} </td>
<td class="col-2">m</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>PA:</strong> {{ $sinalVital['pa'] }}
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Temp:</strong>
@if($sinalVital['temperatura'] !== null)
{{ $sinalVital['temperatura'] }}ºC
@endif
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>FC:</strong> {{ $sinalVital['pulso'] }}
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>FR:</strong> {{ $sinalVital['respiracao'] }}
</td>
</tr>
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>SAT:</strong>
@if($sinalVital['saturacao'] !== null)
{{ $sinalVital['saturacao'] }}%
@endif
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Dextro:</strong> {{ $sinalVital['glicemia'] }}
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Dor:</strong> {{ $sinalVital['intensidade_dor'] }}
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Cintura:</strong> {{ $sinalVital['cintura'] }}
</td>
</tr>
@endforeach
@else
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Data:</strong>
<span style="padding-left: 25px;">/</span>
<span style="padding-left: 25px;">/</span>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Hora:</strong>
<span style="padding-left: 25px;">:</span>
<span style="padding-left: 25px;">h</span>
</td>
<td class="col-4 border-bottom" style="padding:1px 5px;">
<table>
<tr>
<td class="col-2">
<strong>Peso:</strong>
</td>
<td class="col-2"></td>
<td class="col-2">kg</td>
</tr>
</table>
</td>
<td class="col-4 border-bottom" style="padding:1px 5px;">
<table>
<tr>
<td class="col-2">
<strong>Altura:</strong>
</td>
<td class="col-2"></td>
<td class="col-2">m</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>PA:</strong>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Temp:</strong>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>FC:</strong>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>FR:</strong>
</td>
</tr>
<tr>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>SAT:</strong>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Dextro:</strong>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Dor:</strong>
</td>
<td class="text-left col-4 border-bottom" style="padding:1px 5px;">
<strong>Cintura:</strong>
</td>
</tr>
@endif
<tr>
<td class="text-left col-4" style="padding:1px 5px;">
<strong>Glasgow:</strong>
</td>
<td class="text-left col-12" style="padding:1px 5px;" colspan="4">
@if ($glasgow !== null)
<table style="width: 100%; border-collapse: collapse;">
<tr>
<td class="text-left" style="padding:1px 5px; border: 1px solid #ddd;"><span>Ocular:</span> <strong>{{$glasgow['ocular'] ?? ''}}</strong></td>
<td class="text-left" style="padding:1px 5px; border: 1px solid #ddd;"><span>Verbal:</span> <strong>{{$glasgow['verbal'] ?? ''}}</strong></td>
<td class="text-left" style="padding:1px 5px; border: 1px solid #ddd;"><span>Motora:</span> <strong>{{$glasgow['motora'] ?? ''}}</strong></td>
<td class="text-left" style="padding:1px 5px; border: 1px solid #ddd;"><span>Pupilar:</span> <strong>{{$glasgow['pupilar'] ?? ''}}</strong></td>
<td class="text-left" style="padding:1px 5px; border: 1px solid #ddd;"><span>Pontuação:</span> <strong>{{$glasgow['pontuacao'] ?? ''}}</strong></td>
</tr>
</table>
@else
<td class="text-left col-12" style="padding:1px 5px;" colspan="4"></td>
@endif
</td>
</tr>
@if ($glasgow !== null)
<tr>
<td class="text-left col-4" style="padding:1px 5px;">
<strong>Resultado: <span class="text-center"> {{$glasgow['resultado'] ?? ''}}</span></strong>
</td>
</tr>
@endif
</table>
</div>
</div>
<div class="fieldset no-break-inside" style="padding:0;">
<div class="legend">
<strong>Acolhimento / Enfermagem</strong>
</div>
<div class="text-left">
<table>
<tr>
<td class="text-left col-2 manual-line">
@if(sizeof($historicoEnfermagem) !== 0)
<div class="text-left">
<table>
<tr>
<td class="text-left col-12">
@foreach($historicoEnfermagem as $historico)
<div>
<strong>
Histórico:
</strong>
{{ $historico['descricao']}}
</div>
@endforeach
</td>
</tr>
</table>
</div>
@endif
@if(sizeof($observacoes) !== 0)
<div class="text-left">
<table>
<tr>
<td class="text-left col-12">
<strong>
Observação:
</strong>
@foreach($observacoes as $observacao)
<tr>
<td class="text-left col-12">
<div>
{{ $observacao['dataHora']}} -
{{ $observacao['centroCusto']['setor']['nome']}} -
{{ $observacao['lotacao']['ocupacao']['nome']}} -
{{ $observacao['lotacao']['profissional']['nome']}}
</div>
Descrição: {!! nl2br(e($observacao['descricao'])) !!}
</td>
</tr>
@endforeach
</td>
</tr>
</table>
</div>
@endif
@if(sizeof($triagemAvaliacoesCondicoes) !== 0)
<div>
<strong>
Outras avaliações / condições:
</strong>
@foreach($triagemAvaliacoesCondicoes as $triagemAvaliacoesCondicoesKey => $avaliacao)
{{ $avaliacao['descricao'] }} {{ $triagemAvaliacoesCondicoesKey < count($triagemAvaliacoesCondicoes) - 1 ? '|' : '' }}
@endforeach
</div>
@endif
</td>
</td>
<td class="text-left col-5 border-left" style="padding:1px 5px;" rowspan="3">
<strong>Enfermagem: (Carimbo e assinatura)</strong>
</td>
</tr>
<tr>
<td class="text-left col-12 border-top" style="padding:1px 5px 0 5px;">
<strong>Classificação de risco:</strong>
</td>
</tr>
<tr>
<td class="text-left col-12 border-bottom" style="padding:0 5px 1px 5px;">
@if(sizeof($classificacaoRisco) !== 0)
@php $verificaNome = '' @endphp
@foreach($classificacaoRisco as $riscos)
@if($riscos['nome'] !== $verificaNome)
@php $verificaNome = $riscos['nome'] @endphp
<div class="text-left">
{{ $riscos['dataAtendimento']}} {{ $riscos['horaAtendimento'] }} -
<strong>{{ $riscos['nome'] }}</strong>
({{ $riscos['setor'] }})
</div>
@endif
@endforeach
@else
<table>
<tr>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Não urgente
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Pouco urgente
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Urgente
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Muito urgente
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Emergência
</td>
</tr>
</table>
@endif
</td>
</tr>
<tr>
<td class="text-left col-7 border-top" style="padding:1px 5px;">
<strong>Fatores de risco:</strong>
@if(sizeof($fatoresRisco) !== 0)
@foreach($fatoresRisco as $fator)
<div style="font-size: 10px !important">
{{ $fator['data_hora']}} -
<strong>{{ $fator['fatores']->join(', ') }}</strong> -
{{ $fator['profissional'] }} -
{{ $fator['cbo'] }} ({{ $fator['setor'] }})
</div>
@endforeach
@endif
</td>
<td class="text-left col-5 border-left" style="padding:1px 5px;">
<strong>COREN:</strong>
</td>
</tr>
</table>
</div>
</div>
<div class="fieldset" style="padding:0;">
<div class="legend">
<strong>Anamnese / Exame Clínico</strong>
</div>
<div class="text-left">
<table>
@for ($i = 0; $i < 5; $i++)
<tr>
<td class="col-12 manual-line"></td>
</tr>
@endfor
</table>
</div>
</div>
<div class="fieldset">
<div class="legend">
<strong>Exames solicitados</strong>
</div>
<div class="text-left">
<table>
<tr>
<td class="text-left col-12">
@for ($i = 0; $i < 1; $i++)
<tr>
<td class="col-12 manual-line"></td>
</tr>
@endfor
</td>
</tr>
</table>
</div>
</div>
<div class="fieldset" style="padding:0;">
<div class="legend">
<strong>Prescrição de medicamentos</strong>
</div>
<div class="text-left">
<table>
@for ($i = 0; $i < 5; $i++)
<tr>
<td class="col-12 manual-line"></td>
</tr>
@endfor
</table>
</div>
</div>
<div class="fieldset" style="padding:0">
<div class="legend">
<strong>Procedimentos realizados</strong>
</div>
<div class="text-left">
<table>
@for ($i = 0; $i < 5; $i++)
<tr>
<td class="col-12 manual-line"></td>
</tr>
@endfor
</table>
</div>
</div>
<div class="fieldset no-break-inside" style="padding:0;">
<div class="legend">
<strong>Hipótese diagnóstica</strong>
</div>
<div class="text-left">
<table>
<tr>
<td class="text-left col-7" style="padding:2px 5px;">
<strong></strong>
</td>
<td class="text-left col-5 border-left border-bottom" style="padding:2px 5px;">
<strong>CID:</strong>
</td>
</tr>
<tr>
<td class="text-left col-7 border-top border-bottom" style="padding:2px 5px;">
Conduta:
</td>
<td class="text-left col-5 border-left" style="padding:2px 5px;" rowspan="2">
<strong>Médico: (Carimbo e assinatura)</strong>
</td>
</tr>
<tr>
<td class="text-left col-12 border-bottom" style="padding:2px 5px;">
Saída: Data/Hora
<span style="padding-left: 25px;">/</span>
<span style="padding-left: 25px;">/</span>
<span style="padding-left: 25px;">às</span>
<span style="padding-left: 25px;">:</span>
</td>
</tr>
<tr>
<td class="text-left col-7" style="padding:2px 5px;">
<table>
<tr>
<td>
<strong>Desfecho:</strong>
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Alta
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Evasão<
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Transferência hospitalar
</td>
<td>
<span>(</span>
<span style="padding-left: 5px;">)</span>
Óbito
</td>
</tr>
</table>
</td>
<td class="text-left col-5 border-left" style="padding:2px 5px;">
<strong>CRM:</strong>
</td>
</tr>
</table>
</div>
</div>
<div class="fieldset no-break-inside" style="padding:0; margin-bottom: 0px;">
<div class="legend">
<strong>Paciente / Responsável</strong>
</div>
<div class="text-left">
<table>
<td class="text-left col-8" style="padding:2px 5px;" colspan="3">
{{ $paciente['nome'] }}
@if($paciente['nomeSocial'])
({{ $paciente['nomeSocial'] }})
@endif
</td>
<td class="text-left col-5 border-left" style="padding:2px 5px;">
<strong>Assinatura:
</strong>
</td>
</table>
</div>
</div>
</div>
<style>
td {
font-size: 12px;
}
.font-senha {
font-size: 16px;
}
.ultimas {
width: 32%;
margin: 0 0.5%;
border: 1px solid #000;
font-size: 11px;
float: left;
}
</style>