213 lines
9.1 KiB
PHP
213 lines
9.1 KiB
PHP
<?php include "header.php"; ?>
|
|
<!-- modal data-bs pasien prolong -->
|
|
<div class="" id="print_resume<?php echo $data['id_pasien']; ?>" tabindex="-1" aria-labelledby="exampleModalLabel1" aria-hidden="true" data-bs-backdrop="statis" data-bs-keyboard="false">
|
|
<form action="model/action_prolong.php?id_pasien=<?= $data['id_pasien']; ?>" method="POST" enctype="multipart/form-data">
|
|
<div class="modal-dialog modal-xl">
|
|
<div class="modal-content" style="background: rgb(124,223,231); background: linear-gradient(0deg, rgba(124,223,231,1) 4%, rgba(223,249,255,1) 100%);">
|
|
<div class="modal-header navbar navbar-default">
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<body>
|
|
|
|
<div class="modal-header" id="printarea">
|
|
<?php
|
|
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
|
|
|
|
include "model/koneksi.php";
|
|
|
|
//view data datapasien dari database
|
|
|
|
$Lihat = "SELECT * FROM datapasien WHERE id_pasien= '$_GET[id_pasien]' ";
|
|
$Tampil = mysqli_query($open, $Lihat);
|
|
$nomer = 0;
|
|
while ($hasil = mysqli_fetch_array($Tampil)) {
|
|
$id_pasien = stripcslashes($hasil['id_pasien']);
|
|
$register = stripcslashes($hasil['register']);
|
|
$nama = stripslashes($hasil['nama']);
|
|
$nik = stripslashes($hasil['nik']);
|
|
$umur = stripslashes($hasil['umur']);
|
|
$jenis_kelamin = stripslashes($hasil['jenis_kelamin']);
|
|
$triage = stripslashes($hasil['triage']);
|
|
$ruang = stripslashes($hasil['ruang']);
|
|
$alamat = stripslashes($hasil['alamat']);
|
|
$telp = stripslashes($hasil['telp']);
|
|
$tanggal = stripslashes($hasil['tanggal']);
|
|
$skrining = stripslashes($hasil['skrining']);
|
|
$kedatangan = stripslashes($hasil['kedatangan']);
|
|
$keterangan = stripslashes($hasil['keterangan']);
|
|
$status_keluar = stripcslashes($hasil['status_keluar']);
|
|
$jam_keluar = stripslashes($hasil['jam_keluar']);
|
|
$perawat_ppa = stripslashes($hasil['perawat_ppa']);
|
|
$history_ppa = stripslashes($hasil['history_ppa']);
|
|
$smf = stripcslashes($hasil['smf']); {
|
|
$_SESSION['id_pasien'] = $hasil['id_pasien'];
|
|
$waktu = DATE('d-m-Y H:i:s', strtotime($hasil['tanggal']));
|
|
|
|
?>
|
|
<form id="view" class="container-fluid" enctype="multipart">
|
|
<center>
|
|
<img src="images/Logo_rssabaru.png" alt="" height="150px">
|
|
</center>
|
|
<table class="" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
|
|
|
<div align="center"><h4>Lembar Kerja Keperawatan<br>Instalasi Gawat Darurat</h4></div>
|
|
<div style="font-size:xx-large;" id="triage"><?= $triage; ?></div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<tr style="font-size: 10pt;">
|
|
<td>Nama Pasien</td>
|
|
<td>: <?= $nama ?>
|
|
</td>
|
|
<td>No.RM</td>
|
|
<td>: <?= $register ?>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr style="font-size: 10pt;">
|
|
<td>Jenis Kelamin</td>
|
|
<td>: <?= $jenis_kelamin ?></td>
|
|
<td>Umur</td>
|
|
<td>: <?= $umur ?></td>
|
|
</tr>
|
|
<tr style="font-size: 10pt;">
|
|
<td>Ruang perawatan UGD</td>
|
|
<td>: <?= $ruang ?>
|
|
|
|
</td>
|
|
<td>SMF</td>
|
|
<td>: <?= $smf ?> </td>
|
|
</tr>
|
|
<tr style="font-size: 10pt;">
|
|
<td>Perawat/Bidan</td>
|
|
<td>: <?=$perawat_ppa;?></td>
|
|
<td>Jam Keluar</td>
|
|
<td>: <?= $jam_keluar ?> </td>
|
|
</tr>
|
|
<tr style="font-size: 10pt;">
|
|
<td>Riwayat PPA</td>
|
|
<td>
|
|
<div class="container-fluid" style="background-color:whitesmoke;font-size: 8pt;" id="showPerawat">
|
|
<?php
|
|
$cetak = (explode(" _ ", $history_ppa));
|
|
for ($start = 0; $start < count($cetak); $start++) {
|
|
$start < count($cetak);
|
|
print $cetak[$start] . "<BR>";
|
|
}
|
|
?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</table>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
//Tutup koneksi engine MySQL
|
|
mysqli_close($open);
|
|
?>
|
|
<table class="table-bordered " width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
|
|
<tr class="table-bordered" align="center" height="10px" bgcolor="DFE6EF">
|
|
<th >No</th>
|
|
<th >Ruang</th>
|
|
<th >Waktu</th>
|
|
<th >Uraian Tindakan</th>
|
|
<th >Perawat</th>
|
|
<th >Status</th>
|
|
</tr>
|
|
<?php
|
|
include "model/koneksi.php";
|
|
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
|
|
//view data datapasien dari database
|
|
|
|
$lihat_tindakan = "SELECT * FROM tb_tindakan WHERE id_pasien= '$_GET[id_pasien]' ORDER BY masalah ASC";
|
|
$tampil_tindakan = mysqli_query($open, $lihat_tindakan);
|
|
$nomer = 0;
|
|
while ($hasil_tindakan = mysqli_fetch_array($tampil_tindakan)) {
|
|
$timestamp = stripslashes($hasil_tindakan['timestamp']);
|
|
$tindakan = stripslashes($hasil_tindakan['tindakan']);
|
|
$status = stripslashes($hasil_tindakan['masalah']);
|
|
$ppa = stripslashes($hasil_tindakan['perawat_ppa']);
|
|
$ruang = stripslashes($hasil_tindakan['ruang']); {
|
|
|
|
$nomer++;
|
|
?>
|
|
|
|
<tr align="center" height="10px" style="font-size: 7pt;">
|
|
|
|
<td> <?= $nomer ?></td>
|
|
<td> <?= $ruang ?></td>
|
|
<td align="left" style="font-size: 8px;" width="8%"> <?= DATE('d-m-Y H:i', strtotime($hasil_tindakan['timestamp'])); ?></td>
|
|
<td align="left" style="font-size: 8px;"> <?= $tindakan ?></td>
|
|
<td align="left" style="font-size: 8px;"><?= $ppa ?></td>
|
|
<td> <?= $status ?></td>
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
}
|
|
//Tutup koneksi engine MySQL
|
|
mysqli_close($open);
|
|
|
|
?>
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
</body>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<head>
|
|
<style type="text/css">
|
|
#printarea {
|
|
display: block;
|
|
}
|
|
|
|
#page-nav {
|
|
display: block;
|
|
}
|
|
|
|
@media print {
|
|
|
|
#printarea {
|
|
display: block;
|
|
orientation: portrait;
|
|
}
|
|
|
|
#timemarquee {
|
|
display: none;
|
|
}
|
|
|
|
#page-nav {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
<script>
|
|
$(document).ready(function() {
|
|
window.print()
|
|
});
|
|
</script>
|
|
|
|
<?php include "footer.php"; ?>
|
|
|
|
</html>
|