echo "</tr>"; echo "</table>"; echo "<br>"; echo "<table border=0>"; echo "<tr>"; echo "<td>THIS IS TO CERTIFY THAT <input type=text class='underLine' value='" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "'></td>"; echo "</tr>"; echo "</table>"; echo "<table border=0>"; echo "<tr>"; echo "<td><font size=2>AGE</font> <input type=text class='underLine' value='" . $ro->getPatientRecord_age() . " Years Old'> <font size=2>WAS EXAMINED AND TREATED/CONFINED IN </font></td>"; echo "</tr>"; echo "</table>"; echo "<table border=0>"; echo "<tr>"; echo "<td><font size=2>THIS HOSPITAL FROM <input type=text class='underLine2' value='" . $ro->getRegistrationDetails_dateRegistered() . "'></font>\n<font size=2>TO</font>\n<input type=text class='underLine2' value='" . $ro->getRegistrationDetails_dateUnregistered() . "' >\n</td>"; echo "</tr>"; echo "<tr>"; echo "<td><font size=2>WITH THE FOLLOWING FINDINGS AND OR DIAGNOSIS:</font><input type='text' name='d1' class='underline2'></td>"; echo "</tr>"; echo "</table>"; echo "<input type=text name='d2' class='underLine3'>"; echo "<br>"; echo "<input type=text name='d3' class='underLine3'>"; echo "<br><Br>"; echo "<table border=0>"; echo "<tr>"; echo "<td><font size=2>THE CERTIFICATION IS ISSUED UPON REQUEST OF</font> <input type=text class='underLine'> </td>"; echo "</tr>"; echo "<tr>"; echo "<td><font size=2>FOR</font> <input type=text class='underLine3'> </td>";
echo "<tr>"; echo "<td>Name: <input type='text' value='" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "' class='patientName'> </td>"; echo "</tr>"; echo "</table>"; echo "<table border=0 width=55% cellspacing=0>"; echo "<tr>"; echo "<td>Age: <input type='text' value='" . $ro->getPatientRecord_age() . "' class='registrationNo'> </td>"; echo "<td>Sex: <input type='text' value='" . $ro->getPatientRecord_gender() . "' class='registrationNo'> </td>"; echo "</tr>"; echo "</table>"; echo "<table border=0 width=55% >"; echo "<tr>"; echo "<td>Address: <input type='text' value='" . $ro->getPatientRecord_address() . "' class='address'> </td>"; echo "</tr>"; echo "<tr>"; echo "<td>Date Admitted: <input type='text' value='" . $ro->getRegistrationDetails_dateRegistered() . "' class='dateAdmitted'> </td>"; echo "</tr>"; echo "<tr>"; echo "<td>Date Discharged: <input type='text' value='" . $ro->getRegistrationDetails_dateUnregistered() . "' class='dateDischarged'> </td>"; echo "</tr>"; $ro->clinicalCoverSheet_atteding($registrationNo); echo "<tr>"; echo "<td>Admitting Diagnosis: <input type='text' value='" . $ro->getRegistrationDetails_IxDx() . "' class='admittingDiagnosis'> </td>"; echo "</tr>"; echo "<tr>"; echo "<td><font color='white'>Admitting Diagnosis:</font> <input type='text' value='' class='admittingDiagnosis'> </td>"; echo "</tr>"; if ($ro->selectNow("patientICD", "diagnosis", "registrationNo", $registrationNo) != "") { echo "<tr>"; echo "<td><font>Final Diagnosis:</font> <input type='text' value='" . substr($ro->clinicalCoverSheet_finalDiagnosis($registrationNo), 0, 56) . "' class='finalDiagnosis'> </td>"; echo "</tr>";
} else { echo "<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Undischarged&room='><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'></a> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>"; } echo "<font class='informationLabel'>Patient No:</font> " . $ro->getRegistrationDetails_patientNo(); echo "<br><font class='informationLabel'>Registration No:</font> " . $ro->getRegistrationDetails_registrationNo(); echo "<br><font class='informationLabel'>Age:</font> " . $ro->getPatientRecord_age(); echo "<br><font class='informationLabel'>Gender:</font> " . $ro->getPatientRecord_gender(); echo "<br><font class='informationLabel'>Civil Status:</font> " . $ro->getPatientRecord_civilStatus(); echo "<br><font class='informationLabel'>Birth Date:</font> " . $ro->getPatientRecord_Birthdate(); echo "<br><font class='informationLabel'>Contact No#:</font> " . $ro->getPatientRecord_contactNo(); echo "<br><font class='informationLabel'>Senior:</font> " . $ro->getPatientRecord_senior(); echo "<br><font class='informationLabel'>PhilHealth:</font> " . $ro->getPatientRecord_phic(); echo "<br><font class='informationLabel'>PhilHealth Type:</font> " . $ro->getPHICtype_patientRecord(); echo "<br><font class='informationLabel'>Company:</font> " . $ro->getRegistrationDetails_company(); echo "<br><font class='informationLabel'>Time Registered:</font> " . $ro->getRegistrationDetails_timeRegistered(); echo "<br><font class='informationLabel'>Date Registered:</font> " . $ro->getRegistrationDetails_dateRegistered(); echo "<br><font class='informationLabel'>Branch Registered:</font> " . $ro->getRegistrationDetails_branch(); echo "<br><font class='informationLabel'>Case Type:</font> <a href='#' style='text-decoration:none; color:black;'>" . $ro->getRegistrationDetails_caseType() . "</a>"; echo "<br><font class='informationLabel'>Package:</font> <a href='#' style='text-decoration:none; color:black;'>" . $ro->getRegistrationDetails_package() . "</a>"; echo "<br><font class='informationLabel'>Room:</font> " . $room[0]; echo "<br><font class='informationLabel'>Address:</font> " . $ro->getPatientRecord_address(); echo "<br><font class='informationLabel'>Registered By:</font> " . $ro->getRegistrationDetails_registeredBy(); if ($ro->selectNow("reportHeading", "information", "reportName", "Credit Limit") == "Activate" and $ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == "IPD") { echo "<br><font class='informationLabel' color=blue>Allowed Balance:</font> " . number_format($ro->selectNow("registrationDetails", "LimitCASH", "registrationNo", $registrationNo), 2); echo "<br><font class='informationLabel' color=red>Current Balance:</font> " . number_format($ro->may_naibayad_naba_ang_patient($registrationNo), 2); } else { } if ($ro->getRegistrationDetails_dateUnregistered() != "") { echo "<br><font class='informationLabel'>Time Discharged:</font> " . $ro->getRegistrationDetails_timeUnregistered(); echo "<br><font class='informationLabel'>Discharged:</font> " . $ro->getRegistrationDetails_dateUnregistered(); } else {
<?php include "../../myDatabase1.php"; $registrationNo = $_GET['registrationNo']; $username = $_GET['username']; echo "Pls Wait While Updating the S.O.A"; $ro = new database1(); $ro->getPatientProfile($registrationNo); $room = preg_split("/\\_/", $ro->getRegistrationDetails_room()); $dateIn = preg_split("/\\_/", $ro->getRegistrationDetails_dateRegistered()); //$dateIn = preg_split ("/\_/", $ro->doubleSelectNow("patientCharges","dateCharge","registrationNo",$registrationNo,"description",$ro->getRegistrationDetails_room()) ); $dateOut = preg_split("/\\_/", $ro->getRegistrationDetails_dateUnregistered()); if ($dateIn[0] == $dateOut[0]) { //count days kapag magkapareho ung month ng admission at discharge $totalDays = $dateOut[1] - $dateIn[1]; } else { //count days kapag magkaiba ung month ng admission at discharge if ($dateIn[0] == "Dec") { $totalDays = $dateOut[1] + 31 - $dateIn[1]; } else { if ($dateIn[0] == "Jan") { $totalDays = $dateOut[1] + 31 - $dateIn[1]; } else { if ($dateIn[0] == "Feb") { $totalDays = $dateOut[1] + 28 - $dateIn[1]; } else { if ($dateIn[0] == "Mar") { $totalDays = $dateOut[1] + 31 - $dateIn[1]; } else { if ($dateIn[0] == "Apr") { $totalDays = $dateOut[1] + 30 - $dateIn[1];