</div> <?php $ptAdmitted = getAdmitted(); if (empty($ptAdmitted)) { ?> </div> <div id="noContentHolder" style="width: 694px;"> <div id="msgNoCnt"><i>There are no patients for admitted.</i></div> </div> <?php } else { $rowCount = 1; foreach ($ptAdmitted as $pt) { $ptInfo = getPtInfo($pt["pid"]); foreach ($ptInfo as $pI) { $drpt = getDocAttend($pt["rid"], $pt["pid"]); foreach ($drpt as $d) { $did = $d["did"]; } if ($rowCount == 1) { ?> <div class="rowFields odd" onclick="window.location = 'viewpatientadmitted.php?pid=<?php echo $pt["pid"]; ?> &rid=<?php echo $pt["rid"]; ?> '"> <div class="opdHolder"><?php echo $pI["opdnum"]; ?>
<?php if (empty($r["remarks"])) { echo 'The patient was not yet examined or attended'; } else { echo nl2br($r["remarks"]); } ?> </span> </td> </tr> <tr> <td colspan="1" class="recHeader" valign="top"><label for="doctor">Doctor:</label></td> <td colspan="5" class="recField" valign="top"> <span class="info"> <?php $doctor = getDocAttend($r["rid"], $r["pid"]); if (empty($doctor)) { echo 'The patient was not yet examined or attended'; } else { foreach ($doctor as $d) { echo 'Dr. ' . $d["firstname"] . ' ' . $d["lastname"] . ', ' . $d["title"] . ' (' . $d["task"] . ')'; } } ?> </span> </td> </tr> <tr> <td colspan="1" class="recHeader" valign="top"><label for="foradmission">For Admission:</label></td> <td colspan="5" class="recField" valign="top"> <span class="info">
<?php include '../init.php'; sleep(3); $errors = array(); $pid = $_POST["pid"]; $rid = $_POST["rid"]; $docid = $_POST["docid"]; $bednum = $_POST["bednum"]; $service = $_POST["service"]; $roomtype = $_POST["roomtype"]; $drpt = getDocAttend($rid, $pid); foreach ($drpt as $d) { $curr_doc = $d["did"]; } if (empty($service)) { $error[] = "Please select a service where the patient will be admitted."; } if (empty($roomtype)) { $error[] = "Please select the type of room where the patient will be admitted."; } if (empty($bednum)) { $error[] = "Please select a bed where the patient will be admitted."; } if (empty($docid)) { $error[] = "Select the Admitting Doctor"; } else { if (checkPID($pid) === false) { $error[] = "The patient does not exist. Please try again."; } if (checkRecord($pid, $rid) === false) {
<div class="clinical-row"> <div class="contentCell clinical-cont-serdept"> <input type="text" name="serdept" id="serdept" class="c-text" style="width: 195px;" value="<?php echo $service; ?> "/> </div> <div class="contentCell clinical-cont-ward"> <input type="text" name="ward" id="ward" class="c-text" style="width: 105px;" value="<?php echo $roomtype; ?> "/> </div> <div class="contentCell clinical-cont-serdeptatt"> <?php $doc = getDocAttend($rid, $pid); foreach ($doc as $d) { $did = $d["did"]; $docname = "Dr. " . $d["firstname"] . " " . $d["lastname"] . ", " . $d["title"]; $specialty = $d["specialization"]; } ?> <input type="text" name="serdeptat" id="serdeptat" class="c-text" style="width: 195px;" value="<?php echo $specialty; ?> "/> </div> <div class="contentCell clinical-cont-attphys"> <?php echo $docname; ?>
exit; } if (empty($_GET["rid"]) || empty($_GET["pid"]) || !isset($_GET["rid"]) || !isset($_GET["pid"])) { header("Location: pagenotfound.php"); exit; } $pid = $_GET["pid"]; $rid = $_GET["rid"]; $ptInfo = getPtInfo($pid); foreach ($ptInfo as $pt) { $opdnum = $pt["opdnum"]; $ptfirstname = $pt["firstname"]; $ptmiddlename = $pt["middlename"]; $ptlastname = $pt["lastname"]; } $getRc = getDocAttend($rid, $pid); foreach ($getRc as $rc) { $did = $rc["did"]; } ?> <!DOCTYPE HTML> <head> <title>Admitting Patient #<?php echo $opdnum; ?> :: Bacnotan District Hospital - Patient Information System</title> <?php include 'templates/meta.php'; ?> <link rel="icon" href="favicon.ico" type="image/ico"/> <link href="css/styleMain.css" rel="stylesheet" type="text/css">