This commit is contained in:
Duidev Software House
2025-11-12 19:47:15 +07:00
parent b2c5df08a2
commit 0adb7b2a76
12 changed files with 572 additions and 288 deletions
@@ -1222,6 +1222,10 @@ class DokterController extends Controller
if ($komponen == 'otomatis' AND $kuman == ''){
$cekada = ResultSample::where('accession_number', 'LIKE', $nofoto.'%')->first();
$kuman = $cekada->organism ?? '';
if ($kuman == ''){
$cekkumanotomatis = KomponenJawaban::where('accnumber', $nofoto)->where('komponen', 'bakteri')->first();
$kuman = $cekkumanotomatis->isidata ?? '';
}
}
$data = $data->where('kuman', $kuman);
$data = $data->orderByRaw($order)->paginate($limit);
@@ -87,71 +87,150 @@
<td colspan="8">
@php
$cekketerangan = explode('/table', $keterangan);
$cetakjudul = false;
$sudahcetak1= 0;
$sudahcetak2= 0;
$sudahcetak3= 0;
$namakuman = '';
@endphp
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
@if (isset($antibiotiks) && $antibiotiks->isNotEmpty())
@php
// Filter antibiotik yang printrow == true
$filtered = $antibiotiks->filter(function($row) {
return $row->printrow;
})->values(); // reset index
$total = $filtered->count();
$half = ceil($total / 2);
$left = $filtered->slice(0, $half)->values();
$right = $filtered->slice($half)->values();
$grouped = $antibiotiks->filter(function ($row) {
return $row->printrow; // hanya yang perlu dicetak
})->groupBy('kuman');
if (empty($grouped) OR $grouped->isEmpty()) {
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
}
}
if (isset($data['id_bakteri01'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
}
if (isset($data['id_bakteri02'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
}
}
@endphp
@foreach ($grouped as $kuman => $items)
@if (isset($data['bakteri']) AND $data['bakteri'] == $kuman)
@if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK')
@else
@if ($sudahcetak1 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['bakteri'] }}</i></strong> {{ $data['bakterisir'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol'] }}</i></strong></p>
@endif
@php
$sudahcetak1 = 1;
$cetakjudul = true;
$namakuman = $data['bakteri'];
@endphp
@endif
@endif
@endif
@if (isset($data['id_bakteri01']) AND $data['id_bakteri01'] == $kuman)
@if ($sudahcetak2 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri01'] }}</i></strong> {{ $data['id_bakterisir01'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks01'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol01'] }}</i></strong></p>
@endif
@php
$sudahcetak2 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri01'];
@endphp
@endif
@endif
@if (isset($data['id_bakteri02']) AND $data['id_bakteri02'] == $kuman)
@if ($sudahcetak3 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri02'] }}</i></strong> {{ $data['id_bakterisir02'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks02'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol02'] }}</i></strong></p>
@endif
@php
$sudahcetak3 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri02'];
@endphp
@endif
@endif
@php
$total = $items->count();
$half = ceil($total / 2);
$left = $items->slice(0, $half)->values();
$right = $items->slice($half)->values();
@endphp
@if ($cetakjudul)
<table style="width:100%; border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0">
<thead>
<tr style="background-color: #f2f2f2;">
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
<th>&nbsp;</th>
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]) AND $left[$i]->printrow)
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
<td>{{ $left[$i]->printcol == 1 ? $left[$i]->value : '' }}</td>
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<table style="width:100%" border="1" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th><strong>No</strong></th>
<th><strong>Antibiotik</strong></th>
<th><strong>Value</strong></th>
<th><strong>Interpretation</strong></th>
<th>&nbsp;</th>
<th><strong>No</strong></th>
<th><strong>Antibiotik</strong></th>
<th><strong>Value</strong></th>
<th><strong>Interpretation</strong></th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]))
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
<td>{{ $left[$i]->value }}</td>
@else
<td>&nbsp;</td>
@endif
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<td>&nbsp;</td> {{-- Pemisah tengah --}}
<td>&nbsp;</td> {{-- Spacer kolom tengah --}}
{{-- Kolom kanan --}}
@if (isset($right[$i]))
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
<td>{{ $right[$i]->value }}</td>
@else
<td>&nbsp;</td>
@endif
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
{{-- Kolom kanan --}}
@if (isset($right[$i]) AND $right[$i]->printrow)
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
<td>{{ $right[$i]->printcol == 1 ? $right[$i]->value : '' }}</td>
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
@endif
@endforeach
@php
if ($namakuman == ''){
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
}
}
if (isset($data['id_bakteri01'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
}
if (isset($data['id_bakteri02'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
}
}
@endphp
@endif
</td>
@@ -300,11 +300,10 @@
<td valign="top">{{$nomor}}. Pewarnaan Giemsa</td>
<td valign="top">:</td>
<td valign="top">
@if (isset($data['id_pewarnaangiesma']))
{!! $data['id_pewarnaangiesma'] !!}
@endif
@if (isset($data['id_pewarnaangiesmaoptional']))
<br />{!! $data['id_pewarnaangiesmaoptional'] !!}
@if (isset($data['id_pewarnaangiesma']) AND $data['id_pewarnaangiesma'] != 'lainnya')
{!! $data['id_pewarnaangiesma'] !!}
@else
{!! $data['id_pewarnaangiesmaoptional'] ?? '' !!}
@endif
</td>
</tr>
@@ -325,6 +324,11 @@
</table>
@php
$cekketerangan = explode('/table', $keterangan);
$cetakjudul = false;
$sudahcetak1= 0;
$sudahcetak2= 0;
$sudahcetak3= 0;
$namakuman = '';
@endphp
@if (isset($antibiotiks) && $antibiotiks->isNotEmpty())
@@ -332,79 +336,73 @@
$grouped = $antibiotiks->filter(function ($row) {
return $row->printrow; // hanya yang perlu dicetak
})->groupBy('kuman');
if (empty($grouped) || $grouped->isEmpty()) {
if (empty($grouped) OR $grouped->isEmpty()) {
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
$namakuman = $data['bakteri'];
}
}
if (isset($data['id_bakteri01'])) {
if (isset($data['id_bakteri01']) AND $namakuman != $data['id_bakteri01']) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
$namakuman = $data['id_bakteri01'];
}
if (isset($data['id_bakteri02'])) {
if (isset($data['id_bakteri02']) AND $namakuman != $data['id_bakteri02']) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
$namakuman = $data['id_bakteri01'];
}
}
@endphp
@foreach ($grouped as $kuman => $items)
@php
$cetakjudul = false;
$sudahcetak1= 0;
$sudahcetak2= 0;
$sudahcetak3= 0;
@endphp
@if (isset($data['bakteri']) AND $data['bakteri'] == $kuman)
@if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK')
@else
@if ($sudahcetak1 == 0)
@php
$sudahcetak1 = 1;
@endphp
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['bakteri'] }}</i></strong> {{ $data['bakterisir'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol'] }}</i></strong></p>
@endif
@php
$sudahcetak1 = 1;
$cetakjudul = true;
$namakuman = $data['bakteri'];
@endphp
@endif
@endif
@if (isset($data['id_bakterihitungkolteks']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol'] }}</i></strong></p>
@endif
@php
$cetakjudul = true;
@endphp
@endif
@if (isset($data['id_bakteri01']) AND $data['id_bakteri01'] == $kuman)
@if ($sudahcetak2 == 0)
@php
$sudahcetak2 = 1;
@endphp
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri01'] }}</i></strong> {{ $data['id_bakterisir01'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks01'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol01'] }}</i></strong></p>
@endif
@php
$sudahcetak2 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri01'];
@endphp
@endif
@if (isset($data['id_bakterihitungkolteks01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks01'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol01'] }}</i></strong></p>
@endif
@php
$cetakjudul = true;
@endphp
@endif
@if (isset($data['id_bakteri02']) AND $data['id_bakteri02'] == $kuman)
@if ($sudahcetak3 == 0)
@php
$sudahcetak3 = 1;
@endphp
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri02'] }}</i></strong> {{ $data['id_bakterisir02'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks02'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol02'] }}</i></strong></p>
@endif
@php
$sudahcetak3 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri02'];
@endphp
@endif
@if (isset($data['id_bakterihitungkolteks02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks02'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol02'] }}</i></strong></p>
@endif
@php
$cetakjudul = true;
@endphp
@endif
@php
$total = $items->count();
@@ -431,7 +429,7 @@
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]))
@if (isset($left[$i]) AND $left[$i]->printrow)
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
<td>{{ $left[$i]->printcol == 1 ? $left[$i]->value : '' }}</td>
@@ -443,7 +441,7 @@
<td>&nbsp;</td> {{-- Pemisah tengah --}}
{{-- Kolom kanan --}}
@if (isset($right[$i]))
@if (isset($right[$i]) AND $right[$i]->printrow)
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
<td>{{ $right[$i]->printcol == 1 ? $right[$i]->value : '' }}</td>
@@ -457,9 +455,26 @@
</table>
@endif
@endforeach
@php
if ($namakuman == ''){
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
$namakuman = $data['bakteri'];
}
}
if (isset($data['id_bakteri01']) AND $namakuman != $data['id_bakteri01']) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
$namakuman = $data['id_bakteri01'];
}
if (isset($data['id_bakteri02']) AND $namakuman != $data['id_bakteri02']) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
$namakuman = $data['id_bakteri01'];
}
}
@endphp
@endif
@if (isset($data['keterangan']))
<br />Komentar:<br />
{!! $data['keterangan'] !!}
@@ -98,6 +98,7 @@
$lsg_pewarnaanneisser = '';
$lsg_pewarnaannegatif = '';
$lsg_pewarnaangiesma = '';
$lsg_pewarnaangiesmaoptional= '';
$lsg_pewarnaanspora = '';
$lsg_pewarnaanlain = '';
$lsg_ditemukanmorfologi = '';
@@ -115,6 +116,7 @@
if (trim($rows->komponen) == 'lsg_pewarnaanneisser') {$lsg_pewarnaanneisser = $rows->isidata; }
if (trim($rows->komponen) == 'lsg_pewarnaannegatif') {$lsg_pewarnaannegatif = $rows->isidata; }
if (trim($rows->komponen) == 'lsg_pewarnaangiesma') {$lsg_pewarnaangiesma = $rows->isidata; }
if (trim($rows->komponen) == 'lsg_pewarnaangiesmaoptional') {$lsg_pewarnaangiesmaoptional = $rows->isidata; }
if (trim($rows->komponen) == 'lsg_pewarnaanspora') {$lsg_pewarnaanspora = $rows->isidata; }
if (trim($rows->komponen) == 'lsg_pewarnaanlain') {$lsg_pewarnaanlain = $rows->isidata; }
if (trim($rows->komponen) == 'lsg_ditemukanmorfologi') {$lsg_ditemukanmorfologi = $rows->isidata; }
@@ -191,7 +193,13 @@
<tr>
<td valign="top">Pewarnaan Giemsa</td>
<td valign="top">:</td>
<td valign="top">{!! $lsg_pewarnaangiesma !!}</td>
<td valign="top">
@if ($lsg_pewarnaangiesma != 'lainnya')
{!! $lsg_pewarnaangiesma !!}
@else
{!! $lsg_pewarnaangiesmaoptional ?? '' !!}
@endif
</td>
</tr>
@endif
@if ($lsg_pewarnaanspora != '')
@@ -220,74 +228,150 @@
</table>
@php
$cekketerangan = explode('/table', $keterangan);
$cetakjudul = false;
$sudahcetak1= 0;
$sudahcetak2= 0;
$sudahcetak3= 0;
$namakuman = '';
@endphp
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
@if ($bakteri != '')
<p>Bakteri Yang ditemukan : <strong><i>{{$bakteri}}</i></strong> {{$data['bakterisir'] ?? ''}}</p>
@endif
@if (isset($antibiotiks) && $antibiotiks->isNotEmpty())
@php
// Filter antibiotik yang printrow == true
$filtered = $antibiotiks->filter(function($row) {
return $row->printrow;
})->values(); // reset index
$total = $filtered->count();
$half = ceil($total / 2);
$left = $filtered->slice(0, $half)->values();
$right = $filtered->slice($half)->values();
$grouped = $antibiotiks->filter(function ($row) {
return $row->printrow; // hanya yang perlu dicetak
})->groupBy('kuman');
if (empty($grouped) OR $grouped->isEmpty()) {
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
}
}
if (isset($data['id_bakteri01'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
}
if (isset($data['id_bakteri02'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
}
}
@endphp
@foreach ($grouped as $kuman => $items)
@if (isset($data['bakteri']) AND $data['bakteri'] == $kuman)
@if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK')
@else
@if ($sudahcetak1 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['bakteri'] }}</i></strong> {{ $data['bakterisir'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol'] }}</i></strong></p>
@endif
@php
$sudahcetak1 = 1;
$cetakjudul = true;
$namakuman = $data['bakteri'];
@endphp
@endif
@endif
@endif
@if (isset($data['id_bakteri01']) AND $data['id_bakteri01'] == $kuman)
@if ($sudahcetak2 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri01'] }}</i></strong> {{ $data['id_bakterisir01'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks01'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol01'] }}</i></strong></p>
@endif
@php
$sudahcetak2 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri01'];
@endphp
@endif
@endif
@if (isset($data['id_bakteri02']) AND $data['id_bakteri02'] == $kuman)
@if ($sudahcetak3 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri02'] }}</i></strong> {{ $data['id_bakterisir02'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks02'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol02'] }}</i></strong></p>
@endif
@php
$sudahcetak3 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri02'];
@endphp
@endif
@endif
@php
$total = $items->count();
$half = ceil($total / 2);
$left = $items->slice(0, $half)->values();
$right = $items->slice($half)->values();
@endphp
@if ($cetakjudul)
<table style="width:100%; border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0">
<thead>
<tr style="background-color: #f2f2f2;">
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
<th>&nbsp;</th>
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]) AND $left[$i]->printrow)
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
<td>{{ $left[$i]->printcol == 1 ? $left[$i]->value : '' }}</td>
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<table style="width:100%" border="1" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th><strong>No</strong></th>
<th><strong>Antibiotik</strong></th>
<th><strong>Value</strong></th>
<th><strong>Interpretation</strong></th>
<th>&nbsp;</th>
<th><strong>No</strong></th>
<th><strong>Antibiotik</strong></th>
<th><strong>Value</strong></th>
<th><strong>Interpretation</strong></th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]))
<td>{{ $i + 1 }}</td>
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
<td>{{ $left[$i]->value }}</td>
@else
<td>&nbsp;</td>
@endif
<td>{{ $left[$i]->value }}</td>
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<td>&nbsp;</td> {{-- Pemisah tengah --}}
<td>&nbsp;</td> {{-- Spacer kolom tengah --}}
{{-- Kolom kanan --}}
@if (isset($right[$i]))
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
<td>{{ $right[$i]->value }}</td>
@else
<td>&nbsp;</td>
@endif
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
{{-- Kolom kanan --}}
@if (isset($right[$i]) AND $right[$i]->printrow)
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
<td>{{ $right[$i]->printcol == 1 ? $right[$i]->value : '' }}</td>
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
@endif
@endforeach
@php
if ($namakuman == ''){
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
}
}
if (isset($data['id_bakteri01'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
}
if (isset($data['id_bakteri02'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
}
}
@endphp
@endif
@if (isset($keterangan))
@@ -1470,22 +1470,23 @@
<td class=xl88>&nbsp;</td>
<td class=xl77>
@php
if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis TBS'){
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis TBC'){
$d2 = '&nbsp;';
$d1 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
$d1 = '&nbsp;';
$d2 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
$d1 = '&nbsp;';
$d3 = '&#8730;';
$d2 = '&nbsp;';
} else {
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
}
echo $d1;
@endphp
@@ -1649,12 +1650,15 @@
$j9 = '&nbsp;';
$j1 = '&nbsp;';
}
if (isset($data['tekslokasianatomi']) && $data['tekslokasianatomi'] != ''){
$p2 = '&#8730;';
if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Ekstraparu'){
$p1 = '&nbsp;';
} else {
$p2 = '&#8730;';
} else if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Paru'){
$p1 = '&#8730;';
$p2 = '&nbsp;';
} else {
$p1 = '&nbsp;';
$p2 = '&nbsp;';
}
@endphp
<tr>
@@ -1470,22 +1470,23 @@
<td class=xl88>&nbsp;</td>
<td class=xl77>
@php
if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis TBS'){
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis TBC'){
$d2 = '&nbsp;';
$d1 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
$d1 = '&nbsp;';
$d2 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
$d1 = '&nbsp;';
$d3 = '&#8730;';
$d2 = '&nbsp;';
} else {
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
}
echo $d1;
@endphp
@@ -1649,12 +1650,15 @@
$j9 = '&nbsp;';
$j1 = '&nbsp;';
}
if (isset($data['tekslokasianatomi']) && $data['tekslokasianatomi'] != ''){
$p2 = '&#8730;';
if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Ekstraparu'){
$p1 = '&nbsp;';
} else {
$p2 = '&#8730;';
} else if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Paru'){
$p1 = '&#8730;';
$p2 = '&nbsp;';
} else {
$p1 = '&nbsp;';
$p2 = '&nbsp;';
}
@endphp
<tr>
@@ -796,26 +796,27 @@
<td>:</td>
<td colspan=4 class=xl65 style='border-right:.5pt solid black'>&nbsp;</td>
<td>&nbsp;</td>
<td colspan=10 class=xl75>Alasan Pemeriksaan :</td>
<td colspan=10 class=xl75>Alasan Pemeriksaan : {{ $data['id_alasanpemeriksaan'] ?? ''}}</td>
<td class=xl72>&nbsp;</td>
</tr>
@php
if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis TBS'){
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis TBC'){
$d2 = '&nbsp;';
$d1 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
$d1 = '&nbsp;';
$d2 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
$d1 = '&nbsp;';
$d3 = '&#8730;';
$d2 = '&nbsp;';
} else {
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
}
@endphp
<tr style='height:16.0pt'>
@@ -957,12 +958,15 @@
$j9 = '&nbsp;';
$j1 = '&nbsp;';
}
if (isset($data['tekslokasianatomi']) && $data['tekslokasianatomi'] != ''){
$p2 = '&#8730;';
if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Ekstraparu'){
$p1 = '&nbsp;';
} else {
$p2 = '&#8730;';
} else if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Paru'){
$p1 = '&#8730;';
$p2 = '&nbsp;';
} else {
$p1 = '&nbsp;';
$p2 = '&nbsp;';
}
@endphp
<tr style='height:16.0pt'>
@@ -799,22 +799,23 @@
<td class=xl72>&nbsp;</td>
</tr>
@php
if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis TBS'){
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis TBC'){
$d2 = '&nbsp;';
$d1 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Diagnosis Baseline TBC'){
$d1 = '&nbsp;';
$d2 = '&#8730;';
$d3 = '&nbsp;';
} else if (isset($data['id_alasanpemeriksaan']) && $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
}
if (isset($data['id_alasanpemeriksaan']) AND $data['id_alasanpemeriksaan'] == 'Akhir Pengobatan'){
$d1 = '&nbsp;';
$d3 = '&#8730;';
$d2 = '&nbsp;';
} else {
$d1 = '&nbsp;';
$d3 = '&nbsp;';
$d2 = '&nbsp;';
}
@endphp
<tr style='height:16.0pt'>
@@ -956,12 +957,15 @@
$j9 = '&nbsp;';
$j1 = '&nbsp;';
}
if (isset($data['tekslokasianatomi']) && $data['tekslokasianatomi'] != ''){
$p2 = '&#8730;';
if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Ekstraparu'){
$p1 = '&nbsp;';
} else {
$p2 = '&#8730;';
} else if (isset($data['id_lokasianatomi']) && $data['id_lokasianatomi'] == 'Paru'){
$p1 = '&#8730;';
$p2 = '&nbsp;';
} else {
$p1 = '&nbsp;';
$p2 = '&nbsp;';
}
@endphp
<tr style='height:16.0pt'>
@@ -171,74 +171,150 @@
</table>
@php
$cekketerangan = explode('/table', $keterangan);
$cetakjudul = false;
$sudahcetak1= 0;
$sudahcetak2= 0;
$sudahcetak3= 0;
$namakuman = '';
@endphp
@if (!isset($cekketerangan[1]) && isset($antibiotiks) && $antibiotiks->isNotEmpty())
@if (isset($data['bakteri']))
<p>Bakteri Yang ditemukan : <strong><i>{{$data['bakteri']}}</i></strong> {{$data['bakterisir'] ?? ''}}</p>
@endif
@if (isset($antibiotiks) && $antibiotiks->isNotEmpty())
@php
// Filter antibiotik yang printrow == true
$filtered = $antibiotiks->filter(function($row) {
return $row->printrow;
})->values(); // reset index
$total = $filtered->count();
$half = ceil($total / 2);
$left = $filtered->slice(0, $half)->values();
$right = $filtered->slice($half)->values();
$grouped = $antibiotiks->filter(function ($row) {
return $row->printrow; // hanya yang perlu dicetak
})->groupBy('kuman');
if (empty($grouped) OR $grouped->isEmpty()) {
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
}
}
if (isset($data['id_bakteri01'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
}
if (isset($data['id_bakteri02'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
}
}
@endphp
@foreach ($grouped as $kuman => $items)
@if (isset($data['bakteri']) AND $data['bakteri'] == $kuman)
@if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK')
@else
@if ($sudahcetak1 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['bakteri'] }}</i></strong> {{ $data['bakterisir'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol'] }}</i></strong></p>
@endif
@php
$sudahcetak1 = 1;
$cetakjudul = true;
$namakuman = $data['bakteri'];
@endphp
@endif
@endif
@endif
@if (isset($data['id_bakteri01']) AND $data['id_bakteri01'] == $kuman)
@if ($sudahcetak2 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri01'] }}</i></strong> {{ $data['id_bakterisir01'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks01'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol01']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol01'] }}</i></strong></p>
@endif
@php
$sudahcetak2 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri01'];
@endphp
@endif
@endif
@if (isset($data['id_bakteri02']) AND $data['id_bakteri02'] == $kuman)
@if ($sudahcetak3 == 0)
<p>Bakteri Yang ditemukan : <strong><i>{{ $data['id_bakteri02'] }}</i></strong> {{ $data['id_bakterisir02'] ?? '' }}</p>
@if (isset($data['id_bakterihitungkolteks02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkolteks02'] }}</i></strong></p>
@elseif (isset($data['id_bakterihitungkol02']))
<p>Jumlah Koloni : <strong><i>{{ $data['id_bakterihitungkol02'] }}</i></strong></p>
@endif
@php
$sudahcetak3 = 1;
$cetakjudul = true;
$namakuman = $data['id_bakteri02'];
@endphp
@endif
@endif
@php
$total = $items->count();
$half = ceil($total / 2);
$left = $items->slice(0, $half)->values();
$right = $items->slice($half)->values();
@endphp
@if ($cetakjudul)
<table style="width:100%; border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0">
<thead>
<tr style="background-color: #f2f2f2;">
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
<th>&nbsp;</th>
<th>No</th>
<th>Antibiotik</th>
<th>Value</th>
<th>Interpretation</th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]) AND $left[$i]->printrow)
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
<td>{{ $left[$i]->printcol == 1 ? $left[$i]->value : '' }}</td>
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<table style="width:100%">
<thead>
<tr>
<th><strong>No</strong></th>
<th><strong>Antibiotik</strong></th>
<th><strong>Value</strong></th>
<th><strong>Interpretation</strong></th>
<th>&nbsp;</th>
<th><strong>No</strong></th>
<th><strong>Antibiotik</strong></th>
<th><strong>Value</strong></th>
<th><strong>Interpretation</strong></th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < $half; $i++)
<tr>
{{-- Kolom kiri --}}
@if (isset($left[$i]))
<td>{{ $i + 1 }}</td>
<td>{{ $left[$i]->antibiotic }}</td>
@if (isset($left[$i]->printcol) && $left[$i]->printcol == 1)
<td>{{ $left[$i]->value }}</td>
@else
<td>&nbsp;</td>
@endif
<td align="center">{{ $left[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
<td>&nbsp;</td> {{-- Pemisah tengah --}}
<td>&nbsp;</td> {{-- Spacer kolom tengah --}}
{{-- Kolom kanan --}}
@if (isset($right[$i]))
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
@if (isset($right[$i]->printcol) && $right[$i]->printcol == 1)
<td>{{ $right[$i]->value }}</td>
@else
<td>&nbsp;</td>
@endif
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
{{-- Kolom kanan --}}
@if (isset($right[$i]) AND $right[$i]->printrow)
<td>{{ $i + 1 + $half }}</td>
<td>{{ $right[$i]->antibiotic }}</td>
<td>{{ $right[$i]->printcol == 1 ? $right[$i]->value : '' }}</td>
<td align="center">{{ $right[$i]->interpretation }}</td>
@else
<td colspan="4">&nbsp;</td>
@endif
</tr>
@endfor
</tbody>
</table>
@endif
@endforeach
@php
if ($namakuman == ''){
if (isset($data['bakteri'])) {
if (isset($data['id_baktericetak']) AND $data['id_baktericetak'] == 'TIDAK') {
} else {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['bakteri'] . "</i></strong> " . ($data['bakterisir'] ?? '') . "</p>";
}
}
if (isset($data['id_bakteri01'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri01'] . "</i></strong> " . ($data['id_bakterisir01'] ?? '') . "</p>";
}
if (isset($data['id_bakteri02'])) {
echo "<p>Bakteri Yang ditemukan : <strong><i>" . $data['id_bakteri02'] . "</i></strong> " . ($data['id_bakterisir02'] ?? '') . "</p>";
}
}
@endphp
@endif
<br />Komentar:<br />
@@ -1159,6 +1159,7 @@
<option value="">Pilih Salah Satu</option>
<option value="Diagnosis TBC">Diagnosis TBC</option>
<option value="Diagnosis Baseline TBC">Diagnosis Baseline TBC</option>
<option value="Pemantauan Kemajuan Pengobatan">Pemantauan Kemajuan Pengobatan</option>
<option value="Akhir Pengobatan">Akhir Pengobatan</option>
</select>
</div>
@@ -1405,7 +1406,7 @@
</div>
<div class="form-group col-lg-8">
<div class="mt-12">
<p class="sub-header mb-2">Hasil Pemeriksaan TCM MTB Rif (Xpert) (Pagi)</p>
<p class="sub-header mb-2">Hasil Pemeriksaan TCM XDR (Xpert) (Pagi)</p>
<div class="form-row">
<div class="form-group col-lg-6">
<div class="form-row">
@@ -1588,7 +1589,7 @@
</div>
<div class="form-group col-lg-8">
<div class="mt-12">
<p class="sub-header mb-2">Hasil Pemeriksaan TCM MTB Rif (Xpert) (Sewaktu)</p>
<p class="sub-header mb-2">Hasil Pemeriksaan TCM XDR (Xpert) (Sewaktu)</p>
<div class="form-row">
<div class="form-group col-lg-6">
<div class="form-row">
+3 -2
View File
@@ -1215,6 +1215,7 @@
<option value="">Pilih Salah Satu</option>
<option value="Diagnosis TBC">Diagnosis TBC</option>
<option value="Diagnosis Baseline TBC">Diagnosis Baseline TBC</option>
<option value="Pemantauan Kemajuan Pengobatan">Pemantauan Kemajuan Pengobatan</option>
<option value="Akhir Pengobatan">Akhir Pengobatan</option>
</select>
</div>
@@ -1461,7 +1462,7 @@
</div>
<div class="form-group col-lg-8">
<div class="mt-12">
<p class="sub-header mb-2">Hasil Pemeriksaan TCM MTB Rif (Xpert) (Pagi)</p>
<p class="sub-header mb-2">Hasil Pemeriksaan TCM XDR (Xpert) (Pagi)</p>
<div class="form-row">
<div class="form-group col-lg-6">
<div class="form-row">
@@ -1644,7 +1645,7 @@
</div>
<div class="form-group col-lg-8">
<div class="mt-12">
<p class="sub-header mb-2">Hasil Pemeriksaan TCM MTB Rif (Xpert) (Sewaktu)</p>
<p class="sub-header mb-2">Hasil Pemeriksaan TCM XDR (Xpert) (Sewaktu)</p>
<div class="form-row">
<div class="form-group col-lg-6">
<div class="form-row">
@@ -1461,7 +1461,7 @@
</div>
<div class="form-group col-lg-8">
<div class="mt-12">
<p class="sub-header mb-2">Hasil Pemeriksaan TCM MTB Rif (Xpert) (Pagi)</p>
<p class="sub-header mb-2">Hasil Pemeriksaan TCM XDR (Xpert) (Pagi)</p>
<div class="form-row">
<div class="form-group col-lg-6">
<div class="form-row">
@@ -1644,7 +1644,7 @@
</div>
<div class="form-group col-lg-8">
<div class="mt-12">
<p class="sub-header mb-2">Hasil Pemeriksaan TCM MTB Rif (Xpert) (Sewaktu)</p>
<p class="sub-header mb-2">Hasil Pemeriksaan TCM XDR (Xpert) (Sewaktu)</p>
<div class="form-row">
<div class="form-group col-lg-6">
<div class="form-row">
@@ -2943,6 +2943,7 @@
{ name: 'kesimpulan', type: 'text'},
{ name: 'idruangan', type: 'text'},
{ name: 'iddokter', type: 'text'},
{ name: 'dokter_id', type: 'text'},
{ name: 'ppdssenior', type: 'text'},
{ name: 'middleppds', type: 'text'},
{ name: 'ppdsjunior', type: 'text'},
@@ -2962,7 +2963,6 @@
{ name: 'nmanalis', type: 'text'},
{ name: 'modality', type: 'text'},
{ name: 'dokter', type: 'text'},
{ name: 'dokter_id', type: 'text'},
{ name: 'ppds1', type: 'text'},
{ name: 'ppds2', type: 'text'},
{ name: 'updated_at', type: 'date'},
@@ -3388,10 +3388,19 @@
type : 'warning',
})
} else if (statuse == 'Selesai' || statuse == 'Arsip') {
$('#divreadonly').hide();
$('#divperiksa').show();
$('#divawal').hide();
openlamanekpertise();
var hakakses = "{{Session('previlage')}}";
if (hakakses == 'supervisor'){
$('#divreadonly').hide();
$('#divperiksa').show();
$('#divawal').hide();
openlamanekpertise();
} else {
swal({
title : 'Ekspertise Final',
text : 'Hanya Akun SPV yang diperkenankan mengubah data Arsip',
type : 'warning',
})
}
} else {
$('#divreadonly').hide();
$('#divperiksa').show();
@@ -3774,7 +3783,6 @@
hideAfter : 5000,
stack : 1
});
window.location.href = "{{ url('/mikro') }}";
return false;
},
error: function (xhr, status, error) {