266 lines
11 KiB
PHP
266 lines
11 KiB
PHP
@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> |