update : penambahan dan perbaikan modul report saturssa

This commit is contained in:
2026-01-20 20:53:38 +07:00
parent 59963790c0
commit 5f057cba45
28 changed files with 2854 additions and 29 deletions
@@ -0,0 +1,125 @@
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>
</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
<li class="breadcrumb-item"><?php echo $parent;?></li>
<li class="breadcrumb-item active"><?php echo $title;?></li>
</ol>
</div>
</div>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card card-default">
<div class="card-header">
<h3 class="card-title"><?php
echo $title;
$tglawal = $awal;
$tglakhir= $akhir;
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
?></h3>
</div>
<form action="<?php echo(base_url()); ?>index.php/lp_gomed_report/antreanmjkndetail" method="post" autocomplete="off">
<div class="card-body">
<div class="form-group row">
<label class="col-sm-1 col-form-label">Tanggal :</label>
<div class="col-sm-4">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="far fa-calendar-alt"></i>
</span>
</div>
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
</div>
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-outline-info">Search </button>
</div>
</div>
</div>
</form>
<div class="card-body">
<?php if($this->session->flashdata('message')){?>
<div id="alert" class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<i class="icon fa fa-check"></i> Alert!
<?php echo $this->session->flashdata('message');?>
</div>
<?php }?>
<script>
setTimeout(function() {
$('#alert').hide('fast');
}, 3000);
</script>
<?php
$tglgabung = date("m/d/Y", strtotime($awal)) . " - " . date("m/d/Y", strtotime($akhir));
$start = new DateTime($awal);
$end = new DateTime($akhir);
$end = $end->modify('+1 day');
$interval = new DateInterval('P1D');
$period = new DatePeriod($start, $interval, $end);
?>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Tgl Periksa</th>
<th>Tgl Booking</th>
<th>No Antrian</th>
<th>Booking Code</th>
<th>Nama Pasien</th>
<th>No BPJS</th>
<th>NIK</th>
<th>NO MR</th>
<th>No Referensi</th>
<th>Code Poli</th>
<th>Code Dokter</th>
<th>Checkin</th>
<th>Task ID</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach($mjkndetail as $dat){
$no++;
echo
"<tr>
<td>$no</td>
<td>$dat->tanggal_periksa</td>
<td>$dat->tanggal_booking</td>
<td>$dat->queue_clinic</td>
<td>$dat->booking_code</td>
<td>$dat->pasien</td>
<td>$dat->nomor_bpjs</td>
<td>$dat->nik</td>
<td>$dat->norm</td>
<td>$dat->nomor_referensi</td>
<td>$dat->code_poli</td>
<td>$dat->code_doctor</td>
<td>$dat->checkin - $dat->checkin_time</td>
<td>TID1 $dat->task_id1 ($dat->task_id1_time) | TID2 $dat->task_id2 ($dat->task_id2_time) </br> TID3 $dat->task_id3 ($dat->task_id3_time) | TID4 $dat->task_id4 ($dat->task_id4_time) </br> TID5 $dat->task_id5 ($dat->task_id5_time) | TID6 $dat->task_id6 ($dat->task_id6_time) | TID7 $dat->task_id7 ($dat->task_id7_time) </td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
@@ -0,0 +1,125 @@
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>
</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
<li class="breadcrumb-item"><?php echo $parent;?></li>
<li class="breadcrumb-item active"><?php echo $title;?></li>
</ol>
</div>
</div>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card card-default">
<div class="card-header">
<h3 class="card-title"><?php
echo $title;
$tglawal = $awal;
$tglakhir= $akhir;
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
?></h3>
</div>
<form action="<?php echo(base_url()); ?>index.php/lp_gomed_report/antreanmonsitedetail" method="post" autocomplete="off">
<div class="card-body">
<div class="form-group row">
<label class="col-sm-1 col-form-label">Tanggal :</label>
<div class="col-sm-4">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="far fa-calendar-alt"></i>
</span>
</div>
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
</div>
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-outline-info">Search </button>
</div>
</div>
</div>
</form>
<div class="card-body">
<?php if($this->session->flashdata('message')){?>
<div id="alert" class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<i class="icon fa fa-check"></i> Alert!
<?php echo $this->session->flashdata('message');?>
</div>
<?php }?>
<script>
setTimeout(function() {
$('#alert').hide('fast');
}, 3000);
</script>
<?php
$tglgabung = date("m/d/Y", strtotime($awal)) . " - " . date("m/d/Y", strtotime($akhir));
$start = new DateTime($awal);
$end = new DateTime($akhir);
$end = $end->modify('+1 day');
$interval = new DateInterval('P1D');
$period = new DatePeriod($start, $interval, $end);
?>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Tgl Periksa</th>
<th>Nama</th>
<th>No Antrian</th>
<th>Booking Code</th>
<th>No BPJS</th>
<th>NIK</th>
<th>NO MR</th>
<th>No Registrasi</th>
<th>No Referensi</th>
<th>Code Specialis</th>
<th>Code Sub Specialis</th>
<th>Code Doctor</th>
<th>Endpoint</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach($onsitedetail as $dat){
$no++;
echo
"<tr>
<td>$no</td>
<td>$dat->created_at</td>
<td>$dat->name</td>
<td>$dat->queue_admisi</td>
<td>$dat->booking_code</td>
<td>$dat->nomor_bpjs</td>
<td>$dat->nik</td>
<td>$dat->norm</td>
<td>$dat->nomor_registrasi</td>
<td>$dat->nomor_referensi</td>
<td>$dat->code_specialis</td>
<td>$dat->code_subspecialis</td>
<td>$dat->code_doctor</td>
<td>$dat->endpoint</td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
@@ -0,0 +1,124 @@
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>
</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
<li class="breadcrumb-item"><?php echo $parent;?></li>
<li class="breadcrumb-item active"><?php echo $title;?></li>
</ol>
</div>
</div>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card card-default">
<div class="card-header">
<h3 class="card-title"><?php
echo $title;
$tglawal = $awal;
$tglakhir= $akhir;
$tglgabung = date("m/d/Y", strtotime($awal))." - ".date("m/d/Y", strtotime($akhir));
?></h3>
</div>
<form action="<?php echo(base_url()); ?>index.php/lp_gomed_report/antreanmjknonsite" method="post" autocomplete="off">
<div class="card-body">
<div class="form-group row">
<label class="col-sm-1 col-form-label">Tanggal :</label>
<div class="col-sm-4">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="far fa-calendar-alt"></i>
</span>
</div>
<input type="text" name="tanggal" class="form-control float-right" id="reservation" value="<?php echo $tglgabung;?>">
</div>
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-outline-info">Search </button>
</div>
</div>
</div>
</form>
<div class="card-body">
<?php if($this->session->flashdata('message')){?>
<div id="alert" class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<i class="icon fa fa-check"></i> Alert!
<?php echo $this->session->flashdata('message');?>
</div>
<?php }?>
<script>
setTimeout(function() {
$('#alert').hide('fast');
}, 3000);
</script>
<?php
$tglgabung = date("m/d/Y", strtotime($awal)) . " - " . date("m/d/Y", strtotime($akhir));
$start = new DateTime($awal);
$end = new DateTime($akhir);
$end = $end->modify('+1 day');
$interval = new DateInterval('P1D');
$period = new DatePeriod($start, $interval, $end);
?>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>Jumlah Pasien M-JKN</th>
<th>Check-In M-JKN</th>
<th>Jumlah Pasien Onsite</th>
<th>Onsite</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach($period as $row){
$no++; $jumlahmjkn = 0; $checkinmjkn = 0;
foreach($mjknall as $datmjkn){
if($row->format('Y-m-d') === $datmjkn->tglperiksa){
$jumlahmjkn = $datmjkn->jumlah;
$checkinmjkn = $datmjkn->checkin;
}
}
$jumlahonsite = 0; $checkinonsite = 0;
foreach($onsiteall as $datonsite){
if($row->format('Y-m-d') === $datonsite->tgl_kunjungan){
$jumlahonsite = $datonsite->jumlah;
$checkinonsite = $datonsite->checkin;
}
}
?>
<tr>
<td><?php echo $no;?></td>
<td><?php echo $row->format('Y-m-d');?></td>
<td><?php echo $jumlahmjkn;?></td>
<td><?php echo $checkinmjkn;?></td>
<td><?php echo $jumlahonsite;?></td>
<td><?php echo $checkinonsite;?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>