258 lines
13 KiB
PHP
258 lines
13 KiB
PHP
<?php include "header.php"; ?>
|
|
|
|
<head>
|
|
<style type="text/css">
|
|
#viewpasien {
|
|
display: block;
|
|
}
|
|
|
|
#page-nav {
|
|
display: block;
|
|
}
|
|
|
|
@media print {
|
|
#PrintTable {
|
|
display: block;
|
|
}
|
|
|
|
#viewpasien {
|
|
display: block;
|
|
}
|
|
|
|
#timemarquee {
|
|
display: none;
|
|
}
|
|
|
|
#page-nav {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|
|
<script>
|
|
$(document).ready(function() {
|
|
window.print()
|
|
});
|
|
$('#tanggal').ready(function() {
|
|
time_load()
|
|
})
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="viewpasien">
|
|
<form id="view_implementasi" class="jquery">
|
|
|
|
<?php
|
|
include "model/koneksi.php";
|
|
date_default_timezone_set('Asia/Jakarta'); //Time adjust
|
|
|
|
$ruang = $_SESSION['nama'];
|
|
$first = false;
|
|
$last = false;
|
|
$clause = "WHERE ruang = '$ruang' AND status_tunggu= 'menunggu' AND NOT status_tunggu= 'delete'";
|
|
$lihat = "SELECT * FROM datapasien $clause";
|
|
$tampil = mysqli_query($open, $lihat);
|
|
$mrscount = "-";
|
|
$krscount = "-";
|
|
$meninggalcount = "-";
|
|
$papscount = "-";
|
|
$mdcount = "-";
|
|
$obscount = mysqli_num_rows(mysqli_query($open, "$lihat AND status_keluar = 'observasi'"));
|
|
$ugdtrcount = "-";
|
|
$ugdokcount = "-";
|
|
$selected = "-";
|
|
$p1count = mysqli_num_rows(mysqli_query($open, "$lihat AND triage = 'P1'"));
|
|
$p2count = mysqli_num_rows(mysqli_query($open, "$lihat AND triage = 'P2'"));
|
|
$p3count = mysqli_num_rows(mysqli_query($open, "$lihat AND triage = 'P3'"));
|
|
$p0count = mysqli_num_rows(mysqli_query($open, "$lihat AND triage = 'P0'"));
|
|
$skriningcount = mysqli_num_rows(mysqli_query($open, "$lihat AND triage like '%skrining%'"));
|
|
$total = $obscount;
|
|
|
|
?>
|
|
<h3 align="center">Buku Laporan Keperawatan</h3>
|
|
<h5 align="center"><?= strtoupper($ruang); ?></h5>
|
|
<h6 align="center" id="tanggal">Tanggal <?php echo DATE('d-m-Y H:i'); ?></h6>
|
|
<div id="PrintTable" class="container" style="margin-top: 20px;">
|
|
<table id="Tablerekap" class="table table-bordered" style="font-size: 7pt;" width="100%" align="left" cellpadding="0" cellspacing="0" style="margin-bottom:10px;">
|
|
<tr class="table-striped" align="left" height="10px">
|
|
|
|
<td style="font-weight:bold; width:10%">P1</td>
|
|
<td><?= $p1count; ?></td>
|
|
<td style="font-weight:bold; width:1%">MRS</td>
|
|
<td> <?= $mrscount; ?></td>
|
|
<td style=" font-weight:bold;width:20%">MELARIKAN DIRI</td>
|
|
<td> <?= $mdcount; ?> </td>
|
|
|
|
<tr class="table-striped" align="left" height="10px" bgcolor="4FDA47">
|
|
|
|
<td style="font-weight:bold; width:10%">P2</td>
|
|
<td><?= $p2count; ?></td>
|
|
<td style="font-weight:bold; width:1%">KRS</td>
|
|
<td> <?= $krscount; ?> </td>
|
|
<td style="font-weight:bold;width:1%">OBSERVASI</td>
|
|
<td> <?= $obscount; ?> </td>
|
|
</tr>
|
|
<tr class="table-striped" align="left" height="10px">
|
|
<td style="font-weight:bold; width:10%">P3</td>
|
|
<td><?= $p3count; ?></td>
|
|
<td style=" font-weight:bold; width:10%">MENINGGAL</td>
|
|
<td> <?= $meninggalcount; ?> </td>
|
|
<td style="font-weight:bold;width:1%">PINDAH IGD</td>
|
|
<td> <?= $ugdtrcount; ?> </td>
|
|
</tr>
|
|
<tr class="table-striped" align="left" height="10px" bgcolor="4FDA47">
|
|
<td style="font-weight:bold; width:10%">P0</td>
|
|
<td><?= $p0count; ?></td>
|
|
<td style="font-weight:bold;width:1%">PAPS</td>
|
|
<td> <?= $papscount; ?> </td>
|
|
<td style="font-weight:bold;width:1%">OK</td>
|
|
<td> <?= $ugdokcount; ?> </td>
|
|
</tr>
|
|
<tr class="table-striped" align="left" height="10px" bgcolor="4FDA47">
|
|
<td style="font-weight:bold; width:10%">SKRINING DROPZONE</td>
|
|
<td><?=$skriningcount;?></td>
|
|
<td style="font-weight:bold;width:1%"></td>
|
|
<td> </td>
|
|
<td style="font-weight:bold;width:1%"></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="container-fluid" style="margin-top: 1px;">
|
|
<table class="table table-striped table-bordered" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
<tr class="" align="center" height="10px" bgcolor="DFE6EF">
|
|
<th style="width:1%">No</th>
|
|
<th style="width:5%">Tanggal</th>
|
|
<th style="width:10%">Nama Pasien</th>
|
|
<th style="width:10%">Triage</th>
|
|
<th style="width:1%">SMF</th>
|
|
<th style="width:5%">Status Keluar</th>
|
|
<th style="width:5%">Diagnosa</th>
|
|
<th style="width:30%">Keterangan</th>
|
|
|
|
</tr>
|
|
<?php
|
|
$nomer = 0;
|
|
while ($lihat_pasien = mysqli_fetch_array($tampil)) {
|
|
$nama = stripslashes($lihat_pasien['nama']);
|
|
$id_pasien = stripslashes($lihat_pasien['id_pasien']);
|
|
$register = stripslashes($lihat_pasien['register']);
|
|
$tanggal = stripslashes($lihat_pasien['tanggal']);
|
|
$ruang = stripslashes($lihat_pasien['ruang']);
|
|
$triage = stripslashes($lihat_pasien['triage']);
|
|
$status_keluar = stripslashes($lihat_pasien['status_keluar']);
|
|
$status_tunggu = stripslashes($lihat_pasien['status_tunggu']);
|
|
$keterangan = stripslashes($lihat_pasien['keterangan']);
|
|
$prolong = stripslashes($lihat_pasien['prolong']);
|
|
$jam_keluar = stripslashes($lihat_pasien['jam_keluar']);
|
|
$smf = stripslashes($lihat_pasien['smf']);
|
|
$nik = stripslashes($lihat_pasien['nik']);
|
|
$file_text = stripslashes($lihat_pasien['file_text']);
|
|
$perawat_ppa = stripslashes($lihat_pasien['perawat_ppa']);
|
|
$waiting = stripslashes($lihat_pasien['waiting']); {
|
|
|
|
|
|
|
|
// waktu sekarang
|
|
$end = date_create();
|
|
$start = date_create($tanggal);
|
|
$diff = date_diff($start, $end);
|
|
$waktu = DATE('d-m-Y H:i:s', strtotime($lihat_pasien['tanggal']));
|
|
$waktu_keluar = DATE('d-m-Y H:i:s', strtotime($lihat_pasien['jam_keluar']));
|
|
$nomer++;
|
|
|
|
?>
|
|
|
|
<tr style="font-size: 12px;">
|
|
<td><?= $nomer ?><div align="center"></div></td>
|
|
<td><?= DATE('d-m-Y H:i', strtotime($lihat_pasien['tanggal'])); ?></td>
|
|
<td><?= $nama ?> <br>No.Register : <?= $register ?><div align="center"></div></td>
|
|
|
|
|
|
<td><?= $triage.' | Bed '.$nik .'<BR>'.'No Triage- '.$file_text ?></td>
|
|
|
|
<td><?= $smf ?><div align="center"></div></td>
|
|
|
|
<td>
|
|
<?php
|
|
if (strlen($status_keluar) == 0) {
|
|
echo "";
|
|
} else {
|
|
echo $status_keluar;
|
|
}
|
|
?>
|
|
<div align="center"></div>
|
|
<td>
|
|
-
|
|
</td>
|
|
<td>
|
|
<div class="btn-sm alert-info">Perawat PPA:</div>
|
|
<?php
|
|
$cetak = (explode(" _ ", $perawat_ppa));
|
|
for ($start = 0; $start < count($cetak); $start++) {
|
|
$start < count($cetak);
|
|
print $cetak[$start] . "<BR>";
|
|
}
|
|
?>
|
|
<br>
|
|
<li class="label label-primary">Waktu tunggu:
|
|
|
|
<?php
|
|
if ($status_tunggu == "menunggu") {
|
|
|
|
echo $diff->d . ' hari-' . $diff->h . ' jam-' . $diff->i . 'menit';
|
|
} else {
|
|
echo $waiting;
|
|
}
|
|
?> </li>
|
|
<li>Catatan Keluar: <?= $keterangan; ?></li>
|
|
|
|
<table style="font-size: 8px;" class="table table-striped">
|
|
<tr style="font-size: 8px;" >
|
|
<th>Tanggal/jam</th>
|
|
<th>Rencana Tindakan dan Terapi</th>
|
|
</tr>
|
|
|
|
<?php
|
|
$sql_tindakan = "SELECT * FROM tb_tindakan WHERE id_pasien= '$id_pasien' AND masalah='belum' ORDER BY timestamp DESC";
|
|
$tampil_tindakan = mysqli_query($open, $sql_tindakan);
|
|
$number = 0;
|
|
while ($lihat_tindakan = mysqli_fetch_array($tampil_tindakan)) {
|
|
$tanggal_tindakan = stripslashes($lihat_tindakan['timestamp']);
|
|
$tindakan = stripslashes($lihat_tindakan['tindakan']); {
|
|
$number++;
|
|
|
|
?>
|
|
<tr style="font-size: 8px;">
|
|
<td><?= $tanggal_tindakan?></td>
|
|
<td><?= $tindakan?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php
|
|
|
|
}
|
|
}
|
|
|
|
//Tutup koneksi engine MySQL
|
|
mysqli_close($open);
|
|
include "footer.php";
|
|
?>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
<table class="table" width="100%" align="left">
|
|
<tr class="table-striped" align="left">
|
|
<td style="font-weight:bold;width:15%" align="left">TOTAL :</td>
|
|
<td style="font-weight:bold;" align="left"><?= $total; ?></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</body>
|