first commit
39
.env.example
Normal file
@@ -0,0 +1,39 @@
|
||||
#Setting Database
|
||||
FARMASI_HOST=10.10.90.68
|
||||
FARMASI_DB_PORT=1433
|
||||
FARMASI_DB_NAME=DBINV
|
||||
FARMASI_DB_USER=sa
|
||||
FARMASI_DB_PASS=Jarwo43
|
||||
|
||||
DATABASE_HOST=localhost
|
||||
DATABASE_NAME=simrs
|
||||
DATABASE_USER=simrs
|
||||
DATABASE_PASS=simrs
|
||||
|
||||
POSTGRE_DB_HOST=localhost:5432
|
||||
POSTGRE_DB_NAME=simrs
|
||||
POSTGRE_DB_USER=simrs
|
||||
POSTGRE_DB_PASS=simrs
|
||||
|
||||
EKLAIM_DB_HOST=localhost:3306
|
||||
EKLAIM_DB_NAME=inacbg5
|
||||
EKLAIM_DB_USER=
|
||||
EKLAIM_DB_PASS=
|
||||
|
||||
PEC_DB_HOST=<pec_ip_address>
|
||||
PEC_DB_PORT=1433
|
||||
PEC_DB_NAME=simrs
|
||||
PEC_DB_USER=simrs
|
||||
PEC_DB_PASS=simrs
|
||||
|
||||
BILLING_DB_URL=http://<someipaddress>:8000/
|
||||
|
||||
RIS_DB_HOST=localhost
|
||||
RIS_DB_PORT=3306
|
||||
RIS_DB_NAME=simrs
|
||||
RIS_DB_USER=simrs
|
||||
RIS_DB_PASS=simrs
|
||||
|
||||
RIS_BEARER=simrsMTC4cYDLY0ZPj41Ugbh1NcCvBfHHrtUP9CBecMJAKAA5zUxgSS5drJJTROkA
|
||||
|
||||
#SETTING Pindah ke menu admin - setup
|
||||
20
.gitignore
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
logs
|
||||
vendor
|
||||
node_modules
|
||||
pdf_batalbayar
|
||||
pdf_deposit
|
||||
pdf_pembayaran
|
||||
pdf_casemix
|
||||
pdf_label
|
||||
pdf_sep
|
||||
pdf_piutang
|
||||
pdf_tracer
|
||||
pdf_kepalales
|
||||
dokumen
|
||||
classified_pinere_file
|
||||
.env
|
||||
.env.local
|
||||
sqlsrv_tes.php
|
||||
postgre_tes.php
|
||||
db_schema
|
||||
config.php
|
||||
8
.gitmodules
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[submodule "library/typeahead.js"]
|
||||
url = https://github.com/twitter/typeahead.js/
|
||||
[submodule "library/select2"]
|
||||
url = https://github.com/select2/select2
|
||||
[submodule "library/bootstrap-datepicker"]
|
||||
url = https://github.com/uxsolutions/bootstrap-datepicker
|
||||
[submodule "library/Inputmask"]
|
||||
url = https://github.com/RobinHerbots/Inputmask
|
||||
21
.htaccess
Normal file
@@ -0,0 +1,21 @@
|
||||
php_flag display_errors off
|
||||
|
||||
php_value memory_limit 2048M
|
||||
php_value max_input_vars 20000
|
||||
|
||||
Header always unset X-Frame-Options
|
||||
|
||||
# Disable directory browsing
|
||||
Options -Indexes
|
||||
|
||||
<FilesMatch "^\.">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
<Files *.txt>
|
||||
ForceType applicaton/octet-stream
|
||||
</Files>
|
||||
|
||||
<Files composer.*>
|
||||
Require all denied
|
||||
</Files>
|
||||
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
6
.idea/misc.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="WebPackConfiguration">
|
||||
<option name="mode" value="DISABLED" />
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/simrs.iml" filepath="$PROJECT_DIR$/.idea/simrs.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
60
.idea/php.xml
generated
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="PhpIncludePathManager">
|
||||
<include_path>
|
||||
<path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
|
||||
<path value="$PROJECT_DIR$/vendor/ezyang/htmlpurifier" />
|
||||
<path value="$PROJECT_DIR$/vendor/vlucas/phpdotenv" />
|
||||
<path value="$PROJECT_DIR$/vendor/picqer/php-barcode-generator" />
|
||||
<path value="$PROJECT_DIR$/vendor/myclabs/php-enum" />
|
||||
<path value="$PROJECT_DIR$/vendor/monolog/monolog" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/console" />
|
||||
<path value="$PROJECT_DIR$/vendor/myclabs/deep-copy" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/service-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php73" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/filesystem" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php81" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/translation" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/config" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||
<path value="$PROJECT_DIR$/vendor/setasign/fpdi" />
|
||||
<path value="$PROJECT_DIR$/vendor/markbaker/complex" />
|
||||
<path value="$PROJECT_DIR$/vendor/maennchen/zipstream-php" />
|
||||
<path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
|
||||
<path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
|
||||
<path value="$PROJECT_DIR$/vendor/ralouphie/getallheaders" />
|
||||
<path value="$PROJECT_DIR$/vendor/phpoffice/phpspreadsheet" />
|
||||
<path value="$PROJECT_DIR$/vendor/guzzlehttp/guzzle" />
|
||||
<path value="$PROJECT_DIR$/vendor/robmorgan/phinx" />
|
||||
<path value="$PROJECT_DIR$/vendor/guzzlehttp/promises" />
|
||||
<path value="$PROJECT_DIR$/vendor/guzzlehttp/psr7" />
|
||||
<path value="$PROJECT_DIR$/vendor/sabberworm/php-css-parser" />
|
||||
<path value="$PROJECT_DIR$/vendor/verot/class.upload.php" />
|
||||
<path value="$PROJECT_DIR$/vendor/koolphp/koolreport" />
|
||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/http-client" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/http-message" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/http-factory" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/log" />
|
||||
<path value="$PROJECT_DIR$/vendor/twig/twig" />
|
||||
<path value="$PROJECT_DIR$/vendor/mpdf/mpdf" />
|
||||
<path value="$PROJECT_DIR$/vendor/phenx/php-svg-lib" />
|
||||
<path value="$PROJECT_DIR$/vendor/khill/lavacharts" />
|
||||
<path value="$PROJECT_DIR$/vendor/dompdf/dompdf" />
|
||||
<path value="$PROJECT_DIR$/vendor/phenx/php-font-lib" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration">
|
||||
<option name="suggestChangeDefaultLanguageLevel" value="false" />
|
||||
</component>
|
||||
</project>
|
||||
61
.idea/simrs.iml
generated
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/dompdf/dompdf" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/ezyang/htmlpurifier" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/guzzle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/promises" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/psr7" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/khill/lavacharts" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/koolphp/koolreport" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/maennchen/zipstream-php" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/markbaker/complex" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/markbaker/matrix" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/monolog/monolog" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/mpdf/mpdf" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/myclabs/deep-copy" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/myclabs/php-enum" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/nesbot/carbon" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/phenx/php-font-lib" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/phenx/php-svg-lib" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/phpoffice/phpspreadsheet" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/picqer/php-barcode-generator" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-client" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-factory" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-message" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/simple-cache" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/ralouphie/getallheaders" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/robmorgan/phinx" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sabberworm/php-css-parser" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/setasign/fpdi" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/config" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/console" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/deprecation-contracts" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/filesystem" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-ctype" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-idn" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-normalizer" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php72" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php73" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php80" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php81" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/service-contracts" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation-contracts" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/yaml" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/twig/twig" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/verot/class.upload.php" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/vlucas/phpdotenv" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
53
ExportToExcel.class.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*Author: Raju Mazumder
|
||||
email:rajuniit@gmail.com
|
||||
Class:A simple class to export mysql query and whole html and php page to excel,doc etc*/
|
||||
|
||||
|
||||
|
||||
class ExportToExcel
|
||||
{
|
||||
|
||||
function exportWithPage($php_page,$excel_file_name)
|
||||
{
|
||||
$this->setHeader($excel_file_name);
|
||||
require_once "$php_page";
|
||||
|
||||
}
|
||||
function setHeader($excel_file_name)//this function used to set the header variable
|
||||
{
|
||||
header("Content-type: text/csv");
|
||||
header("Content-type: application/octet-stream");//A MIME attachment with the content type "application/octet-stream" is a binary file.
|
||||
header("Content-type: application/x-msdownload");
|
||||
header('Content-Type: application/vnd.ms-excel; charset=UTF-8');
|
||||
header("Content-type: application/x-msdownload");
|
||||
//Typically, it will be an application or a document that must be opened in an application, such as a spreadsheet or word processor.
|
||||
header("Content-Disposition: attachment; filename=$excel_file_name");//with this extension of file name you tell what kind of file it is.
|
||||
header("Pragma: no-cache");//Prevent Caching
|
||||
header("Expires: 0");//Expires and 0 mean that the browser will not cache the page on your hard drive
|
||||
|
||||
|
||||
|
||||
}
|
||||
function exportWithQuery($qry,$excel_file_name,$conn)//to export with query
|
||||
{
|
||||
$tmprst = $db->query($qry,$conn);
|
||||
$header="<center><table border=1px><th>Personal Details</th>";
|
||||
$num_field=mysqli_num_fields($tmprst);
|
||||
foreach($tmprst,MYSQL_BOTH->fetchAll() as $row)
|
||||
{
|
||||
$body.="<tr>";
|
||||
for($i=0;$i<$num_field;$i++)
|
||||
{
|
||||
$body.="<td>".$row[$i]."</td>";
|
||||
}
|
||||
$body.="</tr>";
|
||||
}
|
||||
|
||||
$this->setHeader($excel_file_name);
|
||||
echo $header.$body."</table";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
46
ServiceWorker.js
Normal file
@@ -0,0 +1,46 @@
|
||||
// urlB64ToUint8Array is a magic function that will encode the base64 public key
|
||||
// to Array buffer which is needed by the subscription option
|
||||
const urlB64ToUint8Array = base64String => {
|
||||
const padding = '='.repeat((4 - (base64String.length % 4)) % 4)
|
||||
const base64 = (base64String + padding).replace(/\-/g, '+').replace(/_/g, '/')
|
||||
const rawData = atob(base64)
|
||||
const outputArray = new Uint8Array(rawData.length)
|
||||
for (let i = 0; i < rawData.length; ++i) {
|
||||
outputArray[i] = rawData.charCodeAt(i)
|
||||
}
|
||||
return outputArray
|
||||
}
|
||||
|
||||
|
||||
// saveSubscription saves the subscription to the backend
|
||||
const saveSubscription = async subscription => {
|
||||
const SERVER_URL = 'http://localhost:4000/save-subscription'
|
||||
const response = await fetch(SERVER_URL, {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(subscription),
|
||||
})
|
||||
return response.json()
|
||||
}
|
||||
|
||||
self.addEventListener('activate', async () => {
|
||||
// This will be called only once when the service worker is activated.
|
||||
try {
|
||||
const Key = urlB64ToUint8Array('BGAFAVqhKY9I5HVQcPsILjCntFlsZwZshFM-OueLLhhkSfp7i0lP0rj41Udja1Vka88A7w2Bw838EjFHo42xemM')
|
||||
const options = { applicationServerKey : Key, userVisibleOnly: true }
|
||||
const subscription = await self.registration.pushManager.subscribe(options)
|
||||
const response = await saveSubscription(subscription)
|
||||
} catch (err) {
|
||||
console.log('Error', err)
|
||||
}
|
||||
})
|
||||
|
||||
self.addEventListener('push', function(event) {
|
||||
if (event.data) {
|
||||
console.log('Push event!! ', event.data.text())
|
||||
} else {
|
||||
console.log('Push event but no data')
|
||||
}
|
||||
})
|
||||
903
ambildata.php
Normal file
@@ -0,0 +1,903 @@
|
||||
<?php
|
||||
include( 'core/main.php' );
|
||||
|
||||
if ($_POST) {
|
||||
$tgl = date( 'Y-m-d' );
|
||||
extract( $_POST );
|
||||
|
||||
if ($reqdata == 'masuk') {
|
||||
echo 'OK';
|
||||
}
|
||||
|
||||
if (( $reqdata == 'propinsi' && !empty( $nama ) )) {
|
||||
$s ='SELECT idprovinsi from m_propinsi where namaprovinsi=\'' . $nama . '\'';
|
||||
$h = $db->query( $s );
|
||||
$r = $h->fetchAll()[0];
|
||||
$sql ='SELECT nama_kota as kabupaten from m_kota where idprovinsi=\'' . $r['idprovinsi'] . '\' order by nama_kota';
|
||||
$hasil = $db->query( $sql );
|
||||
|
||||
foreach($hasil->fetchAll() as $row) {
|
||||
extract( $row );
|
||||
echo'<option>' . $kabupaten . '</option> ';
|
||||
}
|
||||
}
|
||||
|
||||
///////////////// AWAL RL2 ////////////////////
|
||||
if ($reqdata == 'save_rl2') {
|
||||
$sql3 = $db->query('SELECT code_list as kode from m_rl2 where description=\'' . $tenaga . '\'' );
|
||||
$r3 = $sql3->fetchAll()[0];
|
||||
extract( $r3 );
|
||||
$sql = $db->query('SELECT code_list from rl2 where kode_rs=\'' . $koders . '\' and code_list=\'' . $kode . '\' and smt=\'' . $smt . '\' and tahun=\'' . $tahun . '\'' );
|
||||
$r = $sql->numRows();
|
||||
|
||||
if (1 <= $r) {
|
||||
if (!empty( $kode )) {
|
||||
$sql = $db->query('update RL2 set tetap=\'' . $tetap . '\',tidak_tetap=\'' . $t_tetap . '\',tahun=\'' . $tahun . '\' where code_list=\'' . $kode . '\' and tahun=\'' . $tahun1 . '\' and smt=\'' . $smt1 . '\'' );
|
||||
} else {
|
||||
echo 'Data Tenaga ' . $tenaga . ' Sudah ada, silahkan klik icon update pada tabel untuk Update Data';
|
||||
}
|
||||
} else {
|
||||
$sql = $db->query('INSERT INTO rl2 (code_list,tetap,tidak_tetap,kode_rs,smt,tahun) values(\'' . $kode . '\',\'' . $tetap . '\',\'' . $t_tetap . '\',\'' . $koders . '\',\'' . $smt . '\',\'' . $tahun . '\')' );
|
||||
echo 'Data Tenaga ' . $tenaga . ' Sudah Tersimpan';
|
||||
}
|
||||
|
||||
$sql2 = $db->query('SELECT a.code_list,a.tetap,a.tidak_tetap,a.kode_rs,a.smt,a.tahun,b.description from rl2 a left join m_rl2 b on b.code_list=a.code_list where kode_rs=\'' . $koders . '\'' );
|
||||
echo '<table id=\'tbl_reg\'><tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th>Kode</th><th>Tenaga</th><th>Jumlah Tenaga</th><th>Tetap</th><th>Tidak Tetap</th><th>Semester</th><th>Tahun</th><th>-</th>
|
||||
</tr>';
|
||||
|
||||
foreach ($sql2->fetchAll() as $row) {
|
||||
extract( $row );
|
||||
$total = $tetap + $tidak_tetap;
|
||||
|
||||
if ($smt == 1) {
|
||||
$semt = 'I';
|
||||
} else {
|
||||
$semt = 'II';
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr class=\'tr_s\'><td>' . $code_list . '</td><td>' . $description . '</td><td align=\'right\'>' . $total . '</td><td align=\'right\'>' . $tetap . '</td><td align=\'right\'>' . $tidak_tetap . '</td><td align=\'center\'>' . $semt . '</td><td align=\'center\'>' . $tahun . '</td><td align=\'center\'><a href=\'index.php?link=rl2&id=' . $code_list . '&smt=' . $smt . '&koders=' . $kode_rs . '&tahun=' . $tahun . '\'><img src=\'img/icon_edit_new.gif\' border=0></a> <a href=\'rm/hapus_rl2.php?id=' . $code_list . '&smt=' . $smt . '&koders=' . $kode_rs . '&tahun=' . $tahun . '\'><img src=\'img/icon_delete.gif\' border=0></a></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
$sql_s = $db->query('SELECT SUM(tetap) as tetap1, SUM(tidak_tetap) as t_tetap1 from rl2 where kode_rs=\'' . $koders . '\' and smt=\'1\'' );
|
||||
$r_s = $sql_s->fetchAll()[0];
|
||||
extract( $r_s );
|
||||
$total_1 = $tetap1 + $t_tetap1;
|
||||
$sql_s2 = $db->query('SELECT SUM(tetap) as tetap2, SUM(tidak_tetap) as t_tetap2 from rl2 where kode_rs=\'' . $koders . '\' and smt=\'2\'' );
|
||||
$r_s2 = $sql_s2->fetchAll()[0];
|
||||
extract( $r_s2 );
|
||||
$total_2 = $tetap2 + $t_tetap2;
|
||||
echo'<tr id=\'tr_d\'>
|
||||
<td colspan=2>Jumlah Tenaga Semester I : </td><td class=\'td_t\' align=\'right\'>' . $total_1 . '</td><td class=\'td_t\' align=\'right\'>' . $tetap1 . '</td><td class=\'td_t\' align=\'right\'>' . $t_tetap1 . '</td><td colspan=3> </td>
|
||||
</tr>
|
||||
<tr id=\'tr_d\'>
|
||||
<td colspan=2>Jumlah Tenaga Semester II : </td><td class=\'td_t\' align=\'right\'>' . $total_2 . '</td><td class=\'td_t\' align=\'right\'>' . $tetap2 . '</td><td class=\'td_t\' align=\'right\'>' . $t_tetap2 . '</td><td colspan=3> </td>
|
||||
</tr>
|
||||
';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
if ($reqdata == 'pencarian_rl2') {
|
||||
if (empty( $nama )) {
|
||||
$sql = $db->query('SELECT a.code_list,a.tetap,a.tidak_tetap,a.kode_rs,a.smt,a.tahun,b.description from rl2 a left join m_rl2 b on b.code_list=a.code_list where a.kode_rs=\'' . $koders . '\'' );;
|
||||
} else {
|
||||
if (!empty( $nama )) {
|
||||
$sql3 = $db->query('SELECT code_list as kode from m_rl2 where description=\'' . $nama . '\'' );;
|
||||
$r3 = $sql3->fetchAll()[0];
|
||||
extract( $r3 );
|
||||
$sql = $db->query('SELECT a.code_list,a.tetap,a.tidak_tetap,a.kode_rs,a.smt,a.tahun,b.description from rl2 a left join m_rl2 b on b.code_list=a.code_list where a.code_list=\'' . $kode . '\' and a.kode_rs=\'' . $koders . '\'' );
|
||||
}
|
||||
}
|
||||
|
||||
echo '
|
||||
<table id=\'tbl_reg\'><tr id=\'tr_s\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th>Kode</th><th>Tenaga</th><th>Jumlah Tenaga</th><th>Tetap</th><th>Tidak Tetap</th><th>Semester</th><th>Tahun</th><th>-</th>
|
||||
</tr>';
|
||||
|
||||
foreach ($sql->fetchAll() as $row) {
|
||||
extract( $row );
|
||||
$total = $tetap + $tidak_tetap;
|
||||
|
||||
if ($smt == 1) {
|
||||
$semt = 'I';
|
||||
} else {
|
||||
$semt = 'II';
|
||||
}
|
||||
|
||||
echo'
|
||||
<tr class=\'tr_s\' style=\'border-bottom:1px solid grey;\'><td style=\'border-left:1px solid grey;\'>' . $code_list . '</td><td style=\'border-left:1px solid grey;\'>' . $description . '</td><td align=\'right\' style=\'border-left:1px solid grey;\'>' . $total . '</td><td align=\'right\' style=\'border-left:1px solid grey;\'>' . $tetap . '</td><td align=\'right\' style=\'border-left:1px solid grey;\'>' . $tidak_tetap . '</td><td align=\'center\' style=\'border-left:1px solid grey;\'>' . $semt . '</td><td align=\'center\' style=\'border-left:1px solid grey;\'>' . $tahun . '</td><td align=\'center\' style=\'border-left:1px solid grey;\'><a href=\'index.php?link=rl2&id=' . $code_list . '&smt=' . $smt . '&koders=' . $kode_rs . '&tahun=' . $tahun . '\'><img src=\'img/icon_edit_new.gif\' border=0></a> <a href=\'rm/hapus_rl2.php?id=' . $code_list . '&smt=' . $smt . '&koders=' . $kode_rs . '&tahun=' . $tahun . '\'><img src=\'img/icon_delete.gif\' border=0></a></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
$sql_s = $db->query('SELECT SUM(tetap) as tetap1, SUM(tidak_tetap) as t_tetap1 from rl2 where kode_rs=\'' . $koders . '\' and smt=\'1\'' );
|
||||
$r_s = $sql_s->fetchAll()[0];
|
||||
extract( $r_s );
|
||||
$total_1 = $tetap1 + $t_tetap1;
|
||||
$sql_s2 = $db->query('SELECT SUM(tetap) as tetap2, SUM(tidak_tetap) as t_tetap2 from rl2 where kode_rs=\'' . $koders . '\' and smt=\'2\'' );
|
||||
$r_s2 = $sql_s2->fetchAll()[0];
|
||||
extract( $r_s2 );
|
||||
$total_2 = $tetap2 + $t_tetap2;
|
||||
echo'<tr id=\'tr_d\'>
|
||||
<td colspan=2>Jumlah Tenaga Semester I : </td><td class=\'td_t\' align=\'right\'>' . $total_1 . '</td><td class=\'td_t\' align=\'right\'>' . $tetap1 . '</td><td class=\'td_t\' align=\'right\'>' . $t_tetap1 . '</td><td colspan=3> </td>
|
||||
</tr>
|
||||
<tr id=\'tr_d\'>
|
||||
<td colspan=2>Jumlah Tenaga Semester II : </td><td class=\'td_t\' align=\'right\'>' . $total_2 . '</td><td class=\'td_t\' align=\'right\'>' . $tetap2 . '</td><td class=\'td_t\' align=\'right\'>' . $t_tetap2 . '</td><td colspan=3> </td>
|
||||
</tr>
|
||||
';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
if ($reqdata == 'xml_rl2') {
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$sql2 = $db->query('SELECT a.kode_rs,a.code_list,a.tetap,a.tidak_tetap,a.smt,a.tahun from rl2 a left join m_rl2 b on b.code_list=a.code_list where kode_rs=\'' . $koders . '\' order by a.code_list Asc' );
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$sql2 = $db->query('SELECT a.kode_rs,a.code_list,a.tetap,a.tidak_tetap,a.smt,a.tahun from rl2 a left join m_rl2 b on b.code_list=a.code_list where kode_rs=\'' . $koders . '\' and tahun=\'' . $tahun . '\' order by a.code_list Asc' );
|
||||
} else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$sql2 = $db->query('SELECT a.kode_rs,a.code_list,a.tetap,a.tidak_tetap,a.smt,a.tahun from rl2 a left join m_rl2 b on b.code_list=a.code_list where kode_rs=\'' . $koders . '\' and smt=\'' . $bln . '\' order by a.code_list Asc' );
|
||||
} else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$sql2 = $db->query('SELECT a.kode_rs,a.code_list,a.tetap,a.tidak_tetap,a.smt,a.tahun from rl2 a left join m_rl2 b on b.code_list=a.code_list where kode_rs=\'' . $koders . '\' and tahun=\'' . $tahun . '\' and smt=\'' . $bln . '\' order by a.code_list Asc' );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$xml = new SimpleXMLElement( '<xml/>' );
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
$data = $xml->addChild( 'data' );
|
||||
$data->addChild( 'code', $code_list );
|
||||
$data->addChild( 'tetap', $tetap );
|
||||
$data->addChild( 'tidak_tetap', $tidak_tetap );
|
||||
$data->addChild( 'smt', $smt );
|
||||
$data->addChild( 'tahun', $tahun );
|
||||
}
|
||||
|
||||
$fp = fopen( 'xml/rl2_' . $bln . '_' . $tahun . '.xml', 'wb' );
|
||||
fwrite( $fp, $xml->asXML( ) );
|
||||
fclose( $fp );
|
||||
$file = 'rl2_' . $bln . '_' . $tahun . '.xml';
|
||||
echo'<a href=\'download.php?xml=' . $file . '\'>' . $file . '</a>';
|
||||
}
|
||||
//////////////////////////AKHIR RL2/////////////
|
||||
|
||||
//////////////AWAL BATAS RL41////////////////
|
||||
if ($reqdata == 'cari_rl41') {
|
||||
echo '
|
||||
<table id=\'tbl_reg\'><tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>No. DTD</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>No. Daftar Terperinci</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Golongan Sebab Penyakit</th>
|
||||
<th colspan=\'18\' style=\'border:1px solid grey;\'>Jumlah Pasien Hidup/Mati Menurut Umur dan Jenis Kelamin</th>
|
||||
<th colspan=\'2\' rowspan=\'2\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar (Hidup & Mati) Menurut Jenis Kelamin</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar (Hidup & Mati)</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar Mati</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Bulan</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Tahun</th>
|
||||
|
||||
</tr>
|
||||
<tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 0-6hr </th><th style=\'border:1px solid grey;\' colspan=\'2\'> 7-28hr </th><th style=\'border:1px solid grey;\' colspan=\'2\'>29hr-<1th</th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 1-4th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 5-14th </th><th style=\'border:1px solid grey;\' colspan=\'2\'> 15-24th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 25-44th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 45-64th</th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> >65th</th>
|
||||
</tr>
|
||||
<tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
</tr>';
|
||||
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TGLMASUK::varchar(10) LIKE '".date('Y')."-%' ";
|
||||
$tanggal2 = " AND a.TGLMASUK::varchar(10) LIKE '%-".date('m')."-%' ";
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TGLMASUK::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = "";
|
||||
}else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = "";
|
||||
$tanggal2 = " AND a.TGLMASUK::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TGLMASUK::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = " AND a.TGLMASUK::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$sql2 = $db->query("SELECT DISTINCT b2.icd_code
|
||||
FROM t_resumepulang a
|
||||
LEFT JOIN t_icd b ON a.idadmission=b.idxdaftar
|
||||
join icd b2 on b.icd = b2.icd_code
|
||||
JOIN t_admission c ON a.idadmission=c.id_admission
|
||||
JOIN m_pasien d ON d.NOMR=a.NOMR
|
||||
WHERE b.status_rajal = 0 and $tanggal1 $tanggal2 ");
|
||||
|
||||
//SELECT ? FROM ?
|
||||
$kondisi_SELECT = " a.ICDKELUAR FROM t_resumepulang a
|
||||
LEFT JOIN icd b ON a.ICDKELUAR=b.icd_code
|
||||
INNER JOIN t_admission c ON a.IDADMISSION=c.id_admission
|
||||
INNER JOIN m_pasien d ON d.NOMR=a.NOMR ";
|
||||
//WHERE NIP STATUS JENIS KELAMIN L
|
||||
$nip_status_jkL = "AND a.NIP='rekammedik' AND a.JENISKELAMIN='L' ";
|
||||
//WHERE NIP STATUS JENIS KELAMIN P
|
||||
$nip_status_jkP = "AND a.NIP='rekammedik' AND a.JENISKELAMIN='P' ";
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
$bln = m_to_id($bln);
|
||||
|
||||
echo'<tr class=\'tr_s\'>
|
||||
<td style=\'border:1px solid grey;\'>'; $sqldtd = $db->query("SELECT dtd FROM icd WHERE icd_code ='$icd_code' ")->fetchAll()[0];extract( $sqldtd );echo $dtd; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $icd_code . '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $sqlsebabpenyakit = $db->query("SELECT sebabpenyakit FROM icd WHERE icd_code ='$icd_code' ")->fetchAll()[0];extract( $sqlsebabpenyakit );echo $sebabpenyakit; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml6L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml6P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml28L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml28P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml1L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml1P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml4L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml4P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml14L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml14P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml24L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml24P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml44L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml44P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml65_L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64_L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml65_P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64_P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTL = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jmlTL; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTP = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jmlTP; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlT = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND a.NIP='rekammedik' $tanggal1 $tanggal2 ")->numRows(); echo $jmlT; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTM = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND a.NIP='rekammedik' AND a.STATUSPULANG ='7' $tanggal1 $tanggal2 ")->numRows(); echo $jmlTM; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $bln . '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $tahun . '</td>';
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
echo'<tr class=\'tr_s\'>
|
||||
<td style=\'border:1px solid grey;\' colspan=3>Total Bulan ' . $bln . ' Tahun ' . $tahun . '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('d.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml6L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6P = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('d.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml6P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('d.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml28L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28p = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('d.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml28P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('d.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml1L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1P = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('d.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml1P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml4L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml4P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml14L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml14P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml24L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml24P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml44L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml44P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64_L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('d.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64_P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTL = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND a.JENISKELAMIN='L' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTL; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTP = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND a.JENISKELAMIN='P' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTP; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlST = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' $tanggal1 $tanggal2 ")->numRows(); echo $jmlST; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlST = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND a.STATUSPULANG ='7' $tanggal1 $tanggal2 ")->numRows(); echo $jmlST; echo '</td>
|
||||
<td style=\'border:1px solid grey;\' colspan=3 align=\'center\'>-</td>
|
||||
';
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($reqdata == 'xml_rl41') {
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TGLMASUK::varchar(10) LIKE '".date('Y')."-%' ";
|
||||
$tanggal2 = " AND a.TGLMASUK::varchar(10) LIKE '%-".date('m')."-%' ";
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TGLMASUK::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = "";
|
||||
}else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = "";
|
||||
$tanggal2 = " AND a.TGLMASUK::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TGLMASUK::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = " AND a.TGLMASUK::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$sql2 = $db->query("SELECT DISTINCT b.icd_code
|
||||
FROM t_resumepulang a
|
||||
LEFT JOIN icd b ON a.ICDKELUAR=b.icd_code
|
||||
INNER JOIN t_admission c ON a.IDADMISSION=c.id_admission
|
||||
INNER JOIN m_pasien d ON d.NOMR=a.NOMR
|
||||
WHERE
|
||||
a.NIP='rekammedik' $tanggal1 $tanggal2 ");
|
||||
|
||||
//SELECT ? FROM ?
|
||||
$kondisi_SELECT = " a.ICDKELUAR FROM t_resumepulang a
|
||||
LEFT JOIN icd b ON a.ICDKELUAR=b.icd_code
|
||||
INNER JOIN t_admission c ON a.IDADMISSION=c.id_admission
|
||||
INNER JOIN m_pasien d ON d.NOMR=a.NOMR ";
|
||||
//WHERE NIP STATUS JENIS KELAMIN L
|
||||
$nip_status_jkL = "AND a.NIP='rekammedik' AND a.JENISKELAMIN='L' ";
|
||||
//WHERE NIP STATUS JENIS KELAMIN P
|
||||
$nip_status_jkP = "AND a.NIP='rekammedik' AND a.JENISKELAMIN='P' ";
|
||||
|
||||
$xml = new SimpleXMLElement( '<xml/>' );
|
||||
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
|
||||
$jml6L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml6P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml28L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml28P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('d.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml1L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml1P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('d.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml4L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml4P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml14L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml14P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml24L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml24P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml44L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml44P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('d.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64_L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64_P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('d.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
|
||||
$data = $xml->addChild( 'data' );
|
||||
$data->addChild( 'code', $icd_code );
|
||||
$data->addChild( 'j_1_6hr_L', $jml6L );
|
||||
$data->addChild( 'j_1_6hr_P', $jml6P );
|
||||
$data->addChild( 'j_7_28hr_L', $jml28L );
|
||||
$data->addChild( 'j_7_28hr_P', $jml28P );
|
||||
$data->addChild( 'j_28hr_1th_L', $jml1L );
|
||||
$data->addChild( 'j_28hr_1th_P', $jml1P );
|
||||
$data->addChild( 'j_1_4th_L', $jml4L );
|
||||
$data->addChild( 'j_1_4th_P', $jml4P );
|
||||
$data->addChild( 'j_5_14th_L', $jml14L );
|
||||
$data->addChild( 'j_5_14th_P', $jml14P );
|
||||
$data->addChild( 'j_15_24th_L', $jml24L );
|
||||
$data->addChild( 'j_15_24th_P', $jml24P );
|
||||
$data->addChild( 'j_25_44th_L', $jml44L );
|
||||
$data->addChild( 'j_25_44th_P', $jml44P );
|
||||
$data->addChild( 'j_45_64th_L', $jml64L );
|
||||
$data->addChild( 'j_45_64th_P', $jml64P );
|
||||
$data->addChild( 'j_65th_L', $jml64_L );
|
||||
$data->addChild( 'j_65th_P', $jml64_P );
|
||||
$data->addChild( 'bulan', $bln );
|
||||
$data->addChild( 'tahun', $tahun );
|
||||
}
|
||||
|
||||
|
||||
$fp = fopen( 'xml/rl41_' . $bln . '_' . $tahun . '.xml', 'wb' );
|
||||
fwrite( $fp, $xml->asXML( ) );
|
||||
fclose( $fp );
|
||||
$file = 'rl41_' . $bln . '_' . $tahun . '.xml';
|
||||
echo "<div id='file_xml'>";
|
||||
echo'<a href=\'download.php?xml=' . $file . '\'>' . $file . '</a>';
|
||||
echo ' | <input type=\'button\' id=\'batal\' value=\'Batal\' onClick=\'cancel()\'>';
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
/////////////AKHIR BATAS RL41///////////
|
||||
|
||||
|
||||
///////////////////////AWAL BATAS RL42////////////////////
|
||||
|
||||
if ($reqdata == 'cari_rl42') {
|
||||
echo '
|
||||
<table id=\'tbl_reg\'><tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>No. DTD</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>No. Daftar Terperinci</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Golongan Sebab Penyakit</th>
|
||||
<th colspan=\'18\' style=\'border:1px solid grey;\'>Jumlah Pasien Hidup/Mati Menurut Umur dan Jenis Kelamin</th>
|
||||
<th colspan=\'2\' rowspan=\'2\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar (Hidup & Mati) Menurut Jenis Kelamin</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar (Hidup & Mati)</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar Mati</th>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>Bulan</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Tahun</th>
|
||||
|
||||
</tr>
|
||||
<tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 0-6hr </th><th style=\'border:1px solid grey;\' colspan=\'2\'> 7-28hr </th><th style=\'border:1px solid grey;\' colspan=\'2\'>29hr-<1th</th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 1-4th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 5-14th </th><th style=\'border:1px solid grey;\' colspan=\'2\'> 15-24th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 25-44th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'>45-64th</th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'>>65th</th>
|
||||
</tr>
|
||||
<tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
</tr>';
|
||||
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".date('Y')."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".date('m')."-%' ";
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = "";
|
||||
}else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = "";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo $nip_jk_status;
|
||||
$sql2 = $db->query("SELECT DISTINCT b2.icd_code
|
||||
FROM t_diagnosadanterapi a
|
||||
LEFT JOIN t_icd b ON a.idxdaftar=b.idxdaftar
|
||||
JOIN icd b2 on b.icd = b2.icd_code
|
||||
JOIN m_pasien c ON a.NOMR=c.NOMR
|
||||
JOIN t_pendaftaran d ON a.NOMR=d.NOMR
|
||||
WHERE b.status_rajal = 1 and d.STATUS !='0' $tanggal1 $tanggal2 ");
|
||||
|
||||
//SELECT ? FROM ?
|
||||
$kondisi_SELECT = "b2.icd_code FROM t_diagnosadanterapi a
|
||||
LEFT JOIN t_icd b ON a.idxdaftar=b.idxdaftar
|
||||
JOIN icd b2 ON b.icd=b2.icd_code
|
||||
JOIN m_pasien c ON a.NOMR=c.NOMR
|
||||
JOIN t_pendaftaran d ON a.NOMR=d.NOMR";
|
||||
//WHERE NIP STATUS JENIS KELAMIN L
|
||||
$nip_status_jkL = "AND b.status_rajal = 1 and c.JENISKELAMIN='L' AND d.STATUS!='0'";
|
||||
//WHERE NIP STATUS JENIS KELAMIN P
|
||||
$nip_status_jkP = "AND b.status_rajal = 1 and c.JENISKELAMIN='P' AND d.STATUS!='0'";
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
|
||||
$bln = m_to_id($bln);
|
||||
|
||||
echo'<tr class=\'tr_s\'>
|
||||
<td style=\'border:1px solid grey;\'>'; $sqldtd = $db->query("SELECT dtd FROM icd WHERE icd_code ='$icd_code' ")->fetchAll()[0];extract( $sqldtd );echo $dtd; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $icd_code . '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $sqlsebabpenyakit = $db->query("SELECT sebabpenyakit FROM icd WHERE icd_code ='$icd_code' ")->fetchAll()[0];extract( $sqlsebabpenyakit );echo $sebabpenyakit; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml6L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml6P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml28L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml28P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml1L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml1P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml4L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml4P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml14L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml14P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml24L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml24P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml44L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml44P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_L = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64_L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_P = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64_P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTL = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jmlTL; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTP = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jmlTP; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlT = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND a.NIP='rekammedik' AND d.STATUS!='0' $tanggal1 $tanggal2 ")->numRows(); echo $jmlT; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTM = $db->query("SELECT $kondisi_SELECT WHERE b2.icd_code='$icd_code' AND a.NIP='rekammedik' AND d.STATUS='8' $tanggal1 $tanggal2 ")->numRows(); echo $jmlTM; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $bln . '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $tahun . '</td>';
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
echo'<tr class=\'tr_s\'>
|
||||
<td style=\'border:1px solid grey;\' colspan=3>Total Bulan ' . $bln . ' Tahun ' . $tahun . '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml6L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6P = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml6P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml28L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28p = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml28P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml1L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1P = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml1P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml4L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml4P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml14L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml14P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml24L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml24P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml44L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml44P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64_L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64_P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTL = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS!='0' AND c.JENISKELAMIN='L' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTL; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTP = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS!='0' AND c.JENISKELAMIN='P' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTP; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlST = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS!='0' $tanggal1 $tanggal2 ")->numRows(); echo $jmlST; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTM = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS='8' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTM; echo '</td>
|
||||
<td style=\'border:1px solid grey;\' colspan=3 align=\'center\'>-</td>
|
||||
';
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
if ($reqdata == 'xml_rl42') {
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".date('Y')."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".date('m')."-%' ";
|
||||
$bln = date('m');
|
||||
$tahun = date('Y');
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = "";
|
||||
//$bln = date('m');
|
||||
}else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = "";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
$tahun = date('Y');
|
||||
}else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$sql2 = $db->query("SELECT DISTINCT b.icd_code
|
||||
FROM t_diagnosadanterapi a
|
||||
LEFT JOIN icd b ON a.ICD_CODE=b.icd_code
|
||||
INNER JOIN m_pasien c ON a.NOMR=c.NOMR
|
||||
INNER JOIN t_pendaftaran d ON a.NOMR=d.NOMR
|
||||
WHERE
|
||||
a.NIP='rekammedik' AND
|
||||
d.STATUS!='0' $tanggal1 $tanggal2 ");
|
||||
|
||||
|
||||
//SELECT ? FROM ?
|
||||
$kondisi_SELECT = "a.ICD_CODE FROM t_diagnosadanterapi a LEFT JOIN icd b ON a.ICD_CODE=b.icd_code INNER JOIN m_pasien c ON a.NOMR=c.NOMR INNER JOIN t_pendaftaran d ON a.NOMR=d.NOMR";
|
||||
//WHERE NIP STATUS JENIS KELAMIN L
|
||||
$nip_status_jkL = "AND a.NIP='rekammedik' AND c.JENISKELAMIN='L' AND d.STATUS!='0'";
|
||||
//WHERE NIP STATUS JENIS KELAMIN P
|
||||
$nip_status_jkP = "AND a.NIP='rekammedik' AND c.JENISKELAMIN='P' AND d.STATUS!='0'";
|
||||
|
||||
$xml = new SimpleXMLElement ( '<xml/>' );
|
||||
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
$date1 = new DateTime(date('Y-m-d', strtotime($TGLLAHIR)));
|
||||
$date2 = new DateTime(date('Y-m-d'));
|
||||
$interval = $date1->diff($date2);
|
||||
|
||||
$jml6L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml6P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml28L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml28P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml1L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml1P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml4L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml4P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml14L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml14P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml24L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml24P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml44L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml44P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64_L = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64_P = $db->query("SELECT $kondisi_SELECT WHERE a.ICDKELUAR='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
|
||||
$data = $xml->addChild( 'data' );
|
||||
$data->addChild( 'code', $icd_code );
|
||||
$data->addChild( 'j_1_6hr_L', $jml6L );
|
||||
$data->addChild( 'j_1_6hr_P', $jml6P );
|
||||
$data->addChild( 'j_7_28hr_L', $jml28L );
|
||||
$data->addChild( 'j_7_28hr_P', $jml28P );
|
||||
$data->addChild( 'j_28hr_1th_L', $jml1L );
|
||||
$data->addChild( 'j_28hr_1th_P', $jml1P );
|
||||
$data->addChild( 'j_1_4th_L', $jml4L );
|
||||
$data->addChild( 'j_1_4th_P', $jml4P );
|
||||
$data->addChild( 'j_5_14th_L', $jml14L );
|
||||
$data->addChild( 'j_5_14th_P', $jml14P );
|
||||
$data->addChild( 'j_15_24th_L', $jml24L );
|
||||
$data->addChild( 'j_15_24th_P', $jml24P );
|
||||
$data->addChild( 'j_25_44th_L', $jml44L );
|
||||
$data->addChild( 'j_25_44th_P', $jml44P );
|
||||
$data->addChild( 'j_45_64th_L', $jml64L );
|
||||
$data->addChild( 'j_45_64th_P', $jml64P );
|
||||
$data->addChild( 'j_65th_L', $jml64_L );
|
||||
$data->addChild( 'j_65th_P', $jml64_P );
|
||||
$data->addChild( 'bulan', $bln );
|
||||
$data->addChild( 'tahun', $tahun );
|
||||
}
|
||||
|
||||
|
||||
$fp = fopen( 'xml/rl42_' . $bln . '_' . $tahun . '.xml', 'wb' );
|
||||
fwrite( $fp, $xml->asXML( ) );
|
||||
fclose( $fp );
|
||||
$file = 'rl42_' . $bln . '_' . $tahun . '.xml';
|
||||
echo "<div id='file_xml'>";
|
||||
echo'<a href=\'download.php?xml=' . $file . '\'>' . $file . '</a>';
|
||||
echo ' | <input type=\'button\' id=\'batal\' value=\'Batal\' onClick=\'cancel()\'>';
|
||||
echo "</div>";
|
||||
}
|
||||
/////////////////BATAS AKHIR RL42////////////////////
|
||||
|
||||
////////////////BATAS AWAL RL43////////
|
||||
|
||||
|
||||
if ($reqdata == 'cari_rl43') {
|
||||
echo '
|
||||
<table id=\'tbl_reg\'><tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th rowspan=\'3\' style=\'border:1px solid grey;\'>No. DTD</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>No. Daftar Terperinci</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Golongan Sebab Penyakit</th><th colspan=\'18\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar Mati Menurut Umur dan Jenis Kelamin</th><th colspan=\'2\' rowspan=\'2\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar Mati Menurut Jenis Kelamin</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Jumlah Pasien Keluar Mati</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Bulan</th><th rowspan=\'3\' style=\'border:1px solid grey;\'>Tahun</th>
|
||||
</tr>
|
||||
<tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 0-6hr </th><th style=\'border:1px solid grey;\' colspan=\'2\'> 7-28hr </th><th style=\'border:1px solid grey;\' colspan=\'2\'>29hr-<1th</th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 1-4th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 5-14th </th><th style=\'border:1px solid grey;\' colspan=\'2\'> 15-24th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'> 25-44th </th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'>45-64th</th>
|
||||
<th style=\'border:1px solid grey;\' colspan=\'2\'>>65th</th>
|
||||
</tr>
|
||||
<tr id=\'tr_d\' style=\'border-bottom:1px solid grey;\'>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
<th style=\'border:1px solid grey;\'> L </th><th style=\'border:1px solid grey;\'>P</th>
|
||||
</tr>';
|
||||
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".date('Y')."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".date('m')."-%' ";
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = "";
|
||||
}else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = "";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$sql2 = $db->query("SELECT DISTINCT b.icd_code
|
||||
FROM t_diagnosadanterapi a
|
||||
LEFT JOIN icd b ON a.ICD_CODE=b.icd_code
|
||||
INNER JOIN m_pasien c ON a.NOMR=c.NOMR
|
||||
INNER JOIN t_pendaftaran d ON a.NOMR=d.NOMR
|
||||
WHERE
|
||||
a.NIP='rekammedik' AND
|
||||
d.STATUS='8' $tanggal1 $tanggal2 ");
|
||||
|
||||
//SELECT ? FROM ?
|
||||
$kondisi_SELECT = "a.ICD_CODE FROM t_diagnosadanterapi a LEFT JOIN icd b ON a.ICD_CODE=b.icd_code INNER JOIN m_pasien c ON a.NOMR=c.NOMR INNER JOIN t_pendaftaran d ON a.NOMR=d.NOMR";
|
||||
//WHERE NIP STATUS JENIS KELAMIN L
|
||||
$nip_status_jkL = "AND a.NIP='rekammedik' AND c.JENISKELAMIN='L' AND d.STATUS='8'";
|
||||
//WHERE NIP STATUS JENIS KELAMIN P
|
||||
$nip_status_jkP = "AND a.NIP='rekammedik' AND c.JENISKELAMIN='P' AND d.STATUS='8'";
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
|
||||
$bln = m_to_id($bln);
|
||||
|
||||
echo'<tr class=\'tr_s\'>
|
||||
|
||||
<td style=\'border:1px solid grey;\'>'; $sqldtd = $db->query("SELECT dtd FROM icd WHERE icd_code ='$icd_code' ")->fetchAll()[0];extract( $sqldtd );echo $dtd; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $icd_code . '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $sqlsebabpenyakit = $db->query("SELECT sebabpenyakit FROM icd WHERE icd_code ='$icd_code' ")->fetchAll()[0];extract( $sqlsebabpenyakit );echo $sebabpenyakit; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml6L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml6P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml28L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml28P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml1L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml1P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml4L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml4P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml14L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml14P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml24L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml24P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml44L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml44P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64_L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64_P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTL = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jmlTL; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlTP = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jmlTP; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlT = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND a.NIP='rekammedik' AND d.STATUS='8' $tanggal1 $tanggal2 ")->numRows(); echo $jmlT; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $bln . '</td>
|
||||
<td style=\'border:1px solid grey;\'>' . $tahun . '</td>';
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
echo'<tr class=\'tr_s\'>
|
||||
<td style=\'border:1px solid grey;\' colspan=3>Total Bulan ' . $bln . ' Tahun ' . $tahun . '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml6L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml6P = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml6P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml28L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml28p = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml28P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1L = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml1L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml1P = $db->query("SELECT $kondisi_SELECT WHERE ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml1P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml4L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml4P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml4P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml14L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml14P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml14P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml24L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml24P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml24P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml44L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml44P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml44P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_L = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows(); echo $jml64_L; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jml64_P = $db->query("SELECT $kondisi_SELECT WHERE ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows(); echo $jml64_P; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTL = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS='8' AND c.JENISKELAMIN='L' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTL; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlSTP = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS='8' AND c.JENISKELAMIN='P' $tanggal1 $tanggal2 ")->numRows(); echo $jmlSTP; echo '</td>
|
||||
<td style=\'border:1px solid grey;\'>'; $jmlST = $db->query("SELECT $kondisi_SELECT WHERE a.NIP='rekammedik' AND d.STATUS='8' $tanggal1 $tanggal2 ")->numRows(); echo $jmlST; echo '</td>
|
||||
<td style=\'border:1px solid grey;\' colspan=3 align=\'center\'>-</td>
|
||||
';
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
if ($reqdata == 'xml_rl43') {
|
||||
if (( empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".date('Y')."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".date('m')."-%' ";
|
||||
$bln = date('m');
|
||||
$tahun = date('Y');
|
||||
} else {
|
||||
if (( empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = "";
|
||||
//$bln = date('m');
|
||||
}else {
|
||||
if (( !empty( $bln ) && empty( $tahun ) )) {
|
||||
$tanggal1 = "";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
$tahun = date('Y');
|
||||
}else {
|
||||
if (( !empty( $bln ) && !empty( $tahun ) )) {
|
||||
$tanggal1 = " AND a.TANGGAL::varchar(10) LIKE '".$tahun."-%' ";
|
||||
$tanggal2 = " AND a.TANGGAL::varchar(10) LIKE '%-".$bln."-%' ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$sql2 = $db->query("SELECT DISTINCT b.icd_code
|
||||
FROM t_diagnosadanterapi a
|
||||
LEFT JOIN icd b ON a.ICD_CODE=b.icd_code
|
||||
INNER JOIN m_pasien c ON a.NOMR=c.NOMR
|
||||
INNER JOIN t_pendaftaran d ON a.NOMR=d.NOMR
|
||||
WHERE
|
||||
a.NIP='rekammedik' AND
|
||||
d.STATUS='8' $tanggal1 $tanggal2 ");
|
||||
|
||||
|
||||
//SELECT ? FROM ?
|
||||
$kondisi_SELECT = "a.ICD_CODE FROM t_diagnosadanterapi a LEFT JOIN icd b ON a.ICD_CODE=b.icd_code INNER JOIN m_pasien c ON a.NOMR=c.NOMR INNER JOIN t_pendaftaran d ON a.NOMR=d.NOMR";
|
||||
//WHERE NIP STATUS JENIS KELAMIN L
|
||||
$nip_status_jkL = "AND a.NIP='rekammedik' AND c.JENISKELAMIN='L' AND d.STATUS='8'";
|
||||
//WHERE NIP STATUS JENIS KELAMIN P
|
||||
$nip_status_jkP = "AND a.NIP='rekammedik' AND c.JENISKELAMIN='P' AND d.STATUS='8'";
|
||||
|
||||
$xml = new SimpleXMLElement ( '<xml/>' );
|
||||
|
||||
|
||||
foreach ($sql2->fetchAll() as $r) {
|
||||
extract( $r );
|
||||
|
||||
$jml6L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml6P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='0' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='6' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml28L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml28P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='7' AND ".date('d')." - ".extract_sql('c.tgllahir','day')."<='28' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."='0' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml1L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml1P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('d')." - ".extract_sql('c.tgllahir','day').">='29' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'1' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml4L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml4P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='1' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='4' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml14L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml14P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='5' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='14' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml24L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml24P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='15' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='24' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml44L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml44P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'25' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<'44' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">='45' AND ".date('Y')." - ".extract_sql('c.tgllahir','year')."<='64' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64_L = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkL $tanggal1 $tanggal2 ")->numRows();
|
||||
$jml64_P = $db->query("SELECT $kondisi_SELECT WHERE a.ICD_CODE='$icd_code' AND ".date('Y')." - ".extract_sql('c.tgllahir','year').">'65' $nip_status_jkP $tanggal1 $tanggal2 ")->numRows();
|
||||
|
||||
$data = $xml->addChild( 'data' );
|
||||
$data->addChild( 'code', $icd_code );
|
||||
$data->addChild( 'j_1_6hr_L', $jml6L );
|
||||
$data->addChild( 'j_1_6hr_P', $jml6P );
|
||||
$data->addChild( 'j_7_28hr_L', $jml28L );
|
||||
$data->addChild( 'j_7_28hr_P', $jml28P );
|
||||
$data->addChild( 'j_28hr_1th_L', $jml1L );
|
||||
$data->addChild( 'j_28hr_1th_P', $jml1P );
|
||||
$data->addChild( 'j_1_4th_L', $jml4L );
|
||||
$data->addChild( 'j_1_4th_P', $jml4P );
|
||||
$data->addChild( 'j_5_14th_L', $jml14L );
|
||||
$data->addChild( 'j_5_14th_P', $jml14P );
|
||||
$data->addChild( 'j_15_24th_L', $jml24L );
|
||||
$data->addChild( 'j_15_24th_P', $jml24P );
|
||||
$data->addChild( 'j_25_44th_L', $jml44L );
|
||||
$data->addChild( 'j_25_44th_P', $jml44P );
|
||||
$data->addChild( 'j_45_64th_L', $jml64L );
|
||||
$data->addChild( 'j_45_64th_P', $jml64P );
|
||||
$data->addChild( 'j_65th_L', $jml64_L );
|
||||
$data->addChild( 'j_65th_P', $jml64_P );
|
||||
$data->addChild( 'bulan', $bln );
|
||||
$data->addChild( 'tahun', $tahun );
|
||||
}
|
||||
|
||||
|
||||
$fp = fopen( 'xml/rl43_' . $bln . '_' . $tahun . '.xml', 'wb' );
|
||||
fwrite( $fp, $xml->asXML( ) );
|
||||
fclose( $fp );
|
||||
$file = 'rl43_' . $bln . '_' . $tahun . '.xml';
|
||||
echo "<div id='file_xml'>";
|
||||
echo'<a href=\'download.php?xml=' . $file . '\'>' . $file . '</a>';
|
||||
echo ' | <input type=\'button\' id=\'batal\' value=\'Batal\' onClick=\'cancel()\'>';
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
/////////////BATAS AKHIR RL43////////////
|
||||
}
|
||||
?>
|
||||
BIN
android-chrome-144x144.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
android-chrome-256x256.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
assets/barcode/10456108.png
Normal file
|
After Width: | Height: | Size: 270 B |
BIN
assets/fonts/Calibri.ttf
Normal file
BIN
assets/fonts/OpenSans-Bold.ttf
Normal file
BIN
assets/fonts/OpenSans-BoldItalic.ttf
Normal file
BIN
assets/fonts/OpenSans-ExtraBold.ttf
Normal file
BIN
assets/fonts/OpenSans-ExtraBoldItalic.ttf
Normal file
BIN
assets/fonts/OpenSans-Italic.ttf
Normal file
BIN
assets/fonts/OpenSans-Light.ttf
Normal file
BIN
assets/fonts/OpenSans-LightItalic.ttf
Normal file
BIN
assets/fonts/OpenSans-Regular.ttf
Normal file
BIN
assets/fonts/OpenSans-Semibold.ttf
Normal file
BIN
assets/fonts/OpenSans-SemiboldItalic.ttf
Normal file
BIN
assets/fonts/TAHOMAB0.TTF
Normal file
BIN
assets/fonts/TAHOMABD.TTF
Normal file
BIN
assets/fonts/TAHOMA_0.TTF
Normal file
BIN
assets/fonts/Tahoma Regular font.ttf
Normal file
BIN
assets/fonts/arial.ttf
Normal file
BIN
assets/fonts/ariblk.ttf
Normal file
BIN
assets/fonts/calibrib.ttf
Normal file
BIN
assets/fonts/calibril.ttf
Normal file
416
assets/fonts/index.html
Normal file
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
assets/images/Rolling-1s-44px.gif
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
assets/images/SEP_logo.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
assets/images/captchaback.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
assets/images/checkbox.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
assets/images/checkbox_checked.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
416
assets/images/index.html
Normal file
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
assets/images/kop_header.jpeg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/images/kop_header2012.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
assets/images/loading-spinner-grey.gif
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/images/logo-rssa.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
assets/images/messenger-preloader.gif
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
assets/images/people.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/images/radio.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
assets/images/radio_checked.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/images/rssa_logo.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
416
assets/index.html
Normal file
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
assets/manual_book/01_PENDAHULUAN.docx
Normal file
BIN
assets/manual_book/02_BAB I - II AKSES - ADMIN.docx
Normal file
BIN
assets/manual_book/03_BAB III PENDAFTARAN.docx
Normal file
BIN
assets/manual_book/04_BAB IV VERIF.docx
Normal file
BIN
assets/manual_book/05_BAB V PEMBAYARAN.docx
Normal file
BIN
assets/manual_book/06_BAB VI POLI BARU.docx
Normal file
BIN
assets/manual_book/07_BAB VII - ADMISSION.docx
Normal file
BIN
assets/manual_book/08_BAB VIII RAWAT JALAN.docx
Normal file
BIN
assets/manual_book/09_BAB IX RAWAT INAP.docx
Normal file
BIN
assets/manual_book/10_BAB X LABORATORIUM.docx
Normal file
BIN
assets/manual_book/11_PENUTUP.docx
Normal file
BIN
assets/manual_book/Panduan Teknis Pengembangan.docx
Normal file
416
assets/manual_book/index.html
Normal file
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
assets/template/KepalaLes.xlsx
Normal file
BIN
assets/template/KepalaLes_kosong.xlsx
Normal file
BIN
assets/template/SEP.xlsx
Normal file
363
assets/template/Surat Pernyataan.php
Normal file
@@ -0,0 +1,363 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
|
||||
<meta name=ProgId content=Excel.Sheet>
|
||||
<meta name=Generator content="Microsoft Excel 15">
|
||||
<style id="Surat Pernyataan_8298_Styles">
|
||||
@page {
|
||||
margin: 1cm;
|
||||
}
|
||||
<!--table
|
||||
{mso-displayed-decimal-separator:"\,";
|
||||
mso-displayed-thousand-separator:"\.";}
|
||||
.xl158298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:11.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Calibri, sans-serif;
|
||||
mso-font-charset:1;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:nowrap;}
|
||||
.xl638298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:11.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:nowrap;}
|
||||
.xl648298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:12.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:top;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:nowrap;}
|
||||
.xl658298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:12.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:justify;
|
||||
vertical-align:top;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:normal;}
|
||||
.xl668298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:12.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:justify;
|
||||
vertical-align:bottom;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:nowrap;}
|
||||
.xl678298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:12.0pt;
|
||||
font-weight:700;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:"Arial Black", sans-serif;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:nowrap;}
|
||||
.xl688298
|
||||
{padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:black;
|
||||
font-size:12.0pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:Arial, sans-serif;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:justify;
|
||||
vertical-align:bottom;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
white-space:normal;}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="Surat Pernyataan_8298" align=center x:publishsource="Excel">
|
||||
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=588 style='border-collapse:
|
||||
collapse;table-layout:fixed;width:440pt'>
|
||||
<col width=123 style='mso-width-source:userset;mso-width-alt:4498;width:92pt'>
|
||||
<col width=75 style='mso-width-source:userset;mso-width-alt:2742;width:56pt'>
|
||||
<col width=16 style='mso-width-source:userset;mso-width-alt:585;width:12pt'>
|
||||
<col width=179 style='mso-width-source:userset;mso-width-alt:6546;width:134pt'>
|
||||
<col width=195 style='mso-width-source:userset;mso-width-alt:7131;width:146pt'>
|
||||
<tr height=26 style='height:19.5pt'>
|
||||
<td colspan=5 height=26 class=xl678298 width=588 style='height:19.5pt;
|
||||
width:440pt'>
|
||||
<img src="<?php echo _BASE_.'assets/images/'.$_SESSION['kop_surat']; ?>" style="width:440pt">
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=26 style='height:19.5pt'>
|
||||
<td colspan=5 height=26 class=xl678298 width=588 style='height:19.5pt;
|
||||
width:440pt'><a name="RANGE!A1:E36">SURAT PERNYATAAN</a></td>
|
||||
</tr>
|
||||
<tr height=20 style='height:15.0pt'>
|
||||
<td height=20 class=xl638298 style='height:15.0pt'></td>
|
||||
<td class=xl638298></td>
|
||||
<td class=xl638298></td>
|
||||
<td class=xl638298></td>
|
||||
<td class=xl638298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=5 height=21 class=xl688298 width=588 style='height:15.75pt;
|
||||
width:440pt'>Yang bertanda tangan di bawah ini :</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Nama </td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $nama_keluarga; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Alamat (Sesuai KTP)</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $alamat_keluarga; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Umur</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $umur_keluarga; ?> Th</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Pekerjaan</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $pekerjaan_keluarga; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>No Telp / HP</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $notelp_keluarga; ?></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 height=40 class=xl688298 width=588 style='height:30.0pt;
|
||||
width:440pt'>Dengan ini menyatakan :</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Nama Pasien</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $nama_ybs; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Alamat </td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $alamat_ybs; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>No. RM / No. Billing</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $nomr.' / '.$nobilling; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Tgl MRS / Tgl KRS</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $tanggal_mrs; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=2 height=21 class=xl658298 style='height:15.75pt'>Tempat Layanan</td>
|
||||
<td class=xl648298>:</td>
|
||||
<td colspan=2 class=xl658298><?php echo $ruang; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td colspan=5 height=21 class=xl688298 width=588 style='height:15.75pt;
|
||||
width:440pt'>Adalah benar masih mempunyai tanggungan biaya sejumlah Rp. <?php echo $total.' <br>( '.$dengan_huruf.' )'; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 colspan=5 style='height:15.75pt'>Adapun tanggungan tersebut akan kami selesaikan dalam waktu <?php echo $jumlah_hari; ?> hari.</td>
|
||||
</tr>
|
||||
<?php if($keterangan != '') {?>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 colspan=5 style='height:15.75pt'><?php echo $keterangan; ?> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 colspan=5 style='height:15.75pt'>Demikian pernyataan ini dibuat untuk dipergunakan sebagaimana mestinya.</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>Mengetahui,</td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298>Malang, Tgl, <?php echo $tanggal_akad; ?></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>Petugas Loket</td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298>Yang membuat pernyataan</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>( <?php echo $_SESSION['NAMA_PEGAWAI']; ?> )</td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298>( <?php echo $nama_keluarga; ?> )</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>Keterangan :</td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
<td class=xl648298></td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>Lembar 1</td>
|
||||
<td colspan=4 class=xl668298>: Bagian Tagihan - Sub. Bag. Penerimaan & Pendapatan</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>Lembar 2</td>
|
||||
<td colspan=4 class=xl668298>: Pasien / Penangung Jawab Pasien</td>
|
||||
</tr>
|
||||
<tr height=21 style='height:15.75pt'>
|
||||
<td height=21 class=xl648298 style='height:15.75pt'>Lembar 3</td>
|
||||
<td colspan=4 class=xl668298>: Tempat Layanan</td>
|
||||
</tr>
|
||||
<![if supportMisalignedColumns]>
|
||||
<tr height=0 style='display:none'>
|
||||
<td width=123 style='width:92pt'></td>
|
||||
<td width=75 style='width:56pt'></td>
|
||||
<td width=16 style='width:12pt'></td>
|
||||
<td width=179 style='width:134pt'></td>
|
||||
<td width=195 style='width:146pt'></td>
|
||||
</tr>
|
||||
<![endif]>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
BIN
assets/template/casemix.xlsx
Normal file
BIN
assets/template/casemix_polos.xlsx
Normal file
416
assets/template/index.html
Normal file
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
assets/template/label.xlsx
Normal file
BIN
assets/template/resume_medis(copy).xlsx
Normal file
BIN
assets/template/resume_medis.xlsx
Normal file
463
billing2000/validasi_mr.php
Normal file
@@ -0,0 +1,463 @@
|
||||
<?php
|
||||
if(!session_id()) {
|
||||
session_start();
|
||||
}
|
||||
include("../core/main.php");
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
|
||||
$dotenv = new Dotenv\Dotenv(_DOCROOT_);
|
||||
$dotenv->load();
|
||||
|
||||
// Aplikasi Billing 2000
|
||||
function billing_api($url = '',$method = 'GET',$object_only = false, $body = '') {
|
||||
|
||||
$main_url = $_ENV['BILLING_DB_URL'];
|
||||
$url_request = $main_url.$url;
|
||||
|
||||
if($method == 'GET') {
|
||||
$content_type = 'application/json; charset=utf-8';
|
||||
}
|
||||
elseif($method == 'POST' || $method == 'PUT') {
|
||||
$content_type = 'application/x-www-form-urlencoded';
|
||||
}
|
||||
|
||||
$client = new GuzzleHttp\Client();
|
||||
|
||||
$request = new Request(
|
||||
$method, // GET,POST,PUT
|
||||
$url_request, // URL
|
||||
[
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => $content_type
|
||||
],
|
||||
$body // Post / Put Body (text)
|
||||
);
|
||||
|
||||
$obj_request = $client->send($request);
|
||||
|
||||
if($method == 'GET') {
|
||||
$json_request = ($obj_request->getStatusCode() == 200) ? $obj_request->getBody()->getContents() : [];
|
||||
}
|
||||
elseif($method == 'POST' || $method == 'PUT') {
|
||||
$json_request = ($obj_request->getStatusCode() == 201) ? $obj_request->getBody()->getContents() : [];
|
||||
}
|
||||
|
||||
if($object_only == TRUE) {
|
||||
return $json_request;
|
||||
}
|
||||
else {
|
||||
// echo (array) json_decode($json_request);
|
||||
return $json_request;
|
||||
}
|
||||
}
|
||||
function mr_jk($jk) {
|
||||
return ($jk == 'L') ? 'PRIA' : 'WANITA';
|
||||
}
|
||||
function mr_kelurahan($string) {
|
||||
return preg_replace("/Kelurahan/i", "", $string);
|
||||
}
|
||||
function mr_kec($string) {
|
||||
return preg_replace("/Kecamatan/i", "", $string);
|
||||
}
|
||||
function mr_kabkota($string) {
|
||||
if(preg_match("/Kabupaten/i", $string)) {
|
||||
$kabupaten = preg_replace("/Kabupaten|Kota/i", "", $string);
|
||||
$kota = '';
|
||||
}
|
||||
elseif(preg_match("/Kota/i", $string)) {
|
||||
$kota = preg_replace("/Kabupaten|Kota/i", "", $string);
|
||||
$kabupaten = '';
|
||||
}
|
||||
return ['kab'=>$kabupaten,'kota'=>$kota];
|
||||
}
|
||||
function mr_jenisbayar($jb) {
|
||||
if($jb == 'JKN' || $jb == 'JKMM' || $jb == 'SPM') {
|
||||
$cb = 'ASKES'.$jb;
|
||||
}
|
||||
elseif($jb == 'PKS' || $jb == 'UMUM') {
|
||||
$cb = $jb;
|
||||
}
|
||||
|
||||
return $cb;
|
||||
}
|
||||
function mr_status($string) {
|
||||
return strtoupper($string);
|
||||
}
|
||||
function mr_pendidikan($string) {
|
||||
if(preg_match("/SD/i", $string)) {
|
||||
return 'SD';
|
||||
}
|
||||
elseif(preg_match("/SLTP/i", $string)) {
|
||||
return 'SMP';
|
||||
}
|
||||
elseif(preg_match("/SMA/i", $string)) {
|
||||
return 'SMU';
|
||||
}
|
||||
elseif(preg_match("/D3/i", $string)) {
|
||||
return 'SARJANA';
|
||||
}
|
||||
elseif(preg_match("/Universitas/i", $string)) {
|
||||
return 'SARJANA';
|
||||
}
|
||||
elseif(preg_match("/Tidak/i", $string)) {
|
||||
return 'TIDAK SEKOLAH';
|
||||
}
|
||||
}
|
||||
function mr_subsistem($string) {
|
||||
if(preg_match("/UTAMA|EKSEKUTIF/", $string))
|
||||
{
|
||||
return 'POLIPU';
|
||||
}
|
||||
elseif(preg_match("/REGULER/", $string)) {
|
||||
return 'POLI';
|
||||
}
|
||||
elseif(preg_match("/EMERGENCY/", $string)) {
|
||||
return 'TRIAGE';
|
||||
}
|
||||
}
|
||||
|
||||
function mr_caramasuk($string,$sistem) {
|
||||
if(preg_match("/PUSKESMAS/", $string))
|
||||
{
|
||||
if($sistem == 'IRJA') {
|
||||
return 'PKMIRJA';
|
||||
}
|
||||
elseif($sistem == 'IRD') {
|
||||
return 'PKMIRD';
|
||||
}
|
||||
}
|
||||
elseif(preg_match("/RUMAH/", $string))
|
||||
{
|
||||
if($sistem == 'IRJA') {
|
||||
return 'RSLIRJA';
|
||||
}
|
||||
elseif($sistem == 'IRD') {
|
||||
return 'RSUIRD';
|
||||
}
|
||||
}
|
||||
elseif(preg_match("/DOKTER/", $string))
|
||||
{
|
||||
if($sistem == 'IRJA') {
|
||||
return 'DRUIRJA';
|
||||
}
|
||||
elseif($sistem == 'IRD') {
|
||||
return 'DRUIRD';
|
||||
}
|
||||
}
|
||||
elseif($string == 'TR') {
|
||||
if($sistem == 'IRJA') {
|
||||
return 'DSIRJA';
|
||||
}
|
||||
elseif($sistem == 'IRD') {
|
||||
return 'DSIRD';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function mr_ruangan($ruang,$jeniskelamin) {
|
||||
$arr_relation = [
|
||||
'DALAM'=>['L'=>'DP','P'=>'DW'],
|
||||
'ANAK'=>'IKA',
|
||||
'BEDAH'=>'BDH',
|
||||
'GIGI dan MULUT'=>'GIMU',
|
||||
'PSIKIATRI' => 'PSY',
|
||||
'ANESTESI' => 'ANAS',
|
||||
'IGD'=>'P1',
|
||||
'RADIOTERAPI'=>'RJRADT',
|
||||
'THT' => 'THT',
|
||||
'MATA' => 'MATA',
|
||||
'PARU' => 'PARU',
|
||||
'JANTUNG' => 'CARDIO',
|
||||
'KULIT' => 'KK',
|
||||
'REHAB MEDIK' => 'REMED',
|
||||
'SARAF' => 'NEUR',
|
||||
'GIZI'=>'GIZI',
|
||||
'OBG'=>'OBG',
|
||||
'ONKOLOGI'=>'ONKOT',
|
||||
'KOMPLEMENTER'=>'KOMP',
|
||||
'GCU'=>'GCU',
|
||||
'HEMATO-ONKOLOGI'=>'HOAM'
|
||||
];
|
||||
|
||||
if($ruang != 'DALAM') {
|
||||
return $arr_relation[$ruang];
|
||||
}
|
||||
else {
|
||||
return $arr_relation[$ruang][$jeniskelamin];
|
||||
}
|
||||
}
|
||||
|
||||
function mr_jeniskelas($ruang) {
|
||||
|
||||
}
|
||||
|
||||
function increment($num) {
|
||||
return ((int) ($num)+1);
|
||||
}
|
||||
|
||||
$nomr = $_REQUEST['nomr'];
|
||||
$idxdaftar = $_REQUEST['idxdaftar'];
|
||||
$simpan_mr = $_REQUEST['simpan_mr'];
|
||||
|
||||
echo '<html>
|
||||
<head>';
|
||||
echo $bootstrap_css;
|
||||
echo $fontawesome_css;
|
||||
echo $datatable_bootstrap4_css;
|
||||
echo $select2_css;
|
||||
echo '<link rel="stylesheet" href="'._BASE_.'css/adminlte.css" type="text/css" media="screen" charset="utf-8" />';
|
||||
echo '</head>
|
||||
<body>';
|
||||
|
||||
if($nomr != '' && $idxdaftar != '' && $simpan_mr == null) {
|
||||
|
||||
$myquery = "SELECT a.nomr,a.kdpoly,a.kddokter,a.masukpoly,a.keluarpoly,e.namadokter,a.tglreg,b.nama,b.alamat,b.jeniskelamin,b.tgllahir,c.nama as carabayar, a.idxdaftar, d.nama as poly, e.namadokter,a.kdcarabayar, a.subspesialis, a.kelas_daftar, a.kdrujuk, (select nobill from t_billrajal where idxdaftar = a.idxdaftar and nomr = a.nomr limit 1) as nobill,st_pelayanan,b.notelp,kel.namakelurahan as txt_kelurahan,kec.namakecamatan as txt_kecamatan,kot.namakota as txt_kota,b.txt_provinsi,b.txt_status,UPPER(b.txt_agama) as txt_agama,b.txt_pendidikan,upper(b.kebangsaan) as kebangsaan,upper(b.suku) as suku,b.pekerjaan,b.noktp,k.st_pekerjaan,a.st_asal_masuk,r.alias as rujuk_dari,a.ketrujuk,a.catatan as keluhan,a.jamreg
|
||||
FROM t_pendaftaran a
|
||||
join m_pasien b on a.nomr = b.nomr
|
||||
join m_carabayar c on a.kdcarabayar = c.kode
|
||||
join m_ruang d on a.kdpoly = d.no
|
||||
left join m_dokter e on a.kddokter = e.kddokter
|
||||
left join m_pekerjaan k on b.pekerjaan = k.nmpekerjaan
|
||||
left join m_rujukan r on a.kdrujuk = r.kode
|
||||
left join m_kelurahan kel on b.kelurahan = kel.idkelurahan
|
||||
left join m_kecamatan kec on b.kdkecamatan = kec.idkecamatan
|
||||
left join m_kota kot on b.kota = kot.idkota
|
||||
where a.idxdaftar = $idxdaftar";
|
||||
$get = $db->query($myquery);
|
||||
$userdata = $get->fetchFirst();
|
||||
$a = datediff($userdata['tgllahir'], date("Y-m-d"));
|
||||
if(mr_subsistem($userdata['st_asal_masuk']) == 'TRIAGE') {
|
||||
$sistem_masuk = 'IRD';
|
||||
}
|
||||
else {
|
||||
$sistem_masuk = 'IRJA';
|
||||
}
|
||||
|
||||
$last_mutasi = json_decode(billing_api('lastmutasi'));
|
||||
|
||||
$idmr_mutasi = increment($last_mutasi[0]->Idmr_Mutasipasien);
|
||||
|
||||
$last_tempat = json_decode(billing_api('lasttempat'));
|
||||
|
||||
$idmr_tempat = increment($last_tempat[0]->IdMr_tempatlayanan);
|
||||
|
||||
$idmr_ruang = mr_ruangan($userdata['poly'],$userdata['jeniskelamin']);
|
||||
|
||||
$tmp_ruang = json_decode(billing_api('ruangan/'.$idmr_ruang));
|
||||
|
||||
$idmr_jeniskelas = $tmp_ruang[0]->idmr_jeniskelas;
|
||||
|
||||
echo '<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Validasi Input MR Pasien Ke Billing Lama</h5>
|
||||
<div class="card-body">
|
||||
<form method="post" action="" id="validasi_mr">
|
||||
<input type="hidden" name="mr_pasien[Tglreg]" value="'.$userdata['tglreg'].'"
|
||||
<h2>IDENTITAS PASIEN</h2>
|
||||
<hr>
|
||||
<div class="row text-left">
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>No RM</label>
|
||||
<input type="text" name="mr_pasien[IDMR_PASIEN]" class="form-control form-control-sm" value="'.$userdata['nomr'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nama Pasien</label>
|
||||
<input type="text" name="mr_pasien[Nama]"" class="form-control form-control-sm" value="'.$userdata['nama'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" name="mr_pasien[Alamat]" class="form-control form-control-sm" value="'.$userdata['alamat'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tanggal Lahir</label>
|
||||
<input type="text" name="mr_pasien[tanggal_lahir]" class="form-control form-control-sm" value="'.date_to_id($userdata['tgllahir']).'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Kelamin</label>
|
||||
<input type="text" name="mr_pasien[JenisKelamin]" class="form-control form-control-sm" value="'.mr_jk($userdata['jeniskelamin']).'" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>Kelurahan</label>
|
||||
<input type="text" name="mr_pasien[Kelurahan]" class="form-control form-control-sm" value="'.mr_kelurahan($userdata['txt_kelurahan']).'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Kecamatan</label>
|
||||
<input type="text" name="mr_pasien[Kecamatan]" class="form-control form-control-sm" value="'.mr_kec($userdata['txt_kecamatan']).'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Kabupaten</label>
|
||||
<input type="text" name="mr_pasien[Kabupaten]" class="form-control form-control-sm" value="'.mr_kabkota($userdata['txt_kota'])['kab'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Kota</label>
|
||||
<input type="text" name="mr_pasien[Kota]" class="form-control form-control-sm" value="'.mr_kabkota($userdata['txt_kota'])['kota'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Propinsi</label>
|
||||
<input type="text" name="mr_pasien[Propinsi]" class="form-control form-control-sm" value="'.$userdata['txt_provinsi'].'" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>Suku</label>
|
||||
<input type="text" name="mr_pasien[Suku]" class="form-control form-control-sm" value="'.$userdata['suku'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Kebangsaan</label>
|
||||
<input type="text" name="mr_pasien[Bangsa]" class="form-control form-control-sm" value="'.$userdata['kebangsaan'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Agama</label>
|
||||
<input type="text" name="mr_pasien[Agama]" class="form-control form-control-sm" value="'.$userdata['txt_agama'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Status</label>
|
||||
<input type="text" name="mr_pasien[StatusPerkawinan]" class="form-control form-control-sm" value="'.mr_status($userdata['txt_status']).'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Telepon</label>
|
||||
<input type="text" name="mr_pasien[Telp]" class="form-control form-control-sm" value="'.$userdata['notelp'].'" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>No Kartu Identitas</label>
|
||||
<input type="text" name="mr_pasien[Kartuidentitas]" class="form-control form-control-sm" value="'.$userdata['noktp'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Pendidikan</label>
|
||||
<input type="text" name="mr_pasien[IDMR_PENDIDIKAN]" class="form-control form-control-sm" value="'.mr_pendidikan($userdata['txt_pendidikan']).'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Pekerjaan</label>
|
||||
<input type="text" name="mr_pasien[IDMR_PEKERJAAN]" class="form-control form-control-sm" value="'.$userdata['st_pekerjaan'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Umur</label>
|
||||
<input type="hidden" name="mr_mutasipasien[UmurTahun]" value="'.$a['years'].'">
|
||||
<input type="hidden" name="mr_mutasipasien[UmurBulan]" value="'.$a['months'].'">
|
||||
<input type="hidden" name="mr_mutasipasien[UmurHari]" value="'.$a['days'].'">
|
||||
|
||||
<input type="text" class="form-control form-control-sm" value="'.$a['years'].' tahun '.$a['months'].' bulan '.$a['days'].' hari" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2>Kunjungan Pasien</h2>
|
||||
<hr>
|
||||
<input type="hidden" name="mr_mutasipasien[Idmr_Mutasipasien]" value="'.$idmr_mutasi.'">
|
||||
<input type="hidden" name="mr_mutasipasien[IdMr_tempatlayanan]" value="'.$idmr_tempat.'">
|
||||
<input type="hidden" name="mr_mutasipasien[IdMr_Pasien]" value="'.$userdata['nomr'].'">
|
||||
<input type="hidden" name="mr_mutasipasien[Sistem]" value="'.$sistem_masuk.'">
|
||||
<input type="hidden" name="mr_mutasipasien[IdMr_Subsistem]" value="'.mr_subsistem($userdata['st_asal_masuk']).'">
|
||||
<input type="hidden" name="mr_mutasipasien[KasusPolisi]" value="-">
|
||||
<input type="hidden" name="mr_mutasipasien[IdMr_Alasandatang]" value="-">
|
||||
<input type="hidden" name="mr_mutasipasien[petugas]" value="'.$_SESSION['NAMA_PEGAWAI'].'">
|
||||
<input type="hidden" name="mr_mutasipasien[Tglmrsawal]" value="'.$userdata['jamreg'].'">
|
||||
|
||||
<input type="hidden" name="mr_tempatlayanan[IdMr_tempatlayanan]" value="'.$idmr_tempat.'">
|
||||
<input type="hidden" name="mr_tempatlayanan[Idmr_Mutasipasien]" value="'.$idmr_mutasi.'">
|
||||
<input type="hidden" name="mr_tempatlayanan[jmlDatang]" value="1">
|
||||
<input type="hidden" name="mr_tempatlayanan[sistem]" value="'.$sistem_masuk.'">
|
||||
<input type="hidden" name="mr_tempatlayanan[idmr_Jeniskelas]" value="'.$idmr_jeniskelas.'">
|
||||
<input type="hidden" name="mr_tempatlayanan[tglDatang]" value="'.$userdata['jamreg'].'">
|
||||
<div class="row text-left">
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>No Billing</label>
|
||||
<input type="text" name="mr_mutasipasien[Regbilling]" class="form-control form-control-sm" value="'.$userdata['nobill'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tgl Masuk</label>
|
||||
<input type="text" name="mr_mutasipasien[Tanggal_MRS]" class="form-control form-control-sm" value="'.$userdata['jamreg'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Diagnosa Masuk</label>
|
||||
<input type="text" name="mr_mutasipasien[DiagnosaMasuk]" class="form-control form-control-sm" value="" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>Keluhan</label>
|
||||
<input type="text" name="mr_mutasipasien[Keluhan]" class="form-control form-control-sm" value="'.$userdata['keluhan'].'" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Cara Masuk</label>
|
||||
<input type="text" name="mr_mutasipasien[IdMr_TCaraMasuk]" class="form-control form-control-sm" value="'.mr_caramasuk($userdata['ketrujuk'],$sistem_masuk).'" readonly>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Jenis Pembayaran</label>
|
||||
<input type="text" name="mr_mutasipasien[IdMr_TStatus]" class="form-control form-control-sm" value="'.mr_jenisbayar($userdata['carabayar']).'" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="form-group">
|
||||
<label>Klinik</label>
|
||||
<input type="text" name="mr_tempatlayanan[idmr_Truangan]" class="form-control form-control-sm" value="'.$idmr_ruang.'" readonly>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" name="simpan_mr" value="Simpan MR" class="btn btn-primary btn-lg">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
|
||||
}
|
||||
elseif($simpan_mr == 'Simpan MR') {
|
||||
|
||||
$arr_data = $_POST;
|
||||
|
||||
unset($arr_data['simpan_mr']);
|
||||
|
||||
$body_mr = json_encode($arr_data);
|
||||
|
||||
// echo $body_mr;
|
||||
|
||||
$request = billing_api('mr','POST',true,$body_mr);
|
||||
|
||||
$response = (array) json_decode($request);
|
||||
|
||||
echo '<div class="container-fluid">
|
||||
<div class="row text-center">
|
||||
<div class="col-md-12">';
|
||||
if($response['code'] == '200') {
|
||||
echo '<div class="alert alert-success" role="alert"> '.$response['message'].'</div>';
|
||||
echo '<button class="btn btn-success" type="button" onclick="closeOpenedWindow()">Tutup</button>';
|
||||
}
|
||||
else {
|
||||
echo '<div class="alert alert-danger" role="alert"> '.$response['message'].'</div>';
|
||||
echo '<button class="btn btn-danger" type="button" id="btn_kembali">Kembali</button>';
|
||||
}
|
||||
|
||||
echo '</div>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
echo $jquery_js.PHP_EOL;
|
||||
echo $bootstrap_js.PHP_EOL;
|
||||
echo $select2_js.PHP_EOL;
|
||||
echo $datatable_js.PHP_EOL;
|
||||
echo $datatable_bootstrap4_js.PHP_EOL;
|
||||
echo $datatable_pipeline.PHP_EOL;
|
||||
echo $sweetalert_js.PHP_EOL;
|
||||
echo '<script>$("#btn_kembali").click(function() {
|
||||
window.location.href="'._BASE_.'billing200/validasi_mr.php?idxdaftar='.$idxdaftar.'&nomr='.$nomr.'";
|
||||
});</script>';
|
||||
echo '</body>
|
||||
</html>';
|
||||
?>
|
||||
154
billnonreg.php
Normal file
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
include("core/main.php");
|
||||
$kondisi=$kbyr =$knama =$kno_nonreg=$knobill='';
|
||||
|
||||
|
||||
if (array_key_exists('cnama', $_GET) && $_GET['cnama']!=""){
|
||||
$knama=" and r.nama like '%".$_GET['cnama']."%'";
|
||||
}
|
||||
if (array_key_exists('cno_nonreg', $_GET) && $_GET['cno_nonreg']!=""){
|
||||
$kno_nonreg=" and r.no_nonreg = '".$_GET['cno_nonreg']."'";
|
||||
}
|
||||
if (array_key_exists('nobill', $_GET) && $_GET['nobill']!=""){
|
||||
$knobill=" and b.nobill = '".$_GET['nobill']."'";
|
||||
}
|
||||
$start = date('Y-m-d');
|
||||
$end = date('Y-m-d');
|
||||
if (array_key_exists('start', $_GET) && $_GET['start']!=""){
|
||||
$start = $_REQUEST['start'];
|
||||
}
|
||||
if (array_key_exists('end', $_GET) && $_GET['end']!=""){
|
||||
$end = $_REQUEST['end'];
|
||||
}
|
||||
$waktu = ' and ('.get_date_sql('r.tgl_entri').' between \''.$start.'\' and \''.$end.'\')';
|
||||
$cnama = array_key_exists('cnama', $_GET) ? $_GET['cnama'] : '';
|
||||
$cno_nonreg = array_key_exists('cno_nonreg', $_GET) ? $_GET['cno_nonreg'] : '';
|
||||
$f_start = array_key_exists('start', $_GET) ? $_GET['start'] : date('Y-m-d');
|
||||
$f_end = array_key_exists('end', $_GET) ? $_GET['end'] : date('Y-m-d');
|
||||
$nobill = array_key_exists('nobill', $_GET) ? $_GET['nobill'] : '';
|
||||
$order_by = array_key_exists('order_by', $_GET) ? $_GET['order_by'] : '';
|
||||
?>
|
||||
<style type="text/css">
|
||||
div.dataTables_wrapper div.dataTables_filter { text-align: left !important; }
|
||||
</style>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title">
|
||||
<h5>TAGIHAN NON REGISTER HARI INI </h5></div>
|
||||
<form name="cari" id="cari" method="get" action="<?php $_SERVER['PHP_SELF']; ?>">
|
||||
<input type="hidden" name="link" value="billnonreg" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-6 offset-md-6" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-2"> No Non Reg </label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="cno_nonreg" size="10" class="form-control form-control-sm" value="<?php echo $cno_nonreg; ?>"/>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-2"> Nama </label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="cnama" class="form-control form-control-sm" value="<?php echo $cnama; ?>" oninput="this.value = this.value.toUpperCase()"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-2"> No Bill </label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="nobill" size="10" class="form-control form-control-sm" value="<?php echo $nobill; ?>"/>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-2 text-left"> Tanggal </label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" size="10" class="form-control datepicker-default mask-date-default form-control-sm" id="TGLREG" name="start" value="<?php echo $f_start; ?>" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-2 text-left"> Urutan </label>
|
||||
<div class="col-sm-4">
|
||||
<?php echo form_dropdown('order_by',['no_nonreg'=>'no_nonreg','nama'=>'nama','nobill'=>'nobill'],'','class="form-control form-control-sm"'); ?>
|
||||
</div>
|
||||
<div class="col-sm-4 offset-sm-2">
|
||||
<input type="text" size="10" class="form-control datepicker-default mask-date-default form-control-sm" id="TGLREG2" name="end" value="<?php echo $f_end; ?>" readonly />
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<input type="submit" class="btn btn-secondary" value="Cari" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div id="cari_poly" class="container-fluid">
|
||||
<table class="table table-sm table-bordered table-striped" id="datalist_sort">
|
||||
<thead>
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th width="20px">NO</th>
|
||||
<th width="100px">NO BILL</th>
|
||||
<th width="100px">NO NON REG</th>
|
||||
<th >Nama </th>
|
||||
<th >Alamat </th>
|
||||
<th width="70px">Status</th>
|
||||
<th width="200px">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
$kondisi=$knama.$kno_nonreg.$kbyr.$waktu.$knobill;
|
||||
|
||||
$sql_order = ($order_by != '') ? "order by " : '';
|
||||
$sql_order .= ($order_by == 'no_nonreg') ? 'r.no_nonreg' : ( ($order_by == 'nama') ? 'r.nama' : ( ($order_by == 'nobill') ? '(select nobill from t_billnonreg br where br.no_nonreg = r.no_nonreg and br.idx_nonreg = r.idx_nonreg limit 1)' : '' ) );
|
||||
|
||||
$sql = "SELECT DISTINCT r.no_nonreg,(select nobill from t_billnonreg br where br.no_nonreg = r.no_nonreg and br.idx_nonreg = r.idx_nonreg limit 1) as nobill, r.idx_nonreg, r.nama,r.alamat
|
||||
from m_nonreg r
|
||||
where 1 = 1 $kondisi
|
||||
$sql_order";
|
||||
|
||||
$link_page = "index.php?link=billnonreg";
|
||||
$NO = 0;
|
||||
$pager = paginate( $sql, 15, 5, "&start=".$start."&end=".$end."&cnama=".$cnama."&cno_nonreg=".$cno_nonreg."&nobill=".$nobill, $link_page);
|
||||
|
||||
$count = 0;
|
||||
$page = (array_key_exists('page', $_GET)) ? $_GET['page'] : '';
|
||||
foreach($pager['list'] as $data) {
|
||||
$count++;
|
||||
if ($count % 2){
|
||||
echo '<tr class="tr1">';
|
||||
}else {
|
||||
echo '<tr class="tr2">';
|
||||
}
|
||||
$ssql = $db->query('SELECT COUNT(*) as tagihan from t_bayarnonreg where idx_nonreg = \''.$data['idx_nonreg'].'\' AND LUNAS = 0');
|
||||
$sqry = $ssql->fetchAll()[0];
|
||||
if($sqry['tagihan'] == 0){
|
||||
$status_billing = 'Lunas';
|
||||
}else{
|
||||
$status_billing = '';
|
||||
}
|
||||
?>
|
||||
<td align="center"><?php $NO=($NO+1);if ($page==0){$hal=0;}else{$hal=$page-1;} echo ($hal*15)+$NO;?></td>
|
||||
<td align="center"><?php echo $data['nobill'];?></td>
|
||||
<td align="center"><?php echo $data['no_nonreg'];?></td>
|
||||
<td align="left"><?php echo $data['nama']; ?></td>
|
||||
<td align="left"><?php echo $data['alamat']; ?></td>
|
||||
<td align="center"><?php echo $status_billing;?></td>
|
||||
<td align="center">
|
||||
<?php
|
||||
$btn_proses = '<a href="index.php?link=cartbill_nonreg&no_nonreg='.$data['no_nonreg'].'&idx_nonreg='.$data['idx_nonreg'].'" class="btn btn-outline-secondary btn-sm"> PROSES </a>';
|
||||
$btn_rincian = '<a href="index.php?link=33rekapnonreg&no_nonreg='.$data['no_nonreg'].'&idx_nonreg='.$data['idx_nonreg'].'" class="btn btn-outline-secondary btn-sm"> Rincian Bill </a>';
|
||||
echo $btn_proses.$btn_rincian;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
echo implode("\n", $list_plugin['ui_plugins_css']);
|
||||
$form_plugin['ui_plugins_js'] = array_merge($form_plugin['ui_plugins_js'],$list_plugin['ui_plugins_js']);
|
||||
|
||||
$js_init .= 'mainlist();';
|
||||
?>
|
||||
214
billrajal.php
Normal file
@@ -0,0 +1,214 @@
|
||||
<?php
|
||||
include("core/main.php");
|
||||
$st_aps = (array_key_exists('aps', $_REQUEST) && $_REQUEST['aps'] == 1) ? true : false;
|
||||
|
||||
$kondisi=$kpoly =$kbyr =$knama =$knomr=$knobill='';
|
||||
if (array_key_exists('poly', $_GET) && $_GET['poly']!=0){
|
||||
$kpoly=' and r.kdpoly = '.$_GET['poly'];
|
||||
}
|
||||
if(array_key_exists('crbayar', $_GET) && $_GET['crbayar'] !=''){
|
||||
$kbyr=' and r.kdcarabayar = '.$_GET['crbayar'];
|
||||
}
|
||||
if (array_key_exists('cnama', $_GET) && $_GET['cnama']!=""){
|
||||
$knama=" and x.nama like '%".$_GET['cnama']."%'";
|
||||
}
|
||||
if (array_key_exists('cnomr', $_GET) && $_GET['cnomr']!=""){
|
||||
$knomr=" and r.nomr = '".$_GET['cnomr']."'";
|
||||
}
|
||||
if (array_key_exists('nobill', $_GET) && $_GET['nobill']!=""){
|
||||
$knobill=" and (select nobill from t_billrajal br where br.nomr = x.nomr and br.idxdaftar = r.idxdaftar limit 1) = '".$_GET['nobill']."'";
|
||||
}
|
||||
if (array_key_exists('asal', $_GET) && $_GET['asal']!=""){
|
||||
$kasal= ($st_aps == true) ? '' : " and r.st_asal_masuk = '".$_GET['asal']."'";
|
||||
}
|
||||
$start = date('Y-m-d');
|
||||
$end = date('Y-m-d');
|
||||
if (array_key_exists('start', $_GET) && $_GET['start']!=""){
|
||||
$start = $_REQUEST['start'];
|
||||
}
|
||||
if (array_key_exists('end', $_GET) && $_GET['end']!=""){
|
||||
$end = $_REQUEST['end'];
|
||||
}
|
||||
$waktu = ' and (r.tglreg between \''.$start.'\' and \''.$end.'\')';
|
||||
$poly = array_key_exists('poly', $_GET) ? $_GET['poly'] : '';
|
||||
$asal = array_key_exists('asal', $_GET) ? $_GET['asal'] : '';
|
||||
$crbayar = array_key_exists('crbayar', $_GET) ? $_GET['crbayar'] : '';
|
||||
$cnama = array_key_exists('cnama', $_GET) ? $_GET['cnama'] : '';
|
||||
$cnomr = array_key_exists('cnomr', $_GET) ? $_GET['cnomr'] : '';
|
||||
$f_start = array_key_exists('start', $_GET) ? $_GET['start'] : date('Y-m-d');
|
||||
$f_end = array_key_exists('end', $_GET) ? $_GET['end'] : date('Y-m-d');
|
||||
$nobill = array_key_exists('nobill', $_GET) ? $_GET['nobill'] : '';
|
||||
$order_by = array_key_exists('order_by', $_GET) ? $_GET['order_by'] : '';
|
||||
|
||||
$qrypoly = $db->query("SELECT no as kode,nama FROM m_ruang where subsistem like 'RAWAT JALAN%' ORDER BY no ASC");
|
||||
$arr_poly = [''=>'Pilih Klinik'];
|
||||
foreach($qrypoly->fetchAll() as $listpoly){
|
||||
$arr_poly[$listpoly['kode']] = $listpoly['nama'];
|
||||
}
|
||||
$sql_carabayar = $db->query('SELECT * FROM m_carabayar');
|
||||
$arr_carabayar = [''=>'Pilih Cara Bayar'];
|
||||
foreach($sql_carabayar->fetchAll() as $data){
|
||||
$arr_carabayar[$data['kode']] = $data['nama'];
|
||||
}
|
||||
$ss = $db->query('SELECT * from m_subsistem where sistem=\'IRJA\' or sistem =\'R.JALAN\' order by id_subsistem ASC');
|
||||
$arr_asal = array(''=>'Pilih Subsistem');
|
||||
foreach($ss->fetchAll() as $ds){
|
||||
$arr_asal[$ds['nama_subsistem']] = $ds['nama_subsistem'];
|
||||
}
|
||||
$link = ($st_aps == true) ? '33aps' : '33';
|
||||
$title = ($st_aps == true) ? '(Non Kunjungan)' : '';
|
||||
?>
|
||||
<style type="text/css">
|
||||
div.dataTables_wrapper div.dataTables_filter { text-align: left !important; }
|
||||
</style>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title"> <h5>TAGIHAN RAWAT JALAN HARI INI <?=$title?></h5></div>
|
||||
<div class="container-fluid">
|
||||
<form name="cari" id="cari" method="get" action="<?php $_SERVER['PHP_SELF']; ?>">
|
||||
<input type="hidden" name="link" value="<?php echo $link; ?>" />
|
||||
<input type="hidden" name="aps" value="<?php echo $st_aps; ?>" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-4" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4"> No MR </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="cnomr" size="10" class="form-control form-control-sm" value="<?php echo $cnomr; ?>"/>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> Nama </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="cnama" class="form-control form-control-sm" value="<?php echo $cnama; ?>" oninput="this.value = this.value.toUpperCase()"/>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> No Bill </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="nobill" size="10" class="form-control form-control-sm" value="<?php echo $nobill; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4"> Cara bayar </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('crbayar',$arr_carabayar,$crbayar,'class="form-control form-control-sm" id="crbayar" style="width:100%"'); ?>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> Poliklinik </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('poly',$arr_poly,$poly,'class="form-control form-control-sm" id="poly" style="width:100%"'); ?>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> Sub Sistem </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('asal',$arr_asal,$asal,'class="form-control form-control-sm" id="subsistem" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4 text-left"> Tanggal </label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" size="10" class="form-control datepicker-default mask-date-default form-control-sm" id="TGLREG" name="start" value="<?php echo $f_start; ?>" readonly/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" size="10" class="form-control datepicker-default mask-date-default form-control-sm" id="TGLREG2" name="end" value="<?php echo $f_end; ?>" readonly />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4 text-left"> Urutan </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('order_by',['nomr'=>'nomr','nama'=>'nama','nobill'=>'nobill'],'','class="form-control form-control-sm"'); ?>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-2">
|
||||
<input type="submit" class="btn btn-secondary btn-sm" value="Cari" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="cari_poly">
|
||||
<table class="table table-sm table-bordered table-striped" id="datalist_sort">
|
||||
<thead>
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th width="20px">NO</th>
|
||||
<th width="100px">NO BILL</th>
|
||||
<th width="100px">NO RM</th>
|
||||
<th style="text-align:left;">Nama Pasien</th>
|
||||
<th style="text-align:left;">Alamat Pasien</th>
|
||||
<th width="100px">Klinik</th>
|
||||
<th width="100px">Jenis Bayar</th>
|
||||
<th width="70px">Status</th>
|
||||
<th width="200px">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
$kondisi=$knama.$knomr.$kpoly.$kbyr.$waktu.$knobill.$kasal;
|
||||
$t_pendaftaran = ($st_aps == true) ? 't_pendaftaran_aps' : 't_pendaftaran';
|
||||
$m_pasien = ($st_aps == true) ? 'm_pasien_aps' : 'm_pasien';
|
||||
|
||||
$kondisi .= ($st_aps == true) ? '' : " and (x.PARENT_NOMR is NULL OR x.PARENT_NOMR = '')";
|
||||
$sql_order = ($order_by != '') ? "order by " : '';
|
||||
$sql_order .= ($order_by == 'nomr') ? 'r.nomr' : ( ($order_by == 'nama') ? 'x.nama' : ( ($order_by == 'nobill') ? '(select nobill from t_billrajal br where br.nomr = x.nomr and br.idxdaftar = r.idxdaftar limit 1)' : '' ) );
|
||||
|
||||
$sql = "SELECT DISTINCT r.nomr,(select nobill from t_billrajal br where br.nomr = x.nomr and br.idxdaftar = r.idxdaftar limit 1) as nobill, r.idxdaftar, x.nama,x.alamat, r.kdpoly, m_ruang.nama as poly1, m_carabayar.nama as carabayar1
|
||||
from $t_pendaftaran r
|
||||
join $m_pasien x ON r.NOMR = x.NOMR
|
||||
left join m_ruang ON m_ruang.no = r.KDPOLY
|
||||
join m_carabayar ON m_carabayar.KODE = r.KDCARABAYAR
|
||||
where r.status != 2 $kondisi
|
||||
$sql_order";
|
||||
|
||||
$link_page = ($st_aps == true) ? "index.php?link=33aps&aps=1" : "index.php?link=33";
|
||||
$NO = 0;
|
||||
$pager = paginate( $sql, 15, 5, "&start=".$start."&end=".$end."&poly=".$poly."&cnama=".$cnama."&cnomr=".$cnomr."&crbayar=".$crbayar."&nobill=".$nobill, $link_page);
|
||||
|
||||
$count = 0;
|
||||
$page = (array_key_exists('page', $_GET)) ? $_GET['page'] : '';
|
||||
foreach($pager['list'] as $data) {
|
||||
$count++;
|
||||
if ($count % 2){
|
||||
echo '<tr class="tr1">';
|
||||
}else {
|
||||
echo '<tr class="tr2">';
|
||||
}
|
||||
$ssql = $db->query('SELECT COUNT(*) as tagihan from t_bayarrajal where NOMR = \''.$data['nomr'].'\' and IDXDAFTAR = \''.$data['idxdaftar'].'\' AND LUNAS = 0');
|
||||
$sqry = $ssql->fetchAll()[0];
|
||||
if($sqry['tagihan'] == 0){
|
||||
$status_billing = 'Lunas';
|
||||
}else{
|
||||
$status_billing = '';
|
||||
}
|
||||
?>
|
||||
<td align="center"><?php $NO=($NO+1);if ($page==0){$hal=0;}else{$hal=$page-1;} echo ($hal*15)+$NO;?></td>
|
||||
<td align="center"><?php echo $data['nobill'];?></td>
|
||||
<td align="center"><?php echo $data['nomr'];?></td>
|
||||
<td align="left"><?php echo $data['nama']; ?></td>
|
||||
<td align="left"><?php echo $data['alamat']; ?></td>
|
||||
<td align="center"><?php echo $data['poly1']; ?></td>
|
||||
<td align="center"><?php echo $data['carabayar1'];?></td>
|
||||
<td align="center"><?php echo $status_billing;?></td>
|
||||
<td align="center">
|
||||
<?php
|
||||
$btn_proses = ($st_aps == true) ? '<a href="index.php?link=cartbill_aps&nomr='.$data['nomr'].'&poly='.$data['kdpoly'].'&idxdaftar='.$data['idxdaftar'].'" class="btn btn-outline-secondary btn-sm"> PROSES </a>' : '<a href="index.php?link=34&nomr='.$data['nomr'].'&poly='.$data['kdpoly'].'&idxdaftar='.$data['idxdaftar'].'" class="btn btn-outline-secondary btn-sm"> PROSES </a>';
|
||||
$btn_rincian = ($st_aps == true) ? '<a href="index.php?link=cartbill_aps&nomr='.$data['nomr'].'&poly='.$data['kdpoly'].'&idxdaftar='.$data['idxdaftar'].'" class="btn btn-outline-secondary btn-sm"> Rincian Bill </a>' : '<a href="index.php?link=33rekapbill&nomr='.$data['nomr'].'&poly='.$data['kdpoly'].'&idxdaftar='.$data['idxdaftar'].'" class="btn btn-outline-secondary btn-sm"> Rincian Bill </a>';
|
||||
echo $btn_proses.$btn_rincian;
|
||||
?>
|
||||
<!-- <a href="index.php?link=33detail&nomr=<?php echo $data['nomr'];?>&poli=<?php echo $data['KDPOLY'];?>&idxdaftar=<?php echo $data['idxdaftar'];?>" class="btn btn-outline-secondary btn-sm">DETAIL</a> -->
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
echo implode("\n", $list_plugin['ui_plugins_css']);
|
||||
$form_plugin['ui_plugins_js'] = array_merge($form_plugin['ui_plugins_js'],$list_plugin['ui_plugins_js']);
|
||||
|
||||
$js_init .= 'mainlist();';
|
||||
?>
|
||||
9
billrajal_batal.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
include("core/main.php");
|
||||
$db->query("DELETE FROM t_bayarrajal WHERE NOBILL='".$_GET['idxb']."' and idxdaftar='".$_GET['idxdaftar']."'");
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
window.location='index.php?link=33';
|
||||
</script>
|
||||
97
billrajal_detail.php
Normal file
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
include("core/main.php");
|
||||
|
||||
|
||||
$nomr = (array_key_exists('nomr', $_REQUEST)) ? $_REQUEST['nomr'] : '';
|
||||
$poli = (array_key_exists('poli', $_REQUEST)) ? $_REQUEST['poli'] : '';
|
||||
$idxdaftar = (array_key_exists('idxdaftar', $_REQUEST)) ? $_REQUEST['idxdaftar'] : '';
|
||||
$start = (array_key_exists('start', $_REQUEST)) ? $_REQUEST['start'] : '';
|
||||
$end = (array_key_exists('end', $_REQUEST)) ? $_REQUEST['end'] : '';
|
||||
$cnama = (array_key_exists('cnama', $_GET)) ? $_GET['cnama'] : '';
|
||||
$cnomr = (array_key_exists('cnomr', $_GET)) ? $_GET['cnomr'] : '';
|
||||
$crbayar = (array_key_exists('crbayar', $_GET)) ? $_GET['crbayar'] : '';
|
||||
?>
|
||||
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title">
|
||||
<h5>TAGIHAN RAWAT JALAN NO RM <?php echo $nomr ?></h5></div>
|
||||
<table class="tb" width="95%" style="margin:10px;" border="0" cellspacing="0" cellspading="0" title="Tagihan Data Pasien Per Hari Ini">
|
||||
<tr align="center">
|
||||
<th width="20px">NO</th>
|
||||
<th width="100px">NO RM</th>
|
||||
<th style="text-align:left;">Nama Pasien</th>
|
||||
<th width="100px">Poly</th>
|
||||
<th width="100px">Cara Bayar</th>
|
||||
<th width="70px">Status</th>
|
||||
<!--<th width="100px">Billing</th>-->
|
||||
<th width="100px">Aksi</th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$nomrsing = substr($nomr,0,4);
|
||||
|
||||
$sql = 'select DISTINCT r.NOMR,r.IDXDAFTAR, x.NAMA, r.KDPOLY, m_ruang.nama as POLY1, m_carabayar.NAMA as CARABAYAR1
|
||||
from t_pendaftaran r
|
||||
join m_pasien x ON r.NOMR = x.NOMR
|
||||
join t_bayarrajal b ON b.idxdaftar = r.idxdaftar
|
||||
join m_ruang ON m_ruang.no = r.KDPOLY
|
||||
join m_carabayar ON m_carabayar.KODE = r.KDCARABAYAR
|
||||
where r.STATUS != 2 AND 1 = 1
|
||||
and r.NOMR = '.$nomr.' and r.KDPOLY = '.$poli.' and r.idxdaftar = '.$idxdaftar.'
|
||||
UNION ALL
|
||||
select DISTINCT r.NOMR,r.IDXDAFTAR, x.NAMA, r.KDPOLY, m_ruang.nama as POLY1, m_carabayar.NAMA as CARABAYAR1
|
||||
from t_pendaftaran r
|
||||
join m_pasien x ON r.NOMR = x.NOMR
|
||||
join t_bayarrajal b ON b.idxdaftar = r.idxdaftar
|
||||
join m_ruang ON m_ruang.no = r.KDPOLY
|
||||
join m_carabayar ON m_carabayar.KODE = r.KDCARABAYAR
|
||||
where r.STATUS != 2 AND 1 = 1
|
||||
and x.PARENT_NOMR = '.$nomr.' and r.KDPOLY = '.$poli.'
|
||||
|
||||
';
|
||||
$NO=0;
|
||||
$pager = paginate( $sql, 15, 5, "start=".$start."&end=".$end."&poly=".$poli."&cnama=".$cnama."&cnomr=".$cnomr."&crbayar=".$crbayar,"index.php?link=33&");
|
||||
|
||||
|
||||
$count=0;
|
||||
$page = (array_key_exists('page', $_GET)) ? $_GET['page'] : 0;
|
||||
foreach($pager['list'] as $data) {
|
||||
$count++;
|
||||
if ($count % 2){
|
||||
echo '<tr class="tr1">';
|
||||
}else {
|
||||
echo '<tr class="tr2">';
|
||||
}
|
||||
$ssql = $db->query('select COUNT(*) as tagihan from t_bayarrajal where NOMR = "'.$data['NOMR'].'" and IDXDAFTAR = "'.$data['IDXDAFTAR'].'" AND LUNAS = 0');
|
||||
$sqry = $ssql->fetchAll()[0];
|
||||
if($sqry['tagihan'] == 0){
|
||||
$status_billing = 'Lunas';
|
||||
}else{
|
||||
$status_billing = '';
|
||||
}
|
||||
?>
|
||||
<td align="center"><?php $NO=($NO+1);if ($page==0){$hal=0;}else{$hal=$page-1;} echo ($hal*15)+$NO;?></td>
|
||||
<td align="center"><?php echo $data['NOMR'];?></td>
|
||||
<td align="left"><?php echo $data['NAMA']; ?></td>
|
||||
<td align="center"><?php echo $data['POLY1']; ?></td>
|
||||
<td align="center"><?php echo $data['CARABAYAR1'];?></td>
|
||||
<td align="center"><?php echo $status_billing;?></td>
|
||||
|
||||
<td>
|
||||
<a href="index.php?link=34&nomr=<?php echo $data['NOMR']; ?>&poly=<?php echo $data['KDPOLY'];?>&idxdaftar=<?php echo $data['IDXDAFTAR'];?>"> <input type="button" class="text" value="Prosess" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
//Display the full navigation in one go
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
189
billranap.php
Normal file
@@ -0,0 +1,189 @@
|
||||
<?php
|
||||
$sql_ruang = $db->query("SELECT * FROM m_ruang ORDER BY no ASC");
|
||||
$arr_ruang = [''=>'Pilih Ruang'];
|
||||
foreach($sql_ruang->fetchAll() as $ruang){
|
||||
$arr_ruang[$ruang['no']] = $ruang['nama'];
|
||||
}
|
||||
|
||||
$sql_carabayar = $db->query('SELECT * FROM m_carabayar');
|
||||
$arr_carabayar = [''=>'Pilih Carabayar'];
|
||||
foreach($sql_carabayar->fetchAll() as $cb){
|
||||
$arr_carabayar[$cb['kode']] = $cb['nama'];
|
||||
}
|
||||
|
||||
$ss = $db->query('SELECT * from m_asalranap');
|
||||
$arr_asal = array(''=>'Pilih Subsistem');
|
||||
foreach($ss->fetchAll() as $ds){
|
||||
$arr_asal[$ds['nama_asal']] = $ds['nama_asal'];
|
||||
}
|
||||
$cruang = (array_key_exists('cruang', $_GET)) ? $_GET['cruang'] : '0';
|
||||
$crbayar = (array_key_exists('crbayar', $_GET)) ? $_GET['crbayar'] : '';
|
||||
$cnama = (array_key_exists('cnama', $_GET)) ? $_GET['cnama'] : '';
|
||||
$cnomr = (array_key_exists('cnomr', $_GET)) ? $_GET['cnomr'] : '';
|
||||
$nobill = (array_key_exists('nobill', $_GET)) ? $_GET['nobill'] : '';
|
||||
$start = (array_key_exists('start', $_GET)) ? $_GET['start'] : date('Y-m-d');
|
||||
$end = (array_key_exists('end', $_GET)) ? $_GET['end'] : date('Y-m-d');
|
||||
$order_by = (array_key_exists('order_by', $_GET)) ? $_GET['order_by'] : '';
|
||||
?>
|
||||
<style type="text/css">
|
||||
div.dataTables_wrapper div.dataTables_filter { text-align: left !important; }
|
||||
</style>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title">
|
||||
<h5>TAGIHAN RAWAT INAP/ HARI INI</h5></div>
|
||||
<div class="container-fluid">
|
||||
<form name="cari" id="cari" method="get">
|
||||
<input type="hidden" name="link" value="33a" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-4" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4"> No MR </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="cnomr" size="10" class="form-control form-control-sm" value="<?php echo $cnomr; ?>"/>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> Nama </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="cnama" class="form-control form-control-sm" value="<?php echo $cnama; ?>" oninput="this.value = this.value.toUpperCase()"/>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> No Bill </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="nobill" size="10" class="form-control form-control-sm" value="<?php echo $nobill; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4"> Cara bayar </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('crbayar',$arr_carabayar,$crbayar,'class="form-control form-control-sm" id="crbayar" style="width:100%"'); ?>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> Ruang </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('cruang',$arr_poly,$cruang,'class="form-control form-control-sm" id="cruang" style="width:100%"'); ?>
|
||||
</div>
|
||||
<label class="form-control-label col-sm-4"> Sub Sistem </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('asal',$arr_asal,$asal,'class="form-control form-control-sm" id="subsistem" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4" class="">
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4 text-left"> Tanggal </label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" size="10" class="form-control datepicker-default mask-date-default form-control-sm" id="TGLREG" name="start" value="<?php echo $start; ?>" readonly/>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" size="10" class="form-control datepicker-default mask-date-default form-control-sm" id="TGLREG2" name="end" value="<?php echo $end; ?>" readonly />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4 text-left"> Urutan </label>
|
||||
<div class="col-sm-8">
|
||||
<?php echo form_dropdown('order_by',['nomr'=>'nomr','nama'=>'nama','nobill'=>'nobill'],'','class="form-control form-control-sm"'); ?>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-2">
|
||||
<input type="submit" class="btn btn-secondary btn-sm" value="Cari" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div id="cari_poly" class="container-fluid">
|
||||
<table class="table table-sm table-bordered table-striped" id="datalist_sort">
|
||||
<thead>
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th style="width:20px;">NO </th>
|
||||
<th style="width:120px;">NO BILL</th>
|
||||
<th style="width:120px;">NO RM</th>
|
||||
<th>Nama Pasien</th>
|
||||
<th style="width:100px;">Ruang</th>
|
||||
<th style="width:100px;">No Tempat Tidur</th>
|
||||
<th style="width:120px;">Tanggal Masuk</th>
|
||||
<th style="width:120px;">Tanggal Keluar</th>
|
||||
<th style="width:50px;">Jenis Bayar</th>
|
||||
<th style="width:200px;">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$kondisi = '';
|
||||
$kbyr = '';
|
||||
|
||||
if ($cruang!=0){
|
||||
$kondisi .= ' and c.noruang = '.$cruang;
|
||||
}
|
||||
if ($crbayar!='' && $crbayar != 'all'){
|
||||
$kondisi .= ' and e.KODE = '.$crbayar;
|
||||
}
|
||||
if ($cnama!=""){
|
||||
$kondisi .= " and b.NAMA like '%".$cnama."%'";
|
||||
}
|
||||
if ($cnomr!=0){
|
||||
$kondisi .= " and a.NOMR = '".$cnomr."'";
|
||||
}
|
||||
if ($nobill!=0){
|
||||
$kondisi .= " and a.NOBILL = '".$nobill."'";
|
||||
}
|
||||
|
||||
$sql_order = ($order_by != '') ? "order by " : '';
|
||||
$sql_order .= ($order_by == 'nomr') ? 'b.nomr' : ( ($order_by == 'nama') ? 'b.nama' : ( ($order_by == 'nobill') ? 'a.nobill' : '' ) );
|
||||
|
||||
$sql = "SELECT b.nomr, b.nama, d.nama as ruang, e.nama as carabayar1,
|
||||
c.id_admission,c.masukrs,c.keluarrs,c.nott,a.nobill
|
||||
FROM t_billranap a
|
||||
JOIN m_pasien b ON a.nomr = b.nomr
|
||||
JOIN t_admission c ON a.IDXDAFTAR = c.id_admission
|
||||
JOIN m_ruang d ON c.noruang = d.no
|
||||
JOIN m_carabayar e ON c.statusbayar = e.KODE
|
||||
WHERE c.keluarrs is null $kondisi
|
||||
GROUP BY b.nomr,b.nama,d.nama,e.nama,c.id_admission,c.masukrs,c.keluarrs,c.nott,a.nobill
|
||||
$sql_order
|
||||
";
|
||||
|
||||
$NO=0;
|
||||
|
||||
$pager = paginate( $sql, 15, 5, "&cruang=".$cruang. "&cnama=".$cnama. "&cnomr=".$cnomr."&crbayar=".$crbayar."&nobill=".$nobill."&order_by=".$order_by,"index.php?link=33a");
|
||||
|
||||
|
||||
$count = 0;
|
||||
$page = (array_key_exists('page', $_GET)) ? $_GET['page'] : 0;
|
||||
foreach($pager['list'] as $data) {?>
|
||||
<tr <?php echo "class ="; $count++; if ($count % 2) {echo "tr1"; } else {echo "tr2"; } ?>>
|
||||
<td><?php $NO=($NO+1);if ($page==0){$hal=0;}else{$hal=$page-1;} echo ($hal*15)+$NO;?></td>
|
||||
<td><?php echo $data['nobill'];?></a></td>
|
||||
<td><?php echo $data['nomr'];?></a></td>
|
||||
<td><?php echo $data['nama']; ?></td>
|
||||
<td><?php echo $data['ruang']; ?></td>
|
||||
<td><?php echo $data['nott']; ?></td>
|
||||
<td><?php echo $data['masukrs']; ?></td>
|
||||
<td><?php echo $data['keluarrs']; ?></td>
|
||||
<td><?php echo $data['carabayar1'];?></td>
|
||||
<td align="center">
|
||||
<a href="index.php?link=33a2&idxb=<?php echo $data['id_admission'];?>&nomr=<?php echo $data['nomr'];?>" class="btn btn-outline-secondary btn-sm">DETAIL</a>
|
||||
<a href="index.php?link=31s3&nomr=<?=$data['nomr'];?>&nama=<?=$data['nama'];?>&idx=<?php echo $data['id_admission']; ?>" class="btn btn-outline-secondary btn-sm">REKAP BILL</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
//Display the full navigation in one go
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
echo implode("\n", $list_plugin['ui_plugins_css']);
|
||||
$form_plugin['ui_plugins_js'] = array_merge($form_plugin['ui_plugins_js'],$list_plugin['ui_plugins_js']);
|
||||
|
||||
$js_init .= 'mainlist();';
|
||||
?>
|
||||
203
billranap_detail.php
Normal file
@@ -0,0 +1,203 @@
|
||||
<?php
|
||||
include("core/main.php");
|
||||
array_push($form_plugin['ui_plugins_js'],$jspm_js);
|
||||
$js_init .= $jspm_init;
|
||||
?>
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.print').click(function(){
|
||||
var nomr = jQuery(this).data('nomr');
|
||||
var nobill = jQuery(this).data('nobill');
|
||||
var idxdaftar = jQuery(this).data('idxdaftar');
|
||||
const now = new Date();
|
||||
tanggal = now.getFullYear()+'-'+now.getMonth()+'-'+now.getDate();
|
||||
jQuery.get('<?php echo _BASE_; ?>print_kuitansi.php?nomr='+nomr+'&nobill='+nobill+'&idxdaftar='+idxdaftar+'&rajal_status=0&tanggal='+tanggal,function(data){
|
||||
jspm_print(data);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
#tmp_print{display:none;}
|
||||
</style>
|
||||
<style type="text/css" media="print">
|
||||
#tmp_print{display:block;}
|
||||
</style>
|
||||
|
||||
<div id="tmp_print"></div>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title">
|
||||
<h5>TAGIHAN RAWAT INAP NO RM <?php echo $_REQUEST['nomr'];?></h5></div>
|
||||
<div id="cari_poly" class="container-fluid">
|
||||
<table class="table table-sm table-bordered table-striped">
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th width="5%">NO</th>
|
||||
<th width="15%">NO RM</th>
|
||||
<th width="20%" style="text-align:left;">Nama Pasien</th>
|
||||
<th width="20%">Klinik</th>
|
||||
<th width="15%">Cara Bayar</th>
|
||||
<th width="15%">Status</th>
|
||||
<th width="10%">Aksi</th>
|
||||
</tr>
|
||||
<?php
|
||||
$kondisi=$knama.$knomr.$kpoly.$kbyr.$waktu;
|
||||
$sql = "SELECT distinct r.nomr,r.idxdaftar, m_pasien.nama, r.kdpoly, m_ruang.nama as poly1, m_carabayar.nama as carabayar1
|
||||
from t_pendaftaran r
|
||||
join m_pasien ON r.NOMR = m_pasien.NOMR
|
||||
join t_bayarrajal b ON b.idxdaftar = r.idxdaftar
|
||||
join m_ruang ON m_ruang.no = r.KDPOLY
|
||||
join m_carabayar ON m_carabayar.KODE = r.KDCARABAYAR
|
||||
where r.STATUS = 2 $kondisi and r.IDXDAFTAR = {$_REQUEST['idxb']}
|
||||
UNION ALL
|
||||
SELECT distinct r.nomr,r.idxdaftar, x.nama, r.kdpoly, m_ruang.nama as poly1, m_carabayar.nama as carabayar1
|
||||
from t_pendaftaran r
|
||||
join m_pasien x ON r.NOMR = x.NOMR
|
||||
join t_bayarrajal b ON b.idxdaftar = r.idxdaftar
|
||||
join m_ruang ON m_ruang.no = r.KDPOLY
|
||||
join m_carabayar ON m_carabayar.KODE = r.KDCARABAYAR
|
||||
where r.STATUS != 2
|
||||
and x.PARENT_NOMR = '{$_REQUEST['nomr']}'";
|
||||
|
||||
$NO=0;
|
||||
$pager = paginate( $sql, 15, 5, "start=".$_GET['start']."&end=".$_GET['end']."&poly=".$_GET['poly']."&cnama=".$_GET['cnama']."&cnomr=".$_GET['cnomr']."&crbayar=".$_GET['crbayar'],"index.php?link=33&");
|
||||
foreach($pager['list'] as $data) {
|
||||
$count++;
|
||||
if ($count % 2){
|
||||
echo '<tr class="tr1">';
|
||||
}else {
|
||||
echo '<tr class="tr2">';
|
||||
}
|
||||
$ssql = $db->query('SELECT COUNT(*) as tagihan from t_bayarrajal where NOMR = \''.$data['nomr'].'\' and IDXDAFTAR = '.$data['idxdaftar'].' AND LUNAS = 0');
|
||||
$sqry = $ssql->fetchAll()[0];
|
||||
if($sqry['tagihan'] == 1){
|
||||
$status_billing = 'Lunas';
|
||||
}else{
|
||||
$status_billing = '';
|
||||
}
|
||||
?>
|
||||
<td align="center"><?php $NO=($NO+1);if ($_GET['page']==0){$hal=0;}else{$hal=$_GET['page']-1;} echo ($hal*15)+$NO;?></td>
|
||||
<td align="center"><?php echo $data['nomr'];?></td>
|
||||
<td align="left"><?php echo $data['nama']; ?></td>
|
||||
<td align="center"><?php echo $data['poly1']; ?></td>
|
||||
<td align="center"><?php echo $data['carabayar1'];?></td>
|
||||
<td align="center"><?php echo $status_billing;?></td>
|
||||
<td align="center"><a href="index.php?link=33rekapbill&nomr=<?php echo $data['nomr']; ?>&poly=<?php echo $data['kdpoly'];?>&idxdaftar=<?php echo $data['idxdaftar'];?>" class="btn btn-outline-primary btn-sm">Detail</a> <!--<a href="index.php?link=33batal&idxb=<?php echo $data['nobill'];?>&idxdaftar=<?php echo $data['idxdaftar'];?>"><input type="button" class="btn btn-outline-secondary btn-sm" value="Batal" /></a>--></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="table table-sm table-bordered table-striped" >
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th style="width:5%;">NO </th>
|
||||
<th style="width:10%;">NO RM</th>
|
||||
<th width="15%">Nama Pasien</th>
|
||||
<th style="width:10%;">Ruang</th>
|
||||
<th style="width:10%;">No Tempat Tidur</th>
|
||||
<th style="width:10%;">Tanggal Masuk</th>
|
||||
<th style="width:10%;">Tanggal Keluar</th>
|
||||
<th style="width:10%;">Cara Bayar</th>
|
||||
<th style="width:10%;">Tarif</th>
|
||||
<th style="width:10%;">Aksi</th>
|
||||
</tr>
|
||||
<?php
|
||||
$kondisi='';
|
||||
$kbyr = ' ';
|
||||
if ($_GET['cruang']!=0){
|
||||
$kruang=' and c.noruang = '.$_GET['cruang'];
|
||||
}
|
||||
if ($_GET['crbayar']!=''){
|
||||
$kbyr=' and e.KODE = '.$_GET['crbayar'];
|
||||
}
|
||||
if ($_GET['cnama']!=""){
|
||||
$knama=" and b.NAMA like '%".$_GET['cnama']."%'";
|
||||
}
|
||||
if ($_GET['cnomr']!=0){
|
||||
$knomr=" and a.NOMR = '".$_GET['cnomr']."'";
|
||||
}
|
||||
$start = date('Y-m-d');
|
||||
$end = date('Y-m-d');
|
||||
if ($_GET['start']!=""){
|
||||
$start = "'".$_REQUEST['start']."'";
|
||||
}
|
||||
if ($_GET['end']!=""){
|
||||
$end = "'".$_REQUEST['end']."'";
|
||||
}
|
||||
$waktu = ' and (a.tanggal between '.$start.' and '.$end.')';
|
||||
|
||||
$kondisi=$knama.$knomr.$kruang.$kbyr;
|
||||
|
||||
|
||||
$sql = "SELECT a.nomr as nomr, b.nama, d.nama as ruang, e.nama as carabayar1, (select sum(tarifrs*qty) from t_billranap where nobill = a.nobill and kodetarif != 'DEPOSIT') as tottarifrs,
|
||||
c.id_admission,c.masukrs,c.keluarrs,c.noruang,c.nott,a.nobill, (select sum(coalesce(status_verifikasi,0)) from t_billranap where nobill = a.nobill) as st_verif, (select count(idxbill) from t_billranap where nobill = a.nobill) as jml_bill
|
||||
FROM t_billranap a
|
||||
JOIN t_bayarranap h on h.NOBILL = a.NOBILL
|
||||
JOIN m_pasien b ON a.nomr = b.nomr
|
||||
JOIN t_admission c ON a.IDXDAFTAR = c.id_admission
|
||||
JOIN m_ruang d ON c.noruang = d.no
|
||||
JOIN m_carabayar e ON c.statusbayar = e.KODE
|
||||
WHERE h.TOTTARIFRS != '0' $kondisi and c.id_admission = {$_REQUEST['idxb']}
|
||||
GROUP BY a.nobill, a.nomr,d.nama,b.nama,e.nama,c.id_admission
|
||||
";
|
||||
|
||||
$NO=0;
|
||||
$pager = paginate( $sql, 15, 5, "&cruang=".$_GET['cruang']. "&cnama=".$_GET['nama']. "&cnomr=".$_GET['cnomr']."&crbayar=".$_GET['crbayar'],"index.php?link=33a");
|
||||
|
||||
foreach($pager['list'] as $data) {
|
||||
?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1"; }
|
||||
else {
|
||||
echo "tr2";
|
||||
} ?>>
|
||||
<td><?php $NO=($NO+1);if ($_GET['page']==0){$hal=0;}else{$hal=$_GET['page']-1;} echo ($hal*15)+$NO;?></td>
|
||||
<td><?php echo $data['nomr'];?></a></td>
|
||||
<td><?php echo $data['nama']; ?></td>
|
||||
<td><?php echo $data['ruang']; ?></td>
|
||||
<td><?php echo $data['nott']; ?></td>
|
||||
<td><?php echo $data['masukrs']; ?></td>
|
||||
<td><?php echo $data['keluarrs']; ?></td>
|
||||
<td><?php echo $data['carabayar1'];?></td>
|
||||
<td style="text-align:right;"><?php echo format_uang($data['tottarifrs']);?></td>
|
||||
<td align="center">
|
||||
<?php
|
||||
$button_proses = '<a href="index.php?link=34a&idxb='.$data['id_admission'].'&nobill='.$data['nobill'].'&t='.$data['tottarifrs'].'" class="btn btn-outline-primary btn-sm" > PROSES </a>';
|
||||
$button_batal = '<a href="index.php?link=34a&idxb='.$data['id_admission'].'&nobill='.$data['nobill'].'&t='.$data['tottarifrs'].'" class="btn btn-warning btn-sm" > Proses Batal </a>';
|
||||
$button_print = '<input type="button" class="btn btn-outline-primary btn-sm text print" name="simpan" value="PRINT" data-nomr="'.$data['nomr'].'" data-nobill="'.$data['nobill'].'" data-idxdaftar="'.$data['id_admission'].'"/>';
|
||||
$button_verif = '<a href="index.php?link=34a&idxb='.$data['id_admission'].'&nobill='. $data['nobill'].'&t='.$data['tottarifrs'].'" class="btn btn-outline-primary btn-sm" > Verifikasi </a>';
|
||||
if($_SESSION['ROLES'] == 2 && ($page_akses['v'] == 1 || $page_akses['d'] == 1) && $data['st_verif'] >= 1) {
|
||||
|
||||
if($page_akses['v']) {
|
||||
echo $button_proses.$button_print;
|
||||
}
|
||||
elseif($page_akses['d']) {
|
||||
echo $button_batal;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if($page_akses['verif'] == 1){
|
||||
echo $button_verif;
|
||||
}
|
||||
else {
|
||||
echo '<div class="p-3 mb-2 bg-warning text-dark">Belum diverifikasi</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
115
bridging_proses.php
Normal file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
include("signature.php");
|
||||
#error_reporting("E_ALL");
|
||||
include('core/main.php');
|
||||
#include('lib/function.php');
|
||||
if ($_POST) {
|
||||
extract($_POST);
|
||||
if($reqdata=="sep"){
|
||||
$tgl=date("Y-m-d H:i:s");
|
||||
$scml.="
|
||||
<request>";
|
||||
$scml.="<data>";
|
||||
$scml.="<t_sep>";
|
||||
$scml.="<noKartu>$nopeserta</noKartu>
|
||||
<tglSep>$tgl</tglSep>
|
||||
<tglRujukan>$tglrujuk</tglRujukan>
|
||||
<noRujukan>$norujukan</noRujukan>
|
||||
<ppkRujukan>$noppk</ppkRujukan>
|
||||
<ppkPelayanan>0113R035</ppkPelayanan>
|
||||
<jnsPelayanan>2</jnsPelayanan>
|
||||
<catatan>Test WS</catatan>
|
||||
<diagAwal>$diagnosa</diagAwal>
|
||||
<poliTujuan>-</poliTujuan>
|
||||
<klsRawat>3</klsRawat>
|
||||
<user>test</user>
|
||||
<noMr>$nomr</noMr>";
|
||||
$scml.="</t_sep>";
|
||||
$scml.="</data>";
|
||||
$scml.="</request>
|
||||
";
|
||||
$url= "http://api.asterix.co.id/SepWebRest/sep/create/";
|
||||
#$nilai1="3201152704890003";
|
||||
#$url= "".$ip."/$nilai1";
|
||||
$process = curl_init($url);
|
||||
curl_setopt($process, CURLOPT_HTTPHEADER,
|
||||
array("Content-Type: application/xml\r\n" . "X-cons-id: 25676\r\n" . "X-Timestamp: $tStamp\r\n" . "X-Signature: $encodedSignature"));
|
||||
curl_setopt($process, CURLOPT_HEADER, false);
|
||||
curl_setopt($process, CURLOPT_TIMEOUT, 30);
|
||||
curl_setopt($process, CURLOPT_POST, true);
|
||||
curl_setopt($process, CURLOPT_POSTFIELDS, $scml);
|
||||
curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
|
||||
$return = curl_exec($process);
|
||||
curl_close($process);
|
||||
$response = json_decode($return, true);
|
||||
$no_sep=$response[response];
|
||||
echo $no_sep;
|
||||
}
|
||||
if($reqdata=="rujukan"){
|
||||
$tgl=date("Y-m-d H:i:s");
|
||||
|
||||
$ip= "http://api.asterix.co.id/SepWebRest/peserta";
|
||||
$nilai1=$nopeserta;
|
||||
$url= "".$ip."/$nilai1";
|
||||
$curl = curl_init($url);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER,
|
||||
array("Accept: application/json\r\n" . "X-cons-id: 25676\r\n" . "X-Timestamp: $tStamp\r\n" . "X-Signature: $encodedSignature"));
|
||||
curl_setopt($curl, CURLOPT_GET, true);
|
||||
#curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
|
||||
|
||||
$json_response = curl_exec($curl);
|
||||
|
||||
#$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
$response = json_decode($json_response, true);
|
||||
$rest=$response[metaData]['message'];
|
||||
if($rest==200){
|
||||
/*$nik=$response[response]['peserta']['nik'];
|
||||
$nama=$response[response]['peserta']['nama'];
|
||||
$tgllahir=$response[response]['peserta']['tglLahir'];
|
||||
$kdprovider=$response[response]['peserta']['provUmum']['kdProvider'];
|
||||
$nmprovider=$response[response]['peserta']['provUmum']['nmProvider'];
|
||||
$jnspeserta= $response[response]['peserta']['jenisPeserta']['nmJenisPeserta'];
|
||||
$kelas= $response[response]['peserta']['kelasTanggungan']['kdKelas'];*/
|
||||
echo $json_response;
|
||||
}
|
||||
else{
|
||||
echo"Error";
|
||||
}
|
||||
}
|
||||
if($reqdata=="norujukan"){
|
||||
$tgl=date("Y-m-d H:i:s");
|
||||
|
||||
$ip= "http://api.asterix.co.id/SepWebRest/rujukan";
|
||||
$nilai1=$norujuk;
|
||||
$url= "".$ip."/$nilai1";
|
||||
$curl = curl_init($url);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER,
|
||||
array("Accept: application/json\r\n" . "X-cons-id: 26823\r\n" . "X-Timestamp: $tStamp\r\n" . "X-Signature: $encodedSignature"));
|
||||
curl_setopt($curl, CURLOPT_GET, true);
|
||||
#curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
|
||||
|
||||
$json_response = curl_exec($curl);
|
||||
|
||||
#$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
$response = json_decode($json_response, true);
|
||||
$rest=$response[metaData]['message'];
|
||||
if($rest==200){
|
||||
$diagnosa=$response[response]['item']['diagnosa']['kdDiag'];
|
||||
echo $diagnosa;
|
||||
}
|
||||
else{
|
||||
echo "error";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
9
browserconfig.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
||||
977
cartbill.php
Normal file
@@ -0,0 +1,977 @@
|
||||
<?php
|
||||
$q_pasien = "SELECT a.nomr, b.nama, b.alamat, b.jeniskelamin, b.tgllahir, c.nama as carabayar, a.kdcarabayar, a.idxdaftar, a.kdpoly, d.nama as nama_poly,a.kddokter,a.shift from t_pendaftaran a, m_pasien b, m_carabayar c, m_ruang d
|
||||
where a.NOMR = b.NOMR and a.KDCARABAYAR = c.KODE and a.KDPOLY = d.no and a.NOMR = '{$_REQUEST['nomr']}' and a.IDXDAFTAR = '{$_REQUEST['idxdaftar']}'
|
||||
UNION
|
||||
SELECT a.nomr, b.nama, b.alamat, b.jeniskelamin, b.tgllahir, c.nama as carabayar, a.kdcarabayar, a.idxdaftar, a.kdpoly,d.nama_unit as nama_poly,a.kddokter,a.shift
|
||||
from t_pendaftaran_aps a
|
||||
join m_pasien_aps b on a.nomr = b.nomr
|
||||
join m_carabayar c on a.kdcarabayar = c.kode
|
||||
left join m_unit d on a.unit = d.kode_unit
|
||||
where a.nomr = '{$_REQUEST['nomr']}'
|
||||
UNION
|
||||
SELECT a.no_daftar as nomr, nama, alamat, null as jeniskelamin, null as tgllahir, 'UMUM' as carabayar, 1 as kdcarabayar, a.idx_daftar as idxdaftar, ".$_SESSION['kd_ruang_farmasi']." as kdpoly,'FARMASI' as nama_poly,null as kddokter,null as shift
|
||||
from m_apotek_aps a
|
||||
where a.no_daftar = '{$_REQUEST['nomr']}'
|
||||
";
|
||||
|
||||
$get = $db->query($q_pasien);
|
||||
$userdata = $get->fetchAll()[0];
|
||||
|
||||
$ss = $db->query('SELECT * FROM m_shift order by idshift ASC');
|
||||
$arr_shift = array(''=>'Pilih Shift');
|
||||
foreach($ss->fetchAll() as $ds){
|
||||
$arr_shift[$ds['idshift']] = $ds['nama_shift'];
|
||||
}
|
||||
$m_cara_bayar = $db->query('SELECT * FROM m_cara_bayar');
|
||||
$arr_cara_bayar = array(''=>'Pilih');
|
||||
foreach($m_cara_bayar->fetchAll() as $ds){
|
||||
$arr_cara_bayar[$ds['id_cara_bayar']] = $ds['nama_cara_bayar'];
|
||||
}
|
||||
|
||||
$m_penjamin = $db->query('SELECT * FROM m_penjamin where aktif = 1::bit order by id_penjamin');
|
||||
$arr_penjamin = array();
|
||||
foreach($m_penjamin->fetchAll() as $ds){
|
||||
$arr_penjamin[$ds['id_penjamin']] = trim($ds['nama_penjamin']);
|
||||
}
|
||||
|
||||
$m_alasan = $db->query("SELECT * from m_alasan_batal");
|
||||
$arr_alasan = [''=>'Pilih Alasan'];
|
||||
if($m_alasan->numRows() > 0) {
|
||||
foreach ($m_alasan->fetchAll() as $a) {
|
||||
$arr_alasan[$a['alasan_batal']] = $a['alasan_batal'];
|
||||
}
|
||||
}
|
||||
|
||||
echo '<script type="text/javascript">
|
||||
var page_akses = '.json_encode($page_akses).';
|
||||
</script>';
|
||||
array_push($form_plugin['ui_plugins_js'],$sweetalert_js);
|
||||
array_push($form_plugin['ui_plugins_js'],$jspm_js);
|
||||
$js_init .= $jspm_rawprint;
|
||||
$js_init .= $jspm_init;
|
||||
|
||||
$roles_verifikator = (array_key_exists('role_verifikator',$_SESSION)) ? explode(',',$_SESSION['role_verifikator']) : [];
|
||||
?>
|
||||
<script language="javascript">
|
||||
$(document).ready(function(){
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: "top-end",
|
||||
showConfirmButton: false,
|
||||
timer: 3000
|
||||
});
|
||||
|
||||
$('.bayar_bill').click(function(){
|
||||
|
||||
$(this).prop("disabled",true);
|
||||
|
||||
var nobill = $(this).data('nobill');
|
||||
var data_frm = $("#byr1").serialize();
|
||||
|
||||
$.post('<?php echo _BASE_; ?>include/master.php?bayar_bill=1&nobill='+nobill+'&kasir=<?php echo $page_akses['kasir'];?>&piutang=<?php echo $page_akses['piutang']?>&petugas=<?php echo $_SESSION['NIP'].(array_key_exists('tgl_request_krs',$_REQUEST) ? '&tgl_request_krs='.$_REQUEST['tgl_request_krs'] : ''); ?>',data_frm,function(data){
|
||||
|
||||
Toast.fire({title:data.message,type:data.type,onClose: function(){
|
||||
if(data.type == 'success') {
|
||||
if(data.nobayar != 'piutang'){
|
||||
print_pembayaran(data.nobayar,nobill);
|
||||
}
|
||||
else {
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
else if(data == 'error'){
|
||||
Toast.fire({title:"Data pembayaran gagal disimpan",type:"info"});
|
||||
Toast.fire({title:"Data pembayaran gagal disimpan",type:"info"});
|
||||
$(".bayar_bill").prop("disabled",false);
|
||||
}else{
|
||||
Toast.fire({title:'Data pembayaran belum dicentang',type:'error'});
|
||||
$(".bayar_bill").prop("disabled",false);
|
||||
return false;
|
||||
}
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
jml_status_piutang = 0;
|
||||
jml_status_tunai = 0;
|
||||
$('.verif_bill').click(function(){
|
||||
jml_status_piutang = 0;
|
||||
jml_status_tunai = 0;
|
||||
var nobill = $(this).data('nobill');
|
||||
var data_frm = $("#byr1").serialize();
|
||||
|
||||
if(dt_orderbatalbill > 0) {
|
||||
Toast.fire({title:"Maaf, masih terdapat <?php echo (($page_akses['kasir']==true) ? 'pembayaran/verifikasi tunai' : (($page_akses['piutang']==true) ? 'piutang/verifikasi piutang' : 'tindakan')); ?> yang diorder batal, batalkan <?php echo (($page_akses['kasir']==true) ? 'pembayaran/verifikasi tunai' : (($page_akses['piutang']==true) ? 'piutang/verifikasi piutang' : 'tindakan')); ?> tersebut terlebih dahulu",type:"error"});
|
||||
return false;
|
||||
}
|
||||
// cek centang
|
||||
st_centang = 0; st_tak_centang = 0;
|
||||
let nonota_obj = {}; let idbill_obj = [];
|
||||
$(".cb_bill").each(function(e,v){
|
||||
let nonota = $(this).data("nonota");
|
||||
|
||||
is_centang = $(this).prop("checked");
|
||||
|
||||
if(is_centang) {
|
||||
st_centang++;
|
||||
if(nonota in nonota_obj){
|
||||
nonota_obj[nonota] += 1;
|
||||
}
|
||||
else {
|
||||
nonota_obj[nonota] = 1;
|
||||
}
|
||||
idbill_obj.push($(this).data("idbill"));
|
||||
}
|
||||
});
|
||||
not_match = 0; match = 0;
|
||||
for (const [key,val] of Object.entries(nonota_obj))
|
||||
{
|
||||
match_nonota = (arr_nonota[0][key] == val) ? true : false;
|
||||
if(match_nonota) {
|
||||
match += 1;
|
||||
}
|
||||
else {
|
||||
not_match += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if(not_match > 0) {
|
||||
Toast.fire({title:"Maaf, ada beberapa transaksi satu nota belum dicentang.",type:"error"});
|
||||
}
|
||||
else {
|
||||
// cek pilihan carabayar
|
||||
st_pilih = 0;
|
||||
st_tak_pilih = 0;
|
||||
jml_status_piutang = 0;
|
||||
jml_status_tunai = 0;
|
||||
$(".st_carabayar").each(function(e,v){
|
||||
|
||||
is_pilih = $(this).find(":selected").val();
|
||||
idx = $(this).data("idx");
|
||||
if($.inArray(idx,idbill_obj) !== -1) {
|
||||
if(is_pilih == '') {
|
||||
st_tak_pilih++;
|
||||
}
|
||||
else {
|
||||
st_pilih++;
|
||||
if(is_pilih == 1) {
|
||||
jml_status_tunai += parseFloat($("#hiden_total_bayar_"+idx).val());
|
||||
}
|
||||
else {
|
||||
jml_status_piutang += parseFloat($("#hiden_total_bayar_"+idx).val());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// console.log(jml_status_piutang,jml_status_tunai);
|
||||
|
||||
if(st_tak_pilih > 0) {
|
||||
Toast.fire({title:"Maaf, ada beberapa transaksi belum dipilih carabayarnya.",type:"error"});
|
||||
}
|
||||
else {
|
||||
/*
|
||||
hitung_pembulatan();
|
||||
|
||||
setTimeout(function() {
|
||||
nilai_bulat_piutang = parseFloat($("#bulat_piutang").val());
|
||||
if(jml_status_piutang > 0) {
|
||||
$("#nilai_pembulatan_piutang").val(nilai_bulat_piutang);
|
||||
}
|
||||
nilai_pembulatan = parseFloat($("#bulat_tunai").val());
|
||||
if(jml_status_tunai > 0) {
|
||||
$("#nilai_pembulatan").val(nilai_pembulatan);
|
||||
}
|
||||
|
||||
if((nilai_pembulatan*1) > 0 || (nilai_bulat_piutang*1) > 0) {
|
||||
$("#modal-pembulatan").modal("show");
|
||||
}
|
||||
else {*/
|
||||
// console.log("Tidak ada pembulatan");
|
||||
$.post('<?php echo _BASE_; ?>include/master.php?verif_bill=1&nobill='+nobill,data_frm,function(data){
|
||||
if(data.match(/ok/)){
|
||||
Toast.fire({title:"Data billing telah diverifikasi",type:"success",onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
}
|
||||
else if(data == 'error'){
|
||||
Toast.fire({title:"Data billing sudah diverifikasi",type:"info"});
|
||||
}else{
|
||||
Toast.fire({title:'Data billing belum dicentang',type:"error"});
|
||||
return false;
|
||||
}
|
||||
});
|
||||
/*}
|
||||
},200);*/
|
||||
}
|
||||
}
|
||||
});
|
||||
$('.print').click(function(){
|
||||
var idxbayar = $(this).attr('svn');
|
||||
print_pembayaran(idxbayar);
|
||||
});
|
||||
|
||||
$('.tindakan').click(function(){
|
||||
var nomr = $('#nomr').val();
|
||||
var idxdaftar = $('#idxdaftar').val();
|
||||
var carabayar = $('#carabayar').val();
|
||||
var poly = $(this).attr('id');
|
||||
var query = $("#tarif_query").val();
|
||||
var rajal_status= $("#rajal_status").val();
|
||||
if(query == '')
|
||||
{
|
||||
Toast.fire({title:'Pencarian Tarif',text:'Isikan keyword pencarian!',type:'error'});
|
||||
}
|
||||
else {
|
||||
$("#modal-preview .modal-title").text("Tarif Tindakan");
|
||||
$("#modal-preview .modal-dialog").css("max-width","98%");
|
||||
$("#modal-preview .btn-success").css("display","none");
|
||||
$("#modal-preview .modal-body").load('daftar_tindakan_klinik.php?nomr='+nomr+'&idx='+idxdaftar+'&carabayar='+carabayar+'&poly='+poly+'&query='+query+'&rajal='+rajal_status);
|
||||
$("#modal-preview").modal("show");
|
||||
}
|
||||
});
|
||||
|
||||
$('.batal_bill').click(function(){
|
||||
idxbill = Array();
|
||||
$(".cb_bill").each(function(){
|
||||
if($(this).is(":checked") == true){
|
||||
idxbill.push($(this).val());
|
||||
}
|
||||
});
|
||||
|
||||
if(idxbill.length > 0) {
|
||||
Swal.fire({
|
||||
title: 'Anda yakin?',
|
||||
html: 'Anda ingin membatalkan billing tersebut dengan alasan<br><?php echo preg_replace("/\n/",'',form_dropdown('alasan',$arr_alasan,'','class="form-control" id="alasan_batal"')); ?>',
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ya, Batalkan!'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
alasan = $("#alasan_batal").find(":selected").val();
|
||||
nomr = $("#nomr").val();
|
||||
|
||||
$.post('<?php echo _BASE_;?>include/master.php',{batal_bill_rajal:true,idxbill,alasan,nomr},function(data){
|
||||
|
||||
},"json");
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
Toast.fire({title:"Centang beberapa bill terlebih dahulu",type:"error"});
|
||||
}
|
||||
});
|
||||
|
||||
$('.batal_verif_bill').click(function(){
|
||||
idxbill = $(this).data('idxbill');
|
||||
|
||||
Swal.fire({
|
||||
title: 'Anda yakin?',
|
||||
html: "Anda ingin membatalkan verifikasi billing tersebut",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ya, Batalkan!'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
$.post('<?php echo _BASE_;?>include/master.php',{batal_verif_bill_rajal:true,idxbill},function(data){
|
||||
Toast.fire({title:data.message,type:data.type});
|
||||
},"json");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('.batal_trx_bill').click(function(){
|
||||
idxbill = Array();
|
||||
$(".cb_bill").each(function(){
|
||||
if($(this).is(":checked") == true){
|
||||
idxbill.push($(this).val());
|
||||
}
|
||||
});
|
||||
|
||||
if(idxbill.length > 0) {
|
||||
idxdaftar = $("#idxdaftar").val();
|
||||
nobill = $("#nobill").val();
|
||||
|
||||
Swal.fire({
|
||||
title: 'Anda yakin?',
|
||||
html: "Anda ingin membatalkan tindakan tersebut",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ya, Batalkan!'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
$.post('<?php echo _BASE_;?>include/master.php',{batal_trx_bill_rajal:true,idxbill},function(data){
|
||||
Toast.fire({title:data.message,type:data.type});
|
||||
if(data.type == 'success') {
|
||||
print_batal_tindakan(data.nonota,nobill,idxdaftar);
|
||||
}
|
||||
},"json");
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
Toast.fire({title:"Centang beberapa bill terlebih dahulu",type:"error"});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$(".st_carabayar").on("change",function(){
|
||||
var status = $(this).find(":selected").text();
|
||||
var status_val = $(this).val();
|
||||
var idx = $(this).data("idx");
|
||||
if(status == 'Piutang' || status_val == 2)
|
||||
{
|
||||
penjamin_global = $("#penjamin-global").find(":selected").val();
|
||||
|
||||
var data_penjamin = "<?php echo preg_replace("/\"/","\\\"",preg_replace("/\n/",'',form_dropdown('kd_penjamin[{idx}]',$arr_penjamin,'','class="form-control input-sm kd_penjamin" id="penjamin-{idx}" style="width:100%"'))); ?>";
|
||||
var res_penjamin = data_penjamin.replace(/\{idx\}/g,idx);
|
||||
var regex_penjamin = new RegExp('value="'+penjamin_global+'"');
|
||||
var res_penjamin = res_penjamin.replace(regex_penjamin,'value="'+penjamin_global+'" selected');
|
||||
}
|
||||
else {
|
||||
var data_penjamin = "<?php echo preg_replace("/\"/","\\\"",preg_replace("/\n/",'',form_dropdown('kd_penjamin[{idx}]',array(),'','class="form-control input-sm kd_penjamin" id="penjamin-{idx}" style="width:100%"'))); ?>";
|
||||
var res_penjamin = data_penjamin.replace('{idx}',idx);
|
||||
}
|
||||
|
||||
$("#penjamin_wrapper_"+idx).html(res_penjamin);
|
||||
$("select.kd_penjamin").select2();
|
||||
});
|
||||
|
||||
arr_jumlah = Array();
|
||||
$(".cb_bill").on("click",function(){
|
||||
this_row_carabayar = $(this).data("row_carabayar");
|
||||
var carabayar = (this_row_carabayar) ? this_row_carabayar : $('#carabayar').val();
|
||||
var idbill = $(this).data("idbill");
|
||||
var st_cek = $(this).is(":checked");
|
||||
if(st_cek)
|
||||
{
|
||||
status_carabayar = (carabayar == 1) ? '1' : '2';
|
||||
$("#carabayar-"+idbill).val(status_carabayar).trigger('change');
|
||||
jumlah = $(this).data("total");
|
||||
arr_jumlah.push(jumlah);
|
||||
txt_jumlah = 0;
|
||||
$.each(arr_jumlah,function(k,v){
|
||||
txt_jumlah += parseFloat(v);
|
||||
});
|
||||
|
||||
$("#str_total_cek").text("Rp. "+accounting.formatMoney(txt_jumlah,2,",","."));
|
||||
}
|
||||
else {
|
||||
$("#carabayar-"+idbill).val("").trigger('change');
|
||||
}
|
||||
});
|
||||
|
||||
$("#global_cek").click(function(){
|
||||
is_cek = $(this).prop("checked");
|
||||
if(is_cek) {
|
||||
$(".cb_bill").trigger("click");
|
||||
}
|
||||
else {
|
||||
$(".cb_bill").trigger("click");
|
||||
}
|
||||
})
|
||||
$("#tarif_query").on("keydown",function(e){
|
||||
if(e.which == 13 || e.keyCode == 13)
|
||||
{
|
||||
$(".tindakan").trigger("click");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
function hitung_pembulatan() {
|
||||
setelah_bulat = 0;
|
||||
jml_status_tunai_math = (((jml_status_tunai + Number.EPSILON) * 100) / 100).toFixed(2);
|
||||
jml_status_piutang_math = (((jml_status_piutang + Number.EPSILON) * 100) / 100).toFixed(2);
|
||||
if(jml_status_piutang > 0) {
|
||||
$.post("<?php echo _BASE_.'include/master.php'; ?>",{hitung_pembulatan:1,total_biaya:jml_status_piutang_math},function(data){
|
||||
$("#bulat_piutang").val(data.hasil.pembulatan);
|
||||
// console.log(data.hasil.pembulatan);
|
||||
setelah_bulat += data.hasil.setelah_pembulatan;
|
||||
},"json");
|
||||
}
|
||||
|
||||
if(jml_status_tunai > 0) {
|
||||
$.post("<?php echo _BASE_.'include/master.php'; ?>",{hitung_pembulatan:1,total_biaya:jml_status_tunai_math},function(data){
|
||||
$("#bulat_tunai").val(data.hasil.pembulatan);
|
||||
// console.log(data.hasil.pembulatan);
|
||||
setelah_bulat += data.hasil.setelah_pembulatan;
|
||||
},"json");
|
||||
}
|
||||
|
||||
setTimeout(function(){
|
||||
$("#total_biaya_pembulatan").val( (parseFloat(jml_status_tunai_math)+parseFloat(jml_status_piutang_math)) );
|
||||
$("#total_setelah_bulat").val( setelah_bulat );
|
||||
},200);
|
||||
}
|
||||
|
||||
function printRaw(rajal_status,nomr,idxdaftar,nobill,nobayar,aps,tanggal,petugas) {
|
||||
$.post("<?php echo _BASE_;?>keuangan/print_kuitansi.php",{rajal_status,nomr,idxdaftar,nobill,nobayar,aps,tanggal,petugas,raw:1,shift:<?php echo $_SESSION['SHIFT']; ?>},function(print_command){
|
||||
jspm_print_raw(print_command);
|
||||
});
|
||||
}
|
||||
|
||||
function print_pembayaran(nobayar,nobill)
|
||||
{
|
||||
var nomr = $("#nomr").val();
|
||||
var idxdaftar = $("#idxdaftar").val();
|
||||
var aps = $("#aps").val();
|
||||
|
||||
jspm_print('<?php echo _BASE_; ?>keuangan/print_kuitansi.php?nomr='+nomr+'&nobill='+nobill+'&nobayar='+nobayar+'&idxdaftar='+idxdaftar+'&rajal_status=1&tanggal=<?php echo date("Y-m-d").'&petugas='.$_SESSION['NIP']; ?>&aps='+aps+'&shift=<?php echo $_SESSION['SHIFT']; ?>','modal-cartbill','Kuitansi Bayar '+nomr+'.pdf', 0);
|
||||
|
||||
cek_tombol_cetak = $("#cetak_raw").length;
|
||||
if(cek_tombol_cetak > 0) {
|
||||
$("#cetak_raw").remove();
|
||||
}
|
||||
$("#modal-cartbill .modal-footer").append("<button type=\"button\" id=\"cetak_raw\" class=\"btn btn-primary\" onclick=\"printRaw(1,"+nomr+","+idxdaftar+","+nobill+",'"+nobayar+"',"+aps+",'<?php echo date("Y-m-d"); ?>','<?php echo $_SESSION['NIP']; ?>')\"><i class=\"fa fa-print\"></i> Cetak</button>");
|
||||
}
|
||||
function print_restitusi(nonota)
|
||||
{
|
||||
jspm_print('<?php echo _BASE_; ?>print_nota_restitusi.php?nonota='+nonota+'&rajal_status=1','modal-cartbill','Nota Restitusi '+nonota+'.pdf',0);
|
||||
}
|
||||
function changePenjaminGlobal(elm)
|
||||
{
|
||||
penjamin_global = $(elm).find(":selected").val();
|
||||
$(".kd_penjamin").val(penjamin_global).trigger("change");
|
||||
}
|
||||
function print_batal_tindakan(nonota,nobill,idxdaftar)
|
||||
{
|
||||
jspm_print('<?php echo _BASE_; ?>print_nota_batal.php?nonota='+nonota+'&nobill='+nobill+'&idxdaftar='+idxdaftar+'&rajal_status=1','modal-cartbill','Nota Batal Tindakan '+nonota+'.pdf',0);
|
||||
}
|
||||
|
||||
function simpanPembulatan(elm) {
|
||||
$("#btnSimpanPembulatan").prop("disabled",true);
|
||||
|
||||
var idx = $(elm).data("ix");
|
||||
var dokter = null;
|
||||
var kriteria = null;
|
||||
var kompleksitas = null;
|
||||
var disc = $(elm).data("disc");
|
||||
var adm = $(elm).data("adm");
|
||||
var nomr = $(elm).data("nomr");
|
||||
var carabayar = $(elm).data("carabayar");
|
||||
|
||||
kode = "<?=$_SESSION['tarif_pembulatan']?>";
|
||||
qty = 1;
|
||||
poly = $(elm).data("ruang");
|
||||
nott = $(elm).data("nott");
|
||||
tarif_piutang = parseFloat($("#nilai_pembulatan_piutang").val().replace(/,/g,"."));
|
||||
tarif_tunai = parseFloat($("#nilai_pembulatan").val().replace(/,/g,"."));
|
||||
id = $(elm).data("kode");
|
||||
aps = $("#aps").val();
|
||||
faktor= 1;
|
||||
|
||||
if( (tarif_tunai*1) > 0 ) {
|
||||
|
||||
const p1 = $.post("<?=_BASE_?>save_tmp_cartbayar_pembulatan.php",{kode,dokter,poly,id,faktor,tarif:tarif_tunai,aps},function(data){
|
||||
});
|
||||
const p2 = $.post("<?=_BASE_?>cartbill_save_bayar.php",{nomr,poly,idxdaftar:idx,carabayar,piutang:0,aps},function(data){
|
||||
});
|
||||
}
|
||||
if( (tarif_piutang*1) > 0 ){
|
||||
const p1_p = $.post("<?=_BASE_?>save_tmp_cartbayar_pembulatan.php",{kode,dokter,poly,id,faktor,tarif:tarif_piutang,aps},function(data){
|
||||
});
|
||||
const p2_p = $.post("<?=_BASE_?>cartbill_save_bayar.php",{nomr,poly,idxdaftar:idx,carabayar,piutang:1,aps},function(data){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
setTimeout(function(){
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: "top-end",
|
||||
showConfirmButton: false,
|
||||
timer: 3000
|
||||
});
|
||||
/* window.location.href = "<?=_BASE_?>index.php?link=34&idxdaftar="+idx+"&nobill=<?=$data2['nobill']?>"; */
|
||||
var data_frm = $("#byr1").serialize();
|
||||
|
||||
$.post('<?php echo _BASE_; ?>include/master.php?verif_bill=1&nobill='+nobill,data_frm,function(data){
|
||||
if(data.match(/ok/)){
|
||||
Toast.fire({title:"Data billing telah diverifikasi",type:"success",onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
}
|
||||
else if(data == 'error'){
|
||||
Toast.fire({title:"Data billing sudah diverifikasi",type:"info"});
|
||||
}else{
|
||||
$("#btnSimpanPembulatan").prop("disabled",false);
|
||||
Toast.fire({title:'Data billing belum dicentang',type:"error"});
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},200);
|
||||
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.detail_billing ul{
|
||||
list-style:none; padding-left:10px;
|
||||
}
|
||||
.detail_billing li{padding:3px;}
|
||||
</style>
|
||||
<style type="text/css" media="screen">
|
||||
#tmp_print{display:none;}
|
||||
</style>
|
||||
<style type="text/css" media="print">
|
||||
#tmp_print{display:block;}
|
||||
</style>
|
||||
<div align="center">
|
||||
<?php
|
||||
$class_col_identitas = ($page_akses['verif'] == 1) ? 'col-md-8' : 'col-md-12';
|
||||
$hidden_entritindakan = ($page_akses['verif'] == 1) ? '' : '<!--';
|
||||
$end_hidden_entritindakan = ($page_akses['verif'] == 1) ? '' : '-->';
|
||||
|
||||
$nama_list = ($page_akses['piutang']) ? 'Piutang' : ( ($page_akses['kasir']) ? 'Pembayaran' : 'Tagihan');
|
||||
|
||||
$sql3 = 'SELECT a.nomr, b.nobill,t.uraian_tarif
|
||||
FROM t_bayarrajal a
|
||||
JOIN t_billrajal b ON a.IDXBILL = b.IDXBILL
|
||||
JOIN m_tarif_rs t on b.kodetarif = t.kode_tarif
|
||||
WHERE a.NOMR = \''.$_REQUEST['nomr'].'\' AND a.STATUS !=\'BATAL\' AND b.IDXDAFTAR = \''.$_REQUEST['idxdaftar'].'\'
|
||||
GROUP BY
|
||||
a.NOMR, b.NOBILL,t.uraian_tarif,
|
||||
a.TGLBAYAR , b.IDXDAFTAR';
|
||||
$qry3 = $db->query($sql3);
|
||||
$all_userdata = $qry3->fetchAll();
|
||||
$data2 = $qry3->fetchFirst();
|
||||
|
||||
$sudah_pembulatan = false;
|
||||
foreach($all_userdata as $row_bill) {
|
||||
if(preg_match("/PEMBULATAN/", $row_bill['uraian_tarif']))
|
||||
{
|
||||
$sudah_pembulatan = true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>Cart Bayar Rawat Jalan</h5></div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="<?php echo $class_col_identitas; ?>">
|
||||
<div class="card">
|
||||
<h5 class="card-header">IDENTITAS</h5>
|
||||
<div class="card-body">
|
||||
<input type="hidden" name="nomr" id="nomr" value="<?php echo $userdata['nomr']; ?>">
|
||||
<input type="hidden" name="idxdaftar" id="idxdaftar" value="<?php echo $userdata['idxdaftar']; ?>">
|
||||
<input type="hidden" name="carabayar" id="carabayar" value="<?php echo $userdata['kdcarabayar']; ?>">
|
||||
<input type="hidden" name="dokter" id="dokter" value="<?php echo $userdata['kddokter']; ?>">
|
||||
<input type="hidden" name="rajal_status" id="rajal_status" value="1">
|
||||
<input type="hidden" id="nobill" value="<?php echo $data2['nobill']; ?>">
|
||||
<input type="hidden" name="aps" id="aps" value="<?php echo $_REQUEST['aps']; ?>">
|
||||
<input type="hidden" id="bulat_tunai" value="">
|
||||
<input type="hidden" id="bulat_piutang" value="">
|
||||
<?php
|
||||
$a = datediff($userdata['tgllahir'], date("Y-m-d"));
|
||||
echo '<div class="row text-left">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>No RM</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nomr'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nama Pasien</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nama'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['alamat'].'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>Tanggal Lahir</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.date_to_id($userdata['tgllahir']).'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Umur</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$a['years'].' tahun '.$a['months'].' bulan '.$a['days'].' hari" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Kelamin</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.jeniskelamin($userdata['jeniskelamin']).'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>Klinik</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nama_poly'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Pembayaran</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['carabayar'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>No Billing</label>
|
||||
<input type="text" class="form-control form-control-sm" style="font-weight:bold;font-size:16px" value="'.$data2['nobill'].'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $hidden_entritindakan; ?>
|
||||
<div class="col-md-4">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Tarif Tindakan</h5>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<?php
|
||||
if($_SESSION['ROLES'] == 26){
|
||||
$sqll = 'SELECT status FROM t_pendaftaran WHERE NOMR = \''.$_REQUEST['nomr'].'\' AND idxdaftar = \''.$_REQUEST['idxdaftar'].'\'';
|
||||
$sqll = $db->query($sqll);
|
||||
$qrtl = $sqll->fetchAll()[0];
|
||||
if($qrtl['status'] < 1){ ?>
|
||||
<input type="button" name="tindakan_poly" class="tindakan btn btn-outline-secondary" id="<?php echo $userdata['kdpoly'];?>" value="Tarif Tindakan" />
|
||||
<input type="button" name="tindakan_poly" class="tindakan btn btn-outline-secondary" id="0" value="Tarif Tindakan" />
|
||||
<?php
|
||||
}else{ echo 'Pasien sudah pulang'; }
|
||||
}else{
|
||||
?>
|
||||
<div class="input-group">
|
||||
<input type="text" name="query" id="tarif_query" class="form-control">
|
||||
<div class="input-group-append"><input type="button" name="tindakan_poly" class="tindakan btn btn-outline-secondary" id="<?php echo $userdata['kdpoly'];?>" value="Cari Tarif" /></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
if(in_array($_SESSION['ROLES'],$roles_verifikator)){
|
||||
if($page_akses['verif']) {
|
||||
if($sudah_pembulatan == false) {
|
||||
// echo '<button type="button" id="btnTambahPembulatan" class="btn btn-outline-info btn-sm"><i class="fa fa-calculator"></i> PEMBULATAN</button>';
|
||||
}
|
||||
else {
|
||||
// echo '<label class="label label-info"><p>Pembulatan Sudah Dientrikan!</p></label>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $end_hidden_entritindakan; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tmp_print"></div>
|
||||
</div>
|
||||
|
||||
<div id="frame" style="margin-top:10px">
|
||||
<div id="frame_title"><h5>List <?php echo $nama_list; ?>
|
||||
<div class="pull-right" id="str_total_cek">Rp. 0
|
||||
</div>
|
||||
</h5></div>
|
||||
<div class="container-fluid">
|
||||
<form name="byr1" action="include/process.php" method="post" id="byr1">
|
||||
<input type="hidden" name="carabayar" value="<?php echo $userdata['kdcarabayar']; ?>">
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table table-sm table-bordered border border-secondary">
|
||||
|
||||
<?php
|
||||
echo '<tr class="bg-success text-white">';
|
||||
if($page_akses['kasir'] == 1 || $page_akses['verif'] == 1) {
|
||||
echo '<th style="width:1%">#</th>';
|
||||
}
|
||||
else {
|
||||
echo '<th style="width:1%"><input type="checkbox" id="global_cek" class="cb_all"></th>';
|
||||
}
|
||||
echo '
|
||||
<th style="width:5%">Tanggal</th>
|
||||
<th style="width:5%">No Nota</th>
|
||||
<th style="width:5%">Kode Tarif</th>
|
||||
<th style="width:25%">Nama Tarif</th>
|
||||
<th style="width:7%; text-align:center;">Tarif</th>
|
||||
<th style="width:7%; text-align:center;">Carabayar</th>';
|
||||
if($page_akses['piutang'] == 1) {
|
||||
echo '<th style="width:12%; text-align:center;">Penjamin<div id="penjamin_global">'.form_dropdown('kd_penjamin',$arr_penjamin,'','class="form-control input-sm" id="penjamin-global" onchange="changePenjaminGlobal(this)" style="width:100%"').'</div></th>';
|
||||
}
|
||||
echo '
|
||||
</tr>
|
||||
<tbody class="list_billrajal">';
|
||||
|
||||
|
||||
$where_verif = '';
|
||||
if($page_akses['verif'] == false) {
|
||||
$where_verif = 'AND b.status_verifikasi = 1';
|
||||
}
|
||||
else {
|
||||
$where_verif = 'AND (b.status_verifikasi is null or b.status_verifikasi = 0)';
|
||||
}
|
||||
$where_carabayar = $where_bayar = $where_piutang = '';
|
||||
if($page_akses['kasir'] == true) {
|
||||
$where_carabayar = ' AND a.st_carabayar = 1';
|
||||
$where_bayar = ' AND a.status = \'TRX\'';
|
||||
}
|
||||
elseif($page_akses['piutang'] == true) {
|
||||
$where_carabayar = ' AND a.st_carabayar = 2';
|
||||
$where_piutang = ' AND (select count(id_piutang) from t_piutang where nobilling = b.nobill and idxbill = b.idxbill and (st_piutang is null or st_piutang = \'LUNAS\') ) = 0';
|
||||
}
|
||||
|
||||
// if($page_akses['d'] == true) {
|
||||
// $where_batal = " AND b.status = 'BATAL' ";
|
||||
// }
|
||||
// else {
|
||||
$where_batal = " AND (b.status is null OR b.status = 'SELESAI')";
|
||||
// }
|
||||
|
||||
$sql = "SELECT a.nomr, b.tanggal,b.nonota,b.nobill,b.idxbill, c.kode_tarif, c.uraian_tarif as nama_jasa, c.jumlah as harga, b.qty,a.tbp,a.shift, sum(b.tarifrs - coalesce(b.costsharing_pelayanan,0) - coalesce(b.costsharing_anastesi,0) - coalesce(b.costsharing_sarana,0)) as subtotal, a.tglbayar , b.idxdaftar, b.carabayar , d.nama_cara_bayar, e.nama_penjamin, b.status_verifikasi, a.st_carabayar,a.kd_penjamin, md.namadokter,b.status,b.alasan_batal,tp.jml_piutang, tp.st_piutang, count(obb.idxbill) as status_orderbatal,count(obb_piutang.idxbill) as status_orderbatalpiutang,count(obb_bayar.idxbill) as status_orderbatalbayar,count(obb_verif.idxbill) as status_orderbatalverif
|
||||
FROM t_bayarrajal a
|
||||
JOIN t_billrajal b ON a.IDXBILL = b.IDXBILL
|
||||
JOIN m_tarif_rs c ON c.kode_tarif = b.KODETARIF
|
||||
left join m_cara_bayar d on d.id_cara_bayar = a.st_carabayar
|
||||
left join m_penjamin e on e.id_penjamin = a.kd_penjamin
|
||||
left join m_dokter md on md.kddokter = b.kddokter
|
||||
LEFT JOIN ( select idxbill, count(id_piutang) as jml_piutang, st_piutang from t_piutang where nobilling = '{$data2['nobill']}' and st_billing = 'IRJA' and st_piutang is null group by idxbill,st_billing,st_piutang) tp on b.idxbill = tp.idxbill
|
||||
LEFT JOIN (select idxbill from t_orderbatalbill obb where nobill = '{$data2['nobill']}' and billing = 'RAJAL' and st_orderbatal_tindakan = 1 and st_batal_tindakan is null) obb on obb.idxbill = b.idxbill
|
||||
LEFT JOIN (select idxbill from t_orderbatalbill obbv where nobill = '{$data2['nobill']}' and billing = 'RAJAL' and (st_orderbatal_verifikasi = 1 and st_batal_verif is null)) obb_verif on obb_verif.idxbill = b.idxbill
|
||||
LEFT JOIN (select idxbill from t_orderbatalbill obb2 where nobill = '{$data2['nobill']}' and billing = 'RAJAL' and (st_orderbatal_piutang = 1 and st_batal_piutang is null)) obb_piutang on obb_piutang.idxbill = b.idxbill
|
||||
LEFT JOIN (select idxbill from t_orderbatalbill obb3 where nobill = '{$data2['nobill']}' and billing = 'RAJAL' and (st_orderbatal_bayar = 1 and st_batal_bayar is null)) obb_bayar on obb_bayar.idxbill = b.idxbill
|
||||
WHERE a.NOMR = '{$_REQUEST['nomr']}' AND a.STATUS !='BATAL' $where_batal AND b.IDXDAFTAR = '{$_REQUEST['idxdaftar']}' $where_verif $where_carabayar $where_piutang $where_bayar
|
||||
GROUP BY
|
||||
a.nomr, b.nonota, b.nobill, b.idxbill, c.kode_tarif, c.uraian_tarif, c.jumlah, b.qty, a.tbp, a.shift, a.tglbayar, b.idxdaftar, b.carabayar, d.nama_cara_bayar, e.nama_penjamin, b.status_verifikasi, a.st_carabayar, a.kd_penjamin, md.namadokter,b.status, b.alasan_batal,tp.jml_piutang,tp.st_piutang";
|
||||
|
||||
$qry = $db->query($sql);
|
||||
|
||||
$i = 0; $str_total_cek = $bill_terorderbatal = 0;
|
||||
if($qry->numRows() > 0) {
|
||||
$arr_nonota = [];
|
||||
foreach($qry->fetchAll() as $data){
|
||||
if($page_akses['verif'] == true && $data['status_orderbatal'] > 0) { $bill_terorderbatal++; continue; }
|
||||
if( ($page_akses['piutang'] == true && $data['status_orderbatalpiutang'] > 0) ||
|
||||
($page_akses['piutang'] == true && $data['status_orderbatalverif'] > 0)) { $bill_terorderbatal++; continue; }
|
||||
if( ($page_akses['kasir'] == true && $data['status_orderbatalbayar'] > 0) ||
|
||||
($page_akses['kasir'] == true && $data['status_orderbatalverif'] > 0)) { $bill_terorderbatal++; continue; }
|
||||
if(!array_key_exists($data['nonota'], $arr_nonota)) {
|
||||
$arr_nonota[$data['nonota']] = 1;
|
||||
}
|
||||
else {
|
||||
$arr_nonota[$data['nonota']] += 1;
|
||||
}
|
||||
$st_verif = ($data['status_verifikasi'] == 1) ? '<span class="bg-success text-white p-2">Verif<i class="fa fa-check"></i></span>' : '<span class="bg-danger text-white p-2">Verif <i class="fa fa-times"></i></span>';
|
||||
if($page_akses['piutang'] == true) {
|
||||
$st_bayar = ($data['kd_penjamin'] == '') ? '' : '<span class="bg-success text-white p-2">Piutang<i class="fa fa-check"></i></span>';
|
||||
}
|
||||
else {
|
||||
$st_bayar = ($data['tglbayar'] == '' || $data['tglbayar'] == '0000-00-00' || $data['tglbayar'] == '0001-01-01') ? '<span class="bg-danger text-white p-2"><i class="fa fa-times"></i> Bayar</span>' : '<span class="bg-success text-white p-1"><i class="fa fa-check"></i>Lunas</span>';
|
||||
}
|
||||
|
||||
// $btn_batal = '<button type="button" name="Cancel" class="btn btn-outline-danger btn-sm cancel" idxdaftar="'.$userdata['idxdaftar'].'" id="cancel_'.$data['idxbill'].'" data-idxbill="'.$data['idxbill'].'"> Batal </button>';
|
||||
$btn_batal = '';
|
||||
$status_orderbatal = ($data['status'] == 'BATAL') ? '<br><small><span class="bg-yellow text-white p-1">Diorder batal dengan alasan : '.$data['alasan_batal'].'</span></small>' : '';
|
||||
$SHIFT = (array_key_exists('SHIFT', $_SESSION)) ? $_SESSION['SHIFT'] : $data['shift'];
|
||||
|
||||
if(($data['tglbayar'] == '') or
|
||||
($data['tglbayar'] == '0000-00-00') or
|
||||
($data['tglbayar'] == '0001-01-01')){
|
||||
$cekbox = '';
|
||||
|
||||
// jika user mempunyai akses delete, tambah tombol batal verif
|
||||
// $st_verif .= ($page_akses['d'] && $data['status_verifikasi']) ? '<br><button type="button" class="btn btn-sm btn-outline-danger batal_verif_bill mt-2" data-idxbill="'.$data['idxbill'].'">Batal Verif</button>' : '';
|
||||
|
||||
if($page_akses['verif'] == true) {
|
||||
if($data['status_verifikasi'] != 1) {
|
||||
$cekbox = '<input type="checkbox" class="cb_bill" data-idbill="'.$data['idxbill'].'" name="cb_bill[]" data-total="'.$data['subtotal'].'" value="'.$data['idxbill'].'" data-nonota="'.$data['nonota'].'">';
|
||||
$drop_carabayar = form_dropdown('st_carabayar['.$data['idxbill'].']',$arr_cara_bayar,'','class="form-control input-sm st_carabayar" id="carabayar-'.$data['idxbill'].'" data-idx="'.$data['idxbill'].'" style="width:100%"');
|
||||
$drop_penjamin = '';
|
||||
}
|
||||
else {
|
||||
$st_carabayar = $data['st_carabayar'];
|
||||
$drop_carabayar = $data['nama_cara_bayar'];
|
||||
$drop_penjamin = ($st_carabayar == 2) ? $data['nama_penjamin'] : '';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
$drop_carabayar = $data['nama_cara_bayar'];
|
||||
$drop_carabayar .= '<input type="hidden" id="carabayar-'.$data['idxbill'].'" data-idx="'.$data['idxbill'].'" name="st_carabayar['.$data['idxbill'].']" value="'.$data['st_carabayar'].'" class="st_carabayar">';
|
||||
if($page_akses['piutang']) {
|
||||
$cekbox = '<input type="checkbox" class="cb_bill" data-idbill="'.$data['idxbill'].'" name="cb_bill[]" data-total="'.$data['subtotal'].'" value="'.$data['idxbill'].'" data-row_carabayar="'.$data['st_carabayar'].'">';
|
||||
if($data['jml_piutang'] > 0) { $cekbox = ''; }
|
||||
// if($data['kd_penjamin'] != '') { $cekbox = ''; }
|
||||
$drop_penjamin = '<div id="penjamin_wrapper_'.$data['idxbill'].'"></div>';
|
||||
}else {
|
||||
$cekbox = '<input type="hidden" class="cb_bill" data-idbill="'.$data['idxbill'].'" name="cb_bill[]" data-total="'.$data['subtotal'].'" value="'.$data['idxbill'].'" data-row_carabayar="'.$data['st_carabayar'].'">';
|
||||
$drop_penjamin = '';
|
||||
}
|
||||
}
|
||||
|
||||
$hidden_form = '<input type="hidden" name="shift['.$data['idxbill'].']" id="shift'.$data['idxbill'].'" value="'.$SHIFT.'" />';
|
||||
$hidden_form .= '<input type="hidden" name="total['.$data['idxbill'].']" id="hiden_total_bayar_'.$data['idxbill'].'" value="'.$data['subtotal'].'" />';
|
||||
$hidden_form .= '<input type="hidden" name="keringanan['.$data['idxbill'].']" id="hiden_keringanan_'.$data['idxbill'].'" value="0" />';
|
||||
$hidden_form .= '<input type="hidden" name="alasan['.$data['idxbill'].']" id="hiden_alasan_'.$data['idxbill'].'" value="" />';
|
||||
$hidden_form .= '<input type="hidden" name="st_carabayar['.$data['idxbill'].']" id="hiden_carabayar_'.$data['idxbill'].'" value="'.$data['st_carabayar'].'" />';
|
||||
|
||||
$row_bill = '<tr>';
|
||||
$row_bill .= '<td>'.$cekbox.$hidden_form.'<span id="text_shift_'.$data['idxbill'].'"></span></td>';
|
||||
$row_bill .= '<td>'.date_to_id($data['tanggal']).'</td>';
|
||||
$row_bill .= '<td>'.$data['nonota'].'</td>';
|
||||
$row_bill .= '<td>'.$data['kode_tarif'].'</td>';
|
||||
$row_bill .= '<td>'.$data['nama_jasa'].'</td>';
|
||||
$row_bill .= '<td><span id="tarif_'.$data['idxbill'].'">Rp. '.format_uang($data['subtotal']).'</span></td>';
|
||||
$row_bill .= '<td>'.$drop_carabayar.'<span id="text_carabayar_'.$data['idxbill'].'"></span></td>';
|
||||
if($page_akses['piutang']){
|
||||
$row_bill .= '<td>'.$drop_penjamin.'<span id="text_penjamin_'.$data['idxbill'].'">'.$data['nama_penjamin'].'</span></td>';
|
||||
}
|
||||
// $row_bill .= '<td>'.(($page_akses['verif']) ? $st_verif : $st_bayar).(($page_akses['d']) ? $btn_batal : '').'</td>';
|
||||
$row_bill .= '</tr>';
|
||||
$str_total_cek += $data['subtotal'];
|
||||
echo $row_bill;
|
||||
}
|
||||
else{
|
||||
// jika user mempunyai akses delete, tambah tombol batal verif
|
||||
// $st_verif .= ($page_akses['d'] && $data['status_verifikasi']) ? '<br><button type="button" class="btn btn-sm btn-outline-danger batal_verif_bill mt-2" data-idxbill="'.$data['idxbill'].'">Batal Verif</button>' : '';
|
||||
|
||||
$cekbox = ($page_akses['verif'] || $page_akses['piutang']) ? '<input type="checkbox" class="cb_bill" data-idbill="'.$data['idxbill'].'" name="cb_bill[]" data-total="'.$data['subtotal'].'" value="'.$data['idxbill'].'">' : '';
|
||||
$row_bill = '<tr>';
|
||||
$row_bill .= '<td>'.$cekbox.'</td>';
|
||||
$row_bill .= '<td>'.date_to_id($data['tanggal']).'</td>';
|
||||
$row_bill .= '<td>'.$data['nonota'].'</td>';
|
||||
$row_bill .= '<td>'.$data['kode_tarif'].'</td>';
|
||||
$row_bill .= '<td>'.$data['nama_jasa'].$status_orderbatal.'</td>';
|
||||
$row_bill .= '<td class="text-right">Rp. '.format_uang($data['subtotal']).'</td>';
|
||||
$row_bill .= '<td>'.$data['nama_cara_bayar'].'</td>';
|
||||
if($page_akses['piutang']){
|
||||
$row_bill .= '<td>'.$data['nama_penjamin'].'</td>';
|
||||
}
|
||||
// $row_bill .= '<td>'.(($page_akses['verif']) ? $st_verif : $st_bayar).(($page_akses['d']) ? $btn_batal : '').'</td>';
|
||||
$row_bill .= '</tr>';
|
||||
|
||||
echo $row_bill;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$last_row = '<tr>
|
||||
<td colspan="7"> <div class="pull-left"></div>
|
||||
<div class="pull-right">';
|
||||
if($page_akses['v'] == 1 && $page_akses['kasir'] == true) {
|
||||
$last_row .= '<input type="button" name="Submit" value="Bayar" class="btn btn-outline-primary bayar_bill" data-nobill="'.$data2['nobill'].'" id="btnBayar"/>';
|
||||
}
|
||||
elseif($page_akses['v'] == 1 && $page_akses['verif'] == true) {
|
||||
$last_row .= '<input type="button" name="Submit" value="Verifikasi" class="btn btn-outline-primary verif_bill" data-nobill="'.$data2['nobill'].'" id="btnVerifikasi"/>';
|
||||
}
|
||||
elseif($page_akses['v'] == 1 && $page_akses['piutang'] == true) {
|
||||
$last_row .= '<input type="button" name="Submit" value="Simpan Piutang" class="btn btn-outline-primary bayar_bill" data-nobill="'.$data2['nobill'].'" id="btnPiutang"/>';
|
||||
}
|
||||
|
||||
$last_row .= '<div id="callback_'.$data2['nobill'].'" style="float:right;"></div>';
|
||||
$last_row .= '</div></td></tr>';
|
||||
|
||||
echo $last_row;
|
||||
}
|
||||
else {
|
||||
echo '<tr><td colspan="8"><div class="alert alert-danger">Belum ada list tagihan</div></td></tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
cartbill = $("#cartbill-template").html();
|
||||
pembulatan = $("#pembulatan-template").html();
|
||||
$("body").append(cartbill).append(pembulatan);
|
||||
$("#btnTambahPembulatan").on("click",function(){
|
||||
$("#modal-pembulatan").modal("show");
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
if($page_akses['kasir']) {
|
||||
echo '<script>';
|
||||
echo '$(document).ready(function(){
|
||||
$("#str_total_cek").text("Rp. '.format_uang($str_total_cek).'");
|
||||
});';
|
||||
echo '</script>';
|
||||
}
|
||||
$js_init .= '
|
||||
var dt_orderbatalbill = '.(($bill_terorderbatal > 0) ? 1 : 0).';
|
||||
';
|
||||
echo '<script>let arr_nonota = ['.json_encode($arr_nonota).'];</script>';
|
||||
?>
|
||||
<template id="cartbill-template">
|
||||
<div class="modal fade modal-cartbill-lg" id="modal-cartbill" tabindex="-1" role="dialog" aria-labelledby="modalCartbill" aria-hidden="true">
|
||||
<div class="modal-dialog " style="max-width: 90%">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Preview Hasil</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="window.location.reload()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="print_body">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" data-dismiss="modal">Print</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="window.location.reload()">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template id="pembulatan-template">
|
||||
<div class="modal fade modal-pembulatan-lg" id="modal-pembulatan" tabindex="-1" role="dialog" aria-labelledby="modalCartbill" aria-hidden="true">
|
||||
<div class="modal-dialog " style="max-width: 50%">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Pembulatan</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body" id="print_body">
|
||||
<form id="pembulatan-form">
|
||||
<?php
|
||||
$tarif_pembulatan = $db->query("SELECT * from m_tarif_rs where kode_tarif = '".$_SESSION['tarif_pembulatan']."'");
|
||||
$data_tarif_pembulatan = ($tarif_pembulatan->numRows() > 0) ? $tarif_pembulatan->fetchFirst(): [];
|
||||
?>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4">Total Biaya</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" name="pembulatan[total_biaya]" value="" id="total_biaya_pembulatan" readonly=>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4">Pembulatan Tunai</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" name="pembulatan[pembulatan]" value="" id="nilai_pembulatan" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4">Pembulatan Piutang</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" name="pembulatan[pembulatan_piutang]" value="" id="nilai_pembulatan_piutang" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4">Total Setelah Pembulatan</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" name="pembulatan[total_setelah_bulat]" value="" id="total_setelah_bulat" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-success" id="btnSimpanPembulatan" onclick="simpanPembulatan(this)" data-ix="<?php echo $_REQUEST['idxdaftar'];?>" data-kode="<?php echo $data_tarif_pembulatan['id_tarif']; ?>" data-ruang="<?php echo $userdata['kdpoly']; ?>" data-nomr="<?php echo $userdata['nomr']; ?>" data-carabayar="<?php echo $userdata['kdcarabayar'];?>" data-nott="0" ><i class="fa fa-save"></i> Simpan</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
57
cartbill_save_bayar.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
require_once 'core/main.php';
|
||||
$last_nonota = null;
|
||||
if( ($_SESSION['KDUNIT'] != 19) and ($_SESSION['KDUNIT'] != 15) and ($_SESSION['KDUNIT'] != 27) ){
|
||||
if($_SESSION['KDUNIT'] == 32){// JANTUNG
|
||||
$u = $_REQUEST['poly'];
|
||||
}else{
|
||||
$u = $_SESSION['KDUNIT'];
|
||||
}
|
||||
$aps = (array_key_exists('aps', $_REQUEST)) ? $_REQUEST['aps'] : 0;
|
||||
|
||||
$new_bill = new Billing('irja',$_REQUEST['nomr'],$_REQUEST['idxdaftar'],date("Y-m-d"),0,0,$_REQUEST['carabayar'],$_REQUEST['poly'],$aps,$u);
|
||||
|
||||
$last_nonota = $new_bill->simpanBill();
|
||||
}
|
||||
if($last_nonota == null)
|
||||
{
|
||||
$msg = "Tindakan gagal ditambahkan";
|
||||
$type = "error";
|
||||
}
|
||||
else {
|
||||
|
||||
$tmp_get_last_bill = $db->query("SELECT br.idxbill,r.kode_tarif,r.uraian_tarif from t_billrajal br
|
||||
join m_tarif_rs r on br.kodetarif = r.kode_tarif
|
||||
where nonota = $last_nonota limit 1");
|
||||
if($tmp_get_last_bill->numRows() > 0) {
|
||||
$data_last_bill = $tmp_get_last_bill->fetchFirst();
|
||||
|
||||
if($data_last_bill['uraian_tarif'] == 'PEMBULATAN')
|
||||
{
|
||||
$bill = $data_last_bill['idxbill'];
|
||||
|
||||
$arr_update_bill['status_verifikasi'] = 1;
|
||||
$arr_update_bill['user_verifikasi'] = $_SESSION['NIP'];
|
||||
$arr_update_bill['tgl_verifikasi'] = date('Y-m-d');
|
||||
$v_billranap = "UPDATE t_billrajal ".bind_sql($arr_update_bill,1)." where IDXBILL = ".$bill;
|
||||
$st_verif_bill = execute($v_billranap);
|
||||
|
||||
// get 1 bill sebelum terakhi
|
||||
// $tmp_last_bayar = $db->query("SELECT carabayar from t_bayarrajal where idxbill in (select idxbill from t_billrajal where nonota = ".($last_nonota-1)." limit 1)");
|
||||
// if($tmp_last_bayar->numRows() > 0) {
|
||||
// $data_last_bayar = $tmp_last_bayar->fetchFirst();
|
||||
$tunai_piutang = (array_key_exists('piutang', $_REQUEST) && $_REQUEST['piutang'] == 1) ? 2 : 1;
|
||||
|
||||
$v_bayarrajal = "UPDATE t_bayarrajal SET st_carabayar = $tunai_piutang WHERE IDXBILL=".$bill;
|
||||
|
||||
$st_verif_bayar = execute($v_bayarrajal);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
$msg = "Tindakan berhasil ditambahkan";
|
||||
$type = "success";
|
||||
}
|
||||
echo json_encode(['message'=>$msg,'type'=>$type,'nonota'=>$last_nonota]);
|
||||
exit;
|
||||
?>
|
||||
63
cartbill_save_bayar_ranap.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
require_once 'core/main.php';
|
||||
// var_dump($_POST);
|
||||
// exit();
|
||||
$unit = (array_key_exists('unit', $_REQUEST)) ? $_REQUEST['unit'] : $_SESSION['KDUNIT'];
|
||||
|
||||
$tanggal_sekarang = (array_key_exists('tgl_request_krs', $_REQUEST) ? $_REQUEST['tgl_request_krs'] : date('Y-m-d'));
|
||||
|
||||
$bill_ranap = new Billing('irna', $_REQUEST['nomr'], $_REQUEST['idxdaftar'], $tanggal_sekarang, 0, 0, $_REQUEST['carabayar'], $_REQUEST['noruang'], 0, $unit);
|
||||
$last_nonota = $bill_ranap->simpanBill();
|
||||
|
||||
if (!$last_nonota) {
|
||||
$msg = "Tindakan gagal ditambahkan";
|
||||
$type = "error";
|
||||
} else {
|
||||
$tmp_get_last_bill = $db->query("SELECT br.idxbill,r.kode_tarif,r.uraian_tarif,br.idxdaftar from t_billranap br
|
||||
join m_tarif_rs r on br.kodetarif = r.kode_tarif
|
||||
where nonota = $last_nonota limit 1");
|
||||
// var_dump($tmp_get_last_bill->fetchFirst());
|
||||
// exit();
|
||||
if ($tmp_get_last_bill->numRows() > 0) {
|
||||
$data_last_bill = $tmp_get_last_bill->fetchFirst();
|
||||
|
||||
if ($data_last_bill['uraian_tarif'] == 'PEMBULATAN') {
|
||||
$bill = $data_last_bill['idxbill'];
|
||||
|
||||
$arr_update_bill['status_verifikasi'] = 1;
|
||||
$arr_update_bill['user_verifikasi'] = $_SESSION['NIP'];
|
||||
$arr_update_bill['tgl_verifikasi'] = $tanggal_sekarang;
|
||||
$v_billranap = "UPDATE t_billranap " . bind_sql($arr_update_bill, 1) . " where IDXBILL = " . $bill;
|
||||
$st_verif_bill = execute($v_billranap);
|
||||
|
||||
// get 1 bill sebelum terakhi
|
||||
// $tmp_last_bayar = $db->query("SELECT carabayar from t_bayarranap where idxbill in (select idxbill from t_billranap where nonota = ".($last_nonota-1)." limit 1)");
|
||||
// if($tmp_last_bayar->numRows() > 0) {
|
||||
// $data_last_bayar = $tmp_last_bayar->fetchFirst();
|
||||
// $tunai_piutang = ($data_last_bayar['carabayar'] > 1) ? 2 : 1;
|
||||
$tunai_piutang = (array_key_exists('piutang', $_REQUEST) && $_REQUEST['piutang'] == 1) ? 2 : 1;
|
||||
$v_bayarrajal = "UPDATE t_bayarranap SET st_carabayar = $tunai_piutang WHERE IDXBILL=" . $bill;
|
||||
|
||||
$st_verif_bayar = execute($v_bayarrajal);
|
||||
// }
|
||||
} elseif (preg_match("/ADMKL/", $data_last_bill['kode_tarif'])) {
|
||||
$tgl_krs = $tanggal_sekarang . date(' H:i:s');
|
||||
$save_pj = execute("UPDATE t_admission set keluarrs = '$tgl_krs' where id_admission = {$data_last_bill['idxdaftar']}");
|
||||
|
||||
$data_rawat = $db->query("SELECT noruang,nott from t_admission where id_admission = {$data_last_bill['idxdaftar']}");
|
||||
$data_rawat = !empty($data_rawat->fetchFirst()) ? $data_rawat->fetchFirst() : '';
|
||||
execute("UPDATE m_detail_tempat_tidur SET status = 2 WHERE no_tt='{$data_rawat['nott']}' AND idxruang='{$data_rawat['noruang']}'");
|
||||
} elseif (preg_match("/.AKO/", $data_last_bill['kode_tarif'])) {
|
||||
$tgl_krs = $tanggal_sekarang . date(' H:i:s');
|
||||
$save_pj = execute("UPDATE t_admission set keluarrs = '$tgl_krs' where id_admission = {$data_last_bill['idxdaftar']}");
|
||||
|
||||
$data_rawat = $db->query("SELECT noruang,nott from t_admission where id_admission = {$data_last_bill['idxdaftar']}");
|
||||
$data_rawat = !empty($data_rawat->fetchFirst()) ? $data_rawat->fetchFirst() : '';
|
||||
execute("UPDATE m_detail_tempat_tidur SET status = 2 WHERE no_tt='{$data_rawat['nott']}' AND idxruang='{$data_rawat['noruang']}'");
|
||||
}
|
||||
}
|
||||
$msg = "Tindakan berhasil ditambahkan";
|
||||
$type = "success";
|
||||
}
|
||||
echo json_encode(['message' => $msg, 'type' => $type, 'nonota' => $last_nonota]);
|
||||
exit;
|
||||
18
cartbill_save_tmp.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php session_start();
|
||||
include 'core/main.php';
|
||||
include 'include/function.php';
|
||||
$dokter = $_REQUEST['dokter'];
|
||||
$jenis = "e";
|
||||
$faktor = 1;
|
||||
if($_REQUEST['cito'] == 'c'){
|
||||
$jenis = 'c';
|
||||
$faktor = 1.25;
|
||||
}
|
||||
$sql = $db->query("select * from tmp_cartbayar where IP='".getRealIpAddr()."' and ID = '".$_REQUEST["id"]."' and KDDOKTER = '".$dokter."' and JENIS = '".$jenis."'");
|
||||
if($sql->numRows() > 0){
|
||||
execute("update tmp_cartbayar set QTY=QTY+1 where IP='".getRealIpAddr()."' and ID='".$_REQUEST["id"]."' and KDDOKTER = '".$dokter."' and JENIS = '".$jenis."'");
|
||||
}else{
|
||||
$tarif = getTarif($_REQUEST['kode']);
|
||||
execute('insert into tmp_cartbayar set KODETARIF = "'.$_REQUEST['kode'].'", IP = "'.getRealIpAddr().'", ID = "'.$_REQUEST['id'].'", QTY=1, poly ='.$_REQUEST['poly'].',KDDOKTER = "'.$dokter.'",UNIT="'.$_SESSION['KDUNIT'].'", TARIF = "'.$tarif['tarif'] * $faktor.'", DISCOUNT="0", TOTTARIF="'.$tarif['tarif'] * $faktor.'", JASA_SARANA = "'.$tarif['jasa_sarana'] * $faktor.'", JASA_PELAYANAN = "'.$tarif['jasa_pelayanan'] * $faktor.'", JENIS = "'.$jenis.'"');
|
||||
}
|
||||
?>
|
||||
2071
cartbillranap.php
Normal file
15
checkNotification.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include("core/main.php");
|
||||
if($_GET['checkNum']){ // if your load with ?checkNum=1 you just want to check if there is anything new (this is for optimization)
|
||||
$q = $db->query("select count(*) as nb from t_notification where status is null AND roles = ".$_SESSION['ROLES']);
|
||||
$r = $q->fetchAll()[0];
|
||||
echo $r['nb'];
|
||||
} else { // otherwhise you want to load the info about the newest notification to display and set the status to 1 so it wont be displayed again
|
||||
$q = $db->query("select * from t_notification where status is null AND roles = ".$_SESSION['ROLES']." order by id limit 1");
|
||||
$r = $q->fetchAll()[0];
|
||||
$db->query("update t_notification set status = 1 WHERE roles = ".$_SESSION['ROLES']."");
|
||||
echo $r['info'];
|
||||
}
|
||||
?>
|
||||
31
composer.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "g1g1/simrs",
|
||||
"description": "SIMRS RSUD Dr. Saiful Anwar",
|
||||
"type": "project",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nuril Isbah",
|
||||
"email": "nuril.isbah@gmail.com"
|
||||
}
|
||||
],
|
||||
"repositories": [
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "https://github.com/verot/class.upload.php"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"monolog/monolog": "^1.24",
|
||||
"robmorgan/phinx": "^0.9.2",
|
||||
"phpoffice/phpspreadsheet": "^1.5",
|
||||
"verot/class.upload.php": "dev-master",
|
||||
"dompdf/dompdf": "^0.8.3",
|
||||
"vlucas/phpdotenv": "^2.5",
|
||||
"mpdf/mpdf": "^7.1",
|
||||
"guzzlehttp/guzzle": "~6.0",
|
||||
"koolphp/koolreport": "^3.25",
|
||||
"twig/twig": "^2.0",
|
||||
"khill/lavacharts": "^3.1",
|
||||
"picqer/php-barcode-generator": "^0.3.0"
|
||||
}
|
||||
}
|
||||
2312
composer.lock
generated
Normal file
351
core/Billing.php
Normal file
@@ -0,0 +1,351 @@
|
||||
<?php
|
||||
Class Billing {
|
||||
|
||||
private $tempatlayanan;
|
||||
private $nobill;
|
||||
private $tanggal;
|
||||
private $shift;
|
||||
private $nomr;
|
||||
private $user;
|
||||
private $idxdaftar;
|
||||
private $lunas;
|
||||
private $jmlbayar;
|
||||
private $ipaddress;
|
||||
private $carabayar;
|
||||
private $poliklinik;
|
||||
private $aps;
|
||||
private $unit;
|
||||
private $nonota;
|
||||
|
||||
private $tbl_billing;
|
||||
private $tbl_bayarbilling;
|
||||
private $col_bill;
|
||||
|
||||
private $status_batal;
|
||||
|
||||
public function __construct($tempatlayanan,$nomr,$idxdaftar,$tanggal,$lunas, $jmlbayar,$carabayar,$poliklinik,$aps,$unit = 0,$user = '')
|
||||
{
|
||||
$this->tanggal = $tanggal;
|
||||
$this->nomr = $nomr;
|
||||
$this->shift = (array_key_exists('SHIFT', $_SESSION)) ? $_SESSION['SHIFT'] : 1;
|
||||
$this->idxdaftar = $idxdaftar;
|
||||
$this->user = ($_SESSION['NIP'] == '' && $user != '') ? $user : $_SESSION['NIP'];
|
||||
$this->lunas = $lunas;
|
||||
$this->jmlbayar = $jmlbayar;
|
||||
$this->ipaddress = getRealIpAddr();
|
||||
$this->carabayar = $carabayar;
|
||||
$this->poliklinik = $poliklinik;
|
||||
$this->aps = $aps;
|
||||
$this->unit = $unit;
|
||||
$this->nonota = lastNoNota();
|
||||
$this->tempatlayanan = $tempatlayanan;
|
||||
$this->status_batal = FALSE;
|
||||
|
||||
if($this->tempatlayanan == 'irja')
|
||||
{
|
||||
$this->tbl_billing = 't_billrajal';
|
||||
$this->tbl_billingdetil = 't_billrajal_detil';
|
||||
$this->tbl_bayarbilling = 't_bayarrajal';
|
||||
$this->col_bill[$this->tbl_billing] = ['kodetarif','nomr','tanggal','shift','nip','qty','idxdaftar','nobill', 'jasa_sarana','jasa_pelayanan','jasa_anastesi','tarifrs','kdpoly','carabayar','aps','kddokter','unit','nonota','tgl_transaksi','kode_ruang'];
|
||||
$this->col_bill[$this->tbl_bayarbilling] = ['nomr','shift','nip','idxdaftar','nobill',' totjasa_sarana','totjasa_pelayanan','totjasa_anastesi','tottarifrs','carabayar','aps','tglbayar','jambayar','jmbayar','tbp','lunas','status','unit','idxbill'];
|
||||
}
|
||||
|
||||
elseif($this->tempatlayanan == 'irna')
|
||||
{
|
||||
$this->tbl_billing = 't_billranap';
|
||||
$this->tbl_billingdetil = 't_billranap_detil';
|
||||
$this->tbl_bayarbilling = 't_bayarranap';
|
||||
$this->col_bill[$this->tbl_billing] = ['kodetarif','nomr','tanggal','shift','nip','qty','idxdaftar','nobill', 'jasa_sarana','jasa_pelayanan','jasa_anastesi','tarifrs','kdpoly','carabayar','aps','kddokter','unit','discount','nott','nonota','tgl_transaksi','kode_ruang'];
|
||||
$this->col_bill[$this->tbl_bayarbilling] = ['nomr','shift','nip','idxdaftar','nobill',' totjasa_sarana','totjasa_pelayanan','totjasa_anastesi','tottarifrs','carabayar','aps','tglbayar','jambayar','jmbayar','tbp','lunas','status','discount','noruang','nott','tglbilling','idxbill'];
|
||||
}
|
||||
|
||||
elseif($this->tempatlayanan == 'nonregister')
|
||||
{
|
||||
$this->tbl_billing = 't_billnonreg';
|
||||
$this->tbl_billingdetil = 't_billnonreg_detil';
|
||||
$this->tbl_bayarbilling = 't_bayarnonreg';
|
||||
$this->col_bill[$this->tbl_billing] = ['kodetarif','no_nonreg','tanggal','shift','nip','qty','idx_nonreg','nobill', 'jasa_sarana','jasa_pelayanan','jasa_anastesi','tarifrs','carabayar','kddokter','unit','nonota','ruang','tgl_transaksi','kode_ruang'];
|
||||
$this->col_bill[$this->tbl_bayarbilling] = ['no_nonreg','shift','nip','idx_nonreg','nobill',' totjasa_sarana','totjasa_pelayanan','totjasa_anastesi','tottarifrs','carabayar','tglbayar','jambayar','jmbayar','tbp','lunas','status','unit','idxbill'];
|
||||
}
|
||||
}
|
||||
|
||||
public function simpanBill($nobill = null)
|
||||
{
|
||||
if($this->status_batal){
|
||||
array_push($this->col_bill[$this->tbl_billing],'status');
|
||||
}
|
||||
|
||||
$this->setNobill($nobill);
|
||||
|
||||
if($this->nobill != '')
|
||||
{
|
||||
$rajal_status = ($this->tempatlayanan == 'irja') ? 1 : (($this->tempatlayanan == 'irna') ? 0 : 2);
|
||||
$this->nonota = last_nonota_by_bill($this->nobill,$rajal_status);
|
||||
$result_bill = $this->createBill();
|
||||
|
||||
if($result_bill) {
|
||||
$save_bayar = $this->createBayar();
|
||||
return $this->nonota;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private function setNobill($nobill = null) {
|
||||
global $db;
|
||||
|
||||
if($this->tempatlayanan == 'nonregister') {
|
||||
$get_bill = $db->query("SELECT nobill FROM ".$this->tbl_billing." WHERE no_nonreg = '{$this->nomr}' and idx_nonreg = ".$this->idxdaftar." limit 1");
|
||||
if($get_bill->numRows() > 0) {
|
||||
$data_bill = $get_bill->fetchFirst();
|
||||
$this->nobill = $data_bill['nobill'];
|
||||
}
|
||||
elseif($nobill != null) {
|
||||
$this->nobill = $nobill;
|
||||
}
|
||||
else {
|
||||
$PRE_NO = $LASTNOBILL = $xLASTNOBILL = $nomor = null;
|
||||
$PRE_NO = date('y');
|
||||
// $PRE_NO = '22';
|
||||
$sql = $db->query("SELECT nomor FROM m_maxnobill where type = 'bill_nonreg' and SUBSTRING(nomor::varchar(10),1,2) = '".$PRE_NO."'");
|
||||
if($sql->numRows() > 0){
|
||||
$row = $sql->fetchAll();
|
||||
$LASTNOBILL = $row[0]['nomor']; // 18000002
|
||||
|
||||
if(substr($LASTNOBILL, 2) == '999999') {
|
||||
$xLASTNOBILL = '1'.str_pad('0', 6, '0', STR_PAD_LEFT);
|
||||
}
|
||||
else {
|
||||
if(strlen(substr($LASTNOBILL,2)) < 6) {
|
||||
$xLASTNOBILL = str_pad( (substr($LASTNOBILL,2)+$p), 6, '0', STR_PAD_LEFT);
|
||||
}
|
||||
else {
|
||||
$xLASTNOBILL = str_pad( (substr($LASTNOBILL,2)+$p), strlen(substr($LASTNOBILL,2)), '0', STR_PAD_LEFT);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$nomor = $PRE_NO.$xLASTNOBILL;
|
||||
$this->nobill = ($nomor + 1);
|
||||
}
|
||||
else {
|
||||
$this->nobill = $PRE_NO.'000001';
|
||||
}
|
||||
|
||||
// $get_no = $db->query("SELECT nomor from m_maxnobill where type = 'bill_nonreg'");
|
||||
// $nomor = $get_no->fetchFirst()['nomor'];
|
||||
// if($nomor == null)
|
||||
// {
|
||||
// $this->nobill = date('y').'00000001';
|
||||
// }
|
||||
// else {
|
||||
// $this->nobill = ($nomor + 1);
|
||||
// }
|
||||
|
||||
execute("UPDATE m_maxnobill set nomor = ".$this->nobill." where type = 'bill_nonreg' ");
|
||||
}
|
||||
}
|
||||
else {
|
||||
$get_bill = $db->query("SELECT nobill FROM ".$this->tbl_billing." WHERE nomr = '{$this->nomr}' and idxdaftar = ".$this->idxdaftar." limit 1");
|
||||
if($get_bill->numRows() > 0) {
|
||||
$data_bill = $get_bill->fetchFirst();
|
||||
$this->nobill = $data_bill['nobill'];
|
||||
}
|
||||
elseif($nobill != null) {
|
||||
$this->nobill = $nobill;
|
||||
}
|
||||
else {
|
||||
$PRE_NO = $LASTNOBILL = $xLASTNOBILL = $nomor = null;
|
||||
$PRE_NO = date('y');
|
||||
// $PRE_NO = '22';
|
||||
$sql = $db->query("SELECT nomor FROM m_maxnobill where type = 'bill_pasien' and SUBSTRING(nomor::varchar(10),1,2) = '".$PRE_NO."'");
|
||||
if($sql->numRows() > 0){
|
||||
$row = $sql->fetchAll();
|
||||
$LASTNOBILL = $row[0]['nomor']; // 18000002
|
||||
|
||||
if(substr($LASTNOBILL, 2) == '999999') {
|
||||
$xLASTNOBILL = '1'.str_pad('0', 6, '0', STR_PAD_LEFT);
|
||||
}
|
||||
else {
|
||||
if(strlen(substr($LASTNOBILL,2)) < 6) {
|
||||
$xLASTNOBILL = str_pad( (substr($LASTNOBILL,2)+$p), 6, '0', STR_PAD_LEFT);
|
||||
}
|
||||
else {
|
||||
$xLASTNOBILL = str_pad( (substr($LASTNOBILL,2)+$p), strlen(substr($LASTNOBILL,2)), '0', STR_PAD_LEFT);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$nomor = $PRE_NO.$xLASTNOBILL;
|
||||
$this->nobill = ($nomor + 1);
|
||||
}
|
||||
else {
|
||||
$this->nobill = $PRE_NO.'000001';
|
||||
}
|
||||
|
||||
// $get_no = $db->query("SELECT nomor from m_maxnobill where type = 'bill_pasien'");
|
||||
// $nomor = $get_no->fetchFirst()['nomor'];
|
||||
// if($nomor == null)
|
||||
// {
|
||||
// $this->nobill = date('y').'000001';
|
||||
// }
|
||||
// else {
|
||||
// $this->nobill = ($nomor + 1);
|
||||
// }
|
||||
|
||||
execute("UPDATE m_maxnobill set nomor = ".$this->nobill." where type = 'bill_pasien' ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function setBatalBill($param) {
|
||||
global $db;
|
||||
|
||||
$this->status_batal = TRUE;
|
||||
$st_rajal = ($this->tempatlayanan == 'irja' || $this->tempatlayanan == 'nonregister') ? 1 : 0;
|
||||
|
||||
$where_idxbill = (is_array($param['idxbill_batal'])) ? " and a.idxbill in (".implode(",",$param['idxbill_batal']).")" : " and a.idxbill = ".$param['idxbill_batal'];
|
||||
|
||||
$currtime = date('Y-m-d H:i:s');
|
||||
$save_m_batal = "INSERT INTO m_batal (kodetarif,nomr,tglbatal,shift,carabayar,nip,tarif,qty,keterangan,kdpoly,kddokter,idbayar,nonota,rajal)
|
||||
SELECT a.kodetarif, a.nomr,'$currtime',a.shift,a.carabayar,'{$this->user}',tarifrs,qty,'{$param['alasan']}',kdpoly,kddokter,b.idxbayar,{$this->nonota},$st_rajal
|
||||
FROM {$this->tbl_billing} a
|
||||
JOIN {$this->tbl_bayarbilling} b ON a.idxbill = b.idxbill WHERE a.nobill = b.nobill ".$where_idxbill;
|
||||
$sql_batal = execute($save_m_batal);
|
||||
|
||||
$where_idxbill2 = (is_array($param['idxbill_batal'])) ? "idxbill in (".implode(",",$param['idxbill_batal']).")" : "idxbill = ".$param['idxbill_batal'] ;
|
||||
|
||||
execute("UPDATE {$this->tbl_billing} set status = 'BATAL' where ".$where_idxbill2);
|
||||
}
|
||||
|
||||
private function createBill() {
|
||||
global $db;
|
||||
$tgl_transaksi = date('Y-m-d H:i:s');
|
||||
if($this->tempatlayanan == 'irna') {
|
||||
$get_kode_ruang = $db->query("SELECT noruang from t_admission where id_admission = {$this->idxdaftar}");
|
||||
$kode_ruang = $get_kode_ruang->fetchFirst()['noruang'];
|
||||
}
|
||||
elseif($this->tempatlayanan == 'irja') {
|
||||
if($this->aps == 1) {
|
||||
$kode_ruang = $this->poliklinik;
|
||||
}
|
||||
else {
|
||||
$get_kode_ruang = $db->query("SELECT kdpoly from t_pendaftaran where idxdaftar = {$this->idxdaftar}");
|
||||
$kode_ruang = $get_kode_ruang->fetchFirst()['kdpoly'];
|
||||
}
|
||||
}
|
||||
elseif($this->tempatlayanan == 'nonregister') {
|
||||
$get_kode_ruang = $db->query("SELECT ruang from m_nonreg where idx_nonreg = {$this->idxdaftar}");
|
||||
$kode_ruang = $get_kode_ruang->fetchFirst()['ruang'];
|
||||
}
|
||||
|
||||
$bill_ranap = ($this->tempatlayanan == 'irna') ? "{$this->unit},a.discount,0" : "{$this->unit}";
|
||||
|
||||
$build_query = "INSERT INTO ".$this->tbl_billing." (".implode(',',$this->col_bill[$this->tbl_billing]).") ";
|
||||
if($this->status_batal) {
|
||||
$build_query .= "SELECT a.kodetarif,'{$this->nomr}','{$this->tanggal}',{$this->shift},'{$this->user}',a.qty,{$this->idxdaftar},{$this->nobill},a.jasa_sarana,a.jasa_pelayanan,a.jasa_anastesi,a.tarif,{$this->poliklinik},{$this->carabayar},{$this->aps},a.kddokter,$bill_ranap,{$this->nonota},'BATAL' FROM tmp_cartbayar a WHERE a.ip = '{$this->ipaddress}'";
|
||||
}
|
||||
else {
|
||||
if($this->tempatlayanan == 'nonregister') {
|
||||
$build_query .= "SELECT a.kodetarif,'{$this->nomr}','{$this->tanggal}',{$this->shift},'{$this->user}',a.qty,{$this->idxdaftar},{$this->nobill},a.jasa_sarana,a.jasa_pelayanan,a.jasa_anastesi,a.tarif,{$this->carabayar},a.kddokter,$bill_ranap,{$this->nonota},{$this->poliklinik},'$tgl_transaksi' as tgl_transaksi,$kode_ruang as kode_ruang FROM tmp_cartbayar a WHERE a.ip = '{$this->ipaddress}'";
|
||||
}
|
||||
else {
|
||||
$build_query .= "SELECT a.kodetarif,'{$this->nomr}','{$this->tanggal}',{$this->shift},'{$this->user}',a.qty,{$this->idxdaftar},{$this->nobill},a.jasa_sarana,a.jasa_pelayanan,a.jasa_anastesi,a.tarif,{$this->poliklinik},{$this->carabayar},{$this->aps},a.kddokter,$bill_ranap,{$this->nonota},'$tgl_transaksi' as tgl_transaksi,$kode_ruang as kode_ruang FROM tmp_cartbayar a WHERE a.ip = '{$this->ipaddress}' ORDER BY idxbayar";
|
||||
}
|
||||
}
|
||||
if(_DBTYPE_ == 'mysqli') {
|
||||
$insert_bill = execute($build_query);
|
||||
$id_bill = $insert_bill->insertid;
|
||||
}
|
||||
else {
|
||||
$insert_bill = execute($build_query.' RETURNING idxbill');
|
||||
$id_bill = $insert_bill->fetchFirst()['idxbill'];
|
||||
}
|
||||
|
||||
$tmp_cartbayar_detil = $db->query("SELECT * from tmp_cartbayar_detil where idxbayar in ( select idxbayar from tmp_cartbayar where ip = '{$this->ipaddress}') ORDER by idxbayar");
|
||||
if($tmp_cartbayar_detil->numRows() > 0){
|
||||
foreach($tmp_cartbayar_detil->fetchAll() as $row) {
|
||||
$data_bill_detil = [
|
||||
'id_bill'=>$id_bill,
|
||||
'kddokter'=>$row['kddokter'],
|
||||
'kode_tarif'=>$row['kode_tarif'],
|
||||
'komponen'=>$row['komponen'],
|
||||
'nilai'=>$row['nilai']
|
||||
];
|
||||
if($row['kddokter'] == '')
|
||||
{
|
||||
unset($data_bill_detil['kddokter']);
|
||||
}
|
||||
$insert_billdetil = "INSERT INTO ".$this->tbl_billingdetil." ".bind_sql($data_bill_detil);
|
||||
execute($insert_billdetil);
|
||||
}
|
||||
}
|
||||
|
||||
return $insert_bill;
|
||||
}
|
||||
|
||||
private function createBayar() {
|
||||
global $db;
|
||||
|
||||
// if($this->carabayar > 1)
|
||||
// {
|
||||
// $tgl_bayar = date('Y-m-d');
|
||||
// $jam_bayar = date('H:i:s');
|
||||
// $user_bayar = $this->user;
|
||||
// $shift_bayar = $this->shift;
|
||||
// $tbp_bayar = 0;
|
||||
// $lunas_bayar = 1;
|
||||
// $status_bayar = 'LUNAS';
|
||||
// }
|
||||
// else {
|
||||
$jml_bayar = ($this->tempatlayanan == 'irna') ? '0' : '(tarifrs*qty)';
|
||||
$tgl_bayar = '0001-01-01';
|
||||
$jam_bayar = '00:00:00';
|
||||
$user_bayar = '';
|
||||
$shift_bayar = '0';
|
||||
$tbp_bayar = '0';
|
||||
$lunas_bayar = '0';
|
||||
$status_bayar = ($this->status_batal) ? 'BATAL' : 'TRX';
|
||||
$field_bayar = ($this->tempatlayanan == 'irna') ? "(discount*qty) as discount,{$this->poliklinik},{$this->unit},'".date('Y-m-d')."'" : "{$this->unit}";
|
||||
// }
|
||||
if ($this->tempatlayanan == 'irna') {
|
||||
$where = "where idxdaftar = $this->idxdaftar and nip = '$this->user' AND idxbill NOT IN ( SELECT idxbill FROM {$this->tbl_bayarbilling} WHERE idxdaftar = $this->idxdaftar and idxbill is not null)";
|
||||
}
|
||||
elseif ($this->tempatlayanan == 'irja') {
|
||||
$where = "where nobill = $this->nobill and idxdaftar = $this->idxdaftar and nip = '$this->user' AND idxbill NOT IN ( SELECT idxbill FROM {$this->tbl_bayarbilling} WHERE nobill = $this->nobill and idxdaftar = $this->idxdaftar and idxbill is not null)";
|
||||
}
|
||||
elseif ($this->tempatlayanan == 'nonregister') {
|
||||
$where = "where nobill = $this->nobill and idx_nonreg = $this->idxdaftar and nip = '$this->user' AND idxbill NOT IN ( SELECT idxbill FROM {$this->tbl_bayarbilling} WHERE nobill = $this->nobill and idx_nonreg = $this->idxdaftar and idxbill is not null)";
|
||||
}
|
||||
|
||||
$build_query = "INSERT INTO {$this->tbl_bayarbilling} (".implode(',', $this->col_bill[$this->tbl_bayarbilling]).") ";
|
||||
if($this->status_batal) {
|
||||
$build_query .= "SELECT '{$this->nomr}',$shift_bayar,'$user_bayar',$this->idxdaftar,$this->nobill,(jasa_sarana*-1),(jasa_pelayanan*-1),(jasa_anastesi*-1),(tarifrs*-1),$this->carabayar,$this->aps,'$tgl_bayar','$jam_bayar',$jml_bayar,$tbp_bayar,$lunas_bayar,'$status_bayar',$field_bayar,idxbill FROM {$this->tbl_billing} ".$where;
|
||||
}
|
||||
else {
|
||||
if ($this->tempatlayanan == 'nonregister') {
|
||||
$build_query .= "SELECT '{$this->nomr}',$shift_bayar,'$user_bayar',$this->idxdaftar,$this->nobill,(jasa_sarana*qty),(jasa_pelayanan*qty),(jasa_anastesi*qty),(tarifrs*qty),$this->carabayar,'$tgl_bayar','$jam_bayar',$jml_bayar,$tbp_bayar,$lunas_bayar,'$status_bayar',$field_bayar,idxbill FROM {$this->tbl_billing} ".$where;
|
||||
}
|
||||
else {
|
||||
$build_query .= "SELECT '{$this->nomr}',$shift_bayar,'$user_bayar',$this->idxdaftar,$this->nobill,(jasa_sarana*qty),(jasa_pelayanan*qty),(jasa_anastesi*qty),(tarifrs*qty),$this->carabayar,$this->aps,'$tgl_bayar','$jam_bayar',$jml_bayar,$tbp_bayar,$lunas_bayar,'$status_bayar',$field_bayar,idxbill FROM {$this->tbl_billing} ".$where." ORDER BY idxbill";
|
||||
}
|
||||
}
|
||||
$insert_bayar = execute($build_query);
|
||||
if($insert_bayar)
|
||||
{
|
||||
// delete temporary
|
||||
$delete_temp = execute("DELETE FROM tmp_cartbayar_detil where idxbayar in (select idxbayar from tmp_cartbayar where ip = '$this->ipaddress')");
|
||||
$delete_temp = execute("DELETE FROM tmp_cartbayar where ip = '$this->ipaddress'");
|
||||
|
||||
return $insert_bayar;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
414
core/Bpjs.class.php
Normal file
@@ -0,0 +1,414 @@
|
||||
<?php
|
||||
/**
|
||||
* BPJS Class
|
||||
* Description : Class untuk akses REST API BPJS Vclaim, dengan menggunakan class ini
|
||||
* user dimudahkan untuk melakukan operasi pada aplikasi vclaim BPJS.
|
||||
*
|
||||
* Require : GuzzleHTTP, Monolog
|
||||
* BPJS Vclaim Version : 1.1
|
||||
* Version : 1.0
|
||||
* Author : nuril.isbah@gmail.com
|
||||
* Parameter : mixed
|
||||
* Return : Array
|
||||
*
|
||||
* How to use this class :
|
||||
* - Create new object
|
||||
* $bpjs = new BPJS([
|
||||
* 'BPJS_CONSID'=>'CONSID',
|
||||
* 'BPJS_KEY'=>'SECRETKEY',
|
||||
* 'BPJS_VCLAIM_URL'=>'URL SERVICE',
|
||||
* ]);
|
||||
*
|
||||
* - Define katalog and parameter
|
||||
* $request = ['katalog'=>'peserta','parameter'=['nokartu','xx000123456','2019-01-01']];
|
||||
*
|
||||
* - Get result
|
||||
* $result = $bpjs->request($request,(DEBUG=BOOLEAN,OBJECT_ONLY=BOOLEAN));
|
||||
*
|
||||
**/
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
use Monolog\Logger;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Handler\FirePHPHandler;
|
||||
|
||||
Class BPJS {
|
||||
|
||||
private $consId;
|
||||
|
||||
private $secretkey;
|
||||
|
||||
private $serviceUrl;
|
||||
|
||||
private $header;
|
||||
|
||||
private $timeStamp;
|
||||
|
||||
private $requestURL;
|
||||
|
||||
private $contentType;
|
||||
|
||||
private $method;
|
||||
|
||||
public function __construct($cons_id,$secret_key,$service_url)
|
||||
{
|
||||
$this->consId = $cons_id;
|
||||
|
||||
$this->secretkey = $secret_key;
|
||||
|
||||
$this->serviceUrl = $service_url;
|
||||
}
|
||||
|
||||
private function setHeader()
|
||||
{
|
||||
date_default_timezone_set('Asia/Jakarta');
|
||||
|
||||
$this->timeStamp = strval(strtotime('now'));
|
||||
|
||||
$signature = hash_hmac('sha256', $this->consId."&".$this->timeStamp, $this->secretkey, true);
|
||||
|
||||
$encodedSignature = base64_encode($signature);
|
||||
|
||||
$context = [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => $this->contentType,
|
||||
'X-cons-id' => $this->consId,
|
||||
'X-timestamp' => $this->timeStamp,
|
||||
'X-signature' => $encodedSignature,
|
||||
]
|
||||
];
|
||||
|
||||
$this->header = $context['headers'];
|
||||
}
|
||||
|
||||
|
||||
private function setUrl($param)
|
||||
{
|
||||
if($param['katalog'] != null)
|
||||
{
|
||||
switch ($param['katalog']) {
|
||||
case 'peserta':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Peserta/'.$param['parameter'][0].'/'.$param['parameter'][1].'/tglSEP/'.$param['parameter'][2];
|
||||
break;
|
||||
}
|
||||
// Referensi
|
||||
case 'poli':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/poli/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'faskes':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/faskes/'.$param['parameter'][0].'/'.$param['parameter'][1];
|
||||
break;
|
||||
}
|
||||
case 'propinsi':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/propinsi';
|
||||
break;
|
||||
}
|
||||
case 'kabupaten':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/kabupaten/propinsi/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'kecamatan':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/kecamatan/kabupaten/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'dpjp':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/dokter/pelayanan/'.$param['parameter'][0].'/tglPelayanan/'.$param['parameter'][1].'/Spesialis/'.$param['parameter'][2];
|
||||
break;
|
||||
}
|
||||
case 'diagnosa':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/diagnosa/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
// SEP
|
||||
case 'insert_sep':
|
||||
{
|
||||
$this->method = 'POST';
|
||||
$this->contentType = 'application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/SEP/1.1/insert';
|
||||
break;
|
||||
}
|
||||
case 'update_sep':
|
||||
{
|
||||
$this->method = 'PUT';
|
||||
$this->contentType = 'application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/SEP/1.1/Update';
|
||||
break;
|
||||
}
|
||||
case 'hapus_sep':
|
||||
{
|
||||
$this->method = 'DELETE';
|
||||
$this->contentType = 'application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/SEP/Delete';
|
||||
break;
|
||||
}
|
||||
case 'sep':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/SEP/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'suplesi':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/sep/JasaRaharja/Suplesi/'.$param['parameter'][0].'/tglPelayanan/'.$param['parameter'][1];
|
||||
break;
|
||||
}
|
||||
case 'update_pulang':
|
||||
{
|
||||
$this->method = 'PUT';
|
||||
$this->contentType = 'application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/Sep/updtglplg';
|
||||
break;
|
||||
}
|
||||
// RUJUKAN
|
||||
case 'rujukan_pcare':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Rujukan/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'rujukan_RS':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Rujukan/RS/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'rujukan_pcare_kartu1':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Rujukan/Peserta/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'rujukan_RS_kartu1':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Rujukan/RS/Peserta/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'rujukan_pcare_kartumulti':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Rujukan/List/Peserta/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'rujukan_RS_kartumulti':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Rujukan/RS/List/Peserta/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'insert_rujukan':
|
||||
{
|
||||
$this->method = 'POST';
|
||||
$this->contentType = 'Application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/Rujukan/insert';
|
||||
break;
|
||||
}
|
||||
case 'update_rujukan':
|
||||
{
|
||||
$this->method = 'PUT';
|
||||
$this->contentType = 'Application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/Rujukan/update';
|
||||
break;
|
||||
}
|
||||
case 'delete_rujukan':
|
||||
{
|
||||
$this->method = 'DELETE';
|
||||
$this->contentType = 'Application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/Rujukan/delete';
|
||||
break;
|
||||
}
|
||||
// Referensi LPK
|
||||
case 'tindakan':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/procedure/'.$param['parameter'][0];
|
||||
break;
|
||||
}
|
||||
case 'kelasrawat':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/kelasrawat';
|
||||
break;
|
||||
}
|
||||
case 'ruangrawat':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/ruangrawat';
|
||||
break;
|
||||
}
|
||||
case 'dokter':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/dokter';
|
||||
break;
|
||||
}
|
||||
case 'spesialistik':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/spesialistik';
|
||||
break;
|
||||
}
|
||||
case 'carakeluar':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/carakeluar';
|
||||
break;
|
||||
}
|
||||
case 'pascapulang':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/referensi/pascapulang';
|
||||
break;
|
||||
}
|
||||
// LPK
|
||||
case 'insert_lpk':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'Application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/LPK/insert';
|
||||
break;
|
||||
}
|
||||
case 'update_lpk':
|
||||
{
|
||||
$this->method = 'PUT';
|
||||
$this->contentType = 'Application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/LPK/update';
|
||||
break;
|
||||
}
|
||||
case 'delete_lpk':
|
||||
{
|
||||
$this->method = 'DELETE';
|
||||
$this->contentType = 'Application/x-www-form-urlencoded';
|
||||
$this->requestURL = '/LPK/delete';
|
||||
break;
|
||||
}
|
||||
case 'list_lpk':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/LPK/TglMasuk/'.$param['parameter'][0].'/JnsPelayanan/'.$param['parameter'][1];
|
||||
break;
|
||||
}
|
||||
case 'monitor_kunjungan':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Monitoring/Kunjungan/Tanggal/'.$param['parameter'][0].'/JnsPelayanan/'.$param['parameter'][1];
|
||||
break;
|
||||
}
|
||||
case 'monitor_klaim':
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = '/Monitoring/Klaim/Tanggal/'.$param['parameter'][0].'/JnsPelayanan/'.$param['parameter'][1].'/Status/'.$param['parameter'][2];
|
||||
break;
|
||||
}
|
||||
// DEFAULT
|
||||
default:
|
||||
{
|
||||
$this->method = 'GET';
|
||||
$this->contentType = 'application/json; charset=utf-8';
|
||||
$this->requestURL = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function request($args, $debug = FALSE, $object_only = FALSE)
|
||||
{
|
||||
if($this->consId == null || $this->secretkey == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->setUrl($args);
|
||||
|
||||
$this->setHeader();
|
||||
|
||||
if($debug == TRUE)
|
||||
{
|
||||
$this->log($this->method."\r\n".$this->serviceUrl.$this->requestURL."\r\n".http_build_query($this->header));
|
||||
}
|
||||
|
||||
$client = new GuzzleHttp\Client();
|
||||
|
||||
$url_request = $this->serviceUrl.$this->requestURL;
|
||||
|
||||
try {
|
||||
|
||||
$request = new Request($this->method, $url_request, $this->header, $args['body']);
|
||||
|
||||
$obj_request = $client->send($request);
|
||||
|
||||
$json_request = ($obj_request->getStatusCode() == 200) ? $obj_request->getBody()->getContents() : [];
|
||||
|
||||
if($object_only == TRUE) {
|
||||
return $json_request;
|
||||
}
|
||||
else {
|
||||
return (array) json_decode($json_request);
|
||||
}
|
||||
}
|
||||
catch(RequestException $e){
|
||||
return Psr7\str($e->getRequest());
|
||||
if ($e->hasResponse()) {
|
||||
return Psr7\str($e->getResponse());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private function log($string)
|
||||
{
|
||||
$logger = new Logger('BPJS');
|
||||
$daily_log = date('d-m-Y').'.log';
|
||||
$logger->pushHandler(new StreamHandler(_DOCROOT_.'logs/bpjs_logs/'.$daily_log, Logger::INFO));
|
||||
$logger->pushHandler(new FirePHPHandler());
|
||||
|
||||
$logger->addInfo($string);
|
||||
}
|
||||
}
|
||||
699
core/Eklaim.php
Normal file
@@ -0,0 +1,699 @@
|
||||
<?php
|
||||
require_once 'db.php';
|
||||
|
||||
Class Eklaim {
|
||||
|
||||
var $rs_id;
|
||||
|
||||
var $user;
|
||||
|
||||
var $user_id;
|
||||
|
||||
var $db;
|
||||
|
||||
var $column_bill = ['procedure_amt','surgical_amt','consul_amt','expert_amt','nursing_amt','ancillary_amt','blood_amt','laboratory_amt','radiology_amt','rehab_amt','room_amt','intensive_amt','drug_amt','device_amt','consumable_amt','device_rent_amt','drug_chronic_amt','drug_chemo_amt'];
|
||||
|
||||
function __construct($host, $user, $password, $database) {
|
||||
// u:itcc_casemix p:c4s3m1x
|
||||
// u:root p:sQHvwl6k
|
||||
if($host == '' || $user == '' || $password == '' || $database == '') {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
$this->db = new db('p:'.$host,$user,$password,$database);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
function setVar($param) {
|
||||
if($param['user'] != ''){
|
||||
$this->user = $param['user'];
|
||||
}
|
||||
if($param['rs_id'] != ''){
|
||||
$this->rs_id = $param['rs_id'];
|
||||
}
|
||||
}
|
||||
// referensi
|
||||
function getBuild() {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT patch_number from xocp_patch order by patch_id desc limit 1");
|
||||
|
||||
return $result->fetchFirst();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getPasien($patient_id) {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT person_id,person_nm,birth_dttm,patient_mrn,nokartu from xocp_his_patient a join xocp_persons b on a.person_id = b.person_id where a.patient_id = {$patient_id}");
|
||||
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getPayplan() {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT * from xocp_his_payplan");
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getCOB() {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT * from xocp_his_cob");
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getDPJP() {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT * from xocp_his_dpjp");
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getDiagnosa($query) {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT code,str from mrconso where code like '$query%' OR str like '%$query%'");
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getProsedur($query) {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT code,str from mrconso where code like '$query%' OR str like '%$query%'");
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getKlaim($patient_id) {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT hospital_admission_id,admission_dttm,admission_type,discharge_dttm,payplan_nm,no_sep,cbg_code,user_nm,klaim_status_cd from xocp_his_patient_admission a
|
||||
JOIN xocp_his_payplan b on a.payplan_id = b.payplan_id
|
||||
JOIN xocp_users u on a.created_user_id = u.user_id
|
||||
LEFT JOIN xocp_his_cbg_result c on a.patient_id = c.patient_id and a.admission_id = c.admission_id
|
||||
where a.patient_id = {$patient_id} and a.status_cd = 'normal'
|
||||
ORDER BY admission_dttm desc");
|
||||
$user_data = $result->fetchAll();
|
||||
return $user_data;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function editKlaim($patient_id,$hospital_admission_id) {
|
||||
if(!empty($this->user)) {
|
||||
$query['admission'] = $this->db->query("SELECT a.hospital_admission_id, a.patient_id, a.admission_id, a.admission_type, a.admission_dttm, a.org_id, a.rs_tariff, a.discharge, a.discharge_status, a.discharge_dttm, a.payplan_id, a.no_kartu, a.no_sep, a.attending_doctor_id, a.attending_doctor_nm, a.status_cd, a.tariff_class, a.outpatient_class, a.los, a.adl1, a.adl2, a.special_procedure, a.special_prosthesis, a.special_investigation, a.special_drugs, a.birth_weight, a.billing_amount, a.billing_amount_pex, a.icu_ind, a.icu_los, a.vent_hour, a.upgrade_class_ind, a.upgrade_class_class, a.upgrade_class_los, a.grouping_count, a.unugrouper_version, a.klaim_status_cd, a.migrated_patient_id, a.migrated_admission_id, a.grouper_dttm, a.grouper_user_id, a.severity, a.bpjs_status_cd, a.rs_no, a.add_payment_pct, a.add_payment_amt, a.cob_id, b.person_id, b.patient_mrn, b.nokartu, c.person_nm, c.birth_dttm, c.adm_gender_cd
|
||||
FROM xocp_his_patient_admission a
|
||||
JOIN xocp_his_patient b on a.patient_id = b.patient_id
|
||||
JOIN xocp_persons c on b.person_id = c.person_id
|
||||
where a.hospital_admission_id = {$hospital_admission_id}");
|
||||
$user_data['admission'] = $query['admission']->fetchFirst();
|
||||
$tgl_lahir_pasien = ($user_data['admission']['birth_dttm'] != null ||
|
||||
$user_data['admission']['birth_dttm'] != '0000-00-00 00:00:00') ? new Datetime( datetime_to_date_en($user_data['admission']['birth_dttm']) ) : false;
|
||||
$tgl_sekarang = new Datetime(date('Y-m-d'));
|
||||
$differ_date = ($tgl_lahir_pasien != false) ? $tgl_lahir_pasien->diff($tgl_sekarang) : 0;
|
||||
$user_data['admission']['umur'] = $differ_date->format("%Y tahun");
|
||||
$admission_id = $user_data['admission']['admission_id'];
|
||||
$tarif_class = preg_replace("/kelas\_/",'',$user_data['admission']['tariff_class']);
|
||||
$upgrade_ind = $user_data['admission']['upgrade_class_ind'];
|
||||
$tarif_upgrade = preg_replace("/kelas\_/",'',$user_data['admission']['upgrade_class_class']);
|
||||
|
||||
$query['billing'] = $this->db->query("SELECT ".implode(", ", $this->column_bill)."
|
||||
FROM xocp_his_billing_detail
|
||||
where hospital_admission_id = {$hospital_admission_id}");
|
||||
if($query['billing']->numRows() > 0){
|
||||
$user_data['billing'] = $query['billing']->fetchFirst();
|
||||
}
|
||||
else {
|
||||
foreach($this->column_bill as $col) {
|
||||
$user_data['billing'][$col] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$query['diag'] = $this->db->query("SELECT *
|
||||
FROM xocp_his_patient_discharge_diag a
|
||||
JOIN mrconso b on a.diag_cd = b.CODE
|
||||
where a.patient_id = {$patient_id} and a.admission_id = {$admission_id}
|
||||
ORDER BY diag_no");
|
||||
$user_data['diag'] = $query['diag']->fetchAll();
|
||||
|
||||
$query['proc'] = $this->db->query("SELECT *
|
||||
FROM xocp_his_patient_discharge_proc a
|
||||
JOIN mrconso b on a.proc_cd = b.CODE
|
||||
where a.patient_id = {$patient_id} and a.admission_id = {$admission_id}
|
||||
ORDER BY proc_no");
|
||||
$user_data['proc'] = $query['proc']->fetchAll();
|
||||
|
||||
$query['result'] = $this->db->query("SELECT *,(select code from ina_grouper4_specialgroups_20230124 s_sp where s_sp.Code_full = xocp_his_cbg_result.sp and s_sp.INACBG = xocp_his_cbg_result.cbg_code)as sp_code,(select code from ina_grouper4_specialgroups_20230124 s_sr where s_sr.Code_full = xocp_his_cbg_result.sr and s_sr.INACBG = xocp_his_cbg_result.cbg_code) as sr_code,(select code from ina_grouper4_specialgroups_20230124 s_si where s_si.Code_full = xocp_his_cbg_result.si and s_si.INACBG = xocp_his_cbg_result.cbg_code)as si_code,(select code from ina_grouper4_specialgroups_20230124 s_sd where s_sd.Code_full = xocp_his_cbg_result.sd and s_sd.INACBG = xocp_his_cbg_result.cbg_code)as sd_code
|
||||
FROM xocp_his_cbg_result
|
||||
JOIN unucbg_2016 on xocp_his_cbg_result.cbg_code = unucbg_2016.code
|
||||
where patient_id = {$patient_id} and admission_id = {$admission_id}");
|
||||
if($query['result']->numRows() > 0) {
|
||||
$user_data['result'] = $query['result']->fetchFirst();
|
||||
$cbg_code = $user_data['result']['cbg_code'];
|
||||
|
||||
// get rs setup
|
||||
$rs = $this->db->query("SELECT rs_tariff, regional FROM rs_setup where rs_no = '".$this->rs_id."'");
|
||||
$rs_data = $rs->fetchFirst();
|
||||
|
||||
if($cbg_code != '') {
|
||||
$query['tariff'] = $this->db->query("SELECT * FROM tariff_20230124 WHERE tariff_20230124.INACBG = '{$cbg_code}' AND tariff_20230124.REGIONAL = '{$rs_data['regional']}' AND tariff_20230124.KODE_TARIFF = '{$rs_data['rs_tariff']}'");
|
||||
// $query['tariff'] = $this->db->query("SELECT * FROM tariff WHERE tariff.INACBG = '{$cbg_code}' AND tariff.REGIONAL = '{$rs_data['regional']}' AND tariff.KODE_TARIFF = '{$rs_data['rs_tariff']}'");
|
||||
$arr_tarif=[];
|
||||
|
||||
foreach($query['tariff']->fetchAll() as $row_tarif) {
|
||||
$arr_tarif[$row_tarif['KELAS_RAWAT']] = $row_tarif['TARIFF'];
|
||||
}
|
||||
|
||||
$user_data['tariff'][$tarif_class] = $arr_tarif[$tarif_class];
|
||||
|
||||
if($upgrade_ind == 1 && preg_match("/vip/", $tarif_upgrade)) {
|
||||
$user_data['tariff'][$tarif_upgrade] = $arr_tarif[1];
|
||||
}
|
||||
else{
|
||||
$user_data['tariff'][$tarif_upgrade] = $arr_tarif[$tarif_upgrade];
|
||||
}
|
||||
|
||||
// get special cmg
|
||||
$cmg_query = $this->db->query("SELECT a.*,b.TARIFF,case CMG_type when 'Special Procedure' then 'sp' when 'Special Prosthesis' then 'sr' when 'Special Investigation' then 'si' when 'Special Drug' then 'sd' end as cmg from ina_grouper4_specialgroups_20230124 a join special_cmg_tariff_20230124 b on a.Code_Full = b.CODE_FULL and a.INACBG = b.INACBG
|
||||
where a.INACBG = '$cbg_code' and REGIONAL = 'reg1' and KODE_TARIFF = 'AP' ");
|
||||
if($cmg_query->numRows() > 0) {
|
||||
foreach($cmg_query->fetchAll() as $row){
|
||||
$user_data['cmg'][$row['cmg']][$row['Code']] = $row['CMG_Description'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $user_data;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getUserNik($user_id) {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT ext_id from xocp_persons p join xocp_users u on p.person_id = u.person_id where u.user_nm = '$user_id'");
|
||||
$user_data = $result->fetchFirst();
|
||||
return $user_data;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// end referensi
|
||||
|
||||
function setUserID() {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT * from xocp_users where user_nm = '".$this->user."'");
|
||||
$user_data = $result->fetchFirst();
|
||||
$this->user_id = $user_data['user_id'];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getCounterKlaim($patient_id) {
|
||||
if(!empty($this->user)) {
|
||||
$result = $this->db->query("SELECT count(admission_id) as jml_admisi from xocp_his_patient_admission where patient_id = ".$patient_id." and status_cd = 'normal'");
|
||||
$user_data = $result->fetchFirst();
|
||||
return $user_data['jml_admisi'];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private function insert($table, $param) {
|
||||
$column = $values = [];
|
||||
$column = array_keys($param);
|
||||
$values = array_values($param);
|
||||
$this->db->debugging = TRUE;
|
||||
$save = $this->db->query("INSERT INTO $table(".implode(",",$column).") VALUES ('".implode("','",$values)."')");
|
||||
$this->db->debugging = FALSE;
|
||||
|
||||
return $save;
|
||||
}
|
||||
|
||||
private function update($table, $data, $where) {
|
||||
|
||||
$str_value = 'SET ';
|
||||
$arr_set = array();
|
||||
foreach($data as $key => $value)
|
||||
{
|
||||
if(is_array($value)) {
|
||||
$val = $value['value'];
|
||||
$type = $value['type'];
|
||||
|
||||
if($type == 'number') {
|
||||
$arr_set[] = $key." = ".$val;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$arr_set[] = $key." ='".$value."'";
|
||||
}
|
||||
}
|
||||
$str_value .= implode(",".PHP_EOL,$arr_set);
|
||||
$this->db->debugging = TRUE;
|
||||
$save = $this->db->query("UPDATE $table $str_value WHERE $where");
|
||||
$this->db->debugging = FALSE;
|
||||
|
||||
return $save;
|
||||
}
|
||||
|
||||
function insertPatient($param) {
|
||||
if(!empty($this->user)) {
|
||||
// get patient by patient_mrn first, if found return patient_id
|
||||
$get_patient = $this->db->query("SELECT * from xocp_his_patient where patient_mrn = ".$param['norm']);
|
||||
if($get_patient->numRows() > 0) {
|
||||
return $get_patient->fetchFirst()['patient_id'];
|
||||
}
|
||||
else {
|
||||
// insert into xocp_persons
|
||||
$arr_persons = [
|
||||
'person_nm' => $param['nama'],
|
||||
'birth_dttm' => $param['tgl_lahir'],
|
||||
'adm_gender_cd' => $param['jenis_kelamin'],
|
||||
'created_user_id' => $this->user_id
|
||||
];
|
||||
|
||||
$save_persons = $this->insert("xocp_persons",$arr_persons);
|
||||
$id_person = $save_persons->insertid;
|
||||
|
||||
// insert into xocp_his_patient
|
||||
$arr_patient = [
|
||||
'person_id' => $id_person,
|
||||
'patient_mrn' => $param['norm'],
|
||||
'nokartu' => $param['nokartu'],
|
||||
'created_user_id' => $this->user_id,
|
||||
'rs_no' => $this->rs_id
|
||||
];
|
||||
|
||||
$save_patient = $this->insert("xocp_his_patient",$arr_patient);
|
||||
$id_patient = $save_patient->insertid;
|
||||
|
||||
return $id_patient;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
function newClaim($param) {
|
||||
if(!empty($this->user)) {
|
||||
// get last admission id for this patient
|
||||
$admisssion = $this->db->query("SELECT admission_id from xocp_his_patient_admission where patient_id = {$param['patient_id']} ORDER BY admission_id desc");
|
||||
if($admisssion->numRows() > 0) {
|
||||
$admission_id = $admisssion->fetchFirst()['admission_id']+1;
|
||||
}
|
||||
else {
|
||||
$admission_id = 1;
|
||||
}
|
||||
// insert into xocp_his_patient_admission
|
||||
$arr_admission = [
|
||||
'patient_id' => $param['patient_id'],
|
||||
'admission_id' => $admission_id,
|
||||
'admission_dttm' => (($param['tgl_mrs'] != '') ? $param['tgl_mrs'] : date('Y-m-d H:i:s')),
|
||||
'discharge' => 'home', // default home
|
||||
'discharge_dttm' => (($param['tgl_krs'] != '') ? $param['tgl_krs'] : date('Y-m-d H:i:s')),
|
||||
'payplan_id' => 3, // default JKN
|
||||
'created_user_id' => $this->user_id,
|
||||
'tariff_class' => 'kelas_3', // default kelas_3
|
||||
'rs_no' => $this->rs_id,
|
||||
'admission_type' => $param['admission_type']
|
||||
];
|
||||
|
||||
$save_admission = $this->insert("xocp_his_patient_admission",$arr_admission);
|
||||
$hospital_admission_id = $save_admission->insertid;
|
||||
|
||||
return $hospital_admission_id;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function updateKlaim($param, $result_grouper = [])
|
||||
{
|
||||
if(!empty($this->user)) {
|
||||
// var_dump($param);
|
||||
$param['diagnosa'] = $param['panelitem_1011_3'];
|
||||
$param['procedure'] = $param['panelitem_1012_1'];
|
||||
|
||||
$admisssion = $this->db->query("SELECT admission_id from xocp_his_patient_admission where hospital_admission_id = {$param['hospital_admission_id']}");
|
||||
if($admisssion->numRows() > 0) {
|
||||
$admission_id = $admisssion->fetchFirst()['admission_id'];
|
||||
}
|
||||
list($attending_doctor_id,$attending_doctor_nm) = explode('|',$param['attending_doctor']);
|
||||
|
||||
// update billing detail
|
||||
$get_billing = $this->db->query("SELECT * from xocp_his_billing_detail where hospital_admission_id = ".$param['hospital_admission_id']);
|
||||
foreach($this->column_bill as $col) {
|
||||
if(array_key_exists($col, $param)){
|
||||
$arr_billing[$col] = $param[$col];
|
||||
}
|
||||
else {
|
||||
$arr_billing[$col] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if($get_billing->numRows() > 0) {
|
||||
// update billing
|
||||
$this->update('xocp_his_billing_detail',$arr_billing,'hospital_admission_id='.$param['hospital_admission_id']);
|
||||
}
|
||||
else {
|
||||
// insert billing
|
||||
$arr_billing['hospital_admission_id'] = $param['hospital_admission_id'];
|
||||
$this->insert('xocp_his_billing_detail',$arr_billing);
|
||||
}
|
||||
$bill_amount = array_sum(array_values($arr_billing));
|
||||
|
||||
|
||||
// update xocp_his_patient_discharge_diag
|
||||
$val_diag = explode("|", $param['diagnosa']);
|
||||
$diag_no = 1;
|
||||
$del_diag = $this->db->query("DELETE from xocp_his_patient_discharge_diag where patient_id = {$param['patient_id']} and admission_id = $admission_id");
|
||||
foreach($val_diag as $diag_cd){
|
||||
// insert diagnosa
|
||||
$arr_diag['patient_id'] = $param['patient_id'];
|
||||
$arr_diag['admission_id'] = $admission_id;
|
||||
$arr_diag['diag_no'] = $diag_no;
|
||||
$arr_diag['diag_cd'] = $diag_cd;
|
||||
$this->insert('xocp_his_patient_discharge_diag',$arr_diag);
|
||||
|
||||
$diag_no++;
|
||||
}
|
||||
|
||||
// update xocp_his_patient_discharge_proc
|
||||
$val_proc = explode("|", $param['procedure']);
|
||||
$proc_no = 1;
|
||||
$del_proc = $this->db->query("DELETE from xocp_his_patient_discharge_proc where patient_id = {$param['patient_id']} and admission_id = {$admission_id}");
|
||||
foreach($val_proc as $proc_cd){
|
||||
// insert diagnosa
|
||||
$arr_proc['patient_id'] = $param['patient_id'];
|
||||
$arr_proc['admission_id'] = $admission_id;
|
||||
$arr_proc['proc_no'] = $proc_no;
|
||||
$arr_proc['proc_cd'] = $proc_cd;
|
||||
$this->insert('xocp_his_patient_discharge_proc',$arr_proc);
|
||||
|
||||
$proc_no++;
|
||||
}
|
||||
|
||||
// update his_cbg_result
|
||||
|
||||
// inisial value special group
|
||||
$tariff_sp = $tariff_sr = $tariff_si = $tariff_sd = '0';
|
||||
$vsp = $vsr = $vsi = $vsd = 'None';
|
||||
$sp = $sr = $si = $sd = 'None';
|
||||
|
||||
$grouper_stage = (!empty($result_grouper)) ? 2 : 1;
|
||||
|
||||
$kelas_rawat = preg_replace("/kelas_/", '', $param['tariff_class']);
|
||||
$st_result = true;
|
||||
if(!array_key_exists(0, $val_diag)){
|
||||
$st_result = false;
|
||||
$cbg_code = 'X-0-98-X';
|
||||
$cbg_tariff = 0;
|
||||
}
|
||||
else {
|
||||
$cbg_code = $result_grouper['response']['cbg']['code'];
|
||||
}
|
||||
// get rs setup
|
||||
$rs = $this->db->query("SELECT rs_tariff, regional FROM rs_setup where rs_no = '".$this->rs_id."'");
|
||||
$rs_data = $rs->fetchFirst();
|
||||
// tariff
|
||||
$tariff = $this->db->query("SELECT TARIFF from tariff_20230124 where INACBG = '$cbg_code' and REGIONAL = '{$rs_data['regional']}' and KODE_TARIFF = '{$rs_data['rs_tariff']}' and KELAS_RAWAT = '$kelas_rawat'");
|
||||
$cbg_tariff = ($tariff->numRows() > 0) ? $tariff->fetchFirst()['TARIFF'] : 0;
|
||||
// patch
|
||||
$get_patch = $this->db->query("SELECT patch_number from xocp_patch order by patch_id desc limit 1");
|
||||
$patch_number = $get_patch->fetchFirst()['patch_number'];
|
||||
$admission_dttm = str_replace("-","/",datetime_to_dateid($param['admission_dttm']));
|
||||
$discharge_dttm = str_replace("-","/",datetime_to_dateid($param['discharge_dttm']));
|
||||
$birth_dttm = str_replace("-","/",datetime_to_dateid($param['birth_dttm']));
|
||||
$diagnosa = str_replace("|", ";", $param['diagnosa']);
|
||||
$procedure = str_replace("|", ";", $param['procedure']);
|
||||
|
||||
/*
|
||||
if(!empty($result_grouper)){
|
||||
// var_dump($result_grouper);
|
||||
$resp = $result_grouper['response'];
|
||||
|
||||
if(!empty($resp['special_cmg']))
|
||||
{
|
||||
foreach($resp['special_cmg'] as $special_cmg)
|
||||
{
|
||||
$query_cmg = "SELECT a.code,b.code_full,b.tariff,a.CMG_type from ina_grouper4_specialgroups_20230124 a JOIN special_cmg_tariff_20230124 b on a.code = b.CODE where a.INACBG = '$cbg_code' and b.INACBG = '$cbg_code' and b.REGIONAL = '{$rs_data['regional']}' and b.KODE_TARIFF = '{$rs_data['rs_tariff']}' and b.code_full = '{$special_cmg['code']}'";
|
||||
$get_cmg = $this->db->query($query_cmg);
|
||||
if($get_cmg->numRows() > 0) {
|
||||
foreach($get_cmg->fetchAll() as $cmg){
|
||||
if($cmg['CMG_Type'] == 'Special Procedure') {
|
||||
$sp = $cmg['code_full'];
|
||||
$vsp = $cmg['code'];
|
||||
$tariff_sp = $cmg['tariff'];
|
||||
}
|
||||
elseif($cmg['CMG_Type'] == 'Special Prosthesis') {
|
||||
$sr = $cmg['code_full'];
|
||||
$vsr = $cmg['code'];
|
||||
$tariff_sr = $cmg['tariff'];
|
||||
}
|
||||
elseif($cmg['CMG_Type'] == 'Special Investigation') {
|
||||
$si = $cmg['code_full'];
|
||||
$vsi = $cmg['code'];
|
||||
$tariff_si = $cmg['tariff'];
|
||||
}
|
||||
elseif($cmg['CMG_Type'] == 'Special Drug') {
|
||||
$sd = $cmg['code_full'];
|
||||
$vsd = $cmg['code'];
|
||||
$tariff_sd = $cmg['tariff'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
if(array_key_exists('sp',$param) && $param['sp'] != '')
|
||||
{
|
||||
$query_cmg = "SELECT a.code,b.code_full,b.tariff,a.CMG_type from ina_grouper4_specialgroups_20230124 a JOIN special_cmg_tariff_20230124 b on a.code = b.CODE where a.INACBG = '$cbg_code' and b.INACBG = '$cbg_code' and b.REGIONAL = '{$rs_data['regional']}' and b.KODE_TARIFF = '{$rs_data['rs_tariff']}' and b.code = '{$param['sp']}' and a.CMG_Type = 'Special Procedure'";
|
||||
// log_message('error',$query_cmg);
|
||||
$get_cmg = $this->db->query($query_cmg);
|
||||
if($get_cmg->numRows() > 0) {
|
||||
$cmg = $get_cmg->fetchFirst();
|
||||
$sp = $cmg['code_full'];
|
||||
$vsp = $cmg['code'];
|
||||
$tariff_sp = $cmg['tariff'];
|
||||
}
|
||||
}
|
||||
if(array_key_exists('sr',$param) && $param['sr'] != '')
|
||||
{
|
||||
$query_cmg = "SELECT a.code,b.code_full,b.tariff,a.CMG_type from ina_grouper4_specialgroups_20230124 a JOIN special_cmg_tariff_20230124 b on a.code = b.CODE where a.INACBG = '$cbg_code' and b.INACBG = '$cbg_code' and b.REGIONAL = '{$rs_data['regional']}' and b.KODE_TARIFF = '{$rs_data['rs_tariff']}' and b.code = '{$param['sr']}' and a.CMG_Type = 'Special Prosthesis'";
|
||||
// log_message('error',$query_cmg);
|
||||
$get_cmg = $this->db->query($query_cmg);
|
||||
if($get_cmg->numRows() > 0) {
|
||||
$cmg = $get_cmg->fetchFirst();
|
||||
$sr = $cmg['code_full'];
|
||||
$vsr = $cmg['code'];
|
||||
$tariff_sr = $cmg['tariff'];
|
||||
}
|
||||
}
|
||||
if(array_key_exists('si',$param) && $param['si'] != '')
|
||||
{
|
||||
$query_cmg = "SELECT a.code,b.code_full,b.tariff,a.CMG_type from ina_grouper4_specialgroups_20230124 a JOIN special_cmg_tariff_20230124 b on a.code = b.CODE where a.INACBG = '$cbg_code' and b.INACBG = '$cbg_code' and b.REGIONAL = '{$rs_data['regional']}' and b.KODE_TARIFF = '{$rs_data['rs_tariff']}' and b.code = '{$param['si']}' and a.CMG_Type = 'Special Investigation'";
|
||||
// log_message('error',$query_cmg);
|
||||
$get_cmg = $this->db->query($query_cmg);
|
||||
if($get_cmg->numRows() > 0) {
|
||||
$cmg = $get_cmg->fetchFirst();
|
||||
$si = $cmg['code_full'];
|
||||
$vsi = $cmg['code'];
|
||||
$tariff_si = $cmg['tariff'];
|
||||
}
|
||||
}
|
||||
if(array_key_exists('sd',$param) && $param['sd'])
|
||||
{
|
||||
$query_cmg = "SELECT a.code,b.code_full,b.tariff,a.CMG_type from ina_grouper4_specialgroups_20230124 a JOIN special_cmg_tariff_20230124 b on a.code = b.CODE where a.INACBG = '$cbg_code' and b.INACBG = '$cbg_code' and b.REGIONAL = '{$rs_data['regional']}' and b.KODE_TARIFF = '{$rs_data['rs_tariff']}' and b.code = '{$param['sd']}' and a.CMG_Type = 'Special Drug'";
|
||||
// log_message('error',$query_cmg);
|
||||
$get_cmg = $this->db->query($query_cmg);
|
||||
if($get_cmg->numRows() > 0) {
|
||||
$cmg = $get_cmg->fetchFirst();
|
||||
$sd = $cmg['code_full'];
|
||||
$vsd = $cmg['code'];
|
||||
$tariff_sd = $cmg['tariff'];
|
||||
}
|
||||
}
|
||||
|
||||
$arr_input_data = [1,$admission_dttm,$discharge_dttm,$birth_dttm,$param['birth_weight'],$grouper_stage,1,$diagnosa,$procedure,'-','-',$vsp,$vsr,$vsi,$vsd];
|
||||
|
||||
$total_tariff = $cbg_tariff + $tariff_sp + $tariff_sr + $tariff_si + $tarif_sd;
|
||||
|
||||
$arr_response_data = [$cbg_code,'None','None',$sp,$sr,$si,$sd];
|
||||
|
||||
$arr_result = [
|
||||
'patient_id' => $param['patient_id'],
|
||||
'admission_id' => $admission_id,
|
||||
'patient_type' => 1,
|
||||
'patient_class' => $kelas_rawat,
|
||||
'input_data' => implode(' ', $arr_input_data),
|
||||
'response_data' => implode(';', $arr_response_data),
|
||||
'cbg_code' => $cbg_code,
|
||||
'cbg_tariff' => $cbg_tariff,
|
||||
'sub_acute' => 'None',
|
||||
'tariff_sub_acute' => '0',
|
||||
'chronic' => 'None',
|
||||
'tariff_chronic' => '0',
|
||||
'tariff_sac' => '0',
|
||||
'sp' => $sp,
|
||||
'tariff_sp' => $tariff_sp,
|
||||
'sr' => $sr,
|
||||
'tariff_sr' => $tariff_sr,
|
||||
'si' => $si,
|
||||
'tariff_si' => $tariff_si,
|
||||
'sd' => $sd,
|
||||
'tariff_sd' => $tariff_sd,
|
||||
'rs_class' => 'A',
|
||||
'rs_tariff' => 'AP',
|
||||
'total_tariff' => $total_tariff,
|
||||
'grouper_dttm' => date('Y-m-d H:i:s'),
|
||||
'grouper_user_id' => $this->user_id,
|
||||
'patch_number' => $patch_number
|
||||
];
|
||||
|
||||
$get_result = $this->db->query("SELECT * from xocp_his_cbg_result where patient_id = {$param['patient_id']} and admission_id = $admission_id");
|
||||
// var_dump($arr_result);
|
||||
if($get_result->numRows() > 0) {
|
||||
// update result
|
||||
$this->update('xocp_his_cbg_result',$arr_result,'patient_id='.$param['patient_id'].' and admission_id='.$admission_id);
|
||||
}
|
||||
else {
|
||||
// insert result
|
||||
// $this->insert('xocp_his_cbg_result',$arr_result);
|
||||
}
|
||||
// End xocp_his_cbg_result
|
||||
|
||||
$tgl_admisi = new Datetime($param['admission_dttm']);
|
||||
$tgl_keluar = new Datetime($param['discharge_dttm']);
|
||||
$lama_rawat = ($tgl_keluar->diff($tgl_admisi)->format('%d')+1);
|
||||
$arr_admission = [
|
||||
'admission_type' => $param['admission_type'],
|
||||
'payplan_id' => $param['payplan_id'],
|
||||
'admission_dttm' => $param['admission_dttm'],
|
||||
'discharge_dttm' => $param['discharge_dttm'],
|
||||
'rs_tariff' => $param['rs_tariff'],
|
||||
'discharge_status' => 1,
|
||||
'no_kartu' => $param['no_kartu'],
|
||||
'no_sep' => $param['no_sep'],
|
||||
'attending_doctor_id' => $attending_doctor_id,
|
||||
'attending_doctor_nm' => $attending_doctor_nm,
|
||||
'tariff_class' => $param['tariff_class'],
|
||||
'los' => $lama_rawat,
|
||||
'adl1' => $param['adl1'],
|
||||
'adl2' => $param['adl2'],
|
||||
'adl2' => $param['adl2'],
|
||||
'special_procedure' => (array_key_exists('sp',$param) && $param['sp'] != '') ? $param['sp'] : 'None' ,
|
||||
'special_prosthesis' => (array_key_exists('sr',$param) && $param['sr'] != '') ? $param['sr'] : 'None',
|
||||
'special_investigation' => (array_key_exists('si',$param) && $param['si'] != '') ? $param['si'] : 'None' ,
|
||||
'special_drugs' => (array_key_exists('sd',$param) && $param['sd'] != '') ? $param['sd'] : 'None' ,
|
||||
'birth_weight' => $param['birth_weight'],
|
||||
'billing_amount' => $bill_amount,
|
||||
'icu_ind' => $param['icu_ind'],
|
||||
'icu_los' => $param['icu_los'],
|
||||
'vent_hour' => $param['vent_hour'],
|
||||
'upgrade_class_ind' => $param['upgrade_class_ind'],
|
||||
'upgrade_class_class' => $param['upgrade_class_class'],
|
||||
'upgrade_class_los' => $param['upgrade_class_los'],
|
||||
'add_payment_pct' => $param['add_payment_pct'],
|
||||
'add_payment_amt' => $param['add_payment_amt'],
|
||||
// 'grouper_dttm' => date('Y-m-d H:i:s'),
|
||||
'grouper_user_id' => $this->user_id,
|
||||
];
|
||||
|
||||
$update_admission = $this->update('xocp_his_patient_admission',$arr_admission,'hospital_admission_id='.$param['hospital_admission_id']);
|
||||
|
||||
if($st_result){
|
||||
return $cbg_code;
|
||||
}
|
||||
else {
|
||||
return 'Invalid Parameters';
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function insertBilling($param)
|
||||
{
|
||||
$arr_billingdetil = [
|
||||
'hospital_admission_id' => $param['hospital_admission_id'],
|
||||
'procedure_amt' => (array_key_exists('procedure_amt', $param) ? $param['procedure_amt'] : 0),
|
||||
'surgical_amt' => (array_key_exists('surgical_amt', $param) ? $param['surgical_amt'] : 0),
|
||||
'consul_amt' => (array_key_exists('consul_amt', $param) ? $param['consul_amt'] : 0),
|
||||
'expert_amt' => (array_key_exists('expert_amt', $param) ? $param['expert_amt'] : 0),
|
||||
'nursing_amt' => (array_key_exists('nursing_amt', $param) ? $param['nursing_amt'] : 0),
|
||||
'ancillary_amt' => (array_key_exists('ancillary_amt', $param) ? $param['ancillary_amt'] : 0),
|
||||
'blood_amt' => (array_key_exists('blood_amt', $param) ? $param['blood_amt'] : 0),
|
||||
'laboratory_amt' => (array_key_exists('laboratory_amt', $param) ? $param['laboratory_amt'] : 0),
|
||||
'radiology_amt' => (array_key_exists('radiology_amt', $param) ? $param['radiology_amt'] : 0),
|
||||
'rehab_amt' => (array_key_exists('rehab_amt', $param) ? $param['rehab_amt'] : 0),
|
||||
'room_amt' => (array_key_exists('room_amt', $param) ? $param['room_amt'] : 0),
|
||||
'intensive_amt' => (array_key_exists('intensive_amt', $param) ? $param['intensive_amt'] : 0),
|
||||
'drug_amt' => (array_key_exists('drug_amt', $param) ? $param['drug_amt'] : 0),
|
||||
'device_amt' => (array_key_exists('device_amt', $param) ? $param['device_amt'] : 0),
|
||||
'consumable_amt' => (array_key_exists('consumable_amt', $param) ? $param['consumable_amt'] : 0),
|
||||
'device_rent_amt' => (array_key_exists('device_rent_amt', $param) ? $param['device_rent_amt'] : 0),
|
||||
// 'consumable_capd_amt' => (array_key_exists('consumable_capd_amt', $param) ? $param['consumable_capd_amt'] : 0),
|
||||
// 'transfer_set_amt' => (array_key_exists('transfer_set_amt', $param) ? $param['transfer_set_amt'] : 0),
|
||||
// 'chronic_drug_amt' => (array_key_exists('chronic_drug_amt', $param) ? $param['chronic_drug_amt'] : 0),
|
||||
// 'pet_scan_amt' => (array_key_exists('pet_scan_amt', $param) ? $param['pet_scan_amt'] : 0),
|
||||
// 'chemo_drug_amt' => (array_key_exists('chemo_drug_amt', $param) ? $param['chemo_drug_amt'] : 0),
|
||||
// 'eyeglass_amt' => (array_key_exists('eyeglass_amt', $param) ? $param['eyeglass_amt'] : 0),
|
||||
// 'hearing_aid_amt' => (array_key_exists('hearing_aid_amt', $param) ? $param['hearing_aid_amt'] : 0),
|
||||
// 'prosthetic_arm_amt' => (array_key_exists('prosthetic_arm_amt', $param) ? $param['prosthetic_arm_amt'] : 0),
|
||||
// 'prosthetic_leg_amt' => (array_key_exists('prosthetic_leg_amt', $param) ? $param['prosthetic_leg_amt'] : 0),
|
||||
// 'prosthetic_teeth_amt' => (array_key_exists('prosthetic_teeth_amt', $param) ? $param['prosthetic_teeth_amt'] : 0),
|
||||
// 'corset_spine_amt' => (array_key_exists('corset_spine_amt', $param) ? $param['corset_spine_amt'] : 0),
|
||||
// 'collar_neck_amt' => (array_key_exists('collar_neck_amt', $param) ? $param['collar_neck_amt'] : 0),
|
||||
// 'walker_amt' => (array_key_exists('walker_amt', $param) ? $param['walker_amt'] : 0),
|
||||
'drug_chronic_amt' => (array_key_exists('drug_chronic_amt', $param) ? $param['drug_chronic_amt'] : 0),
|
||||
'drug_chemo_amt' => (array_key_exists('drug_chemo_amt', $param) ? $param['drug_chemo_amt'] : 0)
|
||||
];
|
||||
|
||||
$save_billing = $this->insert('xocp_his_billing_detail',$arr_billingdetil);
|
||||
}
|
||||
|
||||
function getAdmission($id) {
|
||||
if($id != '') {
|
||||
$result = $this->db->query("SELECT * from xocp_his_patient_admission where hospital_admission_id = ".$id);
|
||||
}
|
||||
|
||||
return $result->fetchAll();
|
||||
}
|
||||
|
||||
function hapusKlaim($id) {
|
||||
if(!empty($this->user)) {
|
||||
// update xocp_his_patient_admission
|
||||
$arr_admission = [
|
||||
'status_cd' => 'nullified',
|
||||
'nullified_dttm' => date('Y-m-d H:i:s'),
|
||||
'nullified_user_id' => $this->user_id
|
||||
];
|
||||
|
||||
$hapus_admission = $this->update("xocp_his_patient_admission",$arr_admission,'hospital_admission_id='.$id);
|
||||
|
||||
return $hapus_admission;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
1701
core/Form_validation.php
Normal file
432
core/INACBG.class.php
Normal file
@@ -0,0 +1,432 @@
|
||||
<?php
|
||||
/**
|
||||
* INCBG Class
|
||||
* Description : Class untuk akses REST API INACBG E-Klaim, dengan menggunakan class ini
|
||||
* user dimudahkan untuk melakukan operasi pada aplikasi E-Klaim.
|
||||
*
|
||||
* Require : GuzzleHTTP, Monolog
|
||||
* INCBG E-Klaim Version : 5.3.8.201904220235
|
||||
* Version : 1.0
|
||||
* Author : nuril.isbah@gmail.com
|
||||
*
|
||||
* How to use this class :
|
||||
* - Create new object
|
||||
* $inacbg = new INACBG([
|
||||
* 'INACBG_KEY'=>'SECRETKEY',
|
||||
* 'INACBG_URL'=>'URL SERVICE',
|
||||
* ]);
|
||||
*
|
||||
* - Get result
|
||||
* $result = $inacbg->request($request);
|
||||
*
|
||||
**/
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
|
||||
Class INACBG {
|
||||
|
||||
|
||||
private $secretkey;
|
||||
|
||||
private $serviceUrl;
|
||||
|
||||
private $method;
|
||||
|
||||
public $formated_data;
|
||||
|
||||
public function __construct($key, $url)
|
||||
{
|
||||
|
||||
$this->secretkey = $key;
|
||||
|
||||
$this->serviceUrl = $url;
|
||||
}
|
||||
|
||||
private function encrypt($data, $key)
|
||||
{
|
||||
$key = hex2bin($key);
|
||||
|
||||
if(mb_strlen($key,'8bit') !== 32)
|
||||
{
|
||||
throw new Exception("Error Processing Request. Need a 256 bit key");
|
||||
}
|
||||
|
||||
// $iv_size = openssl_chiper_iv_length("aes-256-cbc");
|
||||
$iv_size = 16;
|
||||
|
||||
$iv = random_bytes($iv_size);
|
||||
|
||||
$encrypted = openssl_encrypt($data, "aes-256-cbc", $key, OPENSSL_RAW_DATA, $iv);
|
||||
|
||||
$signature = mb_substr(hash_hmac("sha256", $encrypted, $key, true), 0, 10, '8bit');
|
||||
|
||||
$encoded = chunk_split(base64_encode($signature.$iv.$encrypted));
|
||||
|
||||
return $encoded;
|
||||
}
|
||||
|
||||
private function decrypt($str, $key)
|
||||
{
|
||||
$key = hex2bin($key);
|
||||
|
||||
if(mb_strlen($key,'8bit') !== 32)
|
||||
{
|
||||
throw new Exception("Error Processing Request. Need a 256 bit key");
|
||||
}
|
||||
|
||||
// $iv_size = openssl_chiper_iv_length("aes-256-cbc");
|
||||
$iv_size = 16;
|
||||
|
||||
$decoded = base64_decode($str);
|
||||
|
||||
$signature = mb_substr($decoded, 0, 10, '8bit');
|
||||
|
||||
$iv = mb_substr($decoded,10,$iv_size,'8bit');
|
||||
|
||||
$encrypted = mb_substr($decoded,$iv_size+10,NULL,'8bit');
|
||||
|
||||
$calc_signature = mb_substr(hash_hmac("sha256", $encrypted, $key, true), 0, 10, '8bit');
|
||||
|
||||
if(!$this->compare($signature,$calc_signature))
|
||||
{
|
||||
return 'SIGNATURE_NOT_MATCH';
|
||||
}
|
||||
|
||||
$decrypted = openssl_decrypt($encrypted, 'aes-256-cbc', $key, OPENSSL_RAW_DATA, $iv);
|
||||
|
||||
return $decrypted;
|
||||
}
|
||||
|
||||
private function compare($signa1, $signa2)
|
||||
{
|
||||
if(strlen($signa1) !== strlen($signa2))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = 0;
|
||||
for($i = 0; $i < strlen($signa1); $i++)
|
||||
{
|
||||
$result |= ord($signa1[$i]) ^ ord($signa2[$i]);
|
||||
}
|
||||
|
||||
return $result == 0;
|
||||
}
|
||||
|
||||
public function setMethod($method, $param)
|
||||
{
|
||||
$meta['metadata']['method'] = $method;
|
||||
if($method == 'new_claim')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_kartu','nomor_sep','nomor_rm','nama_pasien','tgl_lahir','gender']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_kartu' => $param['nomor_kartu'],
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'nomor_rm' => $param['nomor_rm'],
|
||||
'nama_pasien' => $param['nama_pasien'],
|
||||
'tgl_lahir' => $param['tgl_lahir'],
|
||||
'gender' => $param['gender']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'update_patient')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_kartu','nomor_rm','nama_pasien','tgl_lahir','gender']);
|
||||
if($cek_param == true) {
|
||||
$meta['metadata']['nomor_rm'] = $param['nomor_rm'];
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data'=> [
|
||||
'nomor_kartu' => $param['nomor_kartu'],
|
||||
'nomor_rm' => $param['nomor_rm'],
|
||||
'nama_pasien' => $param['nama_pasien'],
|
||||
'tgl_lahir' => $param['tgl_lahir'],
|
||||
'gender' => $param['gender']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'delete_patient')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_rm','coder_nik']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_rm' => $param['nomor_rm'],
|
||||
'coder_nik' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'set_claim_data')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','nomor_kartu','tgl_masuk','tgl_pulang',
|
||||
'jenis_rawat','kelas_rawat','adl_sub_acute','adl_chronic','icu_indikator','icu_los','ventilator_hour','upgrade_class_ind','upgrade_class_class','upgrade_class_los','add_payment_pct','birth_weight','discharge_status','diagnosa','procedure','prosedur_non_bedah','prosedur_bedah','konsultasi','tenaga_ahli','keperawatan','penunjang','radiologi','laboratorium','pelayanan_darah','rehabilitasi','kamar','rawat_intensif','obat','obat_kronis','obat_kemoterapi','alkes','bmhp','sewa_alat','tarif_poli_eks','nama_dokter','kode_tarif','payor_id','payor_cd','cob_cd','coder_nik']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'nomor_kartu' => $param['nomor_kartu'],
|
||||
'tgl_masuk' => $param['tgl_masuk'],
|
||||
'tgl_pulang' => $param['tgl_pulang'],
|
||||
'jenis_rawat' => $param['jenis_rawat'],
|
||||
'kelas_rawat' => $param['kelas_rawat'],
|
||||
'adl_sub_acute' => $param['adl_sub_acute'],
|
||||
'adl_chronic' => $param['adl_chronic'],
|
||||
'icu_indikator' => $param['icu_indikator'],
|
||||
'icu_los' => $param['icu_los'],
|
||||
'ventilator_hour' => $param['ventilator_hour'],
|
||||
'upgrade_class_ind' => $param['upgrade_class_ind'],
|
||||
'upgrade_class_class' => $param['upgrade_class_class'],
|
||||
'upgrade_class_los' => $param['upgrade_class_los'],
|
||||
'add_payment_pct' => $param['add_payment_pct'],
|
||||
'birth_weight' => $param['birth_weight'],
|
||||
'discharge_status' => $param['discharge_status'],
|
||||
'diagnosa' => $param['diagnosa'],
|
||||
'procedure' => $param['procedure'],
|
||||
'tarif_rs' => [
|
||||
'prosedur_non_bedah' => $param['prosedur_non_bedah'],
|
||||
'prosedur_bedah' => $param['prosedur_bedah'],
|
||||
'konsultasi' => $param['konsultasi'],
|
||||
'tenaga_ahli' => $param['tenaga_ahli'],
|
||||
'keperawatan' => $param['keperawatan'],
|
||||
'radiologi' => $param['radiologi'],
|
||||
'laboratorium' => $param['laboratorium'],
|
||||
'pelayanan_darah' => $param['pelayanan_darah'],
|
||||
'rehabilitasi' => $param['rehabilitasi'],
|
||||
'kamar' => $param['kamar'],
|
||||
'rawat_intensif' => $param['rawat_intensif'],
|
||||
'obat' => $param['obat'],
|
||||
'obat_kronis' => $param['obat_kronis'],
|
||||
'obat_kemoterapi' => $param['obat_kemoterapi'],
|
||||
'alkes' => $param['alkes'],
|
||||
'bmhp' => $param['bmhp'],
|
||||
'sewa_alat' => $param['sewa_alat']
|
||||
],
|
||||
'tarif_poli_eks' => $param['tarif_poli_eks'],
|
||||
'nama_dokter' => $param['nama_dokter'],
|
||||
'kode_tarif' => $param['kode_tarif'],
|
||||
'payor_id' => $param['payor_id'],
|
||||
'payor_cd' => $param['payor_cd'],
|
||||
'cob_cd' => $param['cob_cd'],
|
||||
'coder_nik' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'update_procedur')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','procedure','coder_nik']);
|
||||
if($cek_param == true) {
|
||||
$meta['metadata']['method'] = 'set_claim_data';
|
||||
$meta['metadata']['nomor_sep'] = $param['nomor_sep'];
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'procedure' => $param['procedure'],
|
||||
'coder_nik' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'grouper_1')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep']);
|
||||
if($cek_param == true) {
|
||||
$meta['metadata']['method'] = 'grouper';
|
||||
$meta['metadata']['stage'] = 1;
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'grouper_2')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','special_cmg']);
|
||||
if($cek_param == true) {
|
||||
$meta['metadata']['method'] = 'grouper';
|
||||
$meta['metadata']['stage'] = 2;
|
||||
$format = array_merge($meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'special_cmg' => $param['special_cmg']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'claim_final')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','coder_nik']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'coder_nik' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'reedit_claim')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'send_claim')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['start_dt','stop_dt','jenis_rawat','date_type']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'start_dt' => $param['start_dt'],
|
||||
'stop_dt' => $param['stop_dt'],
|
||||
'jenis_rawat' => $param['jenis_rawat'],
|
||||
'date_type' => $param['date_type']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'send_claim_individual')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'get_claim_data')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'get_claim_status')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'delete_claim')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','coder_nik']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'coder_nik' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'claim_print')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','coder_nik']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'coder_nik' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
elseif($method == 'sitb_validate')
|
||||
{
|
||||
$cek_param = $this->validParam($param, ['nomor_sep','nomor_register_sitb']);
|
||||
if($cek_param == true) {
|
||||
$format = array_merge(
|
||||
$meta,
|
||||
['data' => [
|
||||
'nomor_sep' => $param['nomor_sep'],
|
||||
'nomor_register_sitb' => $param['coder_nik']
|
||||
]]);
|
||||
}
|
||||
}
|
||||
$this->formated_data = json_encode($format);
|
||||
}
|
||||
|
||||
private function validParam($param,$arr_key)
|
||||
{
|
||||
foreach($arr_key as $key)
|
||||
{
|
||||
if(!array_key_exists($key, $param))
|
||||
{
|
||||
return "Parameter ".$key." not found";
|
||||
break;
|
||||
}
|
||||
else {
|
||||
if($param[$key] == '')
|
||||
{
|
||||
return "Invalid Parameter on ".$key;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function request()
|
||||
{
|
||||
if($this->formated_data == '') { return false; }
|
||||
|
||||
$context = [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => 'application/x-www-form-urlencoded'
|
||||
]
|
||||
];
|
||||
|
||||
$ws_query = $this->encrypt($this->formated_data, $this->secretkey);
|
||||
|
||||
$client = new GuzzleHttp\Client();
|
||||
|
||||
try {
|
||||
|
||||
$request = new Request('POST', $this->serviceUrl, $context, $ws_query);
|
||||
|
||||
$obj_request = $client->send($request);
|
||||
|
||||
$json_request = ($obj_request->getStatusCode() == 200) ? $obj_request->getBody()->getContents() : [];
|
||||
|
||||
$first = strpos($json_request, "\n")+1;
|
||||
|
||||
$last = strrpos($json_request, "\n")-1;
|
||||
|
||||
$response = substr($json_request, $first, strlen($json_request)-$first-$last);
|
||||
|
||||
$response = $this->decrypt($response, $this->secretkey);
|
||||
|
||||
return json_decode($response, true);
|
||||
}
|
||||
catch(RequestException $e){
|
||||
return Psr7\str($e->getRequest());
|
||||
if ($e->hasResponse()) {
|
||||
return Psr7\str($e->getResponse());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||