first commit - report data

This commit is contained in:
2025-03-21 10:22:45 +07:00
commit 59963790c0
3493 changed files with 1353173 additions and 0 deletions

View File

@@ -0,0 +1,129 @@
<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_simrs_kemenkes/icd" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Asal Masuk</th>
<th>ICD 10</th>
<th>JML Lanjut Ranap</th>
<th>JML BILL Lanjut Ranap</th>
<th>JML KRS</th>
<th>JML BILL KRS</th>
<th>Total Kasus ICD</th>
<th>Total BILL</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($icd as $daticd) {
//----------------------------------------------------------------Billing Dibuat
$billmrs = 0; $billkrs = 0; $billall = 0;
foreach($billrj as $datbillrj){
if($daticd->dxutama == $datbillrj->dxutama && $daticd->asalmasuk == $datbillrj->asalmasuk){
$billmrs = $datbillrj->mrs;
$billkrs = $datbillrj->krs;
$billall = $datbillrj->allbill;
}
}
//----------------------------------------------------------------Billing Batal
$billbtlmrs = 0; $billbtlkrs = 0; $billbtlall = 0;
foreach($billbtl as $datbillbtl){
if($daticd->dxutama == $datbillbtl->dxutama && $daticd->asalmasuk == $datbillbtl->asalmasuk){
$billbtlmrs = $datbillbtl->mrs;
$billbtlkrs = $datbillbtl->krs;
$billbtlall = $datbillbtl->allbill;
}
}
$billtotmrs = $billmrs-$billbtlmrs;
$billtotkrs = $billkrs-$billbtlkrs;
$billtotall = $billall-$billbtlall;
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$daticd->asalmasuk."</td>
<td>".$daticd->dxutama." - ".$daticd->jepenyakit."</td>
<td>".$daticd->mrs."</td>
<td>".$billtotmrs."</td>
<td>".$daticd->krs."</td>
<td>".$billtotkrs."</td>
<td>".$daticd->allicd."</td>
<td>".$billtotall."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,110 @@
<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_simrs_kemenkes/tes" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Ruang</th>
<th>Kelompok</th>
<th>SMF</th>
<th>Jenis Lab dan Diagnostik</th>
<th>JML TES Lanjut Ranap</th>
<th>Total Biaya TES Lanjut Ranap</th>
<th>JML TES KRS</th>
<th>Total Biaya TES KRS</th>
<th>JML TES</th>
<th>Total Biaya TES</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($pnj as $datpnj) {
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$datpnj->kelompok."</td>
<td>".$datpnj->kelompoktarif."</td>
<td>".$datpnj->kelompoksmf."</td>
<td>".$datpnj->kodetarif." - ".$datpnj->tarif."</td>
<td>".$datpnj->mrs."</td>
<td>Rp. ".number_format($datpnj->trmrs).",-</td>
<td>".$datpnj->krs."</td>
<td>Rp. ".number_format($datpnj->trkrs).",-</td>
<td>".$datpnj->allbill."</td>
<td>Rp. ".number_format($datpnj->alltrkrs).",-</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,106 @@
<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_simrs_kemenkes/tindakan" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Asal Masuk</th>
<th>Jenis Tindakan</th>
<th>JML Lanjut Ranap</th>
<th>JML Tarif Lanjut Ranap</th>
<th>JML KRS</th>
<th>JML Tarif KRS</th>
<th>Total Tindakan</th>
<th>Total Tarif</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($icdcm as $daticdcm) {
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$daticdcm->asalmasuk."</td>
<td>".$daticdcm->icd9." - ".$daticdcm->icdcmketerangan."</td>
<td>".$daticdcm->mrs."</td>
<td>Rp. ".number_format($daticdcm->trmrs).",-</td>
<td>".$daticdcm->krs."</td>
<td>Rp. ".number_format($daticdcm->trkrs).",-</td>
<td>".$daticdcm->allicdm."</td>
<td>Rp. ".number_format($daticdcm->alltr).",-</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,191 @@
<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_simrs_kemenkes/variable_klaim" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>NO SEP</th>
<th>Tgl Masuk</th>
<th>Tgl Keluar</th>
<th>Tgl Keluar RS</th>
<th>Status Keluar</th>
<th>LOS</th>
<th>Gender</th>
<th>Tgl Lahir</th>
<th>Keluhan Utama</th>
<th>DX Masuk</th>
<!--th>DX</th-->
<th>Diaglist</th>
<th>Proclist</th>
<th>Cara Masuk</th>
<!--th>Transport</th-->
<th>Triase</th>
<th>Trauma</th>
<!--th>Obstetri</th-->
<th>KLL</th>
<th>Cara Bayar</th>
<th>Status Ranap</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($pxigd as $datpxigd) {
$trauma = "Tidak";
if($datpxigd->statuskll!="Bukan Kecelakaan"){
$trauma = "Ya";
}
$rujuk = "Datang Sendiri";
if($datpxigd->rujuk!=0){
$rujuk = "Rujukan";
}
$ranap = "Tidak";
$keluarrs = $datpxigd->keluarpoly;
if($datpxigd->kdstatuskeluar==2){
$ranap = "Ya";
$keluarrs = $datpxigd->keluarrs;
}
$jeniskelamin = "";
if($datpxigd->gender=="P"){
$jeniskelamin = "Perempuan";
}elseif($datpxigd->gender=="L"){
$jeniskelamin = "Laki-laki";
}
//$triage = "TD : $datpxigd->tekanandarah | TB : $datpxigd->tinggibadan | BB : $datpxigd->beratbadan | GD : $datpxigd->golongandarah";
$masuk = date_create($datpxigd->masukpoly);
$pulang = date_create($keluarrs);
$diff = date_diff( $masuk, $pulang );
$los = "Hari :".$diff->d." / Jam :".$diff->h." / Menit :".$diff->i;
$triage = "";
if($datpxigd->kodepoly == 211 || $datpxigd->kodepoly == 214){
$triage = "Merah";
}elseif($datpxigd->kodepoly == 212 || $datpxigd->kodepoly == 215 || $datpxigd->kodepoly == 390){
$triage = "Kuning";
}elseif($datpxigd->kodepoly == 213 || $datpxigd->kodepoly == 216 || $datpxigd->kodepoly == 73 || $datpxigd->kodepoly == 204){
$triage = "Hijau";
}elseif($datpxigd->kodepoly == 257 || $datpxigd->kodepoly == 258){
$triage = "Hitam";
}
$icdcm = "";
foreach($icdcmigd as $daticdcm){
if($daticdcm->idxdaftar == $datpxigd->idxdaftar){
$icdcm = $icdcm." ".$daticdcm->icd9." - ".$daticdcm->icdcmketerangan."; </br>";
//$icdcm = $icdcm." ".$daticdcm->icd9.";";
}
}
$icd10 = ""; $dxawal = "";
foreach($icdigd as $daticd){
if($daticd->idxdaftar == $datpxigd->idxdaftar){
$icd10 = $icd10." ".$daticd->icd10." - ".$daticd->icdketerangan."; </br>";
//$icd10 = $icd10." ".$daticd->icdketerangan.";";
//$icd10 = $icd10." ".$daticd->icd10.";";
if($dxawal === ""){
$dxawal = $daticd->icd10." - ".$daticd->icdketerangan;
}
}
}
if($datpxigd->statuskeluar!="BATAL"){
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$datpxigd->nosep."</td>
<td>".$datpxigd->masukpoly."</td>
<td>".$datpxigd->keluarpoly."</td>
<td>$keluarrs</td>
<td>".$datpxigd->statuskeluar."</td>
<td>$los</td>
<td>".$jeniskelamin."</td>
<td>".$datpxigd->tgllahir."</td>
<td>".$datpxigd->anamnesa."</td>
<td>".$dxawal."</td>
<!--td>".$datpxigd->jepenyakit."</td-->
<td>$icd10</td>
<td>$icdcm</td>
<td>$rujuk</td>
<!--td></td-->
<td>".$datpxigd->namapoly." (".$triage.")</td>
<td>$trauma</td>
<!--td></td-->
<td>$trauma</td>
<td>".$datpxigd->carabayar."</td>
<td>$ranap</td>
</tr>
");
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,247 @@
<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_simrs_report/disposedokigd" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Idxdaftar</th>
<th>No MR</th>
<th>Tgl Registrasi</th>
<th>DPJP Awal</th>
<th>UGD Triage</th>
<th>Kajian Awal Medis</th>
<th>Disposisi</th>
<th>Tujuan Disposisi</th>
<th>Penerima Disposisi</th>
<th>Pelimpahan DPJP</th>
<th>Resume Medis</th>
<th>DPJP Terakhir</th>
<th>Status Keluar</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($datanya as $dat) {
$pelimpahandpjp = "";
$dpjpterakhir = $dat->dokterawal;
$rea1 = str_replace('{', '', $dat->tglpelimpah);
$reb1 = str_replace('}', '', $rea1);
$ex1 = explode(",",$reb1);
$rea2 = str_replace('{', '', $dat->klinikpelimpah);
$reb2 = str_replace('}', '', $rea2);
$rec2 = str_replace('"', '', $reb2);
$ex2 = explode(",",$rec2);
$rea3 = str_replace('{', '', $dat->dpjppelimpah);
$reb3 = str_replace('}', '', $rea3);
$ex3 = explode('","',$reb3);
$rea4 = str_replace('{', '', $dat->smfpelimpah);
$reb4 = str_replace('}', '', $rea4);
$ex4 = explode(",",$reb4);
$rea5 = str_replace('{', '', $dat->dpjppengganti);
$reb5 = str_replace('}', '', $rea5);
$ex5 = explode('","',$reb5);
$rea6 = str_replace('{', '', $dat->smfpengganti);
$reb6 = str_replace('}', '', $rea6);
$ex6 = explode(",",$reb6);
$count = count($ex1);
for ($x = 0; $x <= $count; $x++) {
if(isset($ex1[$x])){
if($ex1[$x]!=""){
$rec4 = str_replace('"', '', $ex4[$x]);
$rec3 = str_replace('"', '', $ex3[$x]);
$rec5 = str_replace('"', '', $ex5[$x]);
$rec6 = str_replace('"', '', $ex6[$x]);
$pelimpahandpjp = $pelimpahandpjp.$ex1[$x]." - $ex2[$x] - DPJP Pelimpah : $rec3 ($rec4) || DPJP Pengganti : $rec5 ($rec6)</br>";
$dpjpterakhir = "$rec5 ($rec6)";
}else{
$pelimpahandpjp = "-";
}
}
}
$diagnosaterapi = "";
$real1 = str_replace('{', '', $dat->diagnosaterapidate);
$rebl1 = str_replace('}', '', $real1);
$recl1 = str_replace('"', '', $rebl1);
$exl1 = explode(",",$recl1);
$real2 = str_replace('{', '', $dat->diagnosaterapidokter);
$rebl2 = str_replace('}', '', $real2);
$exl2 = explode('","',$rebl2);
$real3 = str_replace('{', '', $dat->diagnosaterapismf);
$rebl3 = str_replace('}', '', $real3);
$recl3 = str_replace('"', '', $rebl3);
$exl3 = explode(",",$recl3);
$count2 = count($exl1);
for ($x = 0; $x <= $count2; $x++) {
if(isset($exl1[$x])){
if($exl1[$x]!=""){
$recl2 = str_replace('"', '', $exl2[$x]);
$diagnosaterapi = $diagnosaterapi.$exl1[$x]." - $recl2($exl3[$x])</br>";
}else{
$diagnosaterapi = "-";
}
}
}
$ugdtriage = "";
$reat1 = str_replace('{', '', $dat->tgltriage);
$rebt1 = str_replace('}', '', $reat1);
$ext1 = explode(",",$rebt1);
$reat2 = str_replace('{', '', $dat->jamtriage);
$rebt2 = str_replace('}', '', $reat2);
$ext2 = explode(",",$rebt2);
$reat3 = str_replace('{', '', $dat->triagedokter);
$rebt3 = str_replace('}', '', $reat3);
$ext3 = explode('","',$rebt3);
$reat4 = str_replace('{', '', $dat->triagesmf);
$rebt4 = str_replace('}', '', $reat4);
$rect4 = str_replace('"', '', $rebt4);
$ext4 = explode(",",$rect4);
$count3 = count($ext1);
for ($x = 0; $x <= $count3; $x++) {
if(isset($ext1[$x])){
if($ext1[$x]!=""){
$rect3 = str_replace('"', '', $ext3[$x]);
$ugdtriage = $ugdtriage.$ext1[$x]." $ext2[$x] - $rect3 ($ext4[$x])</br>";
}else{
$ugdtriage = "-";
}
}
}
$resumemedis = "";
$rear1 = str_replace('{', '', $dat->resumedate);
$rebr1 = str_replace('}', '', $rear1);
$exr1 = explode(",",$rebr1);
$rear2 = str_replace('{', '', $dat->resumedokter);
$rebr2 = str_replace('}', '', $rear2);
$exr2 = explode(",",$rebr2);
$rear3 = str_replace('{', '', $dat->resumesmf);
$rebr3 = str_replace('}', '', $rear3);
$exr3 = explode(",",$rebr3);
$count4 = count($exr1);
for ($x = 0; $x <= $count4; $x++) {
if(isset($exr1[$x])){
if($exr1[$x]!=""){
$recr1 = str_replace('"', '', $exr1[$x]);
$recr2 = str_replace('"', '', $exr2[$x]);
$resumemedis = $resumemedis.$recr1." - $recr2 ($exr3[$x])</br>";
}else{
$resumemedis = "-";
}
}
}
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$dat->idxdaftar."</td>
<td>".$dat->nomr."</td>
<td>".$dat->tglreg."</td>
<td>".$dat->dokterawal."</td>
<td>".$ugdtriage."</td>
<td>".$diagnosaterapi."</td>
<td>".$dat->disposisismf." - ".$dat->disposisi."</td>
<td>".$dat->tujuansmf."</td>
<td>".$dat->terimadisposisismf." - ".$dat->terimadisposisi."</td>
<td>".$pelimpahandpjp."</td>
<td>".$resumemedis."</td>
<td>".$dpjpterakhir."</td>
<td>".$dat->statuskeluar."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,157 @@
<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_simrs_report/klaimlabmikro" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>Status Pasien</th>
<th>APS</th>
<th>Tgl Order</th>
<th>Tgl Hasil</th>
<th>Nota</th>
<th>Bill</th>
<th>RM</th>
<th>KTP</th>
<th>Nama</th>
<th>Tgl Lahir</th>
<th>JK</th>
<th>Alamat</th>
<th>Penjamin</th>
<th>Ruang</th>
<th>No Lab</th>
<th>Kode Tarif</th>
<th>Kelompok</th>
<th>Jenis Pemeriksaan</th>
<th>StOrder</th>
<th>Status</th>
<th>Verif</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($klaimmikro as $dat) {
if($dat->strajal == "0"){$ststatus = "RANAP";}else{$ststatus = "RAJAL";}
if($dat->verstatusrajal == "1"){$stver = "YA";}else{$stver = "TIDAK";}
if($dat->statusorder == "1"){$stor = "YA";}else{$stor = "TIDAK";}
$nomr = ""; $ktp = ""; $namapasien = ""; $tgllahir = ""; $jeniskelamin = ""; $alamat = "";
$apsrajal = $dat->apsrajal;
$apsranap = $dat->apsranap;
$aps = (int)$apsrajal+(int)$apsranap;
if($aps > 0){
$aps = "APS";
$ktp = $dat->noktpaps;
$namapasien = $dat->namaaps;
$tgllahir = $dat->tgllahiraps;
$jeniskelamin = $dat->jkaps;
$alamat = $dat->alamataps;
}else{
$aps = "TIDAK";
$ktp = $dat->noktpreg;
$namapasien = $dat->namareg;
$tgllahir = $dat->tgllahirreg;
$jeniskelamin = $dat->jkreg;
$alamat = $dat->alamatreg;
}
$penjamin = $dat->namabayarrajal;if($penjamin==""){$penjamin = $dat->namabayarranap;}
$no++;
echo("
<tr>
<!--td>".$no."</td-->
<td>".$ststatus."</td>
<td>".$aps."</td>
<td>".$dat->tglorder."</td>
<td>".$dat->tglhasil."</td>
<td>".$dat->nonota."</td>
<td>".$dat->billranap."".$dat->billrajal."</td>
<td>".$dat->nomrreg."".$dat->nomraps."</td>
<td>".$ktp."</td>
<td>".$namapasien."</td>
<td>".$tgllahir."</td>
<td>".$jeniskelamin."</td>
<td>".$alamat."</td>
<td>".$penjamin."</td>
<td>".$dat->namaruang."</td>
<td>".$dat->nolokal."</td>
<td>".$dat->kodetarifrajal."".$dat->kodetarifranap."</td>
<td>".$dat->jenkel."</td>
<td>".$dat->jenpemeriksaan."</td>
<td>".$stor."</td>
<td>".$dat->statusrajal."".$dat->statusranap."</td>
<td>".$stver."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,161 @@
<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_simrs_report/labmikro" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<!--th>No</th-->
<th>Status Pasien</th>
<th>APS</th>
<th>Tgl Order</th>
<th>Tgl Hasil</th>
<th>Nota</th>
<th>Bill</th>
<th>RM</th>
<th>KTP</th>
<!--th>KTP Baru</th-->
<th>Nama</th>
<th>Tgl Lahir</th>
<th>JK</th>
<th>Alamat</th>
<th>Penjamin</th>
<th>Ruang</th>
<th>Poliklinik</th>
<th>Kode Tarif</th>
<th>Kelompok</th>
<th>Jenis Pemeriksaan</th>
<th>StOrder</th>
<th>Status</th>
<th>Verif</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($labmikroall as $dat) {
if($dat->strajal == "0"){$ststatus = "RANAP";}else{$ststatus = "RAJAL";}
if($dat->verstatus == "1"){$stver = "VERIF";}else{$stver = "TIDAK";}
if($dat->statusorder == "1"){$stor = "ORDER";}else{$stor = "TIDAK";}
$nomr = ""; $ktp = ""; $namapasien = ""; $tgllahir = ""; $jeniskelamin = ""; $alamat = "";
$apsrajal = $dat->tbsrajal;
$apsranap = $dat->tbsranap;
$aps = (int)$apsrajal+(int)$apsranap;
if($aps > 0){
$aps = "YA";
$ktp = $dat->ktpaps;
$namapasien = $dat->namapasienaps;
$tgllahir = $dat->tgllahiraps;
$jeniskelamin = $dat->jeniskelaminaps;
$alamat = $dat->alamataps;
}else{
$aps = "TIDAK";
$ktp = $dat->ktp;
$namapasien = $dat->namapasien;
$tgllahir = $dat->tgllahir;
$jeniskelamin = $dat->jeniskelamin;
$alamat = $dat->alamat;
}
$penjamin = $dat->namabayarrajal;if($penjamin==""){$penjamin = $dat->namabayarranap;}
$ruang = $dat->namaruangrajal;if($ruang==""){$ruang = $dat->namaruangranap;}
$no++;
echo("
<tr>
<!--td>".$no."</td-->
<td>".$ststatus."</td>
<td>".$aps."</td>
<td>".$dat->tglorder."</td>
<td>".$dat->tglhasil."</td>
<td>".$dat->nota."</td>
<td>".$dat->nobillrajal."</td>
<td>".$dat->nomr."</td>
<td>".$ktp."</td>
<!--td>".$dat->ktpbaru."</td-->
<td>".$namapasien."</td>
<td>".$tgllahir."</td>
<td>".$jeniskelamin."</td>
<td>".$alamat."</td>
<td>".$penjamin."</td>
<td>".$ruang."</td>
<td>".$dat->poliklinik."</td>
<td>".$dat->kodetarif."</td>
<td>".$dat->jeniskelompok."</td>
<td>".$dat->namafield."</td>
<td>".$stor."</td>
<td>".$dat->billstatus."</td>
<td>".$stver."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,113 @@
<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_simrs_report/obatkeluarrajal" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Status</th>
<th>Kode</th>
<th>Nama Obat</th>
<th>Qty</th>
<th>Dokter</th>
<th>Harga</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($datarajal as $datrajal) {
$namaobat = "";
$kode = "";
$harga = "";
foreach($dataobat as $datobat){
if($datobat->mo_kode==$datrajal->kodeobat){
$namaobat = $datobat->mo_nama;
$kode = $datobat->mo_kode;
$harga = $datobat->harga;
}
}
$no++;
echo("
<tr>
<td>".$no."</td>
<td>RAWAT JALAN</td>
<td>".$datrajal->kodeobat."</td>
<td>".$namaobat."</td>
<td>".(float)$datrajal->jmlqty."</td>
<td>".$datrajal->namadokter."</td>
<td>".(float)$harga."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,113 @@
<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_simrs_report/obatkeluarranap" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Status</th>
<th>Kode</th>
<th>Nama Obat</th>
<th>Qty</th>
<th>Dokter</th>
<th>Harga</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($dataranap as $datranap) {
$namaobat = "";
$kode = "";
$harga = "";
foreach($dataobat as $datobat){
if($datobat->mo_kode==$datranap->kodeobat){
$namaobat = $datobat->mo_nama;
$kode = $datobat->mo_kode;
$harga = $datobat->harga;
}
}
$no++;
echo("
<tr>
<td>".$no."</td>
<td>RAWAT INAP</td>
<td>".$datranap->kodeobat."</td>
<td>".$namaobat."</td>
<td>".(float)$datranap->jmlqty."</td>
<td>".$datranap->namadokter."</td>
<td>".(float)$harga."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,153 @@
<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_simrs_report/pasienbaru" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>Klinik</th>
<th>Pasien Baru</th>
<th>Pasien Lama</th>
<th>All Pasien</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasienbaru as $dat){
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$dat->tglregistrasi."</td>
<td>".$dat->klinik."</td>
<td>".$dat->pasienlama."</td>
<td>".$dat->pasienbaru."</td>
<td>".$dat->allpasien."</td>
</tr>
");
}
/* $no=1; $idxdaftar=1; $nomr=""; $paricdver=""; $sekicdver=""; $nonicd="";
foreach ($icd9 as $dat) {
if($idxdaftar==1){
$nomr= $dat->nomr;
$idxdaftar= $dat->idxdaftar;
if($dat->icdorder=="1"){
$paricdver=$dat->icdver." - ".$dat->keticdver;
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
}elseif($dat->icdnon!="None"){
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
}
}elseif($idxdaftar==$dat->idxdaftar){
if($dat->icdorder=="1"){
$paricdver=$dat->icdver." - ".$dat->keticdver;
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
$sekicdver=$sekicdver.$dat->icdver." - ".$dat->keticdver." | ";
}elseif($dat->icdnon!="None"){
$nonicd=$nonicd.$dat->icdnon." - ".$dat->keticdnon." | ";
}
}elseif($idxdaftar!=$dat->idxdaftar ){
echo("
<tr>
<td>".$no."</td>
<td>".$nomr."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->tglreg."</td>
<td>".$dat->klinik."</td>
<td>".$paricdver."</td>
<td>".$sekicdver."</td>
<td>".$nonicd."</td>
</tr>
");
$nomr= $dat->nomr;
$idxdaftar= $dat->idxdaftar;
$paricdver=""; $sekicdver=""; $nonicd="";
if($dat->icdorder=="1"){
$paricdver=$dat->icdver." - ".$dat->keticdver;
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
}elseif($dat->icdnon!="None"){
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
}
}
}
*/
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,180 @@
<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_simrs_report/pasiendetail" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>IDX</th>
<th>No RM</th>
<th>No Bill</th>
<th>Nama</th>
<th>JK</th>
<th>No SEP</th>
<th>Penjamin</th>
<th>Klinik</th>
<th>KD Dokter</th>
<th>DPJP</th>
<th>Status Pasien</th>
<th>Status Keluar</th>
<th>ICD Resume</th>
<th>ICD</th>
<th>ICD Verif</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasiendetail as $dat){
$no++;
$statuspasien = "";
if($dat->statuspasien=="0"){
$statuspasien = "Pasien Lama";
}else{
$statuspasien = "Pasien Baru";
}
$statuskeluar="";
if($dat->statuskeluar==""){
$statuskeluar="Belum Pulang";
}else{
$statuskeluar=$dat->statuskeluar;
}
$re1 = str_replace('{', '', $dat->icd);
$re2 = str_replace('}', '', $re1);
$ex = explode(",",$re2);
$datcount = 0; $icdutama = ""; $icdprimer = "";
foreach ($ex as $data) {
if($datcount==0){
$icdutama = $data;
}else{
$icdprimer=$icdprimer.$data.",";
}
$datcount++;
}
$re11 = str_replace('{', '', $dat->icd_verif);
$re12 = str_replace('}', '', $re11);
$ex2 = explode(",",$re12);
$datcount2 = 0; $icdutama2 = ""; $icdprimer2 = "";
foreach ($ex2 as $data) {
if($datcount2==0){
$icdutama2 = $data;
}else{
$icdprimer2=$icdprimer2.$data.",";
}
$datcount2++;
}
$re21 = str_replace('{', '', $dat->icd_resume);
$re22 = str_replace('}', '', $re21);
$ex3 = explode(",",$re22);
$icdresume = "";
foreach ($ex3 as $data) {
$icdresume=$icdresume.$data.",";
$datcount2++;
}
if($icdresume==","){
$icdresume=$icdutama;
}elseif($icdresume=='","'){
$icdresume="ICD Tidak Terisi";
}
echo("
<tr>
<td>".$no."</td>
<td>".$dat->tglregistrasi."</td>
<td>".$dat->idxdaftar."</td>
<td>".$dat->nomr."</td>
<td>".$dat->nobill."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->jkelamin."</td>
<td>".$dat->nosep."</td>
<td>".$dat->penjamin."</td>
<td>".$dat->klinik."</td>
<td>".$dat->kddokter."</td>
<td>".$dat->dpjp."</td>
<td>".$statuspasien."</td>
<td>".$statuskeluar."</td>
<td>ICD Utama : ".$icdresume."</td>
<td>ICD Utama : ".$icdutama." </br> ICD Secunder : ".$icdprimer." </td>
<td>ICD Utama : ".$icdutama2." </br> ICD Secunder : ".$icdprimer2." </td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,132 @@
<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_simrs_report/pasiendetailranap" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>No RM</th>
<th>Nama</th>
<th>JK</th>
<th>Bill Rajal</th>
<th>Tgl Masuk Rajal</th>
<th>Tgl Keluar Rajal</th>
<th>Klinik Rajal</th>
<th>Bill Ranap</th>
<th>Tgl Masuk Ranap</th>
<th>Tgl Keluar Ranap</th>
<th>Ruang</th>
<th>Cara Bayar</th>
<th>Cara Pulang</th>
<th>Keadaan Pulang</th>
<th>DPJP</th>
<th>Total Biaya</th>
<th>Tgl Pulang</th>
<th>Icd Dokter</th>
<th>Icd Mati Dokter</th>
<th>ICD Verif</th>
<th>ICD Mati Verif</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasiendetailranap as $dat){
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$dat->nomr."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->jeniskelamin."</td>
<td>".$dat->nobilrajal."</td>
<td>".$dat->masukklinik."</td>
<td>".$dat->keluarklinik."</td>
<td>".$dat->asalmasuk." - ".$dat->namapoly."</td>
<td>".$dat->nobilranap."</td>
<td>".$dat->masukrs."</td>
<td>".$dat->keluarrs."</td>
<td>".$dat->namaruang."</td>
<td>".$dat->penjamin."</td>
<td>".$dat->statuspulang."</td>
<td>".$dat->keadaanpulang."</td>
<td>".$dat->dpjp."</td>
<td>".$dat->total_biaya."</td>
<td></td>
<td>".$dat->icd."</td>
<td>".$dat->icdmati."</td>
<td>".$dat->icdverif."</td>
<td>".$dat->icdverifmati."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,122 @@
<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_simrs_report/pasienikpk" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>No RM</th>
<th>No Bill</th>
<th>Cara Bayar</th>
<th>Nama</th>
<th>JK</th>
<th>No SEP</th>
<th>Klinik</th>
<th>Status Pasien</th>
<th>Status Keluar</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasiendetail as $dat){
$no++;
$statuspasien = "";
if($dat->statuspasien=="0"){
$statuspasien = "Pasien Lama";
}else{
$statuspasien = "Pasien Baru";
}
$statuskeluar="";
if($dat->statuskeluar==""){
$statuskeluar="Belum Pulang";
}else{
$statuskeluar=$dat->statuskeluar;
}
echo("
<tr>
<td>".$no."</td>
<td>".$dat->tglregistrasi."</td>
<td>".$dat->nomr."</td>
<td>".$dat->nobill."</td>
<td>".$dat->carabayar."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->jkelamin."</td>
<td>".$dat->nosep."</td>
<td>".$dat->klinik."</td>
<td>".$statuspasien."</td>
<td>".$statuskeluar."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,142 @@
<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_simrs_report/pasieniurbearanap" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>IDX</th>
<th>No RM</th>
<th>NoBill Ranap</th>
<th>Tgl Reg </th>
<th>Nama</th>
<th>DPJP</th>
<th>SMF</th>
<th>Tgl Tarif</th>
<th>Status</th>
<th>Tempat Layanan</th>
<th>Kelompok Tarif</th>
<th>Sub Sistem</th>
<th>Penjamin</th>
<th>Hak Kelas</th>
<th>Naik Kelas</th>
<th>Nominal Naik</th>
<th>Selisih biaya</th>
<th>Jumlah bayar</th>
<th>Tgl bayar</th>
<th>Status Pembayaran</th>
<th>Petugas Bayar</th>
<th>Verif</th>
<th>Tgl Verif</th>
<th>Petugas Verif</th>
<th>Kode Tarif</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasiendetail as $dat){
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$dat->idxdaftar."</td>
<td>".$dat->nomr."</td>
<td>".$dat->nobillranap."</td>
<td>".$dat->tglregistrasi."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->dpjp."</td>
<td>".$dat->smf."</td>
<td></td>
<td></td>
<td>".$dat->namaruang."</td>
<td></td>
<td>".$dat->subsistem."</td>
<td>".$dat->penjamin."</td>
<td>".$dat->hakkelas."</td>
<td>".$dat->naikkelas."</td>
<td>".$dat->nominalnaik."</td>
<td>".$dat->selisih."</td>
<td>".$dat->jumlahbayar."</td>
<td>".$dat->tglbayar."</td>
<td>".$dat->statusbayar."</td>
<td>".$dat->petugasbayar."</td>
<td>".$dat->verif."</td>
<td>".$dat->tglverif."</td>
<td>".$dat->userverif."</td>
<td>".$dat->kodetarif."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,149 @@
<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_simrs_report/pasienkeuanganrajal" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>IDX</th>
<th>No RM</th>
<th>NoBill Rajal</th>
<th>Tgl Reg </th>
<th>Nama</th>
<th>DPJP</th>
<th>SMF</th>
<th>Tgl Tarif</th>
<th>Status</th>
<th>Tempat Layanan</th>
<th>Kelompok Tarif</th>
<th>Nama Tarif</th>
<th>Uraian Tarif</th>
<th>Jumlah</th>
<th>Tgl Verif</th>
<th>User Verif</th>
<th>Sub Sistem</th>
<th>Status Pembayaran</th>
<th>Penjamin</th>
<th>Tanggal Bayar</th>
<th>Jumlah Terbayar</th>
<th>Kasir</th>
<th>Payment</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasiendetail as $dat){
$no++;
$billrajal = $dat->nobillrajal;
$status = "RAJAL";
if($dat->lunasbayarrajal=="0" || $dat->lunasbayarrajal=="" || $dat->lunasbayarrajal==null){
$stbayar = $dat->stbayarrajal." - Belum | ".$dat->carabayar;
$tglbayar = "";
$jmbayar = "";
$kasir = "";
}else{
$stbayar = $dat->stbayarrajal." - Lunas ".$dat->carabayar;
$tglbayar = $dat->tglbayarrajal." ".$dat->jambayarrajal;
$jmbayar = $dat->jmlbayarrajal;
$kasir = $dat->kasirrajal;
}
echo("
<tr>
<td>".$no."</td>
<td>".$dat->idxdaftar."</td>
<td>".$dat->nomr."</td>
<td>".$dat->nobillrajal."</td>
<td>".$dat->tglregistrasi."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->dokterrajal."</td>
<td>".$dat->smfrajal."</td>
<td>".$dat->tglbillrajal."</td>
<td>".$status."</td>
<td>".$dat->ruangrajal."</td>
<td>".$dat->keltarifrajal."</td>
<td>".$dat->kodetarifrajal."</td>
<td>".$dat->uraiantarifrajal."</td>
<td>".$dat->tarifrsrajal."</td>
<td>".$dat->tglverif."</td>
<td>".$dat->userverif."</td>
<td>".$dat->subsistem."</td>
<td>".$stbayar."</td>
<td>".$dat->penjamin." - ".$dat->namapenjamin."</td>
<td>".$tglbayar."</td>
<td>".$jmbayar."</td>
<td>".$kasir."</td>
<td>".$dat->payment."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,148 @@
<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_simrs_report/pasienkeuanganranap" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>IDX</th>
<th>No RM</th>
<th>NoBill Ranap</th>
<th>Tgl Ranap </th>
<th>Nama</th>
<th>DPJP</th>
<th>SMF</th>
<th>Tgl Tarif</th>
<th>Status</th>
<th>Tempat Layanan</th>
<th>Kelompok Tarif</th>
<th>Nama Tarif</th>
<th>Uraian Tarif</th>
<th>Jumlah</th>
<th>Tgl Verif</th>
<th>User Verif</th>
<th>Sub Sistem</th>
<th>Status Pembayaran</th>
<th>Penjamin</th>
<th>Tanggal Bayar</th>
<th>Jumlah Terbayar</th>
<th>Kasir</th>
<th>Payment</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($pasiendetail as $dat){
$no++;
$status = "RANAP";
if($dat->lunasbayarranap=="0" || $dat->lunasbayarranap=="" || $dat->lunasbayarranap==null){
$stbayar = $dat->stbayarranap." - Belum ".$dat->carabayar;
$tglbayar = "";
$jmbayar = "";
$kasir = "";
}else{
$stbayar = $dat->stbayarranap." - Lunas ".$dat->carabayar;
$tglbayar = $dat->tglbayarranap." ".$dat->jambayarranap;
$jmbayar = $dat->jmlbayarranap;
$kasir = $dat->kasirranap;
}
echo("
<tr>
<td>".$no."</td>
<td>".$dat->idxdaftar."</td>
<td>".$dat->nomr."</td>
<td>".$dat->nobillranap."</td>
<td>".$dat->masukrs."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->dokterranap."</td>
<td>".$dat->smfranap."</td>
<td>".$dat->tglbillranap."</td>
<td>".$status."</td>
<td>".$dat->ruangranap."</td>
<td>".$dat->keltarifranap."</td>
<td>".$dat->kodetarifranap."</td>
<td>".$dat->uraiantarifranap."</td>
<td>".$dat->tarifrsranap."</td>
<td>".$dat->tglverif."</td>
<td>".$dat->userverif."</td>
<td>".$dat->subsistem."</td>
<td>".$stbayar."</td>
<td>".$dat->penjamin." - ".$dat->namapenjamin."</td>
<td>".$tglbayar."</td>
<td>".$jmbayar."</td>
<td>".$kasir."</td>
<td>".$dat->payment."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,141 @@
<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_simrs_report/penggunareseprajal" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Klinik</th>
<th>Jumlah Pengguna</th>
<th>Tidak Menggunakan</th>
<th>Jumlah Total</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($dataklinik as $datkli) {
$pakai = 0; $tdkpakai = 0; $all = 0;
foreach ($datanya as $datpengguna){
if($datpengguna->kdpoli == $datkli->kdpoli){
$all++;
if($datpengguna->namadokter!=null){
$pakai++;
}else{
$tdkpakai++;
}
}
}
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$datkli->nama."</td>
<td>".$pakai."</td>
<td>".$tdkpakai."</td>
<td>".$all."</td>
</tr>
");
}
?>
</tbody>
</table>
<table id="example2" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>Klinik</th>
<th>Tanggal Pesan</th>
<th>No MR</th>
<th>No Resep</th>
<th>Dokter</th>
</tr>
</thead>
<tbody>
<?php
$no=0;
foreach ($datanya as $dat) {
$no++;
echo("
<tr>
<td>".$no."</td>
<td>".$dat->namaklinik."</td>
<td>".$dat->tgl."</td>
<td>".$dat->nomr."</td>
<td>".$dat->noresep."</td>
<td>".$dat->namadokter."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,227 @@
<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_simrs_report/rekamedikrl32" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>SMF</th>
<th>Jenis Pelayanan</th>
<th>PX Awal</th>
<th>PX Masuk</th>
<th>PX Pindahan</th>
<th>PX Dipindahkan</th>
<th>PX Keluar Hidup</th>
<th>PX L MT < 48</th>
<th>PX L MT >= 48</th>
<th>PX P MT < 48</th>
<th>PX P MT >= 48</th>
<th>Jumlah Lama Dirawat</th>
<th>Pasien akhir bulan</th>
<th>Jumlah Hari Perawatan</th>
</tr>
</thead>
<tbody>
<?php
$no = 0;
foreach ($datanya as $dat){
$no++;
$re11 = str_replace('{', '', $dat->jenispelayanan);
$re12 = str_replace('}', '', $re11);
$ex13 = explode(",",$re12);
$jenispelayanan = "";
foreach ($ex13 as $data) {
$jenispelayanan = $data;
}
$re21 = str_replace('{', '', $dat->pasienmasuk);
$re22 = str_replace('}', '', $re21);
$ex23 = explode(",",$re22);
$pasienmasuk = "";
foreach ($ex23 as $data) {
$pasienmasuk = $data;
}
$re31 = str_replace('{', '', $dat->pindahan);
$re32 = str_replace('}', '', $re31);
$ex33 = explode(",",$re32);
$pindahan = "";
foreach ($ex33 as $data) {
$pindahan = $data;
}
$re41 = str_replace('{', '', $dat->pindahan);
$re42 = str_replace('}', '', $re41);
$ex43 = explode(",",$re42);
$pindahan = "";
foreach ($ex43 as $data) {
$pindahan = $data;
}
$re51 = str_replace('{', '', $dat->dipindahkan);
$re52 = str_replace('}', '', $re51);
$ex53 = explode(",",$re52);
$dipindahkan = "";
foreach ($ex53 as $data) {
$dipindahkan = $data;
}
$datlakimeninggal = "";
$datperempuanmeninggal = "";
$lamakur48 = 0;
$lamaleb48 = 0;
$pemakur48 = 0;
$pemaleb48 = 0;
$re61 = str_replace('{', '', $dat->keluarhidup);
$re62 = str_replace('}', '', $re61);
$ex63 = explode(",",$re62);
$keluarhidup = "";
foreach ($ex63 as $data) {
$keluarhidup = $data;
}
$re71 = str_replace('{', '', $dat->lakimeningal);
$re72 = str_replace('}', '', $re71);
$ex73 = explode(",",$re72);
$lakimeningal = "";
foreach ($ex73 as $data) {
$datint = (int)$data;
if($datint>=48){
$lamaleb48 ++;
}else{
$lamakur48 ++;
}
}
$re81 = str_replace('{', '', $dat->perempuanmeningal);
$re82 = str_replace('}', '', $re81);
$ex83 = explode(",",$re82);
$perempuanmeningal = "";
foreach ($ex83 as $data) {
$datint = (int)$data;
if($datint>=48){
$pemaleb48 ++;
}else{
$pemakur48 ++;
}
}
$re91 = str_replace('{', '', $dat->pasienawal);
$re92 = str_replace('}', '', $re91);
$ex93 = explode(",",$re92);
$pasienawal = "";
foreach ($ex93 as $data) {
$pasienawal = $data;
}
$pasienakhirbulan = ($pasienawal+$pasienmasuk+$pindahan) - $dipindahkan - $keluarhidup - $lamakur48 - $lamaleb48 - $pemakur48 - $pemaleb48;
$re101 = str_replace('{', '', $dat->jumlahlamadirawat);
$re102 = str_replace('}', '', $re101);
$ex103 = explode(",",$re102);
$jumlahlamadirawat = "";
foreach ($ex103 as $data) {
$jumlahlamadirawat = $data;
}
$datsmf='';
// foreach($datjum as $datajumlah){
// if($datajumlah->msf==$dat->smf){
// $datsmf = $datsmf.$datajumlah->tglmasuk." - ".$datajumlah->keluarrs."</br>";
// }
// }
echo("
<tr>
<td>".$no."</td>
<td>".$dat->smf."</td>
<td>".$jenispelayanan."</td>
<td>".$pasienawal."</td>
<td>".$pasienmasuk."</td>
<td>".$pindahan."</td>
<td>".$dipindahkan."</td>
<td>".$keluarhidup."</td>
<td>".$lamakur48."</td>
<td>".$lamaleb48."</td>
<td>".$pemakur48."</td>
<td>".$pemaleb48."</td>
<td>".$jumlahlamadirawat."</td>
<td>".$pasienakhirbulan."</td>
<td>".$datsmf."</td>
</tr>
");
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>

View File

@@ -0,0 +1,139 @@
<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_simrs_report/icd9" 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>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>No</th>
<th>No MR</th>
<th>Nama</th>
<th>Tanggal Datang</th>
<th>Ruang</th>
<th>Primary ICD 9 - Verif</th>
<th>Sekunder ICD 9 - Verif</th>
<th>ICD 9 - Non Verif</th>
</tr>
</thead>
<tbody>
<?php
$no=1; $idxdaftar=1; $nomr=""; $paricdver=""; $sekicdver=""; $nonicd="";
foreach ($icd9 as $dat) {
if($idxdaftar==1){
$nomr= $dat->nomr;
$idxdaftar= $dat->idxdaftar;
if($dat->icdorder=="1"){
$paricdver=$dat->icdver." - ".$dat->keticdver;
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
}elseif($dat->icdnon!="None"){
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
}
}elseif($idxdaftar==$dat->idxdaftar){
if($dat->icdorder=="1"){
$paricdver=$dat->icdver." - ".$dat->keticdver;
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
$sekicdver=$sekicdver.$dat->icdver." - ".$dat->keticdver." | ";
}elseif($dat->icdnon!="None"){
$nonicd=$nonicd.$dat->icdnon." - ".$dat->keticdnon." | ";
}
}elseif($idxdaftar!=$dat->idxdaftar ){
echo("
<tr>
<td>".$no."</td>
<td>".$nomr."</td>
<td>".$dat->namapasien."</td>
<td>".$dat->tglreg."</td>
<td>".$dat->klinik."</td>
<td>".$paricdver."</td>
<td>".$sekicdver."</td>
<td>".$nonicd."</td>
</tr>
");
$nomr= $dat->nomr;
$idxdaftar= $dat->idxdaftar;
$paricdver=""; $sekicdver=""; $nonicd="";
if($dat->icdorder=="1"){
$paricdver=$dat->icdver." - ".$dat->keticdver;
}elseif($dat->icdorder!="1" && $dat->icdver !=null && $dat->icdnon=="None"){
$sekicdver=$dat->icdver." - ".$dat->keticdver." | ";
}elseif($dat->icdnon!="None"){
$nonicd=$dat->icdnon." - ".$dat->keticdnon." | ";
}
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>