add semakin imut

This commit is contained in:
ryan
2025-10-09 11:03:05 +07:00
parent bec25071eb
commit 85fc69c091
6348 changed files with 1138634 additions and 0 deletions
+105
View File
@@ -0,0 +1,105 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Audit_pemahaman_terhadap_pemasangan_gelang_pasien_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
AUDIT PEMAHAMAN TERHADAP PEMASANGAN GELANG PASIEN
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_gelang = mysqli_query($openinmut, "$query AND question1=1 AND question2=1");
$no = 0;
while ($data = mysqli_fetch_assoc($query_gelang)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[question1]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_gelang = mysqli_num_rows(mysqli_query($openinmut, "$query AND question1=1 AND question2=1"));
$denum_gelang = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND NOT status_keluar like '%delete%'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_gelang</td>";
if ($d_gelang > 0) {
$d_gelang_result = number_format($d_gelang / 10);
$per_gelang = number_format((($num_gelang / $d_gelang_result) * 100), 2);
echo " <td>$d_gelang_result</td>";
echo " <td>$per_gelang %</td>";
} else {
echo " <td>-</td>";
echo " <td>-</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+105
View File
@@ -0,0 +1,105 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=identifikasi_pasien_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
IDENTIFIKASI PASIEN
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_identifikasi = mysqli_query($openinmut, "$query AND identifikasi=1");
$no = 0;
while ($data = mysqli_fetch_assoc($query_identifikasi)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[identifikasi]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_identifikasi = mysqli_num_rows(mysqli_query($openinmut, "$query AND identifikasi=1"));
$denum_identifikasi = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND NOT status_keluar like '%delete%'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_identifikasi</td>";
if ($denum_identifikasi > 0) {
$denum_identifikasi_result = number_format($denum_identifikasi / 10);
$per_identifikasi = number_format((($num_identifikasi / $denum_identifikasi_result) * 100), 2);
echo " <td>$denum_identifikasi_result</td>";
echo " <td>$per_identifikasi %</td>";
} else {
echo " <td>-</td>";
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+102
View File
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Informed_Consent_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
INFORMED CONSENT
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_inf_con = mysqli_query($openinmut, "$query AND inf_con=1");
$no = 0;
while ($data = mysqli_fetch_assoc($query_inf_con)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[inf_con]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_inf_con = mysqli_num_rows(mysqli_query($openinmut, "$query AND inf_con=1"));
// $denum_inf_con = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND status_keluar like '%ok%'AND NOT status_keluar like '%delete%'"));
$denum_inf_con = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien INNER JOIN tb_tindakan ON datapasien.id_pasien=tb_tindakan.id_pasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND tindakan like '%IMTIGD_08%' AND NOT status_keluar like '%delete%'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_inf_con</td>";
echo " <td>$denum_inf_con</td>";
if ($denum_inf_con > 0) {
$per_inf_con = number_format((($num_inf_con / $denum_inf_con) * 100), 2);
echo " <td>$per_inf_con %</td>";
} else {
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+103
View File
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=pelaporan_insiden_knc_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
PELAPORAN INSIDEN knc
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_insiden = mysqli_query($openinmut, "$query AND insiden=1 AND keterangan='knc'");
$no = 0;
while ($data = mysqli_fetch_assoc($query_insiden)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[insiden]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_insiden = mysqli_num_rows(mysqli_query($openinmut, "$query AND insiden=1 AND keterangan='knc'"));
$denum_insiden = mysqli_num_rows(mysqli_query($openinmut, "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir' AND insiden_ctrl=1 AND keterangan='knc'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_insiden</td>";
echo " <td>$denum_insiden</td>";
if ($denum_insiden > 0) {
$per_insiden = number_format((($num_insiden / $denum_insiden) * 100), 2);
echo " <td>$per_insiden %</td>";
} else {
echo " <td>-</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+103
View File
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=pelaporan_insiden_ktd_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
PELAPORAN INSIDEN KTD
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_insiden = mysqli_query($openinmut, "$query AND insiden=1 AND keterangan='ktd'");
$no = 0;
while ($data = mysqli_fetch_assoc($query_insiden)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[insiden]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_insiden = mysqli_num_rows(mysqli_query($openinmut, "$query AND insiden=1 AND keterangan='ktd'"));
$denum_insiden = mysqli_num_rows(mysqli_query($openinmut, "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir' AND insiden_ctrl=1 AND keterangan='ktd'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_insiden</td>";
echo " <td>$denum_insiden</td>";
if ($denum_insiden > 0) {
$per_insiden = number_format((($num_insiden / $denum_insiden) * 100), 2);
echo " <td>$per_insiden %</td>";
} else {
echo " <td>-</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+103
View File
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Ketepatan_Waktu_Pelayanan_IGD_≤_6_jam_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
Ketepatan Waktu Pelayanan IGD ≤ 6 jam
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_los = mysqli_query($openinmut, "$query AND los=1");
$no = 0;
while ($data = mysqli_fetch_assoc($query_los)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[los]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_los = mysqli_num_rows(mysqli_query($openinmut, "$query AND los=1"));
$denum_los = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND NOT status_keluar like '%delete%'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_los</td>";
echo " <td>$denum_los</td>";
if ($denum_los > 0) {
$per_los = number_format((($num_los / $denum_los) * 100), 2);
echo " <td>$per_los %</td>";
} else {
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+103
View File
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Pulang_atas_permintaan_sendiri_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
PULANG ATAS PERMINTAAN SENDIRI
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_paps = mysqli_query($openinmut, "$query AND paps=1");
$no = 0;
while ($data = mysqli_fetch_assoc($query_paps)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[paps]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_paps = mysqli_num_rows(mysqli_query($openinmut, "$query AND paps=1"));
$denum_paps = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND NOT status_keluar like '%delete%' "));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_paps</td>";
echo " <td>$denum_paps</td>";
if ($denum_paps > 0) {
$per_paps = number_format((($num_paps / $denum_paps) * 100), 2);
echo " <td>$per_paps %</td>";
} else {
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+102
View File
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Respon_Time_sc_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
RESPON-TIME OPERASI SC GAWAT DARURAT
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE sc_pre BETWEEN '$awal' AND '$akhir'";
$query_sc = mysqli_query($openinmut, "$query AND timeinterval=1 ");
$no = 0;
while ($data = mysqli_fetch_assoc($query_sc)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[timeinterval]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_sc = mysqli_num_rows(mysqli_query($openinmut, "$query AND timeinterval=1"));
$denum_sc = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien INNER JOIN tb_maternal ON datapasien.id_pasien=tb_maternal.id_pasien WHERE pre_sc BETWEEN '$awal' AND '$akhir' AND jenis_persalinan like '%sc%' AND NOT status_keluar like '%delete%'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_sc</td>";
echo " <td>$denum_sc</td>";
if ($denum_sc > 0) {
$per_sc = number_format((($num_sc / $denum_sc) * 100), 2);
echo " <td>$per_sc %</td>";
} else {
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+100
View File
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Site_Mark__$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
INFORMED CONSENT DAN SITE MARKING
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_indikator_mutu WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_sitemark = mysqli_query($openinmut, "$query AND site_mark=1");
$no = 0;
while ($data = mysqli_fetch_assoc($query_sitemark)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[site_mark]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_site_mark = mysqli_num_rows(mysqli_query($openinmut, "$query AND site_mark=1"));
$denum_site_mark = mysqli_num_rows(mysqli_query($open, "SELECT * FROM datapasien WHERE tanggal BETWEEN '$awal' AND '$akhir' AND status_keluar like '%ok%'AND NOT status_keluar like '%delete%'"));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_site_mark</td>";
echo " <td>$denum_site_mark</td>";
if ($denum_site_mark > 0) {
$per_site_mark = number_format((($num_site_mark / $denum_site_mark) * 100), 2);
echo " <td>$per_site_mark %</td>";
} else {
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>
+101
View File
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<?php
date_default_timezone_set('Asia/Jakarta'); //Menyesuaikan waktu dengan tempat kita tinggal
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
header("Content-Type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Kepatuhan_pelaporan_reaksi_tranfusi_$tanggal-jam_$jam.xls");
header("Pragma: no-cache");
header("Expires: 0");
include "../model/koneksi.php";
$awal = date('Y-m-d H:i:s', strtotime($_GET['awal']));
$akhir = date('Y-m-d H:i:s', strtotime($_GET['akhir']));
?>
<html>
<head>
<title></title>
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" />
</head>
<body>
<?php
$tanggal = DATE('d-M-Y');
$jam = Date('H:i');
?>
<table class='table table-striped table-bordered ' width='100%' cellspacing='0' style='font-size: 12px;' border="1">
<thead>
<div style='font-size:12pt; font-weight:bold;'>
<center>
KEPATUHAN PELAPORAN REAKSI TRANFUSI
<p>periode <?= $awal; ?> -s/d- <?= $akhir; ?></p>
</center>
</div>
<tr style="background-color: cadetblue; align-content:center;">
<th style='width:1%'>No</th>
<th style='width:15%'>Tanggal masuk</th>
<th style='width:15%'>Register</th>
<th style='width:1%'>Num</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM tb_tranfusi WHERE tanggal BETWEEN '$awal' AND '$akhir'";
$query_tranfusi = mysqli_query($openinmut, "$query");
$no = 0;
while ($data = mysqli_fetch_assoc($query_tranfusi)) {
$no++;
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;'>";
echo " <td>$no</td>";
echo " <td>" . date('d-m-Y H:i', strtotime($data['tanggal'])) . "</td>";
echo " <td>$data[register]</td>";
echo " <td>$data[reaksi]</td>";
echo " </tr>";
?>
<?php } ?>
</tbody>
</table><br>
<table class='table table-striped table-bordered table-hover datatable' width='100%' cellspacing='0' style='font-size: 12px;' border="1" align="center">
<thead>
<tr>
<th style='width:1%'>Numerator</th>
<th style='width:1%'>Denumerator</th>
<th style='width:15%'>Percentage</th>
<th style='width:5%'>Target</th>
</tr>
</thead>
<tbody>
<div>
<?php
$num_tranfusi = mysqli_num_rows(mysqli_query($openinmut, "$query AND reaksi=1"));
$denum_tranfusi = mysqli_num_rows(mysqli_query($openinmut, "SELECT * FROM tb_tranfusi WHERE tanggal BETWEEN '$awal' AND '$akhir' "));
echo "<tr class='table table-striped table-bordered' style='font-size:10pt; font-weight:bold;' align='center'>";
echo " <td>$num_tranfusi</td>";
echo " <td>$denum_tranfusi</td>";
if ($denum_tranfusi > 0) {
$per_tranfusi = number_format((($num_tranfusi / $denum_tranfusi) * 100), 2);
echo " <td>$per_tranfusi %</td>";
} else {
echo " <td>0 %</td>";
}
echo " <td>100 %</td>";
echo " </tr>";
?>
</div>
</tbody>
</table>
</div>
<?php
//tutup koneksi
mysqli_close($openinmut);
?>
</body>
</html>