omitRequisition($_POST["del"]); } if(!empty($_POST["test"])){ if(file_exists($_POST["test"])){ $form=str_replace(["forms/",".schema.json"], "", $_POST["test"]); $test=json_decode(file_get_contents("forms/".$form.".schema.json"))->description; } else{ $test=$_POST["test"]; $form=""; } $db->addRequisition($pid, $test, $_POST["sample"], $_POST["date"], $_POST["time"], $_POST["room"], $form, $_POST["addl"]); } $inv=json_decode(file_get_contents("autocomplete/investigation.json")); $testList=""; foreach(glob("forms/report-*.json") as $file){ $form=json_decode(file_get_contents($file)); if(!in_array($form->title, ["disk_diffusion","serology"])){ $testList=$testList.""; } } foreach($inv->tests as $t){ $testList=$testList.""; } $roomList=""; $roomList=$roomList.""; foreach($inv->rooms as $r){ $roomList=$roomList.""; } $roomList=$roomList.""; $reqList=$db->getRequisitions($pid); $list=""; while($req=$reqList->fetchArray()){ $list=$list."".$req["test"]."".$req["sample"]."".$req["room"]."".date("M j", $req["time"])."".$req["addl"].""; } } ?> Requisitions

List of Requisitions

>

Test NameSampleDestinationDateExtra note