[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
siakad
/
aulia
/
[
Home
]
File: getUgd.php
<?php $url = "https://mjkn.rsaulia.com/aulia-api/emr/listUgd"; $method = "GET"; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_HTTPHEADER, array( "Content-type: application/json" )); $result = curl_exec($curl); $json_array =json_decode($result, true); curl_close($curl); //var_dump($result); $status = $json_array['status']; $baris = count($json_array['response']); echo "Status : ".$status."<br />"; echo "Jml Data : ".$baris."<br />"."<br />"; ?> <table border="1"> <thead> <tr> <th>No</th> <th>Tgl. Periksa</th> <th>Jam Periksa</th> <th>No. Registrasi</th> <th>No. RM</th> <th>Nama Pasien</th> <th>Dokter</th> <th>Cara Bayar</th> </tr> </thead> <tbody> <?php $no = 1; foreach($json_array['response'] as $data) { if ($data['muncul']==1) { ?> <tr> <td><?= $no; ?></td> <td><?= date("d-m-Y",strtotime($data['tglmasuk'])); ?></td> <td><?= $data['jam']; ?></td> <td><?= trim($data['noreg']); ?></td> <td><?= trim($data['rekmed']); ?></td> <td><?= trim($data['namapas']); ?></td> <td><?= trim($data['nadokter']); ?></td> <td><?= trim($data['cara_bayar']); ?></td> </tr> <?php } $no++; } ?> </tbody> <tfoot> <tr> <th>No</th> <th>Tgl. Periksa</th> <th>Jam Periksa</th> <th>No. Registrasi</th> <th>No. RM</th> <th>Nama Pasien</th> <th>Dokter</th> <th>Cara Bayar</th> </tr> </tfoot> </table>