init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,126 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
@media print {
table,
tr,
td,
th {
page-break-inside: avoid !important;
page-break-after: auto;
}
thead {
display: table-header-group;
}
tfoot {
display: table-footer-group;
}
}
.circulo {
height: 15px;
width: 15px;
border: 1px solid #000;
}
tr {
font-size: 13px;
}
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-4">
<strong>Período de-até:</strong>
</div>
<div class="col-4">
<strong>Unidade Solicitante:</strong>
</div>
<div class="col-4">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $atendimentos['form']['periodo']['start'] }} - {{ $atendimentos['form']['periodo']['end'] }}
</div>
<div class="col-4">
{{ $atendimentos['form']['unidade_nome'] }}
</div>
<div class="col-4">
{{ $atendimentos['form']['infraestrutura_nome'] }}
</div>
</div>
<div class="row">
<div class="col-4">
<strong>Unidade coleta:</strong>
</div>
<div class="col-4">
<strong>Local de atendimento:</strong>
</div>
<div class="col-4">
<strong>Exame / Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-4">
{{ $atendimentos['form']['coleta_unidade_nome'] }}
</div>
<div class="col-4">
{{ $atendimentos['form']['coleta_infraestrutura_nome'] }}
</div>
<div class="col-4">
{{ $atendimentos['form']['exame_grupo'] }}
</div>
</div>
</fieldset>
<table class="table table-baixa">
<thead>
<tr>
<th class="col-min">Conf.</th>
<th class="col-min">Data</th>
<th class="col-min">Paciente</th>
<th class="col-min">Idade</th>
<th class="col-min">Pront.</th>
<th class="col-min">Agendamento</th>
<th class="col-min">Médico(a) solicitante</th>
<th class="col-min">Unidade coleta</th>
<th class="col-min">Local de atendimento</th>
<th class="col-min">Grupo / Exame</th>
</tr>
</thead>
<tbody>
@foreach ($atendimentos['form']['agendamentos'] as $dado)
<tr>
<td>
<div class="circulo"></div>
</td>
<td>{{ $dado->data }}</td>
<td>
{{ $dado->paciente_nome }}
@if (!empty($dado->paciente_nome_social))
<strong>({{ $dado->paciente_nome_social }})</strong>
@endif
</td>
<td>{{ $dado->paciente_idade }}</td>
<td>{{ $dado->paciente_prontuario }}</td>
<td>{{ $dado->agendamento_numero }}</td>
<td>{{ $dado->medico_nome }}</td>
<td>{{ $dado->coleta_unidade_nome }}</td>
<td>{{ $dado->coleta_infraestrutura_nome }}</td>
<td>{{ $dado->exame_grupo_nome }}</td>
</tr>
@endforeach
</tbody>
</table>
@endsection

View File

@@ -0,0 +1,102 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td colspan="4" class="report-content-cell">
<fieldset>
<legend>Fator</legend>
<div class="row">
<div class="col-12">
<strong>Data: __/__/____</strong>
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td colspan="4" style="height:10px"></td>
</tr>
<tr>
<td class="report-content-cell mt-2">
<table class="table">
<thead>
<tr>
<th width="5%"></th>
<th>Agendamento</th>
<th>Data Agendamento</th>
<th>Data Coleta</th>
<th>Paciente</th>
<th>Médico Solicitante</th>
<th>Exame</th>
<th width="15%">Assinatura</th>
</tr>
</thead>
<tbody>
@foreach ($atendimentos['form']['agendamentos'] as $key=>$agendamento)
<tr>
<td>{{ $key+1 }}</td>
<td>{{ $agendamento->agendamento_id }}</td>
<td>{{ $agendamento->data }}</td>
<td>{{ $agendamento->data_coleta }}</td>
<td>
{{ $agendamento->paciente_nome }}
@if (!empty($agendamento->paciente_nome_social))
<strong>({{ $agendamento->paciente_nome_social }})</strong>
@endif
</td>
<td>{{ $agendamento->nome_medico }}</td>
<td>{{ $agendamento->exame_grupo_nome }}</td>
<td></td>
</tr>
@endforeach
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif; font-size: 12px;}
table {margin-bottom: 15px;}
th {text-align: center!important;}
p {margin:0; padding: 0;}
fieldset {margin-bottom: 0!important;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
</style>

View File

@@ -0,0 +1,220 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td colspan="4" class="report-content-cell">
<fieldset>
<legend>Dados do Agendamento</legend>
<div class="row">
<div class="col-3">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-3">
<strong>Idade:</strong>
</div>
<div class="col-3">
<strong>Sexo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['paciente']['nome'] }}
@if($atendimentos['form']['paciente']['nomeSocial'])
@if ($atendimentos['form']['paciente']['prefereNomeSocial'])
<strong>({{ $atendimentos['form']['paciente']['nomeSocial'] }})</strong>
@endif
@endif
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['data_nascimento'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['idade']['anos'] }} ANOS,
{{ $atendimentos['form']['paciente']['idade']['meses'] }} MESES,
{{ $atendimentos['form']['paciente']['idade']['dias'] }} DIAS
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['sexo'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Nr. Prontuario:</strong>
</div>
<div class="col-3">
<strong>Agendamento:</strong>
</div>
<div class="col-3">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['unidade'] }} - {{ $atendimentos['form']['agendamento']['infraestrutura'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['prontuario'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['agendamento_numero'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Médico(a) solicitante:</strong>
</div>
<div class="col-3">
<strong>Data da solicitação:</strong>
</div>
<div class="col-3">
<strong>Data da coleta:</strong>
</div>
<div class="col-3">
<strong>Data do laudo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['medico'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_coleta'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_laudo'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($atendimentos['form']['exame']['exames'] as $exame)
<tr>
<td colspan="4" style="text-align: center; font-size:26px; font-weight: 600; padding-top:15px">
{{ $exame['exame_nome'] }}
</td>
</tr>
@foreach ($exame['composicao'] as $agendamento)
<tr style="border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
<td class="col-3">
<strong>{{ $agendamento['descricao'] }}</strong>
</td>
<td class="col-3" style="text-align: right; padding-right: 10px">
<strong>{{ $agendamento['resultado'] }}</strong>
</td>
<td class="col-3">
{{ $agendamento['unidade'] }}
@if ($agendamento['variavel']->count() !== 0)
@foreach ($agendamento['variavel'] as $variavel)
@if ($variavel['valor_absoluto']->count() !== 0)
@foreach ($variavel['valor_absoluto'] as $resultado)
{{ $resultado->resultado }}
@endforeach
@endif
@endforeach
@endif
</td>
<td class="col-3">
{{ $agendamento['referencia'] }}
</td>
</tr>
@if (!empty($agendamento['referencia_especial']))
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
{!! $agendamento['referencia_especial'] !!}
</td>
</tr>
@endif
@endforeach
<tr style="border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
<td colspan="4"></td>
</tr>
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
<strong>Observações</strong> {{ $exame['observacao'] }}
</td>
</tr>
@if ($loop->last)
<tr>
<td colspan="3" style="line-height: 150px; text-align:right">
<strong>Revisão:</strong>
</td>
<td style="width:250px">
<img
alt="assinatura"
id="assinatura"
src="data:image/png;base64, {{ $exame['arquivo_assinatura'] }}"
/>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif; font-size: 12px;}
table {margin-bottom: 15px;}
p {margin:0; padding: 0;}
fieldset {margin-bottom: 0!important;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
</style>

View File

@@ -0,0 +1,203 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td colspan="4" class="report-content-cell">
<fieldset>
<legend>Dados do Paciente</legend>
<div class="row">
<div class="col-5">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-2">
<strong>Sexo:</strong>
</div>
<div class="col-2">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-5">
{{ $atendimentos['form']['paciente']['nome'] }}
@if (!empty($atendimentos['form']['paciente']['nome_social']))
<strong>({{ $atendimentos['form']['paciente']['nome_social'] }})</strong>
@endif
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['data_nascimento'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['paciente']['sexo']['descricao'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-5">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Nr. Prontuario:</strong>
</div>
<div class="col-2">
</div>
<div class="col-2">
</div>
</div>
<div class="row">
<div class="col-5">
{{ $atendimentos['form']['paciente']['unidade'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['prontuario'] }}
</div>
<div class="col-2">
</div>
<div class="col-2">
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td colspan="4" style="height:10px"></td>
</tr>
<tr>
<td class="report-content-cell mt-2">
@if ($atendimentos['form']['agendados']->count() !== 0)
<table class="table">
<thead>
<tr>
<th colspan="9">EXAMES AGENDADOS</th>
</tr>
<tr>
<th>Agendamento</th>
<th>Exame</th>
<th>Data Agendamento</th>
<th>Data Coleta</th>
<th>Previsão de entrega</th>
<th>Unidade</th>
<th>Local de atendimento</th>
<th>Médico Solicitante</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach ($atendimentos['form']['agendados'] as $agendado)
@foreach ($agendado['incluido'] as $exame)
<tr>
<td>{{ $agendado['agendamento_numero'] }}</td>
<td>{{ $exame['nome'] }}</td>
<td>{{ $agendado['data'] }}</td>
<td>{{ $agendado['data_coleta'] }}</td>
<td>{{ $exame['data_entrega'] }}</td>
<td>{{ $agendado['unidade'] }}</td>
<td>{{ $agendado['infraestrutura'] }}</td>
<td>{{ $agendado['medico_nome'] }}</td>
<td>{{ $exame['status'] }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
@endif
@if ($atendimentos['form']['realizados']->count() !== 0)
<table class="table">
<thead>
<tr>
<th colspan="9">EXAMES REALIZADOS</th>
</tr>
<tr>
<th>Agendamento</th>
<th>Exame</th>
<th>Data Agendamento</th>
<th>Data Coleta</th>
<th>Previsão de entrega</th>
<th>Unidade</th>
<th>Local de atendimento</th>
<th>Médico Solicitante</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach ($atendimentos['form']['realizados'] as $realizado)
@foreach ($realizado['incluido'] as $exame)
<tr>
<td>{{ $realizado['agendamento_id'] }}</td>
<td>{{ $exame['nome'] }}</td>
<td>{{ $realizado['data'] }}</td>
<td>{{ $realizado['data_coleta'] }}</td>
<td>{{ $exame['data_entrega'] }}</td>
<td>{{ $realizado['unidade'] }}</td>
<td>{{ $realizado['infraestrutura'] }}</td>
<td>{{ $realizado['medico_nome'] }}</td>
<td>{{ $exame['status'] }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
@endif
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif; font-size: 12px;}
table {margin-bottom: 15px;}
th {text-align: center!important;}
p {margin:0; padding: 0;}
fieldset {margin-bottom: 0!important;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
</style>

View File

@@ -0,0 +1,237 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table>
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
@foreach ($atendimentos['form']['agendamentos'] as $agendamento)
@if ($agendamento['exame']['exames']->count() !== 0)
<table class="report-container">
<tr>
<td colspan="4">
<fieldset>
<legend>Dados do Agendamento</legend>
<div class="row">
<div class="col-3">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-3">
<strong>Idade:</strong>
</div>
<div class="col-3">
<strong>Sexo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $agendamento['paciente']['nome'] }}
@if($agendamento['paciente']['nomeSocial'])
@if ($agendamento['paciente']['prefereNomeSocial'])
<strong>({{ $agendamento['paciente']['nomeSocial'] }})</strong>
@endif
@endif
</div>
<div class="col-3">
{{ $agendamento['paciente']['data_nascimento'] }}
</div>
<div class="col-3">
{{ $agendamento['paciente']['idade']['anos'] }} ANOS,
{{ $agendamento['paciente']['idade']['meses'] }} MESES,
{{ $agendamento['paciente']['idade']['dias'] }} DIAS
</div>
<div class="col-3">
{{ $agendamento['paciente']['sexo'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Nr. Prontuario:</strong>
</div>
<div class="col-3">
<strong>Agendamento:</strong>
</div>
<div class="col-3">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $agendamento['agendamento']['unidade'] }} - {{ $agendamento['agendamento']['infraestrutura'] }}
</div>
<div class="col-3">
{{ $agendamento['paciente']['prontuario'] }}
</div>
<div class="col-3">
{{ $agendamento['agendamento']['agendamento_numero'] }}
</div>
<div class="col-3">
{{ $agendamento['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Médico(a) solicitante:</strong>
</div>
<div class="col-3">
<strong>Data da solicitação:</strong>
</div>
<div class="col-3">
<strong>Data da coleta:</strong>
</div>
<div class="col-3">
<strong>Data do laudo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $agendamento['agendamento']['medico'] }}
</div>
<div class="col-3">
{{ $agendamento['agendamento']['data'] }}
</div>
<div class="col-3">
{{ $agendamento['agendamento']['data_coleta'] }}
</div>
<div class="col-3">
{{ $agendamento['agendamento']['data_laudo'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($agendamento['exame']['exames'] as $exame)
<tr>
<td colspan="4" style="text-align: center; font-size:26px; font-weight: 600; padding-top: 15px">
{{ $exame['exame_nome'] }}
</td>
</tr>
<tr>
<td colspan="4" style="text-align: right; border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
Data da Assinatura: {{ $exame['data_assinatura'] }}
</td>
</tr>
@foreach ($exame['composicao'] as $agendamento)
<tr style="border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
<td class="col-3">
<strong>{{ $agendamento['descricao'] }}</strong>
</td>
<td class="col-3" style="text-align: right; padding-right: 10px">
<strong>{{ $agendamento['resultado'] }}</strong>
</td>
<td class="col-3">
{{ $agendamento['unidade'] }}
@if ($agendamento['variavel']->count() !== 0)
@foreach ($agendamento['variavel'] as $variavel)
@if ($variavel['valor_absoluto']->count() !== 0)
@foreach ($variavel['valor_absoluto'] as $resultado)
{{ $resultado->resultado }}
@endforeach
@endif
@endforeach
@endif
</td>
<td class="col-3">
{{ $agendamento['referencia'] }}
</td>
</tr>
@if (!empty($agendamento['referencia_especial']))
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
{!! $agendamento['referencia_especial'] !!}
</td>
</tr>
@endif
@endforeach
<tr style="border-bottom: 1px dashed #999; height:20px; line-height: 20px!important;">
<td colspan="4"></td>
</tr>
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
<strong>Observações</strong> {{ $exame['observacao'] }}
</td>
</tr>
@if ($loop->last)
<tr>
<td colspan="3" style="line-height: 150px; text-align:right">
<strong>Revisão:</strong>
</td>
<td style="width:250px">
<img
alt="assinatura"
id="assinatura"
src="data:image/png;base64, {{ $exame['arquivo_assinatura'] }}"
/>
</td>
</tr>
@endif
@endforeach
</table>
@endif
@endforeach
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif; font-size: 12px;}
table {margin-bottom: 15px;}
p {margin:0; padding: 0;}
fieldset {margin-bottom: 0!important;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
.page-break{page-break-before: always;}
</style>

View File

@@ -0,0 +1,154 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
<div class="col-6">
{{ $exame_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $coleta_unidade_nome }}
</div>
<div class="col-6">
{{ $coleta_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $laboratorio_nome_fantasia }}
</div>
<div class="col-6">
{{ $laboratorio_infraestrutura_nome }}
</div>
</div>
</fieldset>
</td>
</tr>
@php
$quantidade = 0;
$quantidadeReagentes = 0;
@endphp
<tr>
<td>
<table class="table">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamentos as $agendamento)
@php
$quantidade = $quantidade + $agendamento['quantidade'];
$quantidadeReagentes = $quantidadeReagentes + $agendamento['quantidade_reagente'];
@endphp
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count() - 2 }}">
<strong>
Total
</strong>
</th>
<th class="text-center">
<strong>
{{ $quantidade }}
</strong>
</th>
<th class="text-center">
<strong>
{{ $quantidadeReagentes }}
</strong>
</th>
</tr>
</tfoot>
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
table.report-container {page-break-after: always;}
.col-min { width: 1%; }
.text-center { text-align: center!important; }
</style>

View File

@@ -0,0 +1,261 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td colspan="4" class="report-content-cell">
<fieldset>
<legend>Dados do Agendamento</legend>
<div class="row">
<div class="col-3">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-3">
<strong>Idade:</strong>
</div>
<div class="col-3">
<strong>Sexo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['paciente']['nome'] }}
@if($atendimentos['form']['paciente']['nomeSocial'])
@if ($atendimentos['form']['paciente']['prefereNomeSocial'])
<strong>({{ $atendimentos['form']['paciente']['nomeSocial'] }})</strong>
@endif
@endif
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['data_nascimento'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['idade']['anos'] }} ANOS,
{{ $atendimentos['form']['paciente']['idade']['meses'] }} MESES,
{{ $atendimentos['form']['paciente']['idade']['dias'] }} DIAS
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['sexo'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Nr. Prontuario:</strong>
</div>
<div class="col-3">
<strong>CNS:</strong>
</div>
<div class="col-3">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['unidade'] }} - {{ $atendimentos['form']['agendamento']['infraestrutura'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['prontuario'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['cns'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Agendamento:</strong>
</div>
<div class="col-3">
<strong>Médico(a) solicitante:</strong>
</div>
<div class="col-3">
<strong>Data da solicitação:</strong>
</div>
<div class="col-3">
<strong>Hora da solicitação:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['agendamento_numero'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['medico'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['horario'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Data da coleta:</strong>
</div>
<div class="col-3">
<strong>Data do laudo:</strong>
</div>
<div class="col-6">
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_coleta'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_laudo'] }}
</div>
<div class="col-6">
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($atendimentos['form']['exame']['exames'] as $exame)
<tr>
<td colspan="4" style="text-align: center; font-size:26px; font-weight: 600; padding-top:15px">
{{ $exame['exame_nome'] }}
</td>
</tr>
<tr>
<td colspan="4" style="text-align: center">
VL. NORMAIS E INFORMES
</td>
</tr>
@foreach ($exame['composicao'] as $agendamento)
@if ($agendamento['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO)
<tr style="border-bottom: 1px dashed #999; height:24px; line-height: 24px!important;">
<td class="col-3" colspan="4">
<strong>{{ $agendamento['descricao'] }}</strong> {{ $agendamento['resultado'] }}
</td>
</tr>
@else
<tr style="border-bottom: 1px dashed #999; height:24px; line-height: 24px!important;">
<td class="col-3">
<strong>{{ $agendamento['descricao'] }}</strong>
</td>
<td class="col-3" style="text-align: right; padding-right: 10px">
<strong>{{ $agendamento['resultado'] }}</strong>
</td>
<td class="col-3">
{{ $agendamento['unidade'] }}
@if ($agendamento['variavel']->count() !== 0)
@foreach ($agendamento['variavel'] as $variavel)
@if ($variavel['valor_absoluto']->count() !== 0)
@foreach ($variavel['valor_absoluto'] as $resultado)
{{ $resultado->resultado }}
@endforeach
@endif
@endforeach
@endif
</td>
<td class="col-3">
{{ $agendamento['referencia'] }}
</td>
</tr>
@endif
@if (!empty($agendamento['referencia_especial']))
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
{!! $agendamento['referencia_especial'] !!}
</td>
</tr>
@endif
@endforeach
<tr style="border-bottom: 1px dashed #999; height:24px; line-height: 24px!important;">
<td colspan="4"></td>
</tr>
<tr>
<td colspan="4">
<strong>Observações</strong> {{ $exame['observacao'] }}
</td>
</tr>
@endforeach
<tr>
<td colspan="4" style="padding-top: 30px"></td>
</tr>
<tr style="border-top: 3px dotted #333;">
<td colspan="4" style="padding:0;"></td>
</tr>
<tr style="border-top: 3px dotted #333;">
<td colspan="4" style="padding:0;"></td>
</tr>
<tr style="border-top: 1px dashed #999;">
<td colspan="4" style="padding-top: 15px">
<strong>Revisão:</strong>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px;}
p {margin:0; padding: 0;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
</style>

View File

@@ -0,0 +1,259 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td class="report-content-cell">
<fieldset>
<legend>Dados do Agendamento</legend>
<div class="row">
<div class="col-3">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-3">
<strong>Idade:</strong>
</div>
<div class="col-3">
<strong>Sexo:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['paciente']['nome'] }}
@if($atendimentos['form']['paciente']['nomeSocial'])
@if ($atendimentos['form']['paciente']['prefereNomeSocial'])
<strong>({{ $atendimentos['form']['paciente']['nomeSocial'] }})</strong>
@endif
@endif
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['data_nascimento'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['idade']['anos'] }} ANOS,
{{ $atendimentos['form']['paciente']['idade']['meses'] }} MESES,
{{ $atendimentos['form']['paciente']['idade']['dias'] }} DIAS
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['sexo'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Nr. Prontuario:</strong>
</div>
<div class="col-3">
<strong>CNS:</strong>
</div>
<div class="col-3">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['unidade'] }} - {{ $atendimentos['form']['agendamento']['infraestrutura'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['prontuario'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['cns'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Agendamento:</strong>
</div>
<div class="col-3">
<strong>Médico(a) solicitante:</strong>
</div>
<div class="col-3">
<strong>Data da solicitação:</strong>
</div>
<div class="col-3">
<strong>Hora da solicitação:</strong>
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['agendamento_numero'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['medico'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['horario'] }}
</div>
</div>
<div class="row">
<div class="col-3">
<strong>Data da coleta:</strong>
</div>
<div class="col-3">
<strong>Data do laudo:</strong>
</div>
<div class="col-6">
</div>
</div>
<div class="row">
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_coleta'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data_laudo'] }}
</div>
<div class="col-6">
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td style="text-align: center; font-size:26px; font-weight: 600">
{{ $atendimentos['form']['exame']['exame_nome'] }}
</td>
</tr>
<tr>
<td style="text-align: center">
VL. NORMAIS E INFORMES
</td>
</tr>
<tr>
<td>
<table>
@foreach ($atendimentos['form']['exame']['composicao'] as $agendamento)
@if ($agendamento['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO)
<tr style="border-bottom: 1px dashed #999; height:24px; line-height: 24px!important;">
<td class="col-3" colspan="4">
<strong>{{ $agendamento['descricao'] }}</strong> {{ $agendamento['resultado'] }}
</td>
</tr>
@else
<tr style="border-bottom: 1px dashed #999; height:24px; line-height: 24px!important;">
<td class="col-3">
<strong>{{ $agendamento['descricao'] }}</strong>
</td>
<td class="col-3" style="text-align: right; padding-right: 10px">
<strong>{{ $agendamento['resultado'] }}</strong>
</td>
<td class="col-3">
{{ $agendamento['unidade'] }}
@if ($agendamento['variavel']->count() !== 0)
@foreach ($agendamento['variavel'] as $variavel)
@if ($variavel['valor_absoluto']->count() !== 0)
@foreach ($variavel['valor_absoluto'] as $resultado)
{{ $resultado->resultado }}
@endforeach
@endif
@endforeach
@endif
</td>
<td class="col-3">
{{ $agendamento['referencia'] }}
</td>
</tr>
@endif
@if (!empty($agendamento['referencia_especial']))
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
{!! $agendamento['referencia_especial'] !!}
</td>
</tr>
@endif
@endforeach
</table>
</td>
</tr>
<tr style="border-top: 3px dotted #333;">
<td style="padding:0;"></td>
</tr>
<tr style="border-top: 3px dotted #333;">
<td style="padding:0;"></td>
</tr>
<tr style="position: absolute; bottom: 150px;">
<td>
<strong style="font-size:20px">Observações:</strong> {{ $atendimentos['form']['exame']['observacao'] }}
</td>
</tr>
<tr style="border-top: 1px dashed #999; position: absolute; bottom: 50px; width:98%">
<td style="padding-top: 15px">
<strong>Revisão:</strong>
</td>
</tr>
</tbody>
</td></tr>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px;}
p {margin:0; padding: 0;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0;}
</style>

View File

@@ -0,0 +1,266 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['periodo']['start'] }} - {{ $atendimentos['periodo']['end'] }}
</div>
<div class="col-6">
{{ $atendimentos['exame_grupo'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Status:</strong>
</div>
<div class="col-6">
<strong>Prontuário:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
@if ($atendimentos['status']->count() == 7)
TODOS
@else
@foreach ($atendimentos['status'] as $status)
@if ($loop->last)
{{ $status['nome'] }}.
@else
{{ $status['nome'] }},
@endif
@endforeach
@endif
</div>
<div class="col-6">
{{ $atendimentos['prontuario'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade Solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['unidade_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['infraestrutura_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['coleta_unidade_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['coleta_infraestrutura_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['laboratorio_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['laboratorio_infraestrutura_nome'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($atendimentos['unidade_coleta'] as $coleta)
@foreach ($coleta['agendamentos'] as $agendamento)
<tr>
<td>
<table class="table table-relatorio">
@if ($loop->first)
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: center">
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</th>
</tr>
@endif
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap;">
Paciente: {{ $agendamento['paciente_nome'] }}
@if (!empty($agendamento['paciente_nome_social']))
({{ $agendamento['paciente_nome_social'] }})
@endif
- Prontuário: {{ $agendamento['paciente_prontuario'] }}
- Agendamento: {{ $agendamento['agendamento_numero'] }}
</th>
</tr>
<tr>
@foreach ($atendimentos['colunas'] as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
@foreach ($agendamento['exames'] as $item)
<tr>
@foreach ($atendimentos['colunas'] as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $item[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: right; page-break-inside: avoid!important;">
Total de exames: {{ $agendamento['exames']->count() }}
</th>
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: right;">
Total de exames da unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}: {{$coleta['total_exames']}}
</th>
</tr>
@endif
</table>
</td>
</tr>
@endforeach
@endforeach
<tr>
<td>
<table class="table table-relatorio">
<tr>
<th colspan="{{ $atendimentos['status']->count() }}" style="white-space: nowrap;">
Status dos exames
</th>
</tr>
<tr>
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::AGENDADO, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Agendado: {{ $atendimentos['agendado'] }}</strong>
</td>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::NAO_REALIZADO, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Não coletado: {{ $atendimentos['nao_coletado'] }}</strong>
</td>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::REALIZADO, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Coleta realizada: {{ $atendimentos['coleta_realizada'] }}</strong>
</td>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::PENDENTE_ASSINATURA, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Pendente de assinatura: {{ $atendimentos['pendente_assinatura'] }}</strong>
</td>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::ASSINADO, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Pendente de impressão: {{ $atendimentos['pendente_impressao'] }}</strong>
</td>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::PENDENTE_ENTREGA, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Pendente de entrega: {{ $atendimentos['pendente_entrega'] }}</strong>
</td>
@endif
@if (in_array(\App\Enums\ExameLaboratorial\StatusAgendamento::ENTREGUE, $atendimentos['total_status']))
<td class="col-2 text-center">
<strong>Entregue: {{ $atendimentos['entregue'] }}</strong>
</td>
@endif
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
.background-white { background: #fff!important}
table.report-container {page-break-after: always;}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>

View File

@@ -0,0 +1,281 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td colspan="4" class="report-content-cell">
<fieldset>
<legend>Dados do Agendamento</legend>
<div class="row">
<div class="col-5">
<strong>Nome:</strong>
</div>
<div class="col-3">
<strong>Data de nascimento:</strong>
</div>
<div class="col-2">
<strong>Sexo:</strong>
</div>
<div class="col-2">
<strong>Nr. Prontuario:</strong>
</div>
</div>
<div class="row">
<div class="col-5">
{{ $atendimentos['form']['paciente']['nome'] }}
@if($atendimentos['form']['paciente']['nomeSocial'])
@if ($atendimentos['form']['paciente']['prefereNomeSocial'])
<strong>({{ $atendimentos['form']['paciente']['nomeSocial'] }})</strong>
@endif
@endif
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['data_nascimento'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['paciente']['sexo'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['paciente']['prontuario'] }}
</div>
</div>
<div class="row">
<div class="col-5">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-3">
<strong>Idade:</strong>
</div>
<div class="col-2">
<strong>Agendamento:</strong>
</div>
<div class="col-2">
<strong>Telefone:</strong>
</div>
</div>
<div class="row">
<div class="col-5">
{{ $atendimentos['form']['agendamento']['unidade'] }} - {{ $atendimentos['form']['agendamento']['infraestrutura'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['paciente']['idade']['anos'] }} Anos,
{{ $atendimentos['form']['paciente']['idade']['meses'] }} Meses,
{{ $atendimentos['form']['paciente']['idade']['dias'] }} Dias
</div>
<div class="col-2">
{{ $atendimentos['form']['agendamento']['agendamento_numero'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['paciente']['telefone'] }}
</div>
</div>
<div class="row">
<div class="col-5">
<strong>Médico(a) solicitante:</strong>
</div>
<div class="col-3">
<strong>Data da solicitação:</strong>
</div>
<div class="col-2">
<strong>Data da coleta:</strong>
</div>
<div class="col-2">
<strong>Data do laudo:</strong>
</div>
</div>
<div class="row">
<div class="col-5">
{{ $atendimentos['form']['agendamento']['medico'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento']['data'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['agendamento']['data_coleta'] }}
</div>
<div class="col-2">
{{ $atendimentos['form']['agendamento']['data_laudo'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($atendimentos['form']['exame']['exames'] as $exame)
<tr>
<td colspan="4" style="text-align: center; font-size:26px; font-weight: 600; padding-top:15px">
{{ $exame['exame_nome'] }}
</td>
</tr>
<tr>
<td colspan="4" style="text-align: right;">
Data da Assinatura: {{ $exame['data_assinatura'] }}
</td>
</tr>
@foreach ($exame['composicao'] as $agendamento)
<tr style="border-bottom: 1px dashed #999; height:10px; line-height: 20px!important;">
<td class="col-3">
<strong>{{ $agendamento['descricao'] }}</strong>
</td>
<td class="col-3" style="text-align: right; padding-right: 10px;">
<strong>
<?php
$resultado = $agendamento['resultado'];
$descricao = $agendamento['descricao'];
$resultadoPositivo = ltrim($resultado, '-');
if ($descricao === "PLAQUETAS:" || $descricao === "Leucócitos:" || $descricao === "Hemácias:") {
$resultadoFinal = $resultadoPositivo;
} else {
if (strpos($resultadoPositivo, ',') !== false) {
$resultadoFinal = $resultadoPositivo;
} else {
$resultadoFinal = str_replace('.', ',', $resultadoPositivo);
}
}
echo $resultadoFinal;
?>
</strong>
</td>
<td class="col-2">
{{ $agendamento['unidade'] }}
@if ($agendamento['variavel']->count() !== 0)
@foreach ($agendamento['variavel'] as $variavel)
@if ($variavel['valor_absoluto']->count() !== 0)
@foreach ($variavel['valor_absoluto'] as $resultado)
{{ $resultado->resultado }}
@endforeach
@endif
@endforeach
@endif
</td>
<td class="col-4" style="text-align: left; padding-left: 40px;">
{{ $agendamento['referencia'] }}
</td>
</tr>
@if (!empty($agendamento['referencia_especial']))
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
{!! $agendamento['referencia_especial'] !!}
</td>
</tr>
@endif
@endforeach
<tr style="border-bottom: 1px dashed #999; height:10px; line-height: 20px!important;">
<td colspan="4"></td>
</tr>
<tr style="border-bottom: 1px dashed #999;">
<td colspan="4">
<strong>Observações</strong> {{ $exame['observacao'] }}
</td>
</tr>
@if ($loop->last)
<tr>
<td colspan="3" style="line-height: 150px; text-align:right">
<strong>Revisão:</strong>
</td>
<td style="width:250px">
<img
alt="assinatura"
id="assinatura"
src="data:image/png;base64, {{ $exame['arquivo_assinatura'] }}" />
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
<style>
body {
font-family: Helvetica, arial, sans-serif;
font-size: 12px;
}
table {
margin-bottom: 15px;
}
p {
margin: 0;
padding: 0;
}
fieldset {
margin-bottom: 0 !important;
}
.circulo {
height: 15px;
width: 15px;
border: 1px solid #000;
}
.background-white {
background: #fff !important
}
.report-content-cell {
background: #fff !important;
border: none !important
}
table.report-container {
page-break-after: always;
}
tr {
border: 0;
}
</style>

View File

@@ -0,0 +1,229 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td class="report-content-cell">
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame / Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['form']['periodo']['start'] }} - {{ $atendimentos['form']['periodo']['end'] }}
</div>
<div class="col-6">
{{ $atendimentos['form']['exame_grupo'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade Solicitante:</strong>
</div>
<div class="col-6">
<strong>Unidade de Coleta:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['form']['unidade_nome'] }}
@if (!empty( $atendimentos['form']['infraestrutura_nome']))
- {{ $atendimentos['form']['infraestrutura_nome'] }}
@endif
</div>
<div class="col-6">
{{ $atendimentos['form']['coleta_unidade_nome'] }}
@if (!empty( $atendimentos['form']['coleta_infraestrutura_nome']))
- {{ $atendimentos['form']['coleta_infraestrutura_nome'] }}
@endif
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Paciente</strong>
</div>
<div class="col-3">
<strong>Prontuário: </strong>
</div>
<div class="col-3">
<strong>Nº Agendamento</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['form']['paciente_nome'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['prontuario'] }}
</div>
<div class="col-3">
{{ $atendimentos['form']['agendamento_numero'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@php
$agendamento_numero = "";
@endphp
@foreach ($atendimentos['form']['agendamentos'] as $agendamento)
@if ($agendamento_numero <> $agendamento->agendamento_numero)
@if (!$loop->first)
</table>
</td></tr>
@endif
@php
$agendamento_numero = $agendamento->agendamento_numero;
@endphp
<tr>
<td class="report-content-cell">
<table class="table table-listagem">
<thead>
<tr>
<th style="width:40%">Paciente</th>
<th>Data de nascimento</th>
<th>Idade</th>
<th>Prontuário</th>
<th>Agendamento</th>
</tr>
</thead>
<tbody>
<tr>
<td class="background-white">
{{ $agendamento->paciente_nome }}
@if (!empty($agendamento->paciente_nome_social))
({{ $agendamento->paciente_nome_social }})
@endif
</td>
<td class="background-white">{{ $agendamento->paciente_nascimento }}</td>
<td class="background-white idade">{{ $agendamento->paciente_idade }}</td>
<td class="background-white">{{ $agendamento->paciente_prontuario }}</td>
<td class="background-white">{{ $agendamento->agendamento_numero }}</td>
</tr>
</tbody>
<thead>
<tr>
<th>Médico(a) solicitante</th>
<th colspan="2">Unidade solicitante</th>
<th colspan="2">Local de atendimento</th>
</tr>
</thead>
<tbody>
<tr>
<td class="background-white">{{ $agendamento->medico_nome }}</td>
<td colspan="2" class="background-white">{{ $agendamento->unidade_nome }}</td>
<td colspan="2" class="background-white">{{ $agendamento->infraestrutura_nome }}</td>
</tr>
</tbody>
<thead>
<tr>
<th>Exame / Grupo</th>
<th colspan="2">Status</th>
<th colspan="2">Conferido</th>
</tr>
</thead>
@endif
<tr>
<td class="background-white">{{ $agendamento->exame_grupo_nome }}</td>
<td colspan="2" class="background-white">{{ $agendamento->status_descricao }}</td>
<td colspan="2" class="background-white"><div class="circulo"></div></td>
</tr>
@endforeach
</table>
</td></tr>
<tr>
<td class="report-content-cell">
<fieldset>
<legend>Status dos exames</legend>
<div class="row">
<div class="col-2">
<strong>Agendado: {{ $atendimentos['form']['agendado'] }}</strong>
</div>
<div class="col-2">
<strong>Realizado: {{ $atendimentos['form']['realizado'] }}</strong>
</div>
<div class="col-2">
<strong>Duplicidade: {{ $atendimentos['form']['duplicidade'] }}</strong>
</div>
<div class="col-2">
<strong>Outros: {{ $atendimentos['form']['outros'] }}</strong>
</div>
<div class="col-2">
<strong>Faltou: {{ $atendimentos['form']['faltou'] }}</strong>
</div>
</div>
</fieldset>
</td>
</tr>
</tbody>
</td></tr>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 10px;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
.table-listagem th, .idade {white-space: nowrap;}
tr {border:0}
td {padding: 1px 5px!important;}
th {padding: 1px 5px!important;}
</style>

View File

@@ -0,0 +1,193 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
@php
$exame_grupo_id = "";
@endphp
@foreach ($atendimentos['form']['agendamentos'] as $agendamento)
@if ($exame_grupo_id <> $agendamento['exame_grupo_id'])
@php
$exame_grupo_id = $agendamento['exame_grupo_id'];
@endphp
<tr>
<td class="report-content-cell">
<fieldset>
<legend>IDENTIFICAÇÃO</legend>
<div class="row">
<div class="col-6">
<strong>Exame / Grupo:</strong>
</div>
<div class="col-6">
<strong>Unidade Solicitante:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $agendamento['exame_grupo_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['form']['unidade_nome'] }}
@if (!empty( $atendimentos['form']['infraestrutura_nome']))
- {{ $atendimentos['form']['infraestrutura_nome'] }}
@endif
</div>
</div>
</fieldset>
</td>
</tr>
@endif
<tr>
<td>
<table>
<tr>
<th style="text-align: left; border-bottom:1px solid #000; padding:10px; font-weight: 700">
Cód. Agendamento: {{ $agendamento['agendamento_numero'] }} -
Paciente: {{ $agendamento['paciente_nome'] }}
@if (!empty($agendamento['paciente_nome_social']))
({{ $agendamento['paciente_nome_social'] }})
@endif -
Idade: {{ $agendamento['paciente_idade'] }}
</th>
</tr>
<tr>
<td style="padding-top:10px; padding-right: 7px">
@foreach ($agendamento['exames'] as $exame)
@if ($exame['composicao']->count() > 0)
@php
$index = 0;
$width = $exame['composicao']->count() > 6 ? 100 / 6 : 100 / $exame['composicao']->count();
$widthFieldset = $exame['composicao']->count() > 1
|| $exame['composicao'][0]['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO
|| $exame['composicao'][0]['resultado']
? 100 : (mb_strlen($exame['nome']) > 16 ? 40 : 20);
@endphp
<div style="float:left; width: {{ $widthFieldset }}%;">
<fieldset style="margin-left:10px">
<legend>{{ $exame['nome'] }}</legend>
<div style="clear: both; margin:0">
@foreach ($exame['composicao'] as $composicao)
@if ($composicao['resultado'])
<div style="clear:both; padding: 5px;">
<div class="row">
<div class="col-6" style="padding:0 5px 0 5px; height: 60px; border:3px dotted #000;"></div>
<div class="col-6" style="padding:0 5px 0 5px; height: 60px; border:3px dotted #000;">
<strong>Resultado:</strong>
</div>
</div>
</div>
@elseif ($composicao['tipo_resultado_id'] == \App\Enums\Parametrizacao\Exame\ComposicaoTipo::CAIXA_TEXTO)
<div style="clear:both; padding: 0 5px;">
<fieldset style="margin:6px 0 0 0; height: 60px">
<legend>{{ $composicao['descricao'] }}</legend>
</fieldset>
</div>
@else
<div style="margin:0; float:left; width: {{ $width }}%">
<div style="padding: 0 5px; margin:0;">
@if ($exame['composicao']->count() == 1)
<div style="height: 40px">{{ $composicao['descricao'] }}</div>
@else
<fieldset style="margin:5px 0 0 0; height: 60px">
<legend>{{ $composicao['descricao'] }}</legend>
</fieldset>
@endif
</div>
</div>
@endif
@endforeach
</div>
</fieldset>
</div>
@endif
@endforeach
</td>
</tr>
</table>
</td>
</tr>
@endforeach
</tbody>
</table>
<style>
body {
font-family: Helvetica, arial, sans-serif;
}
table {
margin-bottom: 15px;
}
legend {
font-size: 14px
}
p {
margin: 0;
padding: 0;
}
.background-white {
background: #fff !important
}
.report-content-cell {
background: #fff !important;
border: none !important
}
table.report-container {
page-break-after: always;
}
tr {
border: 0
}
</style>

View File

@@ -0,0 +1,168 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td class="report-content-cell">
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Grupo:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['form']['periodo']['start'] }} - {{ $atendimentos['form']['periodo']['end'] }}
</div>
<div class="col-6">
{{ $atendimentos['form']['exame_grupo'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade Solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['form']['unidade_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['form']['infraestrutura_nome'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@php
$agendamento_numero = "";
$exame_grupo_id = "";
@endphp
@foreach ($atendimentos['form']['agendamentos'] as $agendamento)
@if ($exame_grupo_id <> $agendamento->exame_grupo_id)
@if (!$loop->first)
</table>
</td></tr>
@endif
@php
$exame_grupo_id = $agendamento->exame_grupo_id;
@endphp
<tr>
<td class="report-content-cell">
<table class="table">
<thead>
<tr>
<th colspan="2">Grupo: {{ $agendamento->exame_grupo_nome }} </th>
</tr>
</thead>
<thead>
<tr>
<th width="70%">Paciente</th>
<th>Exame</th>
</tr>
</thead>
@endif
<tr>
<td class="background-white">
<p>Código: {{ $agendamento->agendamento_numero }}</p>
<p>{{ $agendamento->paciente_prontuario }} - {{ $agendamento->paciente_nome }}
@if (!empty($agendamento->paciente_nome_social))
<strong>({{ $agendamento->paciente_nome_social }})</strong>
@endif
</p>
<p>
D.N.: {{ $agendamento->paciente_nascimento }}
Sexo: {{ $agendamento->paciente_sexo_descricao }}
Data: {{ $agendamento->data }}
</p>
<p>
Idade: {{ $agendamento->paciente_idade }}
</p>
<p>
Observações: {{ $agendamento->observacao }}
</p>
<p>
Exames:
@foreach ($atendimentos['form']['agendamentos_siglas'] as $agendamentos_siglas)
@if ($agendamento->agendamento_id == $agendamentos_siglas->agendamento_id)
{{ $agendamentos_siglas->sigla_exame }}
@endif
@endforeach
</p>
</td>
<td style="vertical-align: text-top;" class="background-white">{{ $agendamento->exame_nome }}:</td>
</tr>
@endforeach
</table>
</td></tr>
</tbody>
</td></tr>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px;}
p {margin:0; padding: 0;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
tr {border:0}
</style>

View File

@@ -0,0 +1,110 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
<div class="col-6">
{{ $exame_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $coleta_unidade_nome }}
</div>
<div class="col-6">
{{ $coleta_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Paciente:</strong>
</div>
<div class="col-6">
<strong>Prontuário:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $paciente }}
</div>
<div class="col-6">
{{ $prontuario }}
</div>
</div>
</fieldset>
<table class="table">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamentos as $agendamento)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
@endsection
<style>
body {
font-family: Helvetica, arial, sans-serif;
}
table {
margin-bottom: 15px;
clear: both;
}
p {
margin: 0;
padding: 0;
}
table.report-container {
page-break-after: always;
}
.col-min {
width: 1%;
}
.text-center {
text-align: center !important;
}
</style>

View File

@@ -0,0 +1,118 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
<div class="col-6">
{{ $exame_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $coleta_unidade_nome }}
</div>
<div class="col-6">
{{ $coleta_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $laboratorio_nome_fantasia }}
</div>
<div class="col-6">
{{ $laboratorio_infraestrutura_nome }}
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td>
<table class="table">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($agendamentos as $agendamento)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
table.report-container {page-break-after: always;}
.col-min { width: 12%; }
.text-center { text-align: center!important; }
</style>

View File

@@ -0,0 +1,151 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
.text-right { text-align: right!important; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Exame: </strong>
</div>
<div class="col-6">
<strong>Profissional: </strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $exame }}
</div>
<div class="col-6">
{{ $profissional }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Supervisor: </strong>
</div>
<div class="col-6">
<strong>Status: </strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $supervisor }}
</div>
<div class="col-6">
{{ $status }}
</div>
</div>
</fieldset>
<div class="row">
<div class="col-2 text-center m-2">
<fieldset>
<legend>Exame(s) bloqueado(s)</legend>
<div class="row">
<div class="col-2 text-center">
<strong>Quantidade: {{ $totalizadores['quantidade_bloqueado'] }}</strong>
</div>
<div class="col-2 text-center">
<strong>Valor: {{ $totalizadores['total_bloqueado'] }}</strong>
</div>
</div>
</fieldset>
</div>
<div class="col-2 text-center" style="padding: 0 5px">
<fieldset>
<legend>Exame(s) liberado(s)</legend>
<div class="row">
<div class="col-2 text-center">
<strong>Quantidade: {{ $totalizadores['quantidade_liberado'] }}</strong>
</div>
<div class="col-2 text-center">
<strong>Valor: {{ $totalizadores['total_liberado'] }}</strong>
</div>
</div>
</fieldset>
</div>
<div class="col-2 text-center m-2">
<fieldset>
<legend>Total Exame(s)</legend>
<div class="row">
<div class="col-2 text-center">
<strong>Quantidade: {{ $totalizadores['quantidade_total'] }}</strong>
</div>
<div class="col-2 text-center">
<strong>Valor: {{ $totalizadores['total'] }}</strong>
</div>
</div>
</fieldset>
</div>
</div>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
@endsection
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 10px;}
.circulo {height:15px; width:15px; border:1px solid #000;}
.background-white { background: #fff!important}
.report-content-cell { background: #fff!important; border: none!important}
table.report-container {page-break-after: always;}
.table-listagem th, .idade {white-space: nowrap;}
tr {border:0}
td {padding: 1px 5px!important;}
th {padding: 1px 5px!important;}
</style>

View File

@@ -0,0 +1,143 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-12">
<strong>Período de-até:</strong>
</div>
</div>
<div class="row">
<div class="col-12">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $laboratorio_nome }}
</div>
<div class="col-6">
{{ $laboratorio_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidade_nome }}
</div>
<div class="col-6">
{{ $infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Grupo:</strong>
</div>
<div class="col-6">
<strong>Exames:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $grupo_nome }}
</div>
<div class="col-6">
{{ $exame_nome }}
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td>
<table class="table table-relatorio">
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
@foreach ($exames as $exame)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">
{{ $exame[$coluna['key']] ?? '-' }}
@if ($coluna['key'] == 'paciente_nome')
@if (!empty($exame['paciente_nome_social']))
<strong>({{ $exame['paciente_nome_social'] }})</strong>
@endif
@endif
</td>
@endforeach
</tr>
@endforeach
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
.background-white { background: #fff!important}
table.report-container {page-break-after: always;}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center!important; }
</style>

View File

@@ -0,0 +1,142 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-12">
<strong>Período de-até:</strong>
</div>
</div>
<div class="row">
<div class="col-12">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidade_nome }}
</div>
<div class="col-6">
{{ $infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $coleta_unidade_nome }}
</div>
<div class="col-6">
{{ $coleta_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $laboratorio_nome }}
</div>
<div class="col-6">
{{ $laboratorio_infraestrutura_nome }}
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td>
<table class="table table-relatorio">
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
@foreach ($exames as $exame)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">{{ $exame[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@endforeach
<tr>
<th class="table-td" colspan="{{ $colunas->count() - 2 }}" ></th>
<th style="white-space: nowrap; text-align: center; page-break-inside: avoid!important;">
Total
</th>
<th style="white-space: nowrap; text-align: center; page-break-inside: avoid!important;">
{{ $total }}
</th>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
.background-white { background: #fff!important}
table.report-container {page-break-after: always;}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center!important; }
</style>

View File

@@ -0,0 +1,244 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
<div class="col-6">
{{ $exame_grupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Status:</strong>
</div>
<div class="col-6">
<strong>Agendamento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
@if ($status->count() == 4)
TODOS
@else
@foreach ($status as $statusNome)
@if ($loop->last)
{{ $statusNome['nome'] }}.
@else
{{ $statusNome['nome'] }},
@endif
@endforeach
@endif
</div>
<div class="col-6">
{{ $agendamento_numero }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidade_nome }}
</div>
<div class="col-6">
{{ $infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $coleta_unidade_nome }}
</div>
<div class="col-6">
{{ $coleta_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $laboratorio_nome }}
</div>
<div class="col-6">
{{ $laboratorio_infraestrutura_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Paciente:</strong>
</div>
<div class="col-6">
<strong>Prontuário:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $paciente_nome }}
</div>
<div class="col-6">
{{ $prontuario }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($agendamentos as $agendamento)
<tr>
<td>
<table class="table table-relatorio">
<tr>
<th colspan="{{ $colunas->count() }}" style="white-space: nowrap; font-size: clamp(8px, 0.7vw, 11px)">
Paciente: {{ $agendamento['paciente_nome'] }}
@if (!empty($agendamento['paciente_nome_social']))
({{ $agendamento['paciente_nome_social'] }})
@endif
- Prontuário: {{ $agendamento['paciente_prontuario'] }}
- Data de nascimento: {{ $agendamento['paciente_nascimento'] }}
- CNS: {{ $agendamento['paciente_cns'] }}
- CPF: {{ $agendamento['paciente_cpf'] }}
</th>
</tr>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] ?? '' }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
@foreach ($agendamento['exames'] as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ ($coluna['class'] ?? '') }} background-white">
{{ $item[$coluna['key']] ?? '-' }}
</td>
@endforeach
</tr>
@endforeach
<tr>
<th class="table-td"></th>
<th colspan="{{ $colunas->count() - 3 }}" style="white-space: wrap; page-break-inside: avoid!important;">
Total de exames: {{ $agendamento['total']['quantidade'] }}
</th>
<th style="white-space: wrap; text-align: center; page-break-inside: avoid!important;">
Total médio: {{ $agendamento['total']['valor_medio'] }}
</th>
<th style="white-space: wrap; text-align: center; page-break-inside: avoid!important;">
Total: {{ $agendamento['total']['valor_total'] }}
</th>
</tr>
</table>
</td>
</tr>
@endforeach
<tr>
<td class="report-content-cell">
<fieldset>
<legend>Total</legend>
<div class="row">
<div class="col-2 text-center">
<strong>Exames: {{ $total['quantidade'] }}</strong>
</div>
<div class="col-2 text-center">
<strong>Valor médio: {{ $total['valor_medio'] }}</strong>
</div>
<div class="col-2 text-center">
<strong>Valor total: {{ $total['valor_total'] }}</strong>
</div>
</div>
</fieldset>
</td>
</tr>
</tbody>
</table>
<style>
.table-relatorio { table-layout: fixed; width: 100%; border-collapse: collapse; margin-bottom: 10%;}
.table-relatorio th, .table-relatorio td { white-space: normal; word-break: break-word; overflow: visible;}
.table-relatorio tbody td:last-child { white-space: nowrap !important;}
.table-relatorio thead th:last-child { white-space: normal !important;}
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
.background-white { background: #fff!important}
table.report-container {page-break-after: always;}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center!important; }
</style>

View File

@@ -0,0 +1,150 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $periodo['start'] }} - {{ $periodo['end'] }}
</div>
<div class="col-6">
{{ $exame_grupo }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Status:</strong>
</div>
<div class="col-6">
<strong>Paciente:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
@if ($status->count() == 4)
TODOS
@else
@foreach ($status as $statusNome)
@if ($loop->last)
{{ $statusNome['nome'] }}.
@else
{{ $statusNome['nome'] }},
@endif
@endforeach
@endif
</div>
<div class="col-6">
{{ $paciente_nome }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade solicitante:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $unidade_nome }}
</div>
<div class="col-6">
{{ $infraestrutura_nome }}
</div>
</div>
</fieldset>
</td>
</tr>
<tr>
<td>
<table class="table table-relatorio">
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
@foreach ($agendamentos as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }} background-white">
{{ $item[$coluna['key']] ?? '-' }}
@if ($coluna['key'] == 'paciente_nome')
@if (!empty($item['paciente_nome_social']))
<strong>({{ $item['paciente_nome_social'] }})</strong>
@endif
@endif
</td>
@endforeach
</tr>
@endforeach
<tr>
<td colspan="{{ $colunas->count() - 2 }}" class="background-white"></td>
<td class="background-white text-center"><strong>Total</strong></td>
<td class="background-white text-center"><strong>{{ $total }}</strong></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
.background-white { background: #fff!important}
table.report-container {page-break-after: always;}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center!important; }
</style>

View File

@@ -0,0 +1,79 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center; }
.text-right { text-align: right!important; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período:</strong>
</div>
<div class="col-6">
<strong>Unidade:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
De {{ $inicio }} até {{ $fim }}
</div>
<div class="col-6">
{{ $unidade }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
<div class="col-6">
<strong>Médico:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $local }}
</div>
<div class="col-6">
{{ $medico }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
<thead>
<tr>
@foreach ($colunas as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($itens as $item)
<tr>
@foreach ($colunas as $coluna)
<td class="{{ $coluna['class'] }}">{{ $item->{$coluna['key']} ?? '-' }}</td>
@endforeach
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="{{ $colunas->count()}}" class="text-right">Total: {{ $totalizadores['total'] }}</th>
</tr>
</tfoot>
</table>
@endsection

View File

@@ -0,0 +1,147 @@
@extends('impressoes.layout1.content')
<meta charset="UTF-8">
<table class="report-container">
<thead class="report-header">
<tr>
<th class="report-header-cell">
</th>
</tr>
</thead>
<tfoot class="report-footer">
<tr>
<td class="report-footer-cell">
</td>
</tr>
</tfoot>
<tbody class="report-content">
<tr>
<td>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['periodo']['start'] }} - {{ $atendimentos['periodo']['end'] }}
</div>
<div class="col-6">
{{ $atendimentos['exame_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['coleta_unidade_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['coleta_infraestrutura_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['laboratorio_nome_fantasia'] }}
</div>
<div class="col-6">
{{ $atendimentos['laboratorio_infraestrutura_nome'] }}
</div>
</div>
</fieldset>
</td>
</tr>
@foreach ($atendimentos['unidade_coleta'] as $coleta)
<tr>
<td>
<table class="table table-relatorio">
@foreach ($coleta['exames'] as $agendamento)
@if ($loop->first)
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: center">
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</th>
</tr>
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: center">
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }}
- Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
</th>
</tr>
@endif
@if ($loop->first)
<tr>
@foreach ($atendimentos['colunas'] as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
@endif
<tr>
@foreach ($atendimentos['colunas'] as $coluna)
<td style="text-align: left; width:10%!important" class="{{ $coluna['class'] }} background-white">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: right;">
Total de exames: {{$coleta['total_exames']}}
</th>
</tr>
@endif
@endforeach
</table>
</td>
</tr>
@endforeach
</tbody>
</table>
<style>
body {font-family: Helvetica, arial, sans-serif;}
table {margin-bottom: 15px; clear: both;}
p {margin:0; padding: 0;}
.background-white { background: #fff!important}
table.report-container {page-break-after: always;}
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: left; }
.col-min { width: 1%; }
.text-center { text-align: center; }
</style>

View File

@@ -0,0 +1,166 @@
@extends('impressoes.layout1.content')
@section('conteudo')
<style>
.table-relatorio > thead > tr > th,
.table-relatorio > tfoot > tr > th { text-align: center; }
.col-min { width: 1%; }
.text-center { text-align: center !important; }
</style>
<fieldset>
<legend>Filtros</legend>
<div class="row">
<div class="col-6">
<strong>Período de-até:</strong>
</div>
<div class="col-6">
<strong>Exame:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['periodo']['start'] }} - {{ $atendimentos['periodo']['end'] }}
</div>
<div class="col-6">
{{ $atendimentos['exame_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Unidade de coleta:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['coleta_unidade_nome'] }}
</div>
<div class="col-6">
{{ $atendimentos['coleta_infraestrutura_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Laboratório:</strong>
</div>
<div class="col-6">
<strong>Local de atendimento:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['laboratorio_nome_fantasia'] }}
</div>
<div class="col-6">
{{ $atendimentos['laboratorio_infraestrutura_nome'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Ocupação:</strong>
</div>
<div class="col-6">
<strong>Profissional:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['ocupacao'] }}
</div>
<div class="col-6">
{{ $atendimentos['profissional'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Procedimento:</strong>
</div>
<div class="col-6">
<strong>Status:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['procedimento'] }}
</div>
<div class="col-6">
{{ $atendimentos['status'] }}
</div>
</div>
<div class="row">
<div class="col-6">
<strong>Idade de:</strong>
</div>
<div class="col-6">
<strong>Idade até:</strong>
</div>
</div>
<div class="row">
<div class="col-6">
{{ $atendimentos['idade_de'] }}
</div>
<div class="col-6">
{{ $atendimentos['idade_ate'] }}
</div>
</div>
</fieldset>
<table class="table table-relatorio">
@foreach ($atendimentos['unidade_coleta'] as $coleta)
<thead>
<tr>
<th colspan="{{ $atendimentos['colunas']->count() + 1 }}" style="white-space: nowrap; text-align: center">
Unidade de coleta: {{ $coleta['coleta_nome_fantasia'] }} -
Local de atendimento: {{ $coleta['coleta_infraestrutura_nome'] }}
</th>
</tr>
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: center">
Laboratório: {{ $coleta['laboratorio_nome_fantasia'] }} -
Local de atendimento: {{ $coleta['laboratorio_infraestrutura_nome'] }}
</th>
</tr>
<tr>
@foreach ($atendimentos['colunas'] as $coluna)
<th class="{{ $coluna['class'] }}">{{ $coluna['label'] }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($coleta['exames'] as $agendamento)
<tr>
@foreach ($atendimentos['colunas'] as $coluna)
<td class="{{ $coluna['class'] }}">{{ $agendamento[$coluna['key']] ?? '-' }}</td>
@endforeach
</tr>
@if ($loop->last)
<tr>
<th colspan="{{ $atendimentos['colunas']->count() }}" style="white-space: nowrap; text-align: right;">
Total de exames: {{$coleta['total']}}
</th>
</tr>
@endif
@endforeach
</tbody>
@endforeach
</table>
@endsection