Esempio n. 1
0
$timeOut_minutes1 = substr($timeOut[1], 0, 1);
$timeOut_minutes2 = substr($timeOut[1], 1, 1);
$pinNo = preg_split("/\\-/", $ro->getRegistrationDetails_PIN());
$pxPin1 = substr($pinNo[0], 0, 1);
$pxPin2 = substr($pinNo[0], 1, 1);
$pxPin3 = substr($pinNo[0], 2, 1);
$pxPin4 = substr($pinNo[0], 3, 1);
$pxPin5 = substr($pinNo[0], 4, 1);
$pxPin6 = substr($pinNo[0], 5, 1);
$pxPin7 = substr($pinNo[0], 6, 1);
$pxPin8 = substr($pinNo[0], 7, 1);
$pxPin9 = substr($pinNo[0], 8, 1);
$pxPin10 = substr($pinNo[0], 9, 1);
$pxPin11 = substr($pinNo[0], 10, 1);
$pxPin12 = substr($pinNo[0], 11, 1);
echo "\n\n<table width='860' border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='#000000'>\n<tr>\n<td><div align='center' style='border:1px #000 solid;'><font size=3><b>PART II - PATIENT CONFINEMENT INFORMATION</b></font></font> </div></td>\n</tr>\n</table>\n\n\n<table width='860' border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='#000000' >\n<td class='style1'><b>1.Name of Patient</b>&nbsp;<input type='text' value='                 " . $ro->getPatientRecord_lastName() . "            " . $ro->getPatientRecord_firstName() . ",           " . $ro->getPatientRecord_middleName() . "' class='pxName'><br><span style='margin:0 0 0 180px;'><font size=1>Last Name</font></span> <span style='margin:0 0 0 100px;'><font size=1>First Name</font></span> <span style='margin:0 0 0 100px;'><font size=1>Middle Name</font></span> <span style='margin:0 0 0 100px;'><font size=1>(example:Dela Cruz Jr  Juan,Sipag)</font></span> </tD>\n</tr>\n\n<tr>\n<td class='style1'><b>2.Was patient referred by another Health Care Institution (HCI)</b></td>\n</tr>\n<tr>\n<td>\n<input type='checkbox'><b>NO</b> \n<input type='checkbox'><b>YES</b> \n<input type='text' class='referringHCI' value=''>\n<input type='text' class='addressHCI' value=''>\n<br>\n<span style='margin:0 0 0 150px;'><font size=1>Name of Referring Health Care Institution</font></span>\n<span style='margin:0 0 0 50px;'><font size=1>Building Number and Street Name</font></span>\n<span style='margin:0 0 0 20px;'><font size=1>City/Municipality</font></span>\n<span style='margin:0 0 0 20px;'><font size=1>Province</font></span>\n<span style='margin:0 0 0 20px;'><font size=1>Zip Code</font></span>\n</td>\n</tr>\n\n<tr>\n<td class='style1'><b>3.Confinement Period</b> &nbsp;&nbsp;a.Date Admitted: <input type='text' class='panz' value='" . $monthIn_output1 . "' ><input type='text' class='panz1' value='" . $monthIn_output2 . "' >-<input type='text' class='panz' value='{$day1}' ><input type='text' class='panz1' value='{$day2}' >-<input type='text' class='panz' value='{$year1}' ><input type='text' class='panz1' value='{$year2}' ><input type='text' class='panz1' value='{$year3}' ><input type='text' class='panz1' value='{$year4}' > &nbsp;&nbsp;&nbsp;&nbsp;b.Time Admitted: <input type='text' class='panz' value='{$timeIn_hour2_12hrs}' ><input type='text' class='panz1' value='{$timeIn_hour1_12hrs}' >:<input type='text' class='panz' value='{$timeIn_minutes1}' ><input type='text' class='panz1' value='{$timeIn_minutes2}' > ";
if ($timeIn[0] < 12) {
    echo "<input type='radio' checked='true'>AM  <input type='radio'>PM";
} else {
    echo "<input type='radio'>AM  <input type='radio' checked='false'>PM";
}
echo "\n<br>\n<span style='margin:0 0 0 250px;'><font size=1>month</font></span>\n<span style='margin:0 0 0 20px;'><font size=1>day</font></span>\n<span style='margin:0 0 0 30px;'><font size=1>year</font></span>\n<span style='margin:0 0 0 170px;'><font size=1>hour</font></span>\n<span style='margin:0 0 0 25px;'><font size=1>min</font></span>\n</td>\n\n\n</tr>\n\n<tr>\n<td class='style1'><span style='margin:0 0 0 147px;'> a.Date Discharged: <input type='text' class='panz' value='{$monthOut_output1}' ><input type='text' class='panz1' value='{$monthOut_output2}' >-<input type='text' class='panz' value='{$dayOut_output1}' ><input type='text' class='panz1' value='{$dayOut_output2}' >-<input type='text' class='panz' value='{$yearOut_output1}' ><input type='text' class='panz1' value='{$yearOut_output2}' ><input type='text' class='panz1' value='{$yearOut_output3}' ><input type='text' class='panz1' value='{$yearOut_output4}' > &nbsp;&nbsp;&nbsp;&nbsp;b.Time Discharged: <input type='text' class='panz' value='{$timeOut_hour2_12hrs}'><input type='text' class='panz1' value='{$timeOut_hour1_12hrs}' >:<input type='text' class='panz' value='{$timeOut_minutes1}' ><input type='text' class='panz1' value='{$timeOut_minutes2}' >";
if ($timeOut[0] < 12) {
    echo "<input type='radio' checked='true'>AM  <input type='radio'>PM";
} else {
    echo "<input type='radio'>AM  <input type='radio' checked='false'>PM";
}
echo "\n<br>\n\n<span style='margin:0 0 0 265px;'><font size=1>month</font></span>\n<span style='margin:0 0 0 20px;'><font size=1>day</font></span>\n<span style='margin:0 0 0 30px;'><font size=1>year</font></span>\n<span style='margin:0 0 0 180px;'><font size=1>hour</font></span>\n<span style='margin:0 0 0 25px;'><font size=1>min</font></span>\n</td>\n\n\n</td>\n</tr>\n";
$improved = "";
if ($ro->selectNow("registrationDetails", "patientDisposition", "registrationNo", $registrationNo) == "improved") {
    $improved = "checked";
Esempio n. 2
0
//require_once('../authentication.php');
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database2();
/*
$ro->getBatchNo();
$myFile = $ro->getReportInformation("homeRoot")."/COCONUT/trackingNo/batchNo.dat";
$fh = fopen($myFile, 'r');
$batchNo = fread($fh, 100);
fclose($fh);
*/
$batchNo = $ro->selectNow("trackingNo", "value", "name", "batchNo");
echo "\n\n<style type='text/css'>\na \n{ \ntext-decoration:none;\ncolor:black;\nfont-weight:bold;\n }\nul { list-style-type:none; }\ndisplay: block;\n</style>\n\n";
$ro->getPatientProfile($registrationNo);
if ($ro->selectNow("registeredUser", "module", "username", $ro->getRegistrationDetails_registeredBy()) == "MI") {
    echo "<br><hr><font size=2 color=blue>" . $ro->getPatientRecord_lastName() . " " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . ".</font><hr>";
} else {
    echo "<br><hr>\n\n<font size=2 color=red>" . htmlentities($ro->getPatientRecord_lastName()) . " " . htmlentities($ro->getPatientRecord_firstName()) . " " . htmlentities($ro->getPatientRecord_middleName()) . "</font>\n\n<hr>";
}
echo "<ul>";
echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_right.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}' target='rightFrame'><font size=2>Information</font></a></li>";
if ($ro->getRegistrationDetails_caseType() != "") {
    echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/phicLimit/show_phicLimit.php?registrationNo={$registrationNo}&casetype=" . $ro->getRegistrationDetails_caseType() . "' target='rightFrame'><font size=2>Credit Limit</font></a></li>";
} else {
    echo "";
}
/*
if($ro->getRegistrationDetails_room() != "OPD_OPD") {
echo "<li><a href='http://".$ro->getMyUrl()."/COCONUT/patientProfile/creditLimit/viewCreditLimit.php?registrationNo=$registrationNo&username=$username' target='rightFrame'><font size=2>Credit Limit</font></a></li>";
}else {
echo "";
Esempio n. 3
0
<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$dateCharge = $_GET['dateCharge'];
$ro = new database2();
$ro->getPatientProfile($registrationNo);
echo "<Br>";
echo "<table border=0 width='70%'>";
echo "<Tr>";
echo "<td><b>Patient ID:</b>&nbsp;" . $ro->getRegistrationDetails_patientNo() . "</td>";
echo "<TD><b>Registration#:</b>&nbsp;{$registrationNo}</tD>";
echo "</tr>";
echo "<Tr>";
echo "<td><b>Patients Name:</b>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</td>";
echo "<td><b>Age:</b>&nbsp;" . $ro->getPatientRecord_Age() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>D.O.B:</b>&nbsp;" . $ro->getPatientRecord_birthDate() . "</td>";
echo "<tD><b>Sex:</b>&nbsp;" . $ro->getPatientRecord_Gender() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>Physician:</b>&nbsp;" . $ro->getAttendingDoc($registrationNo, "ATTENDING") . "</td>";
echo "<td><b>Room:</b>&nbsp;" . $ro->getRegistrationDetails_room() . "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->printLabRequest($registrationNo, $dateCharge);