first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
$token='emhUZUxoenR1Uk9aMDBEaEpzN1R0dlpic2htREVibER1MlVMeFFjUg==';
|
||||
$jenis_rawat='ranap';
|
||||
$jenis_filter='diag';
|
||||
$tgl_awal='2021-04-01';
|
||||
$tgl_akhir='2021-04-27';
|
||||
$url ='http://10.10.123.63:9000/api';
|
||||
$options = array('http' => array(
|
||||
'method' => 'GET',
|
||||
'header' => 'x-token: '.$token
|
||||
));
|
||||
$context = stream_context_create($options);
|
||||
$content = file_get_contents($url.'/'.$jenis_rawat.'/'.$jenis_filter.'/'.$tgl_awal.'/'.$tgl_akhir, false, $context);
|
||||
$content=utf8_encode($content);
|
||||
$result=json_decode($content,true);
|
||||
?>
|
||||
|
||||
<table border="1">
|
||||
<tr><td>Ruang</td><td>ICD Code</td><td>Jenis Penyakit</td><td>Nama Dokter</td></tr>
|
||||
<?php
|
||||
foreach ($result as $value) {
|
||||
?>
|
||||
<tr><td><?php echo $value['namaruang']; ?></td><td><?php echo $value['icd_code']; ?></td><td><?php echo $value['jenis_penyakit']; ?></td><td><?php echo $value['namadokter']; ?></td></tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
Reference in New Issue
Block a user