Files
rkm-conectasus-ci-sandbox/api/resources/views/impressoes/template/ambulatorio/encaminhamento-hospitalar.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

639 lines
21 KiB
PHP

<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Laudo de Solicitação de Internação</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
font-size: 15px;
line-height: 1.3;
color: #1b1b1b;
width: 100%;
}
.header-title {
text-align: center;
font-size: 25px;
font-weight: bold;
margin-bottom: 10px;
margin-top: 8px;
text-transform: uppercase;
}
fieldset {
width: 100%;
height: 100%;
box-sizing: border-box;
border: 1px solid #222222;
margin-bottom: 5px;
padding: 5px;
position: relative;
}
legend {
font-weight: bold;
font-size: 16px;
white-space: nowrap;
left:3px;
background: #fff;
position: relative;
z-index: 2;
}
.cell {
border: 1px solid #000;
padding: 2px 4px;
vertical-align: top;
}
.cell-label {
font-size: 15px;
font-weight: bold;
display: block;
margin-bottom: 2px;
}
.cell-value {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
min-height: 19px;
}
.inner-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 6px;
vertical-align: center
}
.inner-table:last-child {
margin-bottom: 0;
}
.causa-options{
display:flex;
flex-direction:column;
justify-content:center;
align-items:flex-start;
font-size:15px;
}
.vinculo-options {
display: block;
padding: 2px 6px;
font-size: 15px;
}
.vinculo-options span {
margin-right: 14px;
white-space: nowrap;
}
.aih-cell {
padding: 4px;
vertical-align: top;
width: 180px;
}
.date-slash {
color: #555;
letter-spacing: 6px;
}
#logotipo {
max-width: 120px;
max-height: 80px;
width: auto;
height: auto;
object-fit: contain;
}
.header-left {
width: 140px;
vertical-align: middle;
}
.cell-value:empty::before {
content: "\00a0";
}
footer {
color: #222222;
display: block;
font-family: Helvetica;
font-size: 14px;
padding-top: 5mm;
}
.footer {
border-top: 2px solid #000000;
width: 100%;
}
.footer-left {
text-align: left;
line-height: 20px;
}
.footer-right {
text-align: right;
line-height: 20px;
font-size: 12px;
}
</style>
</head>
<body>
<table class="header">
<tr>
<td class="header-left">
<img
alt="Logotipo"
id="logotipo"
src="data:image/png;base64, {{ $cliente['logotipo'] }}"
/>
</td>
<td class="header-right">
<p>Prefeitura de {{ $cliente['nome'] }} - Secretaria Municipal de {{ $cliente['ramoAtividade']}}</p>
<p>{{ $cliente['infraestrutura']['nomeUnidade'] }} - {{ $cliente['infraestrutura']['telefone'] }} </p>
<div>
{{$cliente['infraestrutura']['endereco']['tipo']}} {{$cliente['infraestrutura']['endereco']['logradouroNome']}},
@if($cliente['infraestrutura']['endereco']['numero'])
{{ $cliente['infraestrutura']['endereco']['numero']}},
@endif
@if($cliente['infraestrutura']['endereco']['referencia'])
{{ $cliente['infraestrutura']['endereco']['referencia']}},
@endif
{{$cliente['infraestrutura']['endereco']['bairro']}},
{{$cliente['infraestrutura']['endereco']['cep']}},
{{$cliente['infraestrutura']['endereco']['municipio']}} - {{$cliente['infraestrutura']['endereco']['uf']}}
</div>
</td>
</tr>
</table>
<div class="header-title">
{{ $title }}
</div>
<fieldset>
<legend>Identificação do estabelecimento de saúde</legend>
<table class="inner-table">
<tr>
<td style="width:82%">
<fieldset>
<legend>Unidade Solicitante</legend>
<span class="cell-value">{{ $internacao['unidade_solicitante']['nome'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>CNES</legend>
<span class="cell-value">{{ $internacao['unidade_solicitante']['cnes'] }}</span>
</fieldset>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Identificação do paciente</legend>
<table class="inner-table">
<tr>
<td style="width:82%">
<fieldset>
<legend>Nome</legend>
<span class="cell-value">{{ $paciente['nome'] }}</span>
@if ($paciente['nome_social'])
@if ($paciente['prefere_nome_social'])
<strong>({{ $paciente['nome_social'] }})</strong>
@else
({{ $paciente['nome_social'] }})
@endif
@endif
</fieldset>
</td>
<td >
<fieldset>
<legend>Prontuário</legend>
<span class="cell-value">{{ $paciente['prontuario'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:24%">
<fieldset>
<legend>CNS</legend>
<span class="cell-value">{{ $paciente['cns'] }}</span>
</fieldset>
</td>
<td style="width:19%">
<fieldset>
<legend>CPF</legend>
<span class="cell-value">{{ $paciente['cpf'] }}</span>
</fieldset>
</td>
<td style="width:16%">
<fieldset>
<legend>Data de nascimento</legend>
<span class="cell-value"> {{ $paciente['data_nascimento'] }}</span>
</fieldset>
</td>
<td style="width:24%">
<fieldset>
<legend>Idade</legend>
<span class="cell-value">{{ $paciente['idade'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Sexo</legend>
<span class="cell-value"> {{ $paciente['sexo'] }} </span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:25%">
<fieldset>
<legend>Raça/Cor</legend>
<span class="cell-value">{{ $paciente['raca_cor'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Etnia indígena</legend>
<span class="cell-value"> {{ $paciente['etnia_indigena'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:82%">
<fieldset>
<legend>Nome da mãe</legend>
<span class="cell-value">{{ $paciente['nome_mae'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Contato</legend>
<span class="cell-value"> {{ $paciente['telefone'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:82%">
<fieldset>
<legend>Endereço</legend>
<span class="cell-value">{{ $paciente['endereco']['completo'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Código IBGE</legend>
<span class="cell-value"> {{ $paciente['endereco']['ibge'] }}</span>
</fieldset>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Justificativa da internação</legend>
<table class="inner-table">
<tr>
<td>
<fieldset>
<legend>Principais sinais e sintomas clínicos</legend>
<span class="cell-value">{{ $internacao['principais_sinais_sintomas_clinicos'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td>
<fieldset>
<legend>Condições que justificam a internação</legend>
<span class="cell-value">{{ $internacao['condicoes_que_justificam_internacao'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td>
<fieldset>
<legend>Principais resultados de provas diagnósticas (resultados de exames realizados)</legend>
<span class="cell-value">{{ $internacao['principais_resultados_de_provas_diagnosticas'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:50%">
<fieldset>
<legend>Diagnóstico inicial</legend>
<span class="cell-value">{{ optional($internacao['cid_principal'])['nome'] ?? '' }}</span>
</fieldset>
</td>
<td style="width:14%">
<fieldset>
<legend>CID principal</legend>
<span class="cell-value"> {{ optional($internacao['cid_principal'])['codigo'] ?? '' }}</span>
</fieldset>
</td>
<td style="width:14%">
<fieldset>
<legend>CID secundário</legend>
<span class="cell-value"> {{ $internacao['cid_secundario'] ?? '' }} </span>
</fieldset>
</td>
<td>
<fieldset>
<legend>CID causas associadas</legend>
<span class="cell-value">{{ $internacao['cid_causas_associadas'] ?? '' }}</span>
</fieldset>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Procedimento solicitado</legend>
<table class="inner-table">
<tr>
<td style="width:76%">
<fieldset>
<legend>Descrição do procedimento solicitado</legend>
<span class="cell-value">{{ $internacao['procedimento']['procedimento_solicitado']['nome'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Código do procedimento</legend>
<span class="cell-value">{{ $internacao['procedimento']['procedimento_solicitado']['codigo'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:37%">
<fieldset>
<legend>Clínica</legend>
<span class="cell-value">{{ $internacao['procedimento']['clinica'] }}</span>
</fieldset>
</td>
<td style="width:37%">
<fieldset>
<legend>Caráter de internação</legend>
<span class="cell-value">{{ $internacao['procedimento']['carater_internacao'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>{{ $internacao['procedimento']['profissional_assistente_documento']['nome']}}</legend>
<span class="cell-value">{{ $internacao['procedimento']['profissional_assistente_documento']['numero'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:50%">
<fieldset>
<legend>Nome do profissional solicitante / Assistente</legend>
<span class="cell-value">{{ $internacao['procedimento']['profissional_solicitante_assistente'] }}</span>
</fieldset>
</td>
<td style="width:20%">
<fieldset>
<legend>Data da solicitação</legend>
<span class="cell-value"> {{ $internacao['procedimento']['data_solicitacao'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Assinatura e carimbo (Nº do registro do conselho)</legend>
<span class="cell-value">&nbsp;</span>
</fieldset>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Preencher em caso de causas externas (acidentes ou violências)</legend>
<table class="inner-table">
<tr>
<td style="width:35%; vertical-align: top;">
<fieldset style="width:100%; height:105px; box-sizing:border-box;">
<div class="causa-options">
@foreach($causa_externa['causas_externas'] as $id => $nome)
<p><span>({{ $id == $internacao['causas_externas']['causa_externa'] ? 'X': ' '}}) {{ $nome }}</span></p>
@endforeach
</div>
</fieldset>
</td>
<td style="vertical-align: top; padding-left: 6px;">
<table class="inner-table" style="width:100%; table-layout: fixed;">
<tr>
<td style="width:50%">
<fieldset>
<legend>CNPJ da seguradora</legend>
<span class="cell-value">{{ $internacao['causas_externas']['cnpj_seguradora'] }}</span>
</fieldset>
</td>
<td style="width:25%">
<fieldset>
<legend>Nº do bilhete</legend>
<span class="cell-value">{{ $internacao['causas_externas']['numero_bilhete'] }}</span>
</fieldset>
</td>
<td >
<fieldset>
<legend>Série</legend>
<span class="cell-value">{{ $internacao['causas_externas']['serie'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table" style="width:100%; table-layout: fixed;">
<tr>
<td style="width:37%">
<fieldset>
<legend>CNPJ empresa</legend>
<span class="cell-value">{{ $internacao['causas_externas']['cnpj_empresa'] }}</span>
</fieldset>
</td>
<td style="width:37%">
<fieldset>
<legend>CNAE da empresa</legend>
<span class="cell-value">{{ $internacao['causas_externas']['cnae_empresa'] }}</span>
</fieldset>
</td>
<td>
<fieldset>
<legend>CBOR</legend>
<span class="cell-value">{{ $internacao['causas_externas']['cbor'] }}</span>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td>
<fieldset>
<legend>Vínculo com a previdência</legend>
<div class="vinculo-options">
@foreach($causa_externa['vinculos_previdencia'] as $id => $nome)
<span>({{ $id == $internacao['causas_externas']['vinculo_previdencia'] ? 'X': ' '}}) {{ $nome }}</span>
@endforeach
</div>
</fieldset>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Autorização</legend>
<table>
<tr>
<td style="width:82%; vertical-align: top;">
<table class="inner-table">
<tr>
<td style="width:66%">
<fieldset>
<legend>Nome do profissional autorizador</legend>
<span class="cell-value">{{ $internacao['autorizacao']['profissional_autorizador'] }}</span>
</fieldset>
</td>
<td>
<fieldset>
<legend>Código do órgão emissor</legend>
<span class="cell-value">{{ $internacao['autorizacao']['orgao_codigo_emissor'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:33%">
<fieldset>
<legend>Documento</legend>
<span class="cell-value">{{ $internacao['autorizacao']['profissional_autorizador_documento']['nome'] }}</span>
</fieldset>
</td>
<td>
<fieldset>
<legend>Nº documento (CNS/CPF) do profissional autorizador</legend>
<span class="cell-value">{{ $internacao['autorizacao']['profissional_autorizador_documento']['numero'] }}</span>
</fieldset>
</td>
</tr>
</table>
<table class="inner-table">
<tr>
<td style="width:160px;">
<fieldset>
<legend>Data da autorização</legend>
<span class="cell-value date-slash">
{{ $internacao['autorizacao']['data_autorizacao'] }}
</span>
</fieldset>
</td>
<td>
<fieldset>
<legend>Assinatura e carimbo (Nº do registro do conselho)</legend>
<span class="cell-value">&nbsp;</span>
</fieldset>
</td>
</tr>
</table>
</td>
<td class="aih-cell" style="height:175px; vertical-align: top;">
<fieldset style="width:100%; height:100%; box-sizing:border-box;">
<legend>Nº da autorização de internação hospitalar</legend>
<span class="cell-value">&nbsp;</span>
</fieldset>
</td>
</tr>
</table>
</fieldset>
<footer>
<table class="footer">
<tr>
<td class="footer-left">
<p>Página 1 de 1</span></p>
</td>
<td class="footer-right">
<p>Impresso por: {{$usuario['nome']}}</p>
<p>Unidade: {{$usuario['unidade']}} </p>
<p>Data/hora da impressão: {{ $usuario['data_hora_impressao']}}</p>
</td>
</tr>
</table>
</footer>
</body>
</html>