Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/pronto-atendimento/faa-eletronica.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

2349 lines
113 KiB
PHP

@extends('impressoes.layout.impressao', ['paraAssinar' => $paraAssinar])
@php
use App\Enums\ProntoAtendimento\Atendimento\DorToracica as DorToracicaEnum;
@endphp
@section('subtitulo')
<div class="paciente">
Paciente: {{ $paciente['nome'] }}
@if (!is_null($paciente['nome_social']))
({{ $paciente['nome_social'] }})
@endif
</div>
@endsection
@section('conteudo')
<div class="page">
<div class="table-grid-margin-bottom">
<table class="table-grid">
<tbody>
<tr>
<td style="width: {{ is_null($senha) ? 50 : 45 }}%">
<strong>Unidade:</strong> {{ $unidade }}
</td>
<td style="width: {{ is_null($senha) ? 50 : 45 }}%">
<strong>Data/Hora da entrada:</strong> {{ $dataHoraEntrada }}
</td>
@if (!is_null($senha))
<td rowspan="3" class="vertical-align-middle text-center">
Senha<br>
<span id="senha">
<strong>{{ $senha }}</strong>
</span>
</td>
@endif
</tr>
<tr>
<td>
<strong>Recepcionista:</strong> {{ $recepcionista }}
</td>
<td>
<strong>Origem de entrada:</strong> {{ $origemEntrada }}
</td>
</tr>
<tr>
<td>
<strong>Especialidade:</strong> {{ $especialidade }}
</td>
<td>
<strong>Médico(a) SAMU:</strong> {{ $medicoSamu }}
</td>
</tr>
<tr>
<td colspan="{{ is_null($senha) ? 2 : 3 }}">
<strong>Motivo do atendimento:</strong> {{ $motivoAtendimento }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-grid-margin-bottom">
<table class="table-grid">
<tbody>
<tr>
<td colspan="3">
<table class="table-grid-inner">
<thead>
<tr>
<th class="no-background-color">
{{ $paciente['nome'] }}
@if($paciente['prefereNome'] == 2)
({{ $paciente['nome_social'] }})
@endif
</th>
<th class="col-min no-text-transform no-background-color font-size-default">
<strong>Prontuário: {{ $paciente['prontuario'] }}</strong>
</th>
</tr>
</thead>
</table>
</td>
</tr>
<tr>
<td class="col-4">
<strong>CNS:</strong> {{ $paciente['cns'] }}
</td>
<td class="col-4">
<strong>CPF:</strong> {{ $paciente['cpf'] }}
</td>
<td>
<strong>Sexo:</strong> {{ $paciente['sexo'] }}
</td>
</tr>
<tr>
<td>
<strong>Data de nascimento:</strong> {{ $paciente['data_nascimento'] }}
</td>
<td colspan="{{ $paciente['idade_gestacional'] ? 1 : 2 }}">
<strong>Idade:</strong> {{ $paciente['idade'] }}
</td>
@if (!is_null($paciente['idade_gestacional']))
<td>
Gestante a {{ $paciente['idade_gestacional'] }}
</td>
@endif
</tr>
<tr>
<td colspan="3">
<strong>Nome da mãe:</strong> {{ $paciente['nome_mae'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Endereço:</strong> {{ $paciente['endereco'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Contato:</strong>
@if (empty($paciente['telefones']))
NÃO INFORMADO
@else
@foreach ($paciente['telefones'] as $i => $telefone)
<div style="display: inline; padding: {{ $i > 0 ? '0 2px' : '0 2px 0 0' }};">
{{ $telefone }}
</div>
@endforeach
@endif
</td>
</tr>
</tbody>
</table>
</div>
@if (!is_null($raat))
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th>
{{ $raat['titulo_formulario'] }}
</th>
</tr>
</thead>
<tbody>
@if (!is_null($raat['empresa']['nome']))
<tr>
<td>
<strong>Empresa:</strong> {{ $raat['empresa']['nome'] }}
</td>
</tr>
@endif
@if (!is_null($raat['empresa']['ramo_atividade']) || !is_null($raat['empresa']['telefone']))
<tr>
<td>
<table class="table-grid-inner">
<tbody>
<tr>
@if (!is_null($raat['empresa']['ramo_atividade']))
<td>
<strong>Ramo da atividade:</strong> {{ $raat['empresa']['ramo_atividade'] }}
</td>
@endif
@if (!is_null($raat['empresa']['telefone']))
<td class="col-min">
<strong>Telefone:</strong> {{ $raat['empresa']['telefone'] }}
</td>
@endif
</tr>
</tbody>
</table>
</td>
</tr>
@endif
@if (!is_null($raat['empresa']['endereco']))
<tr>
<td>
<strong>Endereço da empresa:</strong> {{ $raat['empresa']['endereco'] }}
</td>
</tr>
@endif
@if (!is_null($raat['empresa']['ocupacao_paciente']))
<tr>
<td>
<strong>Ocupação do paciente:</strong> {{ $raat['empresa']['ocupacao_paciente'] }}
</td>
</tr>
@endif
</tbody>
</table>
<table class="table-grid">
<thead>
<tr>
<th>
Identificação do acidente
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<table class="table-grid-inner">
<tbody>
<tr>
<td>
<strong>Data do acidente:</strong> {{ $raat['acidente']['data'] }}
@if (!is_null($raat['acidente']['hora']))
{{ $raat['acidente']['hora'] }}
@endif
</td>
@if (!is_null($raat['acidente']['tipo']))
<td class="col-min">
<strong>Acidente:</strong> {{ $raat['acidente']['tipo'] }}
</td>
@endif
</tr>
</tbody>
</table>
</td>
</tr>
@if (!is_null($raat['acidente']['regime_trabalho']))
<tr>
<td>
<strong>Regime de trabalho:</strong> {{ $raat['acidente']['regime_trabalho'] }}
@if ($raat['acidente']['regime_trabalho_outro'])
({{ $raat['acidente']['regime_trabalho_outro'] }})
@endif
</td>
</tr>
@endif
@if (!is_null($raat['acidente']['local']))
<tr>
<td>
<strong>Local do acidente:</strong> {{ $raat['acidente']['local'] }}
</td>
</tr>
@endif
@if (!is_null($raat['acidente']['descricao']))
<tr>
<td>
<strong>Descrição do acidente:</strong> {{ $raat['acidente']['descricao'] }}
</td>
</tr>
@endif
</tbody>
</table>
@if (!is_null($raat['parecer_medico']))
<table class="table-grid">
<thead>
<tr>
<th>
Parecer médico
</th>
</tr>
</thead>
<tbody>
@if (!is_null($raat['parecer_medico']['agente']) || !empty($raat['parecer_medico']['causas_acidente']))
<tr>
<td>
<table class="table-grid-inner">
<tbody>
<tr>
@if (!is_null($raat['parecer_medico']['agente']))
<td class="col-min">
<strong>Agente:</strong> {{ $raat['parecer_medico']['agente'] }}
</td>
@endif
@if (!empty($raat['parecer_medico']['causas_acidente']))
<td>
<strong>Causa do acidente:</strong> {{ implode(', ', $raat['parecer_medico']['causas_acidente']) }}
</td>
@endif
</tr>
</tbody>
</table>
</td>
</tr>
@endif
@if (!empty($raat['parecer_medico']['partes_corpo_atingidas']))
<tr>
<td>
<strong>Partes do corpo atingidas:</strong> {{ implode(', ', $raat['parecer_medico']['partes_corpo_atingidas']) }}
</td>
</tr>
@endif
@if (!empty($raat['parecer_medico']['diagnosticos']))
<tr>
<td>
<strong>Diagnóstico:</strong> {{ implode(', ', $raat['parecer_medico']['diagnosticos']) }}
</td>
</tr>
@endif
@if (!empty($raat['parecer_medico']['sofreu_acidente_trabalho']))
<tr>
<td>
<strong>Paciente sofreu acidente de trabalho:</strong> {{ $raat['parecer_medico']['sofreu_acidente_trabalho'] }}
</td>
</tr>
@endif
@if (!empty($raat['parecer_medico']['portador_doenca_ocupacional']))
<tr>
<td>
<strong>Paciente é portador de doença ocupacional:</strong> {{ $raat['parecer_medico']['portador_doenca_ocupacional'] }}
</td>
</tr>
@endif
@if (!empty($raat['parecer_medico']['precisa_internacao']))
<tr>
<td>
<strong>Paciente precisa de internação:</strong> {{ $raat['parecer_medico']['precisa_internacao'] }}
</td>
</tr>
@endif
@if (!empty($raat['parecer_medico']['dias_afastamento']))
<tr>
<td>
<strong>Dias de afastamento:</strong> {{ $raat['parecer_medico']['dias_afastamento'] }}
</td>
</tr>
@endif
@if (!is_null($raat['parecer_medico']['cid']))
<tr>
<td>
<strong>CID 10:</strong> {{ $raat['parecer_medico']['cid'] }}
</td>
</tr>
@endif
@if (!is_null($raat['parecer_medico']['observacao']))
<tr>
<td>
<strong>Observação:</strong> {{ $raat['parecer_medico']['observacao'] }}
</td>
</tr>
@endif
<tr>
<td>
<table class="table-grid-inner">
<tbody>
<tr>
<td class="col-min">
<strong>Classificação inicial:</strong> {{ $raat['parecer_medico']['classificacao_inicial'] }}
</td>
<td>
<strong>Com afastamento:</strong> {{ $raat['parecer_medico']['com_afastamento'] }}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
@endif
</div>
@endif
@if (!empty($assistenciaSocial))
<div class="table-grid-margin-bottom">
<table class="table-grid">
<thead>
<tr>
<th>
Assistência social
</th>
</tr>
</thead>
<tbody>
@foreach ($assistenciaSocial as $assistencia)
<tr class="no-border-right no-border-bottom">
<td>
<p>{{ $assistencia['data'] }} {{ $assistencia['horario'] }} - {{ $assistencia['profissional']['nome'] }} - {{ $assistencia['cbo'] }}</p>
<p style="margin:0 auto!important">{!! $assistencia['anotacao'] !!}</p>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
@if (!empty($classificacoesRisco))
<div class="table-grid-margin-bottom">
<table class="table-grid">
<thead>
<tr>
<th>
Classificação de risco
</th>
</tr>
</thead>
<tbody>
@foreach ($classificacoesRisco as $classificacao)
<tr>
<td>
{{ $classificacao['data_hora'] }} - <strong>{{ $classificacao['nome'] }}</strong> - {{ $classificacao['profissional'] }} - {{ $classificacao['cbo'] }} ({{ $classificacao['setor'] }})
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
@if (!empty($fatoresRisco))
<div class="table-grid-margin-bottom">
<table class="table-grid">
<thead>
<tr>
<th>
Fatores de risco
</th>
</tr>
</thead>
<tbody>
@foreach ($fatoresRisco as $fator)
<tr>
<td>
{{ $fator['data_hora'] }} - {{ $fator['nome'] }} - {{ $fator['profissional'] }} - {{ $fator['cbo'] }} ({{ $fator['setor'] }})
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
@if (!empty($dorToracica))
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
PROTOCOLO - DOR TORÁCICA
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora do inicio do sintoma: {{$formularioDorToracica['data_sintoma']}} {{$formularioDorToracica['hora_sintoma']}} <br/>
Data/Hora ECG de admissão: {{$formularioDorToracica['data_ecg_admissao']}} {{$formularioDorToracica['hora_ecg_admissao']}} <br/>
</th>
</tr>
</thead>
</table>
<table class="table-grid">
<tbody>
<tr>
<td>
<strong>Características da dor:</strong>
@php
$statusEnum = [
DorToracicaEnum::CONTRICAO,
DorToracicaEnum::QUEIMACAO,
DorToracicaEnum::COMPRESSAO,
DorToracicaEnum::PESO,
DorToracicaEnum::DOR_SURDA
];
$caracteristicasDor = [];
foreach ($formularioDorToracica['relacionados'] as $caracteristica) {
foreach ($caracteristica as $item) {
if (in_array($item['id'], $statusEnum)) {
$caracteristicasDor[] = $item['nome'];
}
}
}
sort($caracteristicasDor);
@endphp
@if (!empty($caracteristicasDor))
@foreach ($caracteristicasDor as $caracteristicaDor)
- {{ $caracteristicaDor }}
@endforeach
@else
Nada informado
@endif
</td>
</tr>
<tr>
<td>
<strong>Localizador da dor:</strong>
@php
$statusEnum = [
DorToracicaEnum::RETROESTERNAL,
DorToracicaEnum::MSE,
DorToracicaEnum::FACE,
DorToracicaEnum::PESCOCO,
DorToracicaEnum::DENTES,
DorToracicaEnum::INTER_ESCAPULAR,
DorToracicaEnum::EPIGASTRICA,
];
$localizadoresDor = [];
foreach ($formularioDorToracica['relacionados'] as $localizador) {
foreach ($localizador as $item) {
if (in_array($item['id'], $statusEnum)) {
$localizadoresDor[] = $item['nome'];
}
}
}
sort($localizadoresDor);
@endphp
@if (!empty($localizadoresDor))
@foreach ($localizadoresDor as $localizador)
- {{ $localizador }}
@endforeach
@else
Não tem informação
@endif
</td>
</tr>
<tr>
<td>
<strong>Fator desencadeante:</strong>
@php
$statusEnum = [
DorToracicaEnum::EXERCICIO,
DorToracicaEnum::EXCITACAO,
DorToracicaEnum::ESTRESSE,
DorToracicaEnum::FRIO,
DorToracicaEnum::REFEICOES_COPIOSAS,
];
$fatoresDesencadeantes = [];
foreach ($formularioDorToracica['relacionados'] as $desencadeante) {
foreach ($desencadeante as $item) {
if (in_array($item['id'], $statusEnum)) {
$fatoresDesencadeantes[] = $item['nome'];
}
}
}
sort($fatoresDesencadeantes);
@endphp
@if (!empty($fatoresDesencadeantes))
@foreach ($fatoresDesencadeantes as $fatorDesencadeante)
- {{ $fatorDesencadeante }}
@endforeach
@else
Não tem informação
@endif
</td>
</tr>
<tr>
<td>
<strong>Duração da dor:</strong>
@php
$hasLongerThan5Minutes = false;
$hasDurationInfo = false;
@endphp
@foreach ($formularioDorToracica['relacionados'] as $duracaoDor)
@foreach ($duracaoDor as $item)
@php
$statusEnum = [
DorToracicaEnum::DURACAO_DA_DOR,
];
@endphp
@if (in_array($item['id'], $statusEnum))
@php
$hasLongerThan5Minutes = true;
$hasDurationInfo = true;
@endphp
@endif
@endforeach
@endforeach
@if ($hasDurationInfo)
@if ($hasLongerThan5Minutes)
> que 5 minutos
@endif
@else
menor que 5 minutos
@endif
</td>
</tr>
<tr>
<td>
<strong>Acompanhada de dispneia:</strong>
@if($formularioDorToracica['dispneia'] == 1)
SIM
@else
NÃO
@endif
</td>
</tr>
<tr>
<td>
<strong>Fatores de risco:</strong>
@php
$statusEnum = [
DorToracicaEnum::HAS,
DorToracicaEnum::DM,
DorToracicaEnum::DISLIPIDEMIA,
DorToracicaEnum::HISTORIA_FAMILIAR,
DorToracicaEnum::IDADE_MAIOR_SESSENTA,
DorToracicaEnum::OBESIDADE,
DorToracicaEnum::TABAGISMO,
DorToracicaEnum::REVASCULARIZADO_PREVIO,
];
$fatoresRiscoOrdenados = [];
foreach ($formularioDorToracica['relacionados'] as $fatorRisco) {
foreach ($fatorRisco as $item) {
if (in_array($item['id'], $statusEnum)) {
if ($item['id'] === DorToracicaEnum::IDADE_MAIOR_SESSENTA) {
$fatoresRiscoOrdenados[] = '- Idade > 60 anos';
} else {
$fatoresRiscoOrdenados[] = '- ' . $item['nome'];
}
}
}
}
sort($fatoresRiscoOrdenados);
@endphp
@if (!empty($fatoresRiscoOrdenados))
@foreach ($fatoresRiscoOrdenados as $fatorRisco)
{{ $fatorRisco }}
@endforeach
@else
Não tem informação
@endif
</td>
</tr>
</tbody>
</table>
</div>
@endif
@if (!empty($alergias))
<div class="table-grid-margin-bottom">
<table class="table-grid">
<thead>
<tr>
<th>
Alergias / Reações adversas
</th>
</tr>
</thead>
<tbody>
@foreach ($alergias as $alergia)
<tr>
<td>
{{ $alergia['data_hora'] }} - {{ $alergia['nome'] }} - {{ $alergia['profissional'] }} - {{ $alergia['cbo'] }} ({{ $alergia['setor'] }})
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
@if (!empty($medicamentosUsoContinuo))
<div class="table-grid-margin-bottom">
<table class="table-grid">
<thead>
<tr>
<th>
Medicamento(s) de uso contínuo
</th>
</tr>
</thead>
<tbody>
@foreach ($medicamentosUsoContinuo as $medicamento)
<tr>
<td>
{{ $medicamento['data_hora'] }} - {{ $medicamento['nome'] }} - {{ $medicamento['profissional'] }} - {{ $medicamento['cbo'] }} ({{ $medicamento['setor'] }})
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
@if (!empty($medicamentosEmUso))
<div class="table-grid-margin-bottom">
<table class="table-grid">
<thead>
<tr>
<th>
Medicamentos em uso
</th>
</tr>
</thead>
<tbody>
@foreach ($medicamentosEmUso as $medicamento)
<tr>
<td>
{{ $medicamento['data_hora'] }} - {{ $medicamento['descricao'] }} - {{ $medicamento['profissional'] }} - {{ $medicamento['cbo'] }} ({{ $medicamento['setor'] }})
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endif
@foreach ($atendimentos as $atendimento)
@if ($atendimento['tipo'] === 'triagem')
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Triagem
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{ $atendimento['data_hora'] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $atendimento['profissional']['nome'] }} - CBO: {{ $atendimento['cbo'] }}
</th>
</tr>
</thead>
</table>
@if (!is_null($atendimento['avaliacao_antropometrica']))
<table class="table-grid">
<tbody>
<tr>
<th class="table-grid-subtitle">
Avaliação antropométrica
</th>
@if (!is_null($atendimento['avaliacao_antropometrica']['peso']))
<td class="col-{{ is_null($atendimento['avaliacao_antropometrica']['altura']) ? 6 : 3 }}">
<strong>Peso:</strong> {{ $atendimento['avaliacao_antropometrica']['peso'] }}
</td>
@endif
@if (!is_null($atendimento['avaliacao_antropometrica']['altura']))
<td class="col-{{ is_null($atendimento['avaliacao_antropometrica']['peso']) ? 6 : 3 }}">
<strong>Altura:</strong> {{ $atendimento['avaliacao_antropometrica']['altura'] }}
</td>
@endif
</tr>
</tbody>
</table>
@endif
@if (!empty($atendimento['sinais_vitais']))
<table class="table-grid">
<thead>
<tr>
<th colspan="4" class="table-grid-subtitle">
Sinais Vitais
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['sinais_vitais'] as $sinalVital)
<tr>
<td class="col-3">
<strong>PA:</strong> {{ $sinalVital['pa'] }}
</td>
<td class="col-3">
<strong>Glicemia:</strong> {{ $sinalVital['glicemia'] }}
</td>
<td class="col-3">
<strong>Temperatura:</strong> {{ $sinalVital['temperatura'] }}
</td>
<td class="col-3">
<strong>Pulso:</strong> {{ $sinalVital['pulso'] }}
</td>
</tr>
<tr>
<td class="col-3">
<strong>Respiração:</strong> {{ $sinalVital['respiracao'] }}
</td>
<td class="col-3">
<strong>SaO2:</strong> {{ $sinalVital['saturacao'] }}
</td>
<td class="col-3">
<strong>Intensidade da dor:</strong> {{ $sinalVital['intensidade_dor'] }}
</td>
<td class="col-3">
<strong>Cintura:</strong> {{ $sinalVital['cintura'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!is_null($atendimento['historico_enfermagem'])
|| !is_null($atendimento['outras_avaliacoes_condicoes'])
|| !is_null($atendimento['observacoes'])
)
<table class="table-grid">
<tbody>
@if (!is_null($atendimento['historico_enfermagem']))
<tr>
<td>
<strong>Histórico de enfermagem:</strong> {{ $atendimento['historico_enfermagem'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['outras_avaliacoes_condicoes']))
<tr>
<td>
<strong>Outras avaliações e condições:</strong> {{ $atendimento['outras_avaliacoes_condicoes'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['observacoes']))
<tr>
<td>
<strong>Observações:</strong> {{ $atendimento['observacoes'] }}
</td>
</tr>
@endif
</tbody>
</table>
@endif
@if (!empty($atendimento['procedimentos']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Procedimentos realizados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['procedimentos'] as $procedimento)
<tr>
<td class="col-min">
{{ $procedimento['codigo'] }}
</td>
<td>
{{ $procedimento['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
</div>
@elseif ($atendimento['tipo'] === 'reabertura')
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom border-top">
Reabertura de FAA
</th>
<th class="text-right border-top no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{ $atendimento['data_hora'] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $atendimento['profissional']['nome'] }} - CBO: {{ $atendimento['cbo'] }}
</th>
</tr>
</thead>
</table>
</div>
@elseif ($atendimento['tipo'] === 'medico')
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Atendimento médico
@if ($atendimento['is_observacao'])
(Observação)
@endif
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{ $atendimento['data_hora'] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $atendimento['profissional']['nome'] }} - CBO: {{ $atendimento['cbo'] }}
</th>
</tr>
</thead>
</table>
@if (!is_null($atendimento['avaliacao_antropometrica']))
<table class="table-grid">
<tbody>
<tr>
<th class="table-grid-subtitle">
Avaliação antropométrica
</th>
@if (!is_null($atendimento['avaliacao_antropometrica']['peso']))
<td class="col-{{ is_null($atendimento['avaliacao_antropometrica']['altura']) ? 6 : 3 }}">
<strong>Peso:</strong> {{ $atendimento['avaliacao_antropometrica']['peso'] }}
</td>
@endif
@if (!is_null($atendimento['avaliacao_antropometrica']['altura']))
<td class="col-{{ is_null($atendimento['avaliacao_antropometrica']['peso']) ? 6 : 3 }}">
<strong>Altura:</strong> {{ $atendimento['avaliacao_antropometrica']['altura'] }}
</td>
@endif
</tr>
</tbody>
</table>
@endif
@if (!empty($atendimento['sinais_vitais']))
<table class="table-grid">
<thead>
<tr>
<th colspan="4" class="table-grid-subtitle">
Sinais Vitais
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['sinais_vitais'] as $sinalVital)
<tr>
<td class="col-3">
<strong>PA:</strong> {{ $sinalVital['pa'] }}
</td>
<td class="col-3">
<strong>Glicemia:</strong> {{ $sinalVital['glicemia'] }}
</td>
<td class="col-3">
<strong>Temperatura:</strong> {{ $sinalVital['temperatura'] }}
</td>
<td class="col-3">
<strong>Pulso:</strong> {{ $sinalVital['pulso'] }}
</td>
</tr>
<tr>
<td class="col-3">
<strong>Respiração:</strong> {{ $sinalVital['respiracao'] }}
</td>
<td class="col-3">
<strong>SaO2:</strong> {{ $sinalVital['saturacao'] }}
</td>
<td class="col-3">
<strong>Intensidade da dor:</strong> {{ $sinalVital['intensidade_dor'] }}
</td>
<td class="col-3">
<strong>Cintura:</strong> {{ $sinalVital['cintura'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!is_null($atendimento['evolucao'])
|| !is_null($atendimento['anamnsese'])
|| !is_null($atendimento['queixa_principal_duracao'])
|| !is_null($atendimento['historia_paciente'])
|| !is_null($atendimento['exame_fisico'])
|| !is_null($atendimento['diagnostico'])
|| !is_null($atendimento['conduta'])
|| !is_null($atendimento['observacoes_servicos_enfermagem'])
|| !is_null($atendimento['observacoes'])
)
<table class="table-grid">
<tbody>
@if (!is_null($atendimento['evolucao']))
<tr>
<td>
<strong>Evolução médica:</strong> {{ $atendimento['evolucao'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['anamnsese']))
<tr>
<td>
<strong>Anamnese:</strong> {{ $atendimento['anamnsese'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['queixa_principal_duracao']))
<tr>
<td>
<strong>Queixa principal e duração:</strong> {{ $atendimento['queixa_principal_duracao'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['historia_paciente']))
<tr>
<td>
<strong>História do paciente:</strong> {{ $atendimento['historia_paciente'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['exame_fisico']))
<tr>
<td>
<strong>Exame físico:</strong> {{ $atendimento['exame_fisico'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['diagnostico']))
<tr>
<td>
<strong>Diagnóstico:</strong> {{ $atendimento['diagnostico'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['conduta']))
<tr>
<td>
<strong>Conduta:</strong> {{ $atendimento['conduta'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['observacoes_servicos_enfermagem']))
<tr>
<td>
<strong>Observações de serviços de enfermagem:</strong> {{ $atendimento['observacoes_servicos_enfermagem'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['observacoes']))
<tr>
<td>
<strong>Observações:</strong> {{ $atendimento['observacoes'] }}
</td>
</tr>
@endif
</tbody>
</table>
@endif
@if (!empty($atendimento['servicos_enfermagem']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Serviços de enfermagem solicitados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['servicos_enfermagem'] as $servicoEnfermagem)
<tr>
<td class="col-min">
{{ $servicoEnfermagem['codigo'] }}
</td>
<td>
{{ $servicoEnfermagem['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['exames']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Exames solicitados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
<tr>
<td><b style="font-size:10px;">Código</b></td>
<td><b style="font-size:10px;">Procedimento</b></td>
<td><b style="font-size:10px;">Exame</b></td>
</tr>
@foreach ($atendimento['exames'] as $exame)
<tr>
<td class="col-min" style="font-size:11px;">
{{ $exame['codigo'] }}
</td>
<td style="font-size:11px;">
{{ $exame['nome'] }}
</td>
<td style="font-size:11px;">
{{ $exame['nome_exame'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['prescricoes_internas']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Prescrição interna
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['prescricoes_internas'] as $prescricao)
<tr>
<td style="border-right: none; {{ $prescricao['administracao'] ? 'border-bottom: none' : '' }};">
{{ $prescricao['medicamento'] }} {{ $prescricao['quantidade'] }} {{ $prescricao['unidade_medida_sigla'] }}
</td>
<td class="col-min" style="border-left: none; {{ $prescricao['administracao'] ? 'border-bottom: none' : '' }};">
<strong>Frequência:</strong> {{ $prescricao['frequencia'] }}
</td>
</tr>
@if ($prescricao['administracao'])
<tr>
<td colspan="2" style="border-top: none;">
<strong>Administrar:</strong> {{ $prescricao['administracao'] }}
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['procedimentos']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Procedimentos realizados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['procedimentos'] as $procedimento)
<tr>
<td class="col-min">
{{ $procedimento['codigo'] }}
</td>
<td>
{{ $procedimento['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!is_null($atendimento['cid']))
<table class="table-grid">
<tbody>
<tr>
<td>
<strong>CID 10 principal:</strong> {{ $atendimento['cid'] }}
</td>
</tr>
</tbody>
</table>
@endif
<table class="table-grid">
<tbody>
<tr>
<td class="col-min">
<strong>Solicitou reavaliação:</strong> {{ $atendimento['reavaliacao']['solicitou'] }}
</td>
@if (!is_null($atendimento['reavaliacao']['data_hora']))
<td>
<strong>Próxima reavaliação:</strong> {{ $atendimento['reavaliacao']['data_hora'] }}
</td>
@endif
</tr>
</tbody>
</table>
</div>
@elseif (($atendimento['tipo'] === 'enfermagem' && !$atendimento['nodata']) || ($atendimento['tipo'] === 'observacao' && !$atendimento['nodata']))
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Atendimento de enfermagem
@if ($atendimento['tipo'] === 'observacao')
(Observação)
@endif
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{ $atendimento['data_hora'] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $atendimento['profissional']['nome'] }} - CBO: {{ $atendimento['cbo'] }}
</th>
</tr>
</thead>
</table>
@if (isset($atendimento['data_hora_entrada'])
|| isset($atendimento['quarto'])
|| isset($atendimento['leito'])
)
<table class="table-grid">
<tbody>
<tr>
@if (isset($atendimento['data_hora_entrada']))
<td>
<strong>Data/hora de entrada:</strong> {{ $atendimento['data_hora_entrada'] }}
</td>
@endif
@if (isset($atendimento['quarto']))
<td class="col-{{ isset($atendimento['leito']) ? 3 : 6 }}">
<strong>Quarto:</strong> {{ $atendimento['quarto'] }}
</td>
@endif
@if (isset($atendimento['leito']))
<td class="col-{{ isset($atendimento['quarto']) ? 3 : 6 }}">
<strong>Leito:</strong> {{ $atendimento['leito'] }}
</td>
@endif
</tr>
</tbody>
</table>
@endif
@if (!is_null($atendimento['avaliacao_antropometrica']))
<table class="table-grid">
<tbody>
<tr>
<th class="table-grid-subtitle">
Avaliação antropométrica
</th>
@if (!is_null($atendimento['avaliacao_antropometrica']['peso']))
<td class="col-{{ is_null($atendimento['avaliacao_antropometrica']['altura']) ? 6 : 3 }}">
<strong>Peso:</strong> {{ $atendimento['avaliacao_antropometrica']['peso'] }}
</td>
@endif
@if (!is_null($atendimento['avaliacao_antropometrica']['altura']))
<td class="col-{{ is_null($atendimento['avaliacao_antropometrica']['peso']) ? 6 : 3 }}">
<strong>Altura:</strong> {{ $atendimento['avaliacao_antropometrica']['altura'] }}
</td>
@endif
</tr>
</tbody>
</table>
@endif
@if (!empty($atendimento['sinais_vitais']))
<table class="table-grid">
<thead>
<tr>
<th colspan="4" class="table-grid-subtitle">
Sinais Vitais
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['sinais_vitais'] as $sinalVital)
<tr>
<td class="col-3">
<strong>PA:</strong> {{ $sinalVital['pa'] }}
</td>
<td class="col-3">
<strong>Glicemia:</strong> {{ $sinalVital['glicemia'] }}
</td>
<td class="col-3">
<strong>Temperatura:</strong> {{ $sinalVital['temperatura'] }}
</td>
<td class="col-3">
<strong>Pulso:</strong> {{ $sinalVital['pulso'] }}
</td>
</tr>
<tr>
<td class="col-3">
<strong>Respiração:</strong> {{ $sinalVital['respiracao'] }}
</td>
<td class="col-3">
<strong>SaO2:</strong> {{ $sinalVital['saturacao'] }}
</td>
<td class="col-3">
<strong>Intensidade da dor:</strong> {{ $sinalVital['intensidade_dor'] }}
</td>
<td class="col-3">
<strong>Cintura:</strong> {{ $sinalVital['cintura'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (isset($atendimento['trauma'])
&& (!is_null($atendimento['trauma']['hemorragia_externa_grave'])
|| !is_null($atendimento['trauma']['vias_aereas'])
|| !is_null($atendimento['trauma']['oxigenacao_respiracao_ventilacao'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['pulso'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['perfusao'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['pele'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['sangramentos'])
|| !is_null($atendimento['trauma']['avaliacao_neurologica']['pupilas'])
|| !is_null($atendimento['trauma']['avaliacao_neurologica']['paresias'])
|| !is_null($atendimento['trauma']['avaliacao_neurologica']['plegia'])
|| !is_null($atendimento['trauma']['exposicao_hipotermia'])
)
)
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Trauma
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@if (!is_null($atendimento['trauma']['hemorragia_externa_grave']))
<tr>
<td colspan="2">
<strong>X - Exsanguinação hemorragia externa grave:</strong> {{ $atendimento['trauma']['hemorragia_externa_grave'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['vias_aereas']))
<tr>
<td colspan="2">
<strong>A - Vias aéreas:</strong> {{ $atendimento['trauma']['vias_aereas'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['oxigenacao_respiracao_ventilacao']))
<tr>
<td colspan="2">
<strong>B - Oxigenação / respiração / ventilação:</strong> {{ $atendimento['trauma']['oxigenacao_respiracao_ventilacao'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['circulacao_hemorragias']['pulso'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['perfusao'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['pele'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['sangramentos'])
)
<tr>
<td colspan="2" class="no-border-bottom">
<strong>C - Circulação e hemorragias</strong>
</td>
</tr>
<tr>
<td colspan="2" class="no-border-top" style="padding: 0 30px 2px 30px; border-bottom: 1px solid #000;">
<table class="table-grid-inner">
<tbody>
@if (!is_null($atendimento['trauma']['circulacao_hemorragias']['pulso'])
|| !is_null($atendimento['trauma']['circulacao_hemorragias']['perfusao'])
)
<tr>
<td class="no-border">
<table class="table-grid-inner">
<tbody>
<tr>
@if (!is_null($atendimento['trauma']['circulacao_hemorragias']['pulso']))
<td class="no-border col-min">
<strong>Pulso:</strong> {{ $atendimento['trauma']['circulacao_hemorragias']['pulso'] }}
</td>
@endif
@if (!is_null($atendimento['trauma']['circulacao_hemorragias']['perfusao']))
<td class="no-border">
<strong>Perfusão:</strong> {{ $atendimento['trauma']['circulacao_hemorragias']['perfusao'] }}
</td>
@endif
</tr>
</tbody>
</table>
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['circulacao_hemorragias']['pele']))
<tr>
<td class="no-border">
<strong>Pele:</strong> {{ $atendimento['trauma']['circulacao_hemorragias']['pele'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['circulacao_hemorragias']['sangramentos']))
<tr>
<td class="no-border">
<strong>Sangramentos:</strong> {{ $atendimento['trauma']['circulacao_hemorragias']['sangramentos'] }}
</td>
</tr>
@endif
</tbody>
</table>
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['avaliacao_neurologica']['pupilas'])
|| !is_null($atendimento['trauma']['avaliacao_neurologica']['paresias'])
|| !is_null($atendimento['trauma']['avaliacao_neurologica']['plegia'])
)
<tr>
<td class="col-min no-border-right">
<strong>D - Avaliação neurológica</strong>
</td>
<td class="no-border-left">
<table class="table-grid-inner">
<tbody>
<tr>
@if (!is_null($atendimento['trauma']['avaliacao_neurologica']['pupilas']))
<td class="col-4 text-center no-border">
<strong>Pupilas:</strong> {{ $atendimento['trauma']['avaliacao_neurologica']['pupilas'] }}
</td>
@endif
@if (!is_null($atendimento['trauma']['avaliacao_neurologica']['paresias']))
<td class="col-4 text-center no-border">
<strong>Paresias:</strong> {{ $atendimento['trauma']['avaliacao_neurologica']['paresias'] }}
</td>
@endif
@if (!is_null($atendimento['trauma']['avaliacao_neurologica']['plegia']))
<td class="col-4 text-center no-border">
<strong>Plegia:</strong> {{ $atendimento['trauma']['avaliacao_neurologica']['plegia'] }}
</td>
@endif
</tr>
</tbody>
</table>
</td>
</tr>
@endif
@if (!is_null($atendimento['trauma']['exposicao_hipotermia']))
<tr>
<td colspan="2">
<strong>E - Exposição e hipotermia:</strong> {{$atendimento['trauma']['exposicao_hipotermia'] }}
</td>
</tr>
@endif
</tbody>
</table>
@endif
@if (isset($atendimento['avaliacao_trauma_parte_corpo'])
&& (!is_null($atendimento['avaliacao_trauma_parte_corpo']['cabeca_pescoco'])
|| !is_null($atendimento['avaliacao_trauma_parte_corpo']['torax'])
|| !is_null($atendimento['avaliacao_trauma_parte_corpo']['abdome'])
|| !is_null($atendimento['avaliacao_trauma_parte_corpo']['mmss_mmii'])
)
)
<table class="table-grid">
<thead>
<tr>
<th class="table-grid-subtitle">
Avaliação do trauma por partes do corpo
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@if (!is_null($atendimento['avaliacao_trauma_parte_corpo']['cabeca_pescoco']))
<tr>
<td>
<strong>Cabeça e pescoço:</strong> {{ $atendimento['avaliacao_trauma_parte_corpo']['cabeca_pescoco'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['avaliacao_trauma_parte_corpo']['torax']))
<tr>
<td>
<strong>Tórax:</strong> {{ $atendimento['avaliacao_trauma_parte_corpo']['torax'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['avaliacao_trauma_parte_corpo']['abdome']))
<tr>
<td>
<strong>Abdome:</strong> {{ $atendimento['avaliacao_trauma_parte_corpo']['abdome'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['avaliacao_trauma_parte_corpo']['mmss_mmii']))
<tr>
<td>
<strong>MMSS e MMII:</strong> {{ $atendimento['avaliacao_trauma_parte_corpo']['mmss_mmii'] }}
</td>
</tr>
@endif
</tbody>
</table>
@endif
@if (isset($atendimento['escalas_glasgow']) && !empty($atendimento['escalas_glasgow']))
<table class="table-grid">
<thead>
<tr>
<th colspan="6" class="table-grid-subtitle">
Escala de Glasgow
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['escalas_glasgow'] as $escala)
<tr>
<td class="col-2">
Ocular: {{ $escala['ocular'] }}
</td>
<td class="col-2">
Verbal: {{ $escala['verbal'] }}
</td>
<td class="col-2">
Motora: {{ $escala['motora'] }}
</td>
<td class="col-2">
Pupilar: {{ $escala['pupilar'] }}
</td>
<td class="col-2">
Pontuação: {{ $escala['pontuacao'] }}
</td>
<td class="col-2">
{{ $escala['resultado'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!is_null($atendimento['historico'])
|| !is_null($atendimento['diagnostico'])
|| !is_null($atendimento['planejamento'])
|| !is_null($atendimento['implementacao'])
|| !is_null($atendimento['avaliacao'])
|| !is_null($atendimento['observacoes'])
)
<table class="table-grid">
<tbody>
@if (!is_null($atendimento['historico']))
<tr>
<td>
<strong>Histórico de enfermagem:</strong> {{ $atendimento['historico'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['diagnostico']))
<tr>
<td>
<strong>Diagnóstico de enfermagem:</strong> {{ $atendimento['diagnostico'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['planejamento']))
<tr>
<td>
<strong>Planejamento de enfermagem:</strong> {{ $atendimento['planejamento'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['implementacao']))
<tr>
<td>
<strong>Implementação:</strong> {{ $atendimento['implementacao'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['avaliacao']))
<tr>
<td>
<strong>Avaliação de enfermagem:</strong> {{ $atendimento['avaliacao'] }}
</td>
</tr>
@endif
@if (!is_null($atendimento['observacoes']))
<tr>
<td>
<strong>Observações:</strong> {{ $atendimento['observacoes'] }}
</td>
</tr>
@endif
</tbody>
</table>
@endif
@if (!empty($atendimento['anotacoes_enfermagem']))
<table class="table-grid">
<thead>
<tr>
<th class="table-grid-subtitle">
Anotações de enfermagem
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['anotacoes_enfermagem'] as $anotacao)
<tr>
<td>
{{ $anotacao['data_hora'] }} - {{ $anotacao['descricao'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['exames_laboratoriais']))
<table class="table-grid">
<thead>
<tr>
<th colspan="3" class="table-grid-subtitle">
Exames laboratoriais
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['exames_laboratoriais'] as $exame)
<tr>
<td class="col-min">
{{ $exame['codigo'] }}
</td>
<td>
{{ $exame['nome'] }}
</td>
<td class="col-min">
{{ $exame['nome_exame'] }}
</td>
<td class="col-min">
Status: {{ $exame['status'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['exames_imagem']))
<table class="table-grid">
<thead>
<tr>
<th colspan="3" class="table-grid-subtitle">
Exames de imagem
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['exames_imagem'] as $exame)
<tr>
<td class="col-min">
{{ $exame['codigo'] }}
</td>
<td>
{{ $exame['nome'] }}
</td>
<td>
{{ $exame['nome_exame'] }}
</td>
<td class="col-min">
Status: {{ $exame['status'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['laudos']))
<table class="table-grid">
<thead>
<tr>
<th class="table-grid-subtitle">
Laudo
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['laudos'] as $laudo)
<tr>
<td>
{{ $laudo['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['servicos_enfermagem']))
<table class="table-grid">
<thead>
<tr>
<th colspan="3" class="table-grid-subtitle">
Serviço de enfermagem
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['servicos_enfermagem'] as $servicoEnfermagem)
<tr>
<td class="col-min">
{{ $servicoEnfermagem['codigo'] }}
</td>
<td>
{{ $servicoEnfermagem['nome'] }}
</td>
<td class="col-min">
Status: {{ $servicoEnfermagem['status'] }}
</td>
</tr>
@if ($servicoEnfermagem['observacoes'])
<tr>
<td colspan="3">
Observação: {{ $servicoEnfermagem['observacoes'] }}
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['prescricoes_internas']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Prescrição interna
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['prescricoes_internas'] as $prescricao)
<tr>
<td style="border-right: none; border-bottom: none;">
{{ $prescricao['medicamento'] }} {{ $prescricao['quantidade'] }} {{ $prescricao['unidade_medida_sigla'] }}
</td>
<td class="col-min" style="border-left: none; border-bottom: none;">
<strong>Frequência:</strong> {{ $prescricao['frequencia'] }}
</td>
</tr>
@if ($prescricao['administracao'])
<tr>
<td colspan="2" style="border-top: none; {{ empty($prescricao['aplicacoes']) ? '' : 'border-bottom: none;' }}">
<strong>Administrar:</strong> {{ $prescricao['administracao'] }}
</td>
</tr>
@endif
@if (!empty($prescricao['aplicacoes']))
<tr>
<td colspan="2" style="border-top: none;">
<table class="table-grid-inner">
<tbody>
@foreach ($prescricao['aplicacoes'] as $i => $aplicacao)
@if ($i % 3 === 0)
<tr>
@endif
<td class="no-border col-4">
{{ $aplicacao['numero'] }}ª aplicação: {{ $aplicacao['status'] }}
</td>
@if (($i + 1) % 3 === 0 || $i === (count($prescricao['aplicacoes']) - 1))
</tr>
@endif
@endforeach
</tbody>
</table>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['procedimentos']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Procedimentos realizados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['procedimentos'] as $procedimento)
<tr>
<td class="col-min">
{{ $procedimento['codigo'] }}
</td>
<td>
{{ $procedimento['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
</div>
@elseif ($atendimento['tipo'] === 'exame_imagem')
<div class="table-grid-group">
@if (!empty($atendimento['exames_imagem']))
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Exame de imagem
@if ($atendimento['is_observacao'])
(Observação)
@endif
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{ $atendimento['data_hora'] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $atendimento['profissional']['nome'] }} - CBO: {{ $atendimento['cbo'] }}
</th>
</tr>
</thead>
</table>
@endif
@if (!empty($atendimento['exames_imagem']))
<table class="table-grid">
<thead>
<tr>
<th colspan="4" class="table-grid-subtitle">
Exame
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
<tr>
<td><b style="font-size:10px;">Código</b></td>
<td><b style="font-size:10px;">Procedimento</b></td>
<td><b style="font-size:10px;">Exame</b></td>
<td><b style="font-size:10px;">Status</b></td>
</tr>
@foreach ($atendimento['exames_imagem'] as $exame)
<tr>
<td class="col-min" style="font-size:11px;">
{{ $exame['codigo'] }}
</td>
<td style="font-size:11px;">
{{ $exame['nome'] }}
</td>
<td style="font-size:11px;">
{{ $exame['nome_exame'] }}
</td>
<td class="col-min" style="font-size:11px;">
{{ $exame['status'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['procedimentos']))
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Procedimentos realizados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['procedimentos'] as $procedimento)
<tr>
<td class="col-min">
{{ $procedimento['codigo'] }}
</td>
<td>
{{ $procedimento['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!empty($atendimento['laudos']))
<table class="table-grid">
<thead>
<tr>
<th class="table-grid-subtitle">
Laudo
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['laudos'] as $laudo)
<tr>
<td>
{{ $laudo['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if (!is_null($atendimento['observacoes']))
<table class="table-grid">
<tbody>
<tr>
<td>
<strong>Observações:</strong> {{ $atendimento['observacoes'] }}
</td>
</tr>
</tbody>
</table>
@endif
</div>
@elseif ($atendimento['tipo'] === 'fechamento')
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Fechamento de FAA
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data: {{ explode(' ', $atendimento['data_hora'])[0] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $atendimento['profissional']['nome'] }} - CBO: {{ $atendimento['cbo'] }}
</th>
</tr>
</thead>
</table>
<table class="table-grid">
<thead>
<tr>
<th colspan="2" class="table-grid-subtitle">
Procedimentos realizados
</th>
</tr>
</thead>
<tbody class="table-grid-sub-content">
@foreach ($atendimento['procedimentos'] as $procedimento)
<tr>
<td class="col-min">
{{ $procedimento['codigo'] }}
</td>
<td>
{{ $procedimento['nome'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
@if (!is_null($atendimento['cid']))
<table class="table-grid">
<tbody>
<tr>
<td>
<strong>CID 10 principal:</strong> {{ $atendimento['cid'] }}
</td>
</tr>
</tbody>
</table>
@endif
</div>
@endif
@endforeach
</div>
@if (isset($exclusaoFaa))
<div class="no-break-inside">
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Desfecho
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{$exclusaoFaa['data_hora']}}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $exclusaoFaa['profissional'] }} - CBO: {{ $exclusaoFaa['cbo'] }}
</th>
</tr>
</thead>
</table>
<table class="table-grid">
<thead>
<tr>
<th class="table-grid-subtitle">
FAA EXCLUÍDA
</th>
</tr>
</thead>
</table>
</div>
</div>
@endif
@if (isset($desfecho) || !empty($assinaturas))
<div class="no-break-inside">
@if (isset($desfecho))
<div class="table-grid-group">
<table class="table-grid">
<thead>
<tr>
<th class="no-border-right no-border-bottom">
Desfecho
</th>
<th class="text-right no-border-left no-border-bottom no-text-transform font-weight-normal font-size-default">
Data/Hora: {{ $desfecho['data_hora'] }}
</th>
</tr>
<tr>
<th colspan="2" class="no-border-top no-text-transform font-weight-normal font-size-default">
Profissional: {{ $desfecho['profissional'] }} - CBO: {{ $desfecho['cbo'] }}
</th>
</tr>
</thead>
</table>
<table class="table-grid">
<thead>
<tr>
<th class="table-grid-subtitle">
{{ $desfecho['nome'] }}
</th>
</tr>
</thead>
</table>
@if (isset($desfecho['evasao']))
<table class="table-grid">
<tbody class="table-grid-sub-content">
<tr>
<td>
<strong>Motivo da evasão:</strong> {{ $desfecho['evasao']['motivo'] }}
</td>
</tr>
</tbody>
</table>
@elseif (isset($desfecho['encaminhamento_hospitalar']))
<table class="table-grid">
<tbody class="table-grid-sub-content">
<tr>
<td colspan="3">
<strong>Unidade de encaminhamento:</strong> {{ $desfecho['encaminhamento_hospitalar']['unidade_encaminhamento'] }}
</td>
</tr>
<tr>
<td class="col-3">
<strong>Quarto:</strong> {{ $desfecho['encaminhamento_hospitalar']['quarto'] }}
</td>
<td class="col-3">
<strong>Leito:</strong> {{ $desfecho['encaminhamento_hospitalar']['leito'] }}
</td>
<td>
<strong>Médico hospitalar:</strong> {{ $desfecho['encaminhamento_hospitalar']['medico_hospitalar'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>CID10:</strong> {{ $desfecho['encaminhamento_hospitalar']['cid'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Observações:</strong> {{ $desfecho['encaminhamento_hospitalar']['observacoes'] }}
</td>
</tr>
</tbody>
</table>
@elseif (isset($desfecho['obito']))
<table class="table-grid">
<tbody class="table-grid-sub-content">
<tr>
<td class="col-3">
<strong>Data de óbito:</strong> {{ $desfecho['obito']['data'] }}
</td>
<td class="col-3">
<strong>Hora de óbito:</strong> {{ $desfecho['obito']['hora'] }}
</td>
<td>
<strong>Número da declaração de óbito:</strong> {{ $desfecho['obito']['numero_declaracao'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>CID10:</strong> {{ $desfecho['obito']['cid'] }}
</td>
</tr>
<tr>
<td colspan="3">
<strong>Causa do óbito:</strong> {{ $desfecho['obito']['causa'] }}
</td>
</tr>
</tbody>
</table>
@endif
</div>
@endif
@if (!empty($assinaturas))
<table class="table-grid no-border">
<tbody>
@foreach ($assinaturas as $i => $assinatura)
@if ($i % 2 === 0)
<tr>
@endif
<td class="no-border col-{{ count($assinaturas) === 1 ? 12 : 6 }}" style="padding: 20px 10px 0 10px;">
@if($paraAssinar)
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
<tr><td class="font-small">{{ $assinatura['profissional'] }}</td></tr>
<tr><td class="font-small">{{ $assinatura['cbo'] }}</td></tr>
<tr><td class="font-small">{{ $assinatura['documento'] }}</td></tr>
</table>
@else
@include('impressoes.components.assinatura', [
'props' => [
'class' => 'center ' . (count($assinaturas) === 1 ? 'col-6' : '')
],
'data' => [
'info' => [
'Assinatura e carimbo',
$assinatura['profissional'],
$assinatura['cbo'],
$assinatura['documento']
]
],
])
@endif
</td>
@if (($i + 1) % 2 === 0 || $i === (count($assinaturas) - 1))
</tr>
@endif
@endforeach
</tbody>
</table>
@endif
</div>
@endif
@endsection
<style>
p {
padding-top: 3px;
padding-bottom: 1px;
margin: 0;
}
</style>