Отчет для врача дежурного

This commit is contained in:
Brusnitsyn
2026-07-06 07:37:53 +00:00
parent 1d9fbb362e
commit 7ef20061f0
3 changed files with 179 additions and 34 deletions

View File

@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>{{ $title }}</title>
<style>
body { font-family: 'DejaVu Sans', sans-serif; font-size: 12px; color: #1f2430; line-height: 1.5; }
h1 { font-size: 14px; text-align: center; margin: 0 0 4px; }
.sub { text-align: center; margin: 0 0 16px; }
.label { font-weight: bold; margin: 10px 0 2px; }
.patient { margin: 2px 0 2px 12px; }
.signature { margin-top: 32px; }
.signature p { margin: 12px 0; }
</style>
</head>
<body>
<h1>{{ $title }}</h1>
<p class="sub">За «{{ $day }}» {{ $month }} {{ $year }} год.</p>
<p class="label">Плановые: {{ $planned['count'] }}</p>
@foreach ($planned['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}-{{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) Д/З: {{ $p['diagnosis'] }}.@endif</p>
@endforeach
<p class="label">Экстренные: {{ $urgent['count'] }}</p>
@foreach ($urgent['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}-{{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) Д/З: {{ $p['diagnosis'] }}.@endif</p>
@endforeach
<p>В отделении состоит: {{ $inDepartment }}</p>
<p class="label">ПЛАНОВЫХ ОПЕРАЦИЙ: {{ $plannedOperations['count'] }}</p>
@foreach ($plannedOperations['patients'] as $p)
<p class="patient">{{ $p['full_name'] }} {{ $p['age'] }}.</p>
@endforeach
<p class="label">Экстренных операций: {{ $urgentOperations['count'] }}</p>
@foreach ($urgentOperations['patients'] as $p)
<p class="patient">{{ $p['full_name'] }} {{ $p['age'] }}.</p>
@endforeach
<p class="label">Реанимация: {{ $reanimation['count'] }}</p>
@foreach ($reanimation['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) {{ $p['diagnosis'] }}.@endif</p>
@endforeach
<p>Под наблюдением: {{ $observableCount }}</p>
<p>Летальные исходы: {{ $deceased['count'] > 0 ? '' : 'не было.' }}</p>
@foreach ($deceased['patients'] as $i => $p)
<p class="patient">{{ $i + 1 }}. {{ $p['full_name'] }} {{ $p['age'] }}.@if ($p['diagnosis']) {{ $p['diagnosis'] }}.@endif</p>
@endforeach
<div class="signature">
<p>Дежурный врач ПДО: _____________</p>
<p>Дежурный врач отделения: _____________</p>
</div>
</body>
</html>