This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="2">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $periodo['inicio'] }} até {{ $periodo['fim'] }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Especialidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
<td>{{ $especialidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$especialidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</td>
|
||||
<td>{{ $status }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Tipo de demanda</strong></th>
|
||||
<th><strong>Data de atendimento</strong></th>
|
||||
<th><strong>Profissional</strong></th>
|
||||
<th><strong>Especialidade</strong></th>
|
||||
<th><strong>Paciente</strong></th>
|
||||
<th><strong>Prontuário</strong></th>
|
||||
<th><strong>Horário</strong></th>
|
||||
<th><strong>Cids / Ciaps</strong></th>
|
||||
<th><strong>Procedimentos</strong></th>
|
||||
<th><strong>Status</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($itens['atendimentos'] as $atendimento)
|
||||
<tr>
|
||||
<td>{{$atendimento->demanda_tipo}}</td>
|
||||
<td>{{$atendimento->data_atendimento}}</td>
|
||||
<td>{{$atendimento->usuario_nome}}</td>
|
||||
<td>{{$atendimento->especialidade_nome}}</td>
|
||||
<td>{{$atendimento->paciente_nome}}</td>
|
||||
<td>{{$atendimento->paciente_prontuario}}</td>
|
||||
<td>{{$atendimento->horario_atendimento}}</td>
|
||||
|
||||
<td>
|
||||
@foreach($atendimento->cids_ciaps as $cidCiap)
|
||||
{{$cidCiap}} <br/>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@foreach($atendimento->procedimentos as $procedimento)
|
||||
{{$procedimento}} <br/>
|
||||
@endforeach
|
||||
</td>
|
||||
|
||||
<td>{{$atendimento->agendamento_status_nome}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="4">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de pacientes</strong></td>
|
||||
<td><strong>Total de atendimentos realizadas</strong></td>
|
||||
<td><strong>Total de faltas</strong></td>
|
||||
<td><strong>Total de procedimentos lançados</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$itens['totalizadores']['quantidade_pacientes']}}</td>
|
||||
<td>{{$itens['totalizadores']['quantidade_atendimentos_realizados']}}</td>
|
||||
<td>{{$itens['totalizadores']['quantidade_faltas']}}</td>
|
||||
<td>{{$itens['totalizadores']['quantidade_procedimentos_lancados']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,127 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="3">
|
||||
<strong>{{$title}}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Tipo de demanda</strong></td>
|
||||
<td><strong>Tipo de agendamento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
|
||||
<td>{{$demanda_tipo}}</td>
|
||||
<td>{{$agendamento_tipo}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Municipio</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$municipio}}</td>
|
||||
<td>{{$unidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>Especialidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$infraestrutura}}</td>
|
||||
<td>{{$especialidade}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Status</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$usuario}}</td>
|
||||
<td>{{$status}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><strong>Data</strong></th>
|
||||
<th><strong>Tipo de agendamento</strong></th>
|
||||
<th><strong>Municipio</strong></th>
|
||||
<th><strong>Unidade</strong></th>
|
||||
<th><strong>Local de atendimento</strong></th>
|
||||
<th><strong>Especialidade</strong></th>
|
||||
<th><strong>Profissional</strong></th>
|
||||
<th><strong>Status</strong></th>
|
||||
<th><strong>Total</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($data['itens'] as $item)
|
||||
<tr>
|
||||
<td>{{$item->data}}</td>
|
||||
<td>{{$item->agendamento_tipo_nome}}</td>
|
||||
<td>{{$item->municipio_nome}}</td>
|
||||
<td>{{$item->unidade_nome_fantasia}}</td>
|
||||
<td>{{$item->infraestrutura_nome}}</td>
|
||||
<td>{{$item->especialidade_nome}}</td>
|
||||
<td>{{$item->usuario_nome}}</td>
|
||||
<td>{{$item->agendamento_status_nome}}</td>
|
||||
<td>{{$item->quantidade}}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="@if($demanda_tipo === 'AGENDADA') 4 @else 3 @endif">
|
||||
<strong>Totais</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Agendado</strong></td>
|
||||
<td><strong>Realizado</strong></td>
|
||||
<td><strong>Reagendado pelo paciente</strong></td>
|
||||
<td><strong>Reagendado pelo médico</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['agendado']}}</td>
|
||||
<td>{{$data['totalizadores']['realizado']}}</td>
|
||||
<td>{{$data['totalizadores']['reagendado_paciente']}}</td>
|
||||
<td>{{$data['totalizadores']['reagendado_medico']}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Cancelado pelo paciente</strong></td>
|
||||
<td><strong>Cancelado pelo médico</strong></td>
|
||||
<td><strong>Falta do paciente</strong></td>
|
||||
<td><strong>Falta do médico</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['cancelado_paciente']}}</td>
|
||||
<td>{{$data['totalizadores']['cancelado_medico']}}</td>
|
||||
<td>{{$data['totalizadores']['falta_paciente']}}</td>
|
||||
<td>{{$data['totalizadores']['falta_medica']}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Aberto</strong></td>
|
||||
<td><strong>Total geral</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{$data['totalizadores']['aberto']}}</td>
|
||||
<td>{{$data['totalizadores']['geral']}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,80 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}"><strong>RELATÓRIO DE PROCEDIMENTOS</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td>De {{ $inicio }} até {{ $fim }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Unidade</strong></td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>CBO</strong></td>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Especialidade</strong></td>
|
||||
<td>{{ $especialidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td>{{ $usuario }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Procedimento SIGTAP</strong></td>
|
||||
<td>{{ $procedimento }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Tipo de Demanda</strong></td>
|
||||
<td>{{ $demandaTipo }}</td>
|
||||
</tr>
|
||||
|
||||
<tr></tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
@php $val = $item->{$coluna['key']} ?? null; @endphp
|
||||
<td>
|
||||
@if(is_iterable($val))
|
||||
{{ collect($val)->filter()->implode(', ') ?: '-' }}
|
||||
@else
|
||||
{{ $val ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td><strong>Total de Registros: {{ $totalRegistros }}</strong></td>
|
||||
<td><strong>Total de Procedimentos SIGTAP: {{ $totalProcedimentos }}</strong></td>
|
||||
<td><strong>Total de Procedimentos ABPG: {{ $totalAbpg }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,146 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="{{ $colunas->count() }}" style="text-align: center">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Ano</strong>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<strong>Mês</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
<strong>Unidade</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
<strong>Local de atendimento</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ $ano }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $mes }}
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
{{ $unidade }}
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
{{ $infraestrutura }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
<strong>CBO</strong>
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
<strong>Especialidade</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
{{ $ocupacao }}
|
||||
</td>
|
||||
|
||||
<td colspan="7">
|
||||
{{ $especialidade }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@foreach ($itens as $i => $infraestrutura)
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}" style="text-align: center;">
|
||||
<strong>Unidade: {{ $infraestrutura->unidade_nome_fantasia }}<br>Local de atendimento: {{ $infraestrutura->infraestrutura_nome }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th></th>
|
||||
|
||||
<th colspan="{{ count($colunas) - 2 }}" style="text-align: center;">
|
||||
<strong>Dia do mês</strong>
|
||||
</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@foreach ($infraestrutura->usuarios as $usuario)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $usuario->{$coluna['key']} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>
|
||||
<strong>{{ $infraestrutura->{$coluna['key']} ?? '' }}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="{{ count($colunas) }}" style="text-align: center;">
|
||||
<strong>Totalizadores</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th></th>
|
||||
|
||||
<th colspan="{{ count($colunas) - 2 }}" style="text-align: center;">
|
||||
<strong>Dia do mês</strong>
|
||||
</th>
|
||||
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
@foreach ($colunasTotalizadores as $coluna)
|
||||
<td>
|
||||
<strong>{{ $coluna['label'] }}</strong>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
@foreach ($colunasTotalizadores as $coluna)
|
||||
<td>{{ $totalizadores->{$coluna['key']} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@@ -0,0 +1,79 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{ $inicio }} até {{ $fim }}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>CBO</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
<td>{{ $ocupacao }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Procedimento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</td>
|
||||
<td>{{ $procedimento }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Idade (anos)</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
@if ($idadeDe && $idadeAte)
|
||||
De {{ $idadeDe }} até {{ $idadeAte }}
|
||||
@elseif ($idadeDe && !$idadeAte)
|
||||
De {{ $idadeDe }}
|
||||
@elseif (!$idadeDe && $idadeAte)
|
||||
Até {{ $idadeAte }}
|
||||
@else
|
||||
Todas
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens as $item)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<td>{{ $item->{$coluna['key']} ?? '-' }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tr>
|
||||
<th colspan="{{ $colunas->count() }}" style="text-align: center;"><strong>Total de procedimentos: {{ $totalizadores->quantidade }}</strong></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,104 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align: center" colspan="{{ $colunas->count() }}">
|
||||
<strong>{{ $title }}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Período</strong></td>
|
||||
<td><strong>Unidade</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>De {{$periodo['inicio']}} até {{$periodo['fim']}}</td>
|
||||
<td>{{ $unidade }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Local de atendimento</strong></td>
|
||||
<td><strong>CBO</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $infraestrutura }}</td>
|
||||
<td>{{ $cbo }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Profissional</strong></td>
|
||||
<td><strong>Procedimento</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{{ $usuario }}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
<th><strong>{{ $coluna['label'] }}</strong></th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($itens['itens'] as $atendimento)
|
||||
<tr>
|
||||
@foreach ($colunas as $coluna)
|
||||
@php
|
||||
$key = $coluna['key'];
|
||||
$valor = data_get($atendimento, $key, '-');
|
||||
@endphp
|
||||
|
||||
<td class="{{ $coluna['class'] ?? '' }}">
|
||||
{{ $valor }}
|
||||
</td>
|
||||
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tr>
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Pacientes distintos atendidos: </strong>
|
||||
{{$itens['totalizadores']['pacientes_distintos_atendidos']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>feridas realizados: </strong>
|
||||
{{$itens['totalizadores']['atendimentos_realizados']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>SOAPs geradas: </strong>
|
||||
{{$itens['totalizadores']['soaps_geradas']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Feridas registradas: </strong>
|
||||
{{$itens['totalizadores']['feridas_registradas']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Procedimentos lançados: </strong>
|
||||
{{$itens['totalizadores']['procedimentos_lancados']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Kits/materiais consumidos: </strong>
|
||||
{{$itens['totalizadores']['kits_materiais_consumidos']}}
|
||||
</th>
|
||||
|
||||
<th colspan="auto" style="text-align: center;">
|
||||
<strong>Valores de custo total: </strong>
|
||||
{{$itens['totalizadores']['valor_custo_total']}}
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
Reference in New Issue
Block a user