receiveRequisition($_POST["req"]); } $list=$db->getAdmittedPatientList(); $showList=""; if($list){ while($arr=$list->fetchArray()){ $pid=$arr["pid"]; $showList=$showList."".$pid."".$arr["ward"]."-".$arr["bed"]."".$arr["name"]."".$arr["diagnosis"].""; } } $reqs=$db->getRequisitionList(); $showReqs=""; if($reqs){ while($arr=$reqs->fetchArray()){ $pid=$arr["pid"]; if(!empty($arr["form"])){ if($arr["form"]=="report-cs"){ $test="".$arr["test"].""; if(checkAccess("report")=="all"){ $toReport="Add Report"; } else{ $toReport=""; } } else{ $test="".$arr["test"].""; if(checkAccess("report")=="all"){ $toReport="Add Report"; $toReport="Add Report"; } else{ $toReport=""; } } } else{ $test="".$arr["test"].""; if(checkAccess("report")=="all"){ $toReport="Add Report"; } else{ $toReport=""; } } if($arr["status"]=="received"){ $received="Sample Received"; } elseif(checkAccess("report")=="all"){ $received=""; } else{ $received="Sample Not Received"; } $showReqs=$showReqs."".$test."".$arr["sample"]."".$arr["room"]."".date("M j", $arr["time"])."".$pid." (".$db->getWard($pid)->fetchArray()["ward"]."-".$db->getBed($pid)->fetchArray()["bed"].")".$arr["addl"]."".$received."".$toReport.""; } } ?> View Info

Patient List

Patient IDBed NumberNameDiagnosis
Add New Patient Archive

Requisition List

Test NeededSamplePlaceDatePatient ID