getAllData($pid, "nursing"); while($item=$nursingArray->fetchArray()){ array_push($nursing, json_decode($item["data"])); } echo json_encode($nursing); exit(); } if(!empty($_GET["get"]) && $_GET["get"]=="physician"){ $physician=[]; $physicianArray=$db->getAllData($pid, "physician"); while($item=$physicianArray->fetchArray()){ array_push($physician, json_decode($item["data"])); } echo json_encode($physician); exit(); } if(!empty($_GET["get"]) && $_GET["get"]=="reports"){ $reports=[]; $reportsArray=$db->getAllData($pid, "reports"); while($item=$reportsArray->fetchArray()){ array_push($reports, json_decode($item["data"])); } echo json_encode($reports); exit(); } if(!empty($_GET["get"]) && $_GET["get"]=="treatment"){ $treatment=[]; $treatmentArray=$db->getDrugs($pid); while($item=$treatmentArray->fetchArray()){ if($item["omit"]==0){ array_push($treatment, $item); } } echo json_encode($treatment); exit(); } } ?>
This page contains experimental features. Please double check for the time being.
Date/Time |
---|
Date/Time |
---|