664 lines
31 KiB
PHP
664 lines
31 KiB
PHP
<?php
|
|
$search = " AND E.TGLREG = '" . date('Y-m-d') . "'";
|
|
$tgl_reg = "";
|
|
if (!empty($_GET['tgl_reg'])) {
|
|
$tgl_reg = $_GET['tgl_reg'];
|
|
}
|
|
if ($tgl_reg != "") {
|
|
$search = " AND E.TGLREG BETWEEN '" . $tgl_reg . "' ";
|
|
}
|
|
$tgl_reg2 = "";
|
|
if (!empty($_GET['tgl_reg2'])) {
|
|
$tgl_reg2 = $_GET['tgl_reg2'];
|
|
}
|
|
if ($tgl_reg != "") {
|
|
if ($tgl_reg2 != "") {
|
|
$search = $search . " AND '" . $tgl_reg2 . "' ";
|
|
} else {
|
|
$search = $search . " AND '" . $tgl_reg . "' ";
|
|
}
|
|
}
|
|
$norm = "";
|
|
if (!empty($_GET['norm'])) {
|
|
$norm = $_GET['norm'];
|
|
}
|
|
|
|
if ($norm != "") {
|
|
$search = $search . " AND A.NOMR = '" . $db->escape($norm) . "' ";
|
|
}
|
|
|
|
$nama = "";
|
|
if (!empty($_GET['nama'])) {
|
|
$nama = $_GET['nama'];
|
|
}
|
|
|
|
if ($nama != "") {
|
|
$search = $search . " AND A.NAMA LIKE '%" . $db->escape($nama) . "%' ";
|
|
}
|
|
|
|
$poly = "";
|
|
if (!empty($_GET['poly'])) {
|
|
$poly = $_GET['poly'];
|
|
}
|
|
|
|
if ($poly != "") {
|
|
$search = $search . " AND E.KDPOLY = '" . $poly . "' ";
|
|
}
|
|
|
|
$kunjungan = "";
|
|
if (!empty($_GET['kunjungan'])) {
|
|
$kunjungan = $_GET['kunjungan'];
|
|
}
|
|
|
|
if ($kunjungan != "") {
|
|
if ($kunjungan == 2) $kunjungan = 0;
|
|
$search = $search . " AND E.PASIENBARU = '" . $kunjungan . "' ";
|
|
if ($kunjungan == 0) $kunjungan = 2;
|
|
}
|
|
|
|
$shift = "";
|
|
if (!empty($_GET['shift'])) {
|
|
$shift = $_GET['shift'];
|
|
}
|
|
|
|
if ($shift != "") {
|
|
$search = $search . " AND E.SHIFT = '" . $shift . "' ";
|
|
}
|
|
$carabayar = '';
|
|
if (!empty($_REQUEST['carabayar']) && $_REQUEST['carabayar'] != '') {
|
|
$carabayar = $_REQUEST['carabayar'];
|
|
$search = $search . " AND c.KODE = '" . $carabayar . "' ";
|
|
}
|
|
|
|
$ss = $db->query('SELECT * from m_shift order by idshift ASC');
|
|
$opsi_shift = array('' => '-');
|
|
foreach ($ss->fetchAll() as $ds) {
|
|
$opsi_shift[$ds['idshift']] = $ds['nama_shift'];
|
|
}
|
|
$get_shift = (array_key_exists('SHIFT', $_GET) && $_GET['SHIFT']) ? $_GET['SHIFT'] : '';
|
|
$dropdown_shift = form_dropdown('shift', $opsi_shift, $get_shift, 'class="form-control"');
|
|
|
|
array_push($form_plugin['ui_plugins_js'], $jspm_js);
|
|
array_push($form_plugin['ui_plugins_js'], $sweetalert_js);
|
|
$js_init .= $jspm_rawprint;
|
|
$js_init .= $jspm_init;
|
|
$js_init .= '
|
|
$(".print_tracer").click(function(){
|
|
var idx = $(this).data("idx");
|
|
var poly = $(this).data("poly");
|
|
|
|
/*jspm_print("' . _BASE_ . 'print_tracer.php?idx="+idx+"&poly="+poly,"modal-preview","Tracer "+idx+".pdf",0);*/
|
|
|
|
$.post("' . _BASE_ . 'print_tracer.php",{idx,poly},function(data){
|
|
jspm_print_tracer(data);
|
|
});
|
|
|
|
});
|
|
|
|
$(".print_nota").click(function(){
|
|
var idx = $(this).data("idx");
|
|
var nonota = $(this).data("nonota");
|
|
var nomr = $(this).data("nomr");
|
|
|
|
jspm_print_with_toolbar("' . _BASE_ . 'print_etiket.php?rajal_status=1&aps=0&idxdaftar="+idx+"&nonota="+nonota,"modal-preview","Nota Pendaftaran "+nomr+".pdf",0);
|
|
});
|
|
const Toast = Swal.mixin({
|
|
toast: true,
|
|
position: "top-end",
|
|
showConfirmButton: false,
|
|
timer: 3000
|
|
});
|
|
|
|
const JobToast = Swal.mixin({
|
|
toast: true,
|
|
position: "top-end",
|
|
showConfirmButton: false,
|
|
});
|
|
|
|
jml_notif();
|
|
|
|
function jml_notif() {
|
|
$.post("' . _BASE_ . 'include/master.php",{notif_nobill:1,is_counter:1},function(data){
|
|
if(data.type == "error") {
|
|
Toast.fire({title:data.message,type:data.type});
|
|
$("#jml_notif").text("0");
|
|
$("#btn_notif").removeClass("btn-notifikasi");
|
|
}
|
|
else {
|
|
$("#jml_notif").text(data.jumlah_notif);
|
|
if(data.jumlah_notif > 0) {
|
|
$("#btn_notif").addClass("btn-notifikasi");
|
|
}
|
|
else {
|
|
$("#btn_notif").removeClass("btn-notifikasi");
|
|
}
|
|
}
|
|
},"json");
|
|
}
|
|
|
|
function notif() {
|
|
$.post("' . _BASE_ . 'include/master.php",{notif_nobill:1,is_counter:0},function(data){
|
|
if(data.type == "success") {
|
|
Swal.fire({
|
|
html: data.data,
|
|
width:"80%"
|
|
});
|
|
|
|
$(".reregistrasi").click(function(){
|
|
idx = $(this).data("idx");
|
|
nomr = $(this).data("nomr");
|
|
nobill = $(this).data("nobill");
|
|
$.post("' . _BASE_ . 'include/master.php",{reregistrasi:1,idx,nomr,nobill},function(data){
|
|
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
|
window.location.reload();
|
|
}});
|
|
},"json");
|
|
});
|
|
}
|
|
else {
|
|
Toast.fire({title:data.message,type:data.type});
|
|
}
|
|
},"json");
|
|
}
|
|
|
|
|
|
';
|
|
?>
|
|
<style type="text/css">
|
|
.btn-notifikasi {
|
|
-webkit-animation: glowing 1500ms infinite;
|
|
-moz-animation: glowing 1500ms infinite;
|
|
-o-animation: glowing 1500ms infinite;
|
|
animation: glowing 1500ms infinite;
|
|
}
|
|
|
|
@-webkit-keyframes glowing {
|
|
0% {
|
|
background-color: #f39c12;
|
|
-webkit-box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
|
|
50% {
|
|
background-color: #ffc107;
|
|
-webkit-box-shadow: 0 0 40px #ffc107;
|
|
}
|
|
|
|
100% {
|
|
background-color: #f39c12;
|
|
-webkit-box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
}
|
|
|
|
@-moz-keyframes glowing {
|
|
0% {
|
|
background-color: #f39c12;
|
|
-moz-box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
|
|
50% {
|
|
background-color: #ffc107;
|
|
-moz-box-shadow: 0 0 40px #ffc107;
|
|
}
|
|
|
|
100% {
|
|
background-color: #f39c12;
|
|
-moz-box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
}
|
|
|
|
@-o-keyframes glowing {
|
|
0% {
|
|
background-color: #f39c12;
|
|
box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
|
|
50% {
|
|
background-color: #ffc107;
|
|
box-shadow: 0 0 40px #ffc107;
|
|
}
|
|
|
|
100% {
|
|
background-color: #f39c12;
|
|
box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
}
|
|
|
|
@keyframes glowing {
|
|
0% {
|
|
background-color: #f39c12;
|
|
box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
|
|
50% {
|
|
background-color: #ffc107;
|
|
box-shadow: 0 0 40px #ffc107;
|
|
}
|
|
|
|
100% {
|
|
background-color: #f39c12;
|
|
box-shadow: 0 0 3px #f39c12;
|
|
}
|
|
}
|
|
</style>
|
|
<div align="center">
|
|
<div id="frame">
|
|
<div id="frame_title">
|
|
<h5>LIST KUNJUNGAN PASIEN</h5>
|
|
</div>
|
|
<div align="right" style="margin:5px;">
|
|
<form name="formsearch" method="get">
|
|
<input type="hidden" name="link" value="22" />
|
|
<div class="row">
|
|
<div class="col-md-3 offset-md-6" style="text-align: left">
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">No RM </label>
|
|
<div class="col-sm-9">
|
|
<input type="text" name="norm" id="norm" value="<?php if ($norm != "") {
|
|
echo $norm;
|
|
} ?>"
|
|
class="form-control form-control-sm text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">Nama</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" name="nama" id="nama" value="<?php if ($nama != "") {
|
|
echo $nama;
|
|
} ?>"
|
|
class="form-control form-control-sm text"
|
|
oninput="this.value = this.value.toUpperCase()">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">Tanggal</label>
|
|
<div class="col-sm-4">
|
|
<input type="text" name="tgl_reg" id="tgl_pesan"
|
|
class="form-control form-control-sm mask-date-filter datepicker-filter"
|
|
value="<?php if ($_REQUEST['tgl_reg'] != "") : echo $_REQUEST['tgl_reg'];
|
|
else : echo date('Y/m/d');
|
|
endif; ?>" />
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<input type="text" name="tgl_reg2" id="tgl_pesan2"
|
|
class="form-control form-control-sm mask-date-filter datepicker-filter"
|
|
value="<?php if ($_REQUEST['tgl_reg2'] != "") : echo $_REQUEST['tgl_reg2'];
|
|
else : echo date('Y/m/d');
|
|
endif; ?>" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">Carabayar </label>
|
|
<div class="col-sm-9">
|
|
<?php
|
|
$tmp_cb = $db->query("SELECT * FROM m_carabayar ORDER BY orders ASC");
|
|
$arr_cb = ['' => '-'];
|
|
foreach ($tmp_cb->fetchAll() as $cb) {
|
|
$arr_cb[$cb['kode']] = $cb['nama'];
|
|
}
|
|
echo form_dropdown('carabayar', $arr_cb, $carabayar, 'class="form-control"');
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">Poliklinik </label>
|
|
<div class="col-sm-9">
|
|
<select name="poly" id="poly" class="form-control text">
|
|
<option value=""> -- </option>
|
|
<?php
|
|
$qrypoly = $db->query("SELECT no as kode,nama FROM m_ruang where subsistem like 'RAWAT JALAN%' and st_aktif = 1 ORDER BY no ASC");
|
|
foreach ($qrypoly->fetchAll() as $listpoly) {
|
|
?>
|
|
<option value="<?php echo $listpoly['kode']; ?>"
|
|
<?php if ($listpoly['kode'] == $poly) echo "selected=selected"; ?>>
|
|
<?php echo $listpoly['nama']; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">Kunjungan </label>
|
|
<div class="col-sm-9">
|
|
<select name="kunjungan" id="kunj" class="form-control text">
|
|
<option value=""> -- </option>
|
|
<option value="1" <?php if ($kunjungan == "1") echo "selected=selected"; ?>>BARU
|
|
</option>
|
|
<option value="2" <?php if ($kunjungan == "2") echo "selected=selected"; ?>>LAMA
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left">Shift </label>
|
|
<div class="col-sm-9">
|
|
<?php echo $dropdown_shift; ?>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:left"> </label>
|
|
<div class="col-sm-4">
|
|
<input type="submit" value=" C a r i " class="btn btn-sm btn-primary btn-block text" />
|
|
</div>
|
|
<div class="col-sm-5">
|
|
<button class="btn btn-sm btn-warning pull-right btn-notifikasi" type="button"
|
|
onclick="notif()" id="btn_notif"><i class="fa fa-info-circle"></i> Nobill Dobel
|
|
<span class="badge badge-dark" id="jml_notif">0 </span></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div id="table_search" style="width:100%;overflow: auto">
|
|
<table class="table table-hover table-bordered table-striped table-sm" border="0"
|
|
cellspacing="1" cellpadding="1" title="List Kunjungan Data Pasien Per Hari Ini">
|
|
<tr align="center" class="bg-success text-light">
|
|
<th>NO </th>
|
|
<th>Tanggal</th>
|
|
<th>NO RM</th>
|
|
<th>NO Bill</th>
|
|
<th>Nama Pasien</th>
|
|
<th>L/P</th>
|
|
<th>Alamat</th>
|
|
<th>Klinik</th>
|
|
<th>Nama Dokter</th>
|
|
<th>Cara Bayar</th>
|
|
<th>Rujukan</th>
|
|
<th>Ket.Rujukan</th>
|
|
<th>B/L</th>
|
|
<th>Shift</th>
|
|
<th>Asal</th>
|
|
<?php if ($page_akses['e'] == TRUE) { ?>
|
|
<th>Aksi</th>
|
|
<?php } ?>
|
|
<th>SEP</th>
|
|
<th>Cetak</th>
|
|
</tr>
|
|
<?php
|
|
$sql = "SELECT a.nomr,a.nama,a.jeniskelamin,a.alamat,b.nama as poly1,c.nama as carabayar1,d.nama as rujukan1,
|
|
e.tglreg,shift,dr.namadokter, e.ketrujuk, tglreg, case pasienbaru when 1 then 'B' else 'L' end as b_l,
|
|
e.idxdaftar ,e.kdpoly,e.st_asal_masuk,E.nosep,e.sep_file,(select nobill from t_billrajal where idxdaftar = e.idxdaftar and nomr = a.nomr limit 1) as nobill,e.sipp_file
|
|
FROM m_pasien a
|
|
join t_pendaftaran e on A.nomr = e.nomr
|
|
join m_ruang b on e.kdpoly = b.no
|
|
join m_carabayar c on e.kdcarabayar = c.kode
|
|
left join m_rujukan d on e.kdrujuk = d.kode
|
|
LEFT JOIN m_dokter dr on dr.kddokter=e.kddokter
|
|
WHERE e.status >= 0 and e.status <> 11 " . $search . " ORDER BY E.IDXDAFTAR";
|
|
|
|
$sqlcounter = "SELECT COUNT(a.nomr) FROM m_pasien a, m_ruang b, m_carabayar c, m_rujukan d, t_pendaftaran e LEFT JOIN m_dokter dr on dr.kddokter=e.kddokter where a.nomr=e.nomr and e.kdpoly=b.no and e.kdrujuk=d.kode and e.kdcarabayar=c.kode and e.status in(0,5) $search group by e.idxdaftar ORDER BY E.IDXDAFTAR";
|
|
$NO = 0;
|
|
$pager = paginate($sql, 15, 5, "tgl_reg=" . $tgl_reg . "&tgl_reg2=" . $tgl_reg2 . "&nama=" . $nama . "&norm=" . $norm . "&poly=" . $poly . "&kunjungan=" . $kunjungan . "&shift=" . $shift, "index.php?link=22&");
|
|
|
|
foreach ($pager['list'] as $data) {
|
|
// get nonota
|
|
$tmp_bill = $db->query("SELECT nonota from t_billrajal where idxdaftar = {$data['idxdaftar']} and (kodetarif like 'BPRJ%' or kodetarif like '%PPU%' or kodetarif ilike '%BPRD%' or kodetarif like '%U.JAL%' or kodetarif like '%R.JAL%')");
|
|
$nonota = ($tmp_bill->numRows() > 0) ? $tmp_bill->fetchFirst()['nonota'] : '';
|
|
$count++;
|
|
if ($count % 2) {
|
|
echo '<tr class="tr1">';
|
|
} else {
|
|
echo '<tr class="tr1">';
|
|
}
|
|
?>
|
|
<td height="26"><?php
|
|
$NO = ($NO + 1);
|
|
$page = (array_key_exists('page', $_GET)) ? $_GET['page'] : 0;
|
|
if ($page == 0) {
|
|
$hal = 0;
|
|
} else {
|
|
$hal = $page - 1;
|
|
}
|
|
echo ($hal * 15) + $NO; ?>
|
|
</td>
|
|
<td align="center"><?php echo $data['tglreg']; ?></td>
|
|
<td><?php echo $data['nomr']; ?></td>
|
|
<td><?php echo $data['nobill']; ?></td>
|
|
<td><?php echo $data['nama']; ?></td>
|
|
<td><?php echo $data['jeniskelamin']; ?></td>
|
|
<td><?php echo $data['alamat']; ?></td>
|
|
<td><?php echo $data['poly1']; ?></td>
|
|
<td><?php echo $data['namadokter']; ?></td>
|
|
<td><?php echo $data['carabayar1']; ?></td>
|
|
<td align="center"><?php echo $data['rujukan1']; ?></td>
|
|
<td><?php echo $data['ketrujuk']; ?></td>
|
|
<td><?php echo $data['b_l']; ?></td>
|
|
<td><?php echo $data['shift']; ?></td>
|
|
<td><?php echo $data['st_asal_masuk']; ?></td>
|
|
<?php if ($page_akses['e'] == TRUE) { ?>
|
|
<td align="center">
|
|
<a href="?link=28&idx=<?= $data['idxdaftar']; ?>"
|
|
class="btn btn-outline-secondary btn-sm">Edit/Batal</a>
|
|
</td>
|
|
<?php } ?>
|
|
<td>
|
|
<?php
|
|
if (empty($data['sipp_file'])) {
|
|
echo ' <a href="?link=uploadsep&idx=' . $data["idxdaftar"] . '&type=sipp"
|
|
class="btn btn-outline-secondary btn-sm">Upload SIPP</a>';
|
|
} else {
|
|
echo '<a href="?link=uploadsep&idx=' . $data["idxdaftar"] . '&type=sipp"
|
|
class="btn btn-outline-primary btn-sm">EDIT SIPP</a>';
|
|
}
|
|
if (empty($data['sep_file'])) {
|
|
echo ' <a href="?link=uploadsep&idx=' . $data["idxdaftar"] . '&type=sep"
|
|
class="btn btn-outline-secondary btn-sm">Upload SEP</a>';
|
|
} else {
|
|
echo '<a href="?link=uploadsep&idx=' . $data["idxdaftar"] . '&type=sep"
|
|
class="btn btn-outline-primary btn-sm">EDIT SEP</a>';
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<div class="btn-group dropleft">
|
|
<button class="btn btn-outline-primary dropdown-toggle btn-sm" type="button"
|
|
id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"
|
|
aria-expanded="false">
|
|
Opsi
|
|
</button>
|
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
|
<?php
|
|
if (!empty($data['sipp_file'])) {
|
|
$encrypt = base64_encode($data['sipp_file']);
|
|
echo '<a href="javascript:void(0)" data-file="' . $encrypt . '"
|
|
class="dropdown-item btn_preview"><i class="fas fa-eye text-green"></i> View SIPP</a>';
|
|
}
|
|
if (!empty($data['sep_file'])) {
|
|
$encrypt = base64_encode($data['sep_file']);
|
|
echo '<a href="javascript:void(0)" data-file="' . $encrypt . '"
|
|
class="dropdown-item btn_preview"><i class="fas fa-eye text-green"></i> View SEP</a>';
|
|
}
|
|
|
|
?>
|
|
<a href="javascript:void(0)" data-idx="<?php echo $data['idxdaftar'] ?>"
|
|
data-poly="true" class="dropdown-item kartu_identitas "><i
|
|
class="fas fa-check text-aqua"></i> Kartu Identitas </a>
|
|
<!-- <a href="javascript:void(0)" data-idx="<?php echo $data['idxdaftar'] ?>" data-poly="true" class="dropdown-item print_casemix "><i class="fas fa-check text-green"></i> Casemix </a> -->
|
|
<a href="javascript:void(0)" data-idx="<?php echo $data['idxdaftar'] ?>"
|
|
data-poly="true" class="dropdown-item print_casemix_polos "><i
|
|
class="fas fa-check text-green"></i> Casemix Polos </a>
|
|
<a href="javascript:void(0)" data-idx="<?php echo $data['idxdaftar'] ?>"
|
|
data-poly="<?php echo $data['kdpoly'] ?>"
|
|
class="dropdown-item print_tracer "><i class="fas fa-check text-yellow"></i>
|
|
Tracer </a>
|
|
<!-- <a href="javascript:void(0)" data-nosep="<?php echo $data['nosep'] ?>" data-idx="<?php echo $data['idxdaftar'] ?>" class="dropdown-item print_sep "><i class="fas fa-check text-blue"></i> SEP </a> -->
|
|
<a href="javascript:void(0)" data-nonota="<?php echo $nonota ?>"
|
|
data-nomr="<?php echo $data['nomr'] ?>"
|
|
data-idx="<?php echo $data['idxdaftar'] ?>"
|
|
class="dropdown-item print_nota "><i class="fas fa-check text-purple"></i>
|
|
eTiket </a>
|
|
<a href="javascript:void(0)" data-nomr="<?php echo $data['nomr'] ?>"
|
|
data-idx="<?php echo $data['idxdaftar'] ?>"
|
|
class="dropdown-item print_kepalales "><i
|
|
class="fas fa-check text-yellow"></i> Kepala Les </a>
|
|
<!-- <a href="javascript:void(0)" data-nomr="<?php echo $data['nomr'] ?>"
|
|
class="dropdown-item print_label"><i class="fas fa-print text-purple"></i>
|
|
Label</a> -->
|
|
<a href="javascript:void(0)" data-nomr="<?php echo $data['nomr'] ?>"
|
|
class="dropdown-item print_gelang"><i class="fas fa-print text-purple"></i>
|
|
Gelang</a>
|
|
<?php
|
|
if (preg_match("/IGD/", $data['poly1'])) {
|
|
echo '
|
|
<a href="javascript:void(0)" data-nomr="' . $data['nomr'] . '"
|
|
class="dropdown-item print_label"><i class="fas fa-print text-purple"></i>
|
|
Label</a>';
|
|
} else {
|
|
echo '
|
|
<a href="javascript:void(0)" data-nomr="' . $data['nomr'] . '"
|
|
class="dropdown-item print_label_rajal"><i class="fas fa-print text-purple"></i>
|
|
Label</a>';
|
|
}
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<!--
|
|
<button type="button" data-idx="<?php echo $data['idxdaftar'] ?>" data-poly="true" class="print_casemix btn btn-outline-secondary btn-sm">Casemix</button>
|
|
<button type="button" data-idx="<?php echo $data['idxdaftar'] ?>" data-poly="<?php echo $data['kdpoly'] ?>" class="print_tracer btn btn-outline-secondary btn-sm">Tracer</button>
|
|
<button type="button" data-nosep="<?php echo $data['nosep'] ?>" data-idx="<?php echo $data['idxdaftar'] ?>" class="print_sep btn btn-outline-secondary btn-sm">SEP</button> -->
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
|
|
<?php
|
|
//Display the full navigation in one go
|
|
echo $pager['nav'];
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<?php
|
|
$qry_excel = "SELECT e.idxdaftar as idx_daftar,
|
|
tglreg as tgl_daftar,
|
|
a.nomr as no_rm,
|
|
a.nama as nama_pasien,
|
|
a.jeniskelamin as jns_kelamin,
|
|
a.alamat as alamat,
|
|
b.nama as poly_tujuan,
|
|
dr.namadokter as dokter,
|
|
c.nama as cara_bayar,
|
|
d.nama as rujukan,
|
|
e.ketrujuk as ket_rujukan,
|
|
a. tgllahir as tanggal_lahir,
|
|
a. kdkecamatan as kecamatan,
|
|
(select namakecamatan from m_kecamatan where a.kdkecamatan = idkecamatan) as kecamatan,
|
|
|
|
case pasienbaru when 1 then 'B' else 'L' end as baru_lama,
|
|
shift as shift
|
|
FROM m_pasien A, m_ruang B, m_carabayar C, m_rujukan D, t_pendaftaran E
|
|
LEFT JOIN m_dokter DR on DR.KDDOKTER=E.KDDOKTER
|
|
WHERE A.NOMR=E.NOMR AND E.KDPOLY=B.no AND E.KDRUJUK=D.KODE AND E.KDCARABAYAR=C.KODE " . $search . "ORDER BY E.IDXDAFTAR";
|
|
?>
|
|
<!-- <div align="left">
|
|
<form name="formprint" method="post" action="gudang/excelexport.php" target="_blank" >
|
|
<input type="hidden" name="query" value="<?= $qry_excel ?>" />
|
|
<input type="hidden" name="header" value="LIST KUNJUNGAN PASIEN" />
|
|
<input type="hidden" name="filename" value="list_kunjungan_pasien" />
|
|
<input type="submit" value="Export To Ms Excel Document" class="btn btn-success float-right text" />
|
|
</form>
|
|
</div> -->
|
|
</div>
|
|
<script>
|
|
function preview_file(file) {
|
|
$.post("<?php echo _BASE_ . 'include/master.php'; ?>", {
|
|
viewer: 1,
|
|
filepath: file
|
|
}, function(data) {
|
|
$("#print_body").html("");
|
|
$("#print_body").html("<iframe name=\"print_out\" src=\"" + data +
|
|
"\" frameborder=\"0\" style=\"width:100%;height:450px\" id=\"report-frame\"></iframe>");
|
|
$("#modal-preview .btn-success").css("display", "none");
|
|
$("#modal-preview").modal("show");
|
|
});
|
|
}
|
|
$(".kartu_identitas").click(function() {
|
|
var idx = $(this).data("idx");
|
|
|
|
//console.log(idx);
|
|
window.open("pdfb/kartupasien_ulang.php?idx=" + idx, "mywindow");
|
|
|
|
});
|
|
|
|
$(".print_casemix_polos").click(function() {
|
|
var idx = $(this).data("idx");
|
|
var poly = $(this).data("poly");
|
|
$.post('<?php echo _BASE_; ?>print_casemix.php', {
|
|
idx: idx,
|
|
poly: poly,
|
|
polos: true
|
|
}, function(data) {
|
|
$("#modal-preview .modal-body").html(data);
|
|
$(".modal-footer .btn-success").css("display", "none");
|
|
$("#modal-preview").modal("show");
|
|
});
|
|
|
|
});
|
|
|
|
$(".print_sep").click(function() {
|
|
var idxdaftar = $(this).data("idx");
|
|
var nosep = $(this).data("nosep");
|
|
if (nosep != "") {
|
|
JobToast.fire({
|
|
title: "Pencetakan ulang SEP ...",
|
|
type: "info"
|
|
});
|
|
$.post("<?php echo _BASE_ . 'print_sep_bpjs.php'; ?>", {
|
|
idxdaftar,
|
|
nosep
|
|
}, function(d) {
|
|
// console.log(d);
|
|
$("#modal-preview .modal-body").html(d);
|
|
$(".modal-footer .btn-success").css("display", "none");
|
|
$("#modal-preview").modal("show");
|
|
|
|
JobToast.close();
|
|
});
|
|
}
|
|
});
|
|
$(".print_kepalales").click(function() {
|
|
var idx = $(this).data("idx");
|
|
jspm_print_with_toolbar('<?php echo _BASE_; ?>rm/cetak_kepala_les.php?idxdaftar=' + idx + '&rajal=1',
|
|
'modal-preview', 'Kepala Les.pdf', 0);
|
|
|
|
});
|
|
|
|
$(".print_label").click(function() {
|
|
var nomr = $(this).data("nomr");
|
|
jspm_print_with_toolbar('<?php echo _BASE_; ?>print_label.php?nomr=' + nomr, 'modal-preview', 'Label.pdf',
|
|
0);
|
|
|
|
});
|
|
$(".print_label_rajal").click(function() {
|
|
var nomr = $(this).data("nomr");
|
|
jspm_print_with_toolbar('<?php echo _BASE_; ?>print_label_rajal.php?nomr=' + nomr, 'modal-preview',
|
|
'Label.pdf',
|
|
0);
|
|
|
|
});
|
|
|
|
$(".print_gelang").click(function() {
|
|
var nomr = $(this).data("nomr");
|
|
jspm_print_with_toolbar('<?php echo _BASE_; ?>print_gelang.php?nomr=' + nomr, 'modal-preview', 'Gelang.pdf',
|
|
0);
|
|
// $.post('<?php echo _BASE_; ?>print_gelang.php',{nomr:nomr},function(data)
|
|
// {
|
|
// $("#modal-preview .modal-body").html(data);
|
|
// $(".modal-footer .btn-success").css("display","none");
|
|
// $("#modal-preview").modal("show");
|
|
// })
|
|
|
|
});
|
|
$(".btn_preview").click(function() {
|
|
var file = $(this).data("file");
|
|
preview_file(file)
|
|
|
|
});
|
|
</script>
|