This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<div class="text-justify area">
|
||||
Atesto, para os devidos fins, que o Sr(a) {{ $nomeAcompanhante }}, {{ $documento['tipo'] }} {{ $documento['numero'] }} está ACOMPANHANDO o Sr(a) @include('impressoes.components.paciente-nome', $paciente), CPF {{ $paciente['cpf'] }} na unidade de pronto atendimento {{ $unidade['nome'] }} no dia {{ $data }} às {{ $hora }}{{ empty($cid) ? '' : " com diagnóstico segundo CID10 {$cid}" }}. {{ $afastamento_texto }}
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
|
||||
<div class="area text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$profissional['nome']}</strong>",
|
||||
$profissional['cbo'],
|
||||
]
|
||||
],
|
||||
])
|
||||
@endsection
|
||||
@@ -0,0 +1,45 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<div class="text-justify area">
|
||||
Atesto, para os devidos fins, que @include('impressoes.components.paciente-nome', $paciente), {{ $documento['tipo'] }} {{ $documento['numero'] }} recebeu
|
||||
atendimento na unidade de pronto atendimento {{ $unidade['nome'] }} no dia {{ $data }} às {{ $hora }}{{ empty($cid) ? '' : " com diagnóstico segundo CID10 {$cid}" }}.
|
||||
{{ $afastamento_texto }}
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
<div class="area text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$profissional['nome']}</strong>",
|
||||
$profissional['cbo'],
|
||||
]
|
||||
],
|
||||
])
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@if (!empty($cid))
|
||||
<h3 class="text-center">AUTORIZAÇÃO</h3>
|
||||
|
||||
<div class="text-justify area">
|
||||
Eu, @include('impressoes.components.paciente-nome', $paciente) autorizo o(a) Dr(a). {{$profissional['nome']}}, a registrar o diagnóstico codificado CID ou por
|
||||
extenso neste atestado médico.
|
||||
</div>
|
||||
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => ['class' => 'col-4 center'],
|
||||
'data' => ['info' => ["<strong>Assinatura do paciente ou responsável</strong>"]],
|
||||
])
|
||||
@endif
|
||||
@endsection
|
||||
@@ -0,0 +1,37 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
@foreach($declaracoes as $declaracao)
|
||||
<div class="page">
|
||||
<div class="text-justify area mt-1">
|
||||
Declaro que {{ $declaracao['acompanhante']['nome'] }}, {{ $declaracao['documento']['tipo'] }} {{ $declaracao['documento']['numero'] }},
|
||||
permaneceu na unidade de Pronto Atendimento {{ $declaracao['unidade']['nome'] }}, das {{ $declaracao['de'] }}
|
||||
às {{ $declaracao['ate'] }}, acompanhando {{ $declaracao['paciente']['sexoMasculino'] ? 'o' : 'a' }}
|
||||
paciente @include('impressoes.components.paciente-nome', $declaracao['paciente']).
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
<div class="area text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$declaracao['profissional']['nome']}</strong>",
|
||||
$declaracao['profissional']['cbo'],
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
</div>
|
||||
@endforeach
|
||||
@endsection
|
||||
@@ -0,0 +1,40 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
@foreach($declaracoes as $declaracao)
|
||||
<div class="page">
|
||||
<div class="text-justify area mt-1">
|
||||
Declaro que @include('impressoes.components.paciente-nome', $declaracao['paciente']), {{ $declaracao['documento']['tipo'] }} {{ $declaracao['documento']['numero'] }},
|
||||
permaneceu na unidade de Pronto Atendimento {{ $declaracao['unidade']['nome'] }}, das {{ $declaracao['de'] }}
|
||||
às {{ $declaracao['ate'] }}, para o fim de {{ $declaracao['motivo'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
<div class="area text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$declaracao['profissional']['nome']}</strong>",
|
||||
$declaracao['profissional']['cbo'],
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
</div>
|
||||
@endforeach
|
||||
@endsection
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,275 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<div class="area font-small">
|
||||
<div class="font-large">INTERNAÇÃO</div>
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Quarto:</strong></td>
|
||||
<td colspan="4"><strong>Leito:</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> {{ $encaminhamentoHospitalar['quarto'] }} </td>
|
||||
<td> {{ $encaminhamentoHospitalar['leito'] }} </td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Paciente:</strong></td>
|
||||
<td><strong>Idade:</strong></td>
|
||||
<td><strong>Sexo:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $paciente['nome'] }}</td>
|
||||
<td>{{ $paciente['idadeCompleta'] }}</td>
|
||||
<td>{{ $paciente['sexo'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Data de Nascimento: </strong></td>
|
||||
<td><strong>Telefone: </strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $paciente['dataNascimento'] }}</td>
|
||||
<td>{{ $paciente['telefone'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if (sizeof($evolucoesMedicas ?? []) > 0)
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">EVOLUÇÃO MÉDICA</div>
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Data/Hora:</strong></td>
|
||||
<td><strong>Médico(a):</strong></td>
|
||||
</tr>
|
||||
@foreach ($evolucoesMedicas as $evolucaoMedica)
|
||||
<tr>
|
||||
<td>{{ $evolucaoMedica['dataHora'] }}</td>
|
||||
<td>{{ $evolucaoMedica['profissional']['nome'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (sizeof($evolucoesEnfermagem ?? []) > 0)
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">EVOLUÇÃO DE ENFERMAGEM</div>
|
||||
<br>
|
||||
<table>
|
||||
<tr>
|
||||
@foreach ($evolucoesEnfermagem as $evolucaoEnfermagem)
|
||||
<td><strong>Data/Hora:</strong> {{ $evolucaoEnfermagem['dataHora'] }}</td>
|
||||
<td><strong>Médico(a):</strong> {{ $evolucaoEnfermagem['profissional']['nome'] }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">ANAMNESE</div>
|
||||
<br>
|
||||
|
||||
<table>
|
||||
@if (sizeof($queixasPrincipaisDuracoes ?? []) > 0)
|
||||
|
||||
<tr><td><strong>Queixa Principal:</strong></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
@php
|
||||
$queixaPrincipal = implode(", ", $queixasPrincipaisDuracoes);
|
||||
@endphp
|
||||
{{ $queixaPrincipal }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
@endif
|
||||
|
||||
|
||||
@if (sizeof($historias ?? []) > 0)
|
||||
|
||||
<tr><td><strong>Histórias:</strong></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
@php
|
||||
$historia = implode(", ", $historias);
|
||||
@endphp
|
||||
{{ $historia }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
@endif
|
||||
|
||||
|
||||
@if (sizeof($diagnosticos ?? []) > 0)
|
||||
|
||||
<tr><td><strong>Diagnósticos:</strong></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
@php
|
||||
$diagnostico = implode(", ", $diagnosticos);
|
||||
@endphp
|
||||
{{ $diagnostico }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
@endif
|
||||
|
||||
|
||||
@if (sizeof($condutas ?? []) > 0)
|
||||
|
||||
<tr><td><strong>Condutas:</strong></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
@php
|
||||
$conduta = implode(", ", $condutas);
|
||||
@endphp
|
||||
{{ $conduta }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
@endif
|
||||
|
||||
|
||||
@if (sizeof($examesFisicos ?? []) > 0)
|
||||
|
||||
<tr><td><strong>Exames Físicos:</strong></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
@php
|
||||
$exameFisico = implode(", ", $examesFisicos);
|
||||
@endphp
|
||||
{{ $exameFisico }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">DADOS CLÍNICOS</div>
|
||||
<br>
|
||||
<table>
|
||||
{{-- POR FALTA DE COMUNICAÇÃO, SERÁ ADICIONADO DEPOIS --}}
|
||||
<tr></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">OBSERVAÇÃO</div>
|
||||
<br>
|
||||
<table>
|
||||
@if ($encaminhamentoHospitalar['observacoes'])
|
||||
<tr>
|
||||
<td>{{ $encaminhamentoHospitalar['observacoes'] }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="area font-small">
|
||||
@if (sizeof($prescricoesInternas ?? []) > 0)
|
||||
<div class="font-large">PRESCRIÇÃO INTERNA</div>
|
||||
<br>
|
||||
<table>
|
||||
|
||||
@foreach ($prescricoesInternas as $prescricaoInterna)
|
||||
<tr>
|
||||
<td><strong>Data/Hora:</strong></td>
|
||||
<td><strong>Médico:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $prescricaoInterna['dataHora'] }}</td>
|
||||
<td>{{ $prescricaoInterna['profissional']['cbo'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Medicamento</strong></td>
|
||||
<td><strong>Quantidade</strong></td>
|
||||
<td><strong>Forma farmacêutica</strong></td>
|
||||
<td><strong>Administrar</strong></td>
|
||||
</tr>
|
||||
|
||||
@foreach ($prescricaoInterna['medicamentos'] as $medicamento)
|
||||
<tr>
|
||||
<td>{{ $medicamento['nome'] }}</td>
|
||||
<td>{{ $medicamento['quantidade'] }}</td>
|
||||
<td>{{ $medicamento['formaFarmaceutica'] }}</td>
|
||||
<td>{{ $medicamento['administracao'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Status da medicação
|
||||
</td>
|
||||
<td colspan="3">
|
||||
@foreach ($medicamento['aplicacoes'] as $aplicacao)
|
||||
{{ $aplicacao['aplicacao'] }}ª - {{ $aplicacao['status'] }} |
|
||||
@endforeach
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
@endforeach
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Via de administracao: </strong> {{ $prescricaoInterna['viaAdministracao'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Frequência: </strong>{{ $prescricaoInterna['frequencia'] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Observação: </strong>{{ $prescricaoInterna['observacoes'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<div class="font-small text-right mt-2">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$encaminhamentoHospitalar['profissional']['nome']}</strong>",
|
||||
$encaminhamentoHospitalar['profissional']['cbo'],
|
||||
]
|
||||
],
|
||||
])
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
@foreach($evolucoes as $evolucao)
|
||||
|
||||
<div class="area text-left mt-1 border-bottom">
|
||||
<div>
|
||||
<strong>Data/Hora: </strong>{{ $evolucao['dataHora'] }}
|
||||
<strong>Médico: </strong>{{ $evolucao['profissional']['nome'] }} - {{ $evolucao['profissional']['cbo'] }}
|
||||
</div>
|
||||
<div class="mt-1"><strong>Evolução Médica: </strong><span>{{ $evolucao['evolucao'] }}</span></div>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
@@ -0,0 +1,5 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
@extends('impressoes.template.pronto-atendimento.atendimento-medico.evolucao-medica-conteudo')
|
||||
@endsection
|
||||
@@ -0,0 +1,7 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
{!! $conteudo !!}
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
@foreach($encaminhamentos as $encaminhamento)
|
||||
<div class="page">
|
||||
<div class="area font-small">
|
||||
<div class="font-large">Dados do paciente</div>
|
||||
|
||||
<br />
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="3"><strong>Paciente:</strong></td>
|
||||
<td><strong>CNS:<strong></td>
|
||||
<td><strong>Urgente:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span>@include('impressoes.components.paciente-nome', $encaminhamento['paciente'])</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['cns'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['urgente'] ? 'Sim' : 'Não' }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Sexo: </strong></td>
|
||||
<td><strong>Idade: </strong></td>
|
||||
<td><strong>Data de nascimento: </strong></td>
|
||||
<td><strong>Telefone: </strong></td>
|
||||
<td><strong>Prontuário da unidade: </strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['sexo'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['idadeCompleta'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['dataNascimento'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['telefone'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['prontuarioUnidade'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3"><strong>Nome da mãe:</strong></td>
|
||||
<td><strong>Município de nascimento:</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span>{{ $encaminhamento['paciente']['nomeMae'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['paciente']['municipioNascimento'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">Dados da Unidade</div>
|
||||
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Unidade de saúde solicitante: </strong></td>
|
||||
<td><strong>CNES: </strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['unidade']['nome'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['unidade']['cnes'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional solicitante: </strong></td>
|
||||
<td><strong>CNS Profissional: </strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['profissional']['nome'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['profissional']['cns'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr><td><br></td></tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Especialidade Médica: </strong></td>
|
||||
<td><strong>Hipótese / Diagnóstico (CID10): </strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['cbo'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span>{{ $encaminhamento['cid'] }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="area font-small">
|
||||
<div class="font-large">Referência</div>
|
||||
|
||||
<br>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Motivo do encaminhamento: </strong></td>
|
||||
<td><strong>Observação: </strong></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $encaminhamento['motivo'] }}</td>
|
||||
<td>{{ $encaminhamento['observacoes'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small text-right mt-2">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$encaminhamento['profissional']['nome']}</strong>",
|
||||
$encaminhamento['profissional']['cbo'],
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
</div>
|
||||
@endforeach
|
||||
@endsection
|
||||
@@ -0,0 +1,32 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<div class="text-justify area mt-1">
|
||||
{{ $orientacoes }}
|
||||
</div>
|
||||
|
||||
<div class="mt-1">
|
||||
<strong>Data/hora da orientação médica: </strong><span>{{ $dataHora }}</span>
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
<div class="area text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$profissional['nome']}</strong>",
|
||||
$profissional['cbo'],
|
||||
]
|
||||
],
|
||||
])
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,46 @@
|
||||
<div class="mt-1">
|
||||
<strong>Massa: </strong><span>{{ $massa }}</span>
|
||||
</div>
|
||||
|
||||
<div class="area text-left mt-1 border-bottom">
|
||||
<div>
|
||||
<strong>Data/Hora: </strong><span class="font-small mr-1">{{ $dataHora }}</span>
|
||||
<strong>Médico(a): </strong><span class="font-small">{{ $profissional['nome'] }} - {{ $profissional['cbo'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-left area">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">Medicamento</th>
|
||||
<th class="text-left">Quantidade</th>
|
||||
<th class="text-left">Forma farmacêutica</th>
|
||||
<th class="text-left">Administrar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($medicamentos as $medicamento)
|
||||
<tr>
|
||||
<td>{{ $medicamento['nome'] }}</td>
|
||||
<td>{{ $medicamento['quantidade'] }}</td>
|
||||
<td>{{ $medicamento['formaFarmaceutica'] }}</td>
|
||||
<td>{{ $medicamento['administracao'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-1">
|
||||
@if($doseUnica)
|
||||
<strong>Dose única</strong>
|
||||
@else
|
||||
<strong>Frequência: </strong><span>{{ $frequencia }}</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="area text-left border-bottom">
|
||||
<strong>Observações: </strong>
|
||||
<span class="font-small mr-1">{{ $observacoes }}</span>
|
||||
</div>
|
||||
@@ -0,0 +1,197 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
|
||||
<div class="table-grid-margin-bottom">
|
||||
<table class="table-grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<table class="table-grid-inner">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="no-background-color">
|
||||
{{ $paciente['nome'] }}
|
||||
|
||||
@if (!is_null($paciente['nome_social']))
|
||||
({{ $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>
|
||||
<strong>CPF:</strong> {{ $paciente['cpf'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Sexo:</strong> {{ $paciente['sexo'] }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Peso:</strong> {{ $avaliacaoAntropometrica['massa'] }}
|
||||
</td>
|
||||
<td>
|
||||
<strong>Altura:</strong> {{ $avaliacaoAntropometrica['altura'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Data de nascimento:</strong> {{ $paciente['data_nascimento'] }}
|
||||
</td>
|
||||
|
||||
<td colspan="{{ $paciente['idade_gestacional'] ? 3 : 4 }}">
|
||||
<strong>Idade:</strong> {{ $paciente['idade'] }}
|
||||
</td>
|
||||
|
||||
@if (!is_null($paciente['idade_gestacional']))
|
||||
<td>
|
||||
Gestante a {{ $paciente['idade_gestacional'] }}
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<strong>Nome da mãe:</strong> {{ $paciente['nome_mae'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<strong>Endereço:</strong> {{ $paciente['endereco'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<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>
|
||||
|
||||
<div>
|
||||
|
||||
@foreach($prescricoesInternas as $prescricaoInterna)
|
||||
|
||||
<div class="text-left mt-1 border-bottom" style="margin-bottom:3px;">
|
||||
<strong>Data/Hora: </strong><span class="font-small mr-1">{{ $prescricaoInterna['dataHora'] }}</span>
|
||||
<strong>Médico(a): </strong><span class="font-small">{{ $prescricaoInterna['profissional']['nome'] }} - {{ $prescricaoInterna['profissional']['cbo'] }}</span>
|
||||
</div>
|
||||
|
||||
<table class="table text-left">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left col-4">Medicamento</th>
|
||||
<th class="text-left col-2">Quantidade</th>
|
||||
<th class="text-left col-3">Forma farmacêutica</th>
|
||||
<th class="text-left col-3">Administrar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($prescricaoInterna['medicamentos'] as $medicamento)
|
||||
<tr>
|
||||
<td>{{ $medicamento['nome'] }}</td>
|
||||
<td>{{ $medicamento['quantidade'] }}</td>
|
||||
<td>{{ $medicamento['formaFarmaceutica'] }}</td>
|
||||
<td>{{ $medicamento['administracao'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="mt-1">
|
||||
@if($prescricaoInterna['doseUnica'])
|
||||
<strong>Dose única</strong>
|
||||
@else
|
||||
<strong>Frequência: </strong><span>{{ $prescricaoInterna['frequencia'] }}</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="mt-1 text-left border-bottom">
|
||||
<strong>Observações: </strong>
|
||||
<span class="font-small mr-1">{{ $prescricaoInterna['observacoes'] }}</span>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 80px"></div>
|
||||
|
||||
<div class="area text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $_data['dataAtual']['porExtenso'] }}.
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 80px"></div>
|
||||
|
||||
<table class="table-grid no-border">
|
||||
<tbody>
|
||||
@php
|
||||
$vistosNomesCBO = [];
|
||||
$contadorAssinaturas = 0;
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
@foreach ($prescricoesInternas as $i => $assinatura)
|
||||
@if (!isset($vistosNomesCBO[$assinatura['profissional']['nome']][$assinatura['profissional']['cbo']]))
|
||||
@php
|
||||
$vistosNomesCBO[$assinatura['profissional']['nome']][$assinatura['profissional']['cbo']] = true;
|
||||
@endphp
|
||||
|
||||
<td class="no-border col-{{ count($prescricoesInternas) === 1 ? 12 : 6 }}" style="padding: 20px 10px 0 10px;">
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => [
|
||||
'class' => 'center ' . (count($prescricoesInternas) === 1 ? 'col-6' : '')
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$assinatura['profissional']['nome']}</strong>",
|
||||
$assinatura['profissional']['cbo'],
|
||||
]
|
||||
],
|
||||
])
|
||||
</td>
|
||||
|
||||
@php
|
||||
$contadorAssinaturas++;
|
||||
@endphp
|
||||
|
||||
@if ($contadorAssinaturas % 2 === 0 || $i === (count($prescricoesInternas) - 1))
|
||||
</tr>
|
||||
@if ($i !== (count($prescricoesInternas) - 1))
|
||||
<tr>
|
||||
@endif
|
||||
@php
|
||||
$contadorAssinaturas = 0;
|
||||
@endphp
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endsection
|
||||
@@ -0,0 +1,991 @@
|
||||
@extends('impressoes.layout.impressao', ['paraAssinar' => !$exibirAssinatura])
|
||||
|
||||
@section('conteudo')
|
||||
|
||||
@php
|
||||
function agruparMedicamentos($medicamentos) {
|
||||
$grupos = [];
|
||||
$grupoAtual = [];
|
||||
$alturaAtual = 0;
|
||||
$alturaMaxima = 100;
|
||||
|
||||
foreach ($medicamentos as $medicamento) {
|
||||
$alturaMedicamento = calcularAlturaMedicamento($medicamento);
|
||||
|
||||
if ($alturaAtual + $alturaMedicamento > $alturaMaxima && !empty($grupoAtual)) {
|
||||
$grupos[] = $grupoAtual;
|
||||
$grupoAtual = [];
|
||||
$alturaAtual = 0;
|
||||
}
|
||||
|
||||
$grupoAtual[] = $medicamento;
|
||||
$alturaAtual += $alturaMedicamento;
|
||||
}
|
||||
|
||||
if (!empty($grupoAtual)) {
|
||||
|
||||
$grupos[] = $grupoAtual;
|
||||
}
|
||||
|
||||
return $grupos;
|
||||
}
|
||||
|
||||
function calcularAlturaMedicamento($medicamento) {
|
||||
|
||||
$alturaBase = 30;
|
||||
|
||||
if (!empty($medicamento['recomendacoes']) && !$medicamento['livre']) {
|
||||
return $alturaBase + 20 * ceil(strlen($medicamento['recomendacoes']) / 50);
|
||||
}
|
||||
|
||||
if (!empty($medicamento['descricao'])) {
|
||||
return $alturaBase + 20 * ceil(strlen($medicamento['descricao']) / 50);
|
||||
}
|
||||
|
||||
return $alturaBase;
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
@foreach($receitas as $receita)
|
||||
@if(count($receita['medicamentos']) > 0)
|
||||
|
||||
@if($receita['isEspecial'])
|
||||
|
||||
@php
|
||||
$medicamentosGroups = agruparMedicamentos($receita['medicamentos']);
|
||||
@endphp
|
||||
|
||||
@foreach($medicamentosGroups as $groupIndex => $medicamentosGroup)
|
||||
|
||||
<div class="page">
|
||||
@if($receita['isEspecial'])
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-5 font-small">
|
||||
<div class="row">
|
||||
<div class="cell col-5"></div>
|
||||
<div class="cell col-7">1º VIA - RETENÇÃO NA FARMÁCIA OU DROGARIA</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-5"></div>
|
||||
<div class="cell col-7">2º VIA - ORIENTAÇÃO AO PACIENTE</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell col-5 font-small">
|
||||
<div class="row">
|
||||
<div class="cell col-5"></div>
|
||||
<div class="cell col-7">1º VIA - RETENÇÃO NA FARMÁCIA OU DROGARIA</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-5"></div>
|
||||
<div class="cell col-7">2º VIA - ORIENTAÇÃO AO PACIENTE</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-5 font-small" style="padding-right:15px">
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Emitente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Paciente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Medicamentos</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<table class="card">
|
||||
<tbody>
|
||||
@foreach($medicamentosGroup as $medicamento)
|
||||
<tr class="card-top">
|
||||
<td>
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>{{ $medicamento['nome'] }}</strong>
|
||||
@elseif (isset($medicamento['medicamento_manual']))
|
||||
{!! $medicamento['medicamento_manual'] !!}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
@if($medicamento['usoContinuo'])
|
||||
uso contínuo
|
||||
@elseif($medicamento['doseUnica'])
|
||||
dose única
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-middle">
|
||||
<td>
|
||||
{{ $medicamento['posologia'] }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>Via: </strong>
|
||||
{{ $medicamento['viaAdministracao'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom">
|
||||
<td colspan="2">
|
||||
@if(!$medicamento['livre'] && $medicamento['recomendacoes'])
|
||||
<strong>Recomendações:</strong> {{ $medicamento['recomendacoes'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small mt-8px text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center',
|
||||
'height' => 35
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'],
|
||||
$receita['profissional']['documento']
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-left:15px">
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Emitente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Paciente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Medicamentos</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<table class="card">
|
||||
<tbody>
|
||||
@foreach($medicamentosGroup as $medicamento)
|
||||
<tr class="card-top">
|
||||
<td>
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>{{ $medicamento['nome'] }}</strong>
|
||||
@elseif (isset($medicamento['medicamento_manual']))
|
||||
{!! $medicamento['medicamento_manual'] !!}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
@if($medicamento['usoContinuo'])
|
||||
uso contínuo
|
||||
@elseif($medicamento['doseUnica'])
|
||||
dose única
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-middle">
|
||||
<td>
|
||||
{{ $medicamento['posologia'] }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>Via: </strong>
|
||||
{{ $medicamento['viaAdministracao'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom">
|
||||
<td colspan="2">
|
||||
@if(!$medicamento['livre'] && $medicamento['recomendacoes'])
|
||||
<strong>Recomendações:</strong> {{ $medicamento['recomendacoes'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small mt-8px text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => ['class' => 'col-4 center',
|
||||
'height' => 35
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'],
|
||||
$receita['profissional']['documento']
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($receita['isEspecial'])
|
||||
<div class="row">
|
||||
<div class="cell col-5 font-small" style="padding-right:15px">
|
||||
<div class="fieldset mt-8px font-tiny">
|
||||
<div class="legend">
|
||||
<strong>Identificação do comprador</strong>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom;">
|
||||
<strong>Nome:</strong>
|
||||
</div>
|
||||
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom;">
|
||||
<strong>RG:</strong>
|
||||
</div>
|
||||
|
||||
<div class="cell" style="vertical-align: bottom; padding-right: 5px;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
|
||||
<div class="cell col-min" style="vertical-align: bottom;">
|
||||
<strong>Órgão emissor:</strong>
|
||||
</div>
|
||||
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Endereço:</strong>
|
||||
</div>
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Cidade:</strong>
|
||||
</div>
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>UF:</strong>
|
||||
</div>
|
||||
<div class="cell col-1" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Telefone:</strong>
|
||||
</div>
|
||||
<div class="cell col-2" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldset mt-8px font-tiny">
|
||||
<div class="legend">
|
||||
<strong>Identificação do fornecedor</strong>
|
||||
</div>
|
||||
|
||||
@for($j = 0; $j < 3; $j++)
|
||||
<div class="manual-line"></div>
|
||||
@endfor
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Assinatura do farmacêutico:</strong>
|
||||
</div>
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
<div class="cell col-6" style="vertical-align: bottom; white-space: nowrap; text-align: right;">
|
||||
<strong>Data de fornecimento:</strong> <span class="empty-date"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-left:15px">
|
||||
<div class="fieldset mt-8px font-tiny">
|
||||
<div class="legend">
|
||||
<strong>Identificação do comprador</strong>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom;">
|
||||
<strong>Nome:</strong>
|
||||
</div>
|
||||
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom;">
|
||||
<strong>RG:</strong>
|
||||
</div>
|
||||
|
||||
<div class="cell" style="vertical-align: bottom; padding-right: 5px;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
|
||||
<div class="cell col-min" style="vertical-align: bottom;">
|
||||
<strong>Órgão emissor:</strong>
|
||||
</div>
|
||||
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Endereço:</strong>
|
||||
</div>
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Cidade:</strong>
|
||||
</div>
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>UF:</strong>
|
||||
</div>
|
||||
<div class="cell col-1" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Telefone:</strong>
|
||||
</div>
|
||||
<div class="cell col-2" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fieldset mt-8px font-tiny">
|
||||
<div class="legend">
|
||||
<strong>Identificação do fornecedor</strong>
|
||||
</div>
|
||||
|
||||
@for($j = 0; $j < 3; $j++)
|
||||
<div class="manual-line"></div>
|
||||
@endfor
|
||||
|
||||
<div class="row">
|
||||
<div class="cell col-min" style="vertical-align: bottom; white-space: nowrap">
|
||||
<strong>Assinatura do farmacêutico:</strong>
|
||||
</div>
|
||||
<div class="cell" style="vertical-align: bottom;">
|
||||
<div class="manual-line"></div>
|
||||
</div>
|
||||
<div class="cell col-6" style="vertical-align: bottom; white-space: nowrap; text-align: right;">
|
||||
<strong>Data de fornecimento:</strong> <span class="empty-date"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(!$receita['isEspecial'])
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<div class="cell col-5 font-small" style="padding-right:15px">
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Emitente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Paciente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Medicamentos</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<table class="card">
|
||||
<tbody>
|
||||
@php
|
||||
$prescricao_manual = [];
|
||||
@endphp
|
||||
|
||||
@foreach($receita['medicamentos'] as $medicamento)
|
||||
@if (isset($medicamento['prescricao_manual']))
|
||||
@php
|
||||
$limparConteudo = trim(preg_replace('/<p[^>]*>(\s| )*<\/p>/', '', $medicamento['prescricao_manual']));
|
||||
preg_match_all('/<p[^>]*>(.*?)<\/p>/', $limparConteudo, $matches);
|
||||
$paragrafo = $matches[0] ?? [];
|
||||
$totalLinhas = count($paragrafo);
|
||||
|
||||
if($totalLinhas > 10) {
|
||||
$quebrasParagrafos = array_chunk($paragrafo, 10);
|
||||
foreach ($quebrasParagrafos as $quebrasParagrafo) {
|
||||
$prescricao_manual[] = implode('', $quebrasParagrafo);
|
||||
}
|
||||
} else {
|
||||
$prescricao_manual[] = $medicamento['prescricao_manual'];
|
||||
}
|
||||
@endphp
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@foreach($receita['medicamentos'] as $medicamento)
|
||||
@if (!isset($medicamento['prescricao_manual']))
|
||||
<tr class="card-top">
|
||||
<td>
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>{{ $medicamento['nome'] }}</strong>
|
||||
@elseif (isset($medicamento['medicamento_manual']))
|
||||
{!! $medicamento['medicamento_manual'] !!}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
@if($medicamento['usoContinuo'])
|
||||
uso contínuo
|
||||
@elseif($medicamento['doseUnica'])
|
||||
dose única
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-middle">
|
||||
<td>
|
||||
{{ $medicamento['posologia'] }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>Via: </strong>
|
||||
{{ $medicamento['viaAdministracao'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom">
|
||||
<td colspan="2">
|
||||
@if(!$medicamento['livre'] && $medicamento['recomendacoes'])
|
||||
<strong>Recomendações:</strong> {{ $medicamento['recomendacoes'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@if(!empty($prescricao_manual) && count($prescricao_manual) > 0)
|
||||
@foreach(array_slice($prescricao_manual, 0, 1) as $prescricao)
|
||||
<tr class="card-top"><td colspan="2"></td></tr>
|
||||
<tr class="card-middle">
|
||||
<td colspan="2">
|
||||
{!! $prescricao !!}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom"><td colspan="2"></td></tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small mt-8px text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'],
|
||||
$receita['profissional']['documento']
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-left:15px">
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Emitente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Paciente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Medicamentos</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<table class="card">
|
||||
<tbody>
|
||||
@foreach($receita['medicamentos'] as $medicamento)
|
||||
@if (!isset($medicamento['prescricao_manual']))
|
||||
<tr class="card-top">
|
||||
<td>
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>{{ $medicamento['nome'] }}</strong>
|
||||
@elseif (isset($medicamento['medicamento_manual']))
|
||||
{!! $medicamento['medicamento_manual'] !!}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-right">
|
||||
@if($medicamento['usoContinuo'])
|
||||
uso contínuo
|
||||
@elseif($medicamento['doseUnica'])
|
||||
dose única
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-middle">
|
||||
<td>
|
||||
{{ $medicamento['posologia'] }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@if (isset($medicamento['nome']))
|
||||
<strong>Via: </strong>
|
||||
{{ $medicamento['viaAdministracao'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom">
|
||||
<td colspan="2">
|
||||
@if(!$medicamento['livre'] && $medicamento['recomendacoes'])
|
||||
<strong>Recomendações:</strong> {{ $medicamento['recomendacoes'] }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
@if(!empty($prescricao_manual) && count($prescricao_manual) > 0)
|
||||
@foreach(array_slice($prescricao_manual, 0, 1) as $prescricao)
|
||||
<tr class="card-top"><td colspan="2"></td></tr>
|
||||
<tr class="card-middle">
|
||||
<td colspan="2">
|
||||
{!! $prescricao !!}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom"><td colspan="2"></td></tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small mt-8px text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'],
|
||||
$receita['profissional']['documento']
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(!empty($prescricao_manual) && count($prescricao_manual) > 1)
|
||||
@foreach(array_slice($prescricao_manual, 1) as $index => $prescricao)
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<div class="cell col-5 font-small" style="padding-right:15px">
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Emitente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Paciente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Medicamentos</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<table class="card">
|
||||
<tbody>
|
||||
<tr class="card-top"><td colspan="2"></td></tr>
|
||||
<tr class="card-middle">
|
||||
<td colspan="2">
|
||||
{!! $prescricao !!}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom"><td colspan="2"></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small mt-8px text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'],
|
||||
$receita['profissional']['documento']
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="cell col-5 font-small" style="padding-left:15px">
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Emitente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> <span>{{ $receita['profissional']['nome'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['unidade']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['unidade']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Paciente</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<div>
|
||||
<strong>Nome:</strong> @include('impressoes.components.paciente-nome', $receita['paciente'])
|
||||
</div>
|
||||
<div>
|
||||
<strong>Endereço:</strong> <span>{{ $receita['paciente']['endereco'] }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Telefone:</strong> <span>{{ $receita['paciente']['telefone'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-small border-bottom mt-8px">
|
||||
<strong>Medicamentos</strong>
|
||||
</div>
|
||||
|
||||
<div class="font-tiny">
|
||||
<table class="card">
|
||||
<tbody>
|
||||
<tr class="card-top"><td colspan="2"></td></tr>
|
||||
<tr class="card-middle">
|
||||
<td colspan="2">
|
||||
{!! $prescricao !!}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="card-bottom"><td colspan="2"></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="font-small mt-8px text-right">
|
||||
{{ $_data['cliente']['municipio']['nome'] }} - {{ $_data['cliente']['municipio']['estado']['uf'] }}, {{ $receita['dataCadastro']['porExtenso'] }}
|
||||
</div>
|
||||
|
||||
@if($exibirAssinatura)
|
||||
@include(
|
||||
'impressoes.components.assinatura',
|
||||
[
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
'Assinatura e carimbo',
|
||||
$receita['profissional']['nome'],
|
||||
$receita['profissional']['cbo'],
|
||||
$receita['profissional']['documento']
|
||||
]
|
||||
],
|
||||
]
|
||||
)
|
||||
@else
|
||||
<table class="text-center col-4 center" style="padding: 45px 0 0 0;">
|
||||
<tr><td class="font-small">{{ $receita['profissional']['nome'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['cbo'] }}</td></tr>
|
||||
<tr><td class="font-small">{{ $receita['profissional']['documento'] }}</td></tr>
|
||||
</table>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<style>
|
||||
|
||||
@page {
|
||||
margin: 125px 0.5cm 70px 0.5cm;
|
||||
}
|
||||
.card td {
|
||||
padding: 0px 5px;
|
||||
}
|
||||
.card-top td { padding-top: 0px; border-top: 1px solid 222; }
|
||||
.card-top td:first-child,
|
||||
.card-middle td:first-child,
|
||||
.card-bottom td:first-child {
|
||||
border-left: 1px solid 222;
|
||||
}
|
||||
.card-top td:last-child,
|
||||
.card-middle td:last-child,
|
||||
.card-bottom td:last-child {
|
||||
border-right: 1px solid 222;
|
||||
}
|
||||
.card-bottom td {
|
||||
padding-bottom: 0px;
|
||||
border-bottom: 1px solid 222;
|
||||
}
|
||||
.mt-8px {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.mt-12px {
|
||||
margin-top: 12px;
|
||||
}
|
||||
.fieldset {
|
||||
padding: 0px 5px 2px !important;
|
||||
}
|
||||
.data {
|
||||
height: 22px !important;
|
||||
}
|
||||
.manual-line {
|
||||
height: 18px !important;
|
||||
border-bottom: 1px solid #000000 !important;
|
||||
}
|
||||
</style>
|
||||
@endsection
|
||||
@@ -0,0 +1,115 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<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 (!is_null($paciente['nome_social']))
|
||||
({{ $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>
|
||||
|
||||
@foreach($servicosEnfermagem as $index => $servicoEnfermagem)
|
||||
|
||||
<div class="area mt-1 border-bottom-2">
|
||||
|
||||
<div>
|
||||
<strong>Data da solicitação: </strong>
|
||||
{{ $servicoEnfermagem['data'] }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<strong>Profissional solicitante: </strong>
|
||||
{{ $servicoEnfermagem['medico']['nome'] }} - {{ $servicoEnfermagem['medico']['cbo'] }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<strong>Procedimento relacionado: </strong>
|
||||
{{ $servicoEnfermagem['procedimentos']['codigo'] }} - {{ $servicoEnfermagem['procedimentos']['nome'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($index != array_key_last($servicosEnfermagem))
|
||||
<hr />
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
@endsection
|
||||
@@ -0,0 +1,145 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<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 (!is_null($paciente['nome_social']))
|
||||
({{ $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>
|
||||
|
||||
@foreach($pedidosExames as $pedidoExame)
|
||||
@if($pedidoExame['urgente'])
|
||||
<div class="area red text-center titulo mt-1">
|
||||
<strong>URGENTE</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="area text-center mt-1">
|
||||
<div>
|
||||
<strong>Data da solicitação: </strong>
|
||||
{{ $pedidoExame['data'] }} - {{ $pedidoExame['medico']['nome'] }} - {{ $pedidoExame['medico']['cbo'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($pedidoExame['justificativa'] != '')
|
||||
<div class="area text-center">
|
||||
<strong>Justificativa: </strong>
|
||||
<span>{{ $pedidoExame['justificativa'] }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="titulo"><strong>Exames</strong></div>
|
||||
|
||||
@foreach($pedidoExame['exames'] as $exame)
|
||||
<div class="area text-center">
|
||||
{{ $exame['id'] }}. {{ $exame['nome'] }} - {{ $exame['codigo'] }}
|
||||
|
||||
@if($exame['observacao_medico'] != "")
|
||||
<div>
|
||||
<strong>Observação médico:</strong> {{ $exame['observacao_medico'] }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($exame['observacao_executante'] != "")
|
||||
<div>
|
||||
<strong>Observação executante:</strong> {{ $exame['observacao_executante'] }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<div style="margin-top:100px"></div>
|
||||
|
||||
@include('impressoes.components.assinatura', [
|
||||
'props' => [
|
||||
'class' => 'col-4 center'
|
||||
],
|
||||
'data' => [
|
||||
'info' => [
|
||||
"<strong>{$pedidoExame['medico']['nome']}</strong>",
|
||||
$pedidoExame['medico']['cbo'],
|
||||
]
|
||||
],
|
||||
])
|
||||
@endforeach
|
||||
@endsection
|
||||
@@ -0,0 +1,131 @@
|
||||
@extends('impressoes.layout.impressao')
|
||||
|
||||
@section('conteudo')
|
||||
<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 (!is_null($paciente['nome_social']))
|
||||
({{ $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>
|
||||
|
||||
@foreach($pedidosExames as $pedidoExame)
|
||||
@if($pedidoExame['urgente'])
|
||||
<div class="area red text-center titulo mt-1">
|
||||
<strong>URGENTE</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="area text-center">
|
||||
<div>
|
||||
<strong>Data da solicitação: </strong>
|
||||
{{ $pedidoExame['data'] }} - {{ $pedidoExame['medico']['nome'] }} - {{ $pedidoExame['medico']['cbo'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if(!empty($pedidoExame['justificativa']))
|
||||
<div class="area text-center">
|
||||
<strong>Justificativa: </strong>
|
||||
<span>{{ $pedidoExame['justificativa'] }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="titulo"><strong>Exames</strong></div>
|
||||
|
||||
@foreach($pedidoExame['exames'] as $exame)
|
||||
<div class="area mt-1 text-center">
|
||||
{{ $exame['id'] }}. {{ $exame['nome'] }} - {{ $exame['codigo'] }}
|
||||
|
||||
@if($exame['observacao_medico'] != "")
|
||||
<div>
|
||||
<strong>Observação médico:</strong> {{ $exame['observacao_medico'] }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($exame['observacao_executante'] != "")
|
||||
<div>
|
||||
<strong>Observação executante:</strong> {{ $exame['observacao_executante'] }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
@endforeach
|
||||
@endsection
|
||||
Reference in New Issue
Block a user