echo "<center>"; echo "<table border=0>"; echo "<tr>"; echo "<td>Patient#: </td><td>" . $ro->getRegistrationDetails_patientNo() . "</td>"; echo "<td> Registration#: </td><td> " . $ro->getRegistrationDetails_registrationNo() . "</td>"; echo "<td> Room: " . $room1[0] . " </td>"; echo "</tr>"; echo "<tr>"; echo "<td>Name: </td><td> <a href='#' onClick='printF(printData)' style='text-decoration:none; color:black;'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</a></td>"; echo "<td align='right'> " . $ro->coconutText("Physician") . " : </td><td> " . $ro->getAttendingDoc($registrationNo, "Attending") . "</td>"; echo "<td> Case: " . $ro->selectNow("registrationDetails", "privateORhouse_case", "registrationNo", $registrationNo) . "</td>"; echo "</tr>"; echo "<tr>"; echo "<Td>" . $ro->coconutText("Admitted") . ": </td><td> " . $ro->getRegistrationDetails_dateRegistered() . "@" . $ro->getRegistrationDetails_timeRegistered() . "</td>"; //echo "<td>CaseType:</td><TD>".$ro->getRegistrationDetails_caseType()."</tD>"; echo "<Td align='right'> " . $ro->coconutText("Discharged") . ": </td><td> " . $ro->getRegistrationDetails_dateUnregistered() . "@" . $ro->getRegistrationDetails_timeUnregistered() . "</td>"; echo "</tr>"; if ($ro->selectNow("registrationDetails", "LimitHMO", "registrationNo", $registrationNo) != "") { $hmoLimit = number_format($ro->selectNow("registrationDetails", "LimitHMO", "registrationNo", $registrationNo), 2); } else { if ($ro->selectNow("Company", "type", "companyName", $ro->getRegistrationDetails_company()) == "insurance") { //check kung insurance.. $hmoLimit = number_format(2000, 2); } else { $hmoLimit = ""; } } if ($ro->selectNow("registrationDetails", "company", "registrationNo", $registrationNo) != "") { echo "<tr>"; echo "<td>Company:</td>"; echo "<td>" . $ro->getRegistrationDetails_company() . " - {$hmoLimit} </td>";
echo "<br><a href='/COCONUT/patientProfile/nbs/searchBaby.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font class='informationLabel' color=blue>[Add Baby]</font></a> "; } } } else { } /* echo "<Br><Br>"; 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> ".$ro->selectNow("registrationDetails","LimitCASH","registrationNo",$registrationNo); echo "<br><font class='informationLabel' color=red>Current Balance:</font> ".$ro->may_naibayad_naba_ang_patient($registrationNo); }else { } */ if ($ro->getRegistrationDetails_dateUnregistered() != "") { echo "<br> <font class='informationLabel'>Time Discharged:</font> " . $ro4->formatTime($ro->getRegistrationDetails_timeUnregistered()); echo "<br> <font class='informationLabel'>Discharged:</font> " . $ro4->formatDate($ro->getRegistrationDetails_dateUnregistered()); } else { echo ""; } /* if( $ro->selectNowLast("billingRequest","status","registrationNo",$registrationNo) == "pending" ) { if( $ro->selectNowLast("billingRequest","status","registrationNo",$registrationNo) == "pending" ) { echo "<br><br>"; $ro->coconutFormStart("post","http://".$ro->getMyUrl()."/COCONUT/billing/cancelRequest2bill.php"); $ro->coconutHidden("registrationNo",$registrationNo); $ro->coconutHidden("username",$username); $ro->coconutButton("Cancel Request to Bill"); $ro->coconutFormStop();
echo "<center>"; echo "<table border=0>"; echo "<tr>"; echo "<td><span class='txtSize'>Patient#:</span> </td><td><span class='txtSize'>" . $ro->getRegistrationDetails_patientNo() . "</span></td>"; echo "<td> <span class='txtSize'>Registration#:</span> </td><td> <span class='txtSize'>" . $ro->getRegistrationDetails_registrationNo() . "</span></td>"; echo "<td> <span class='txtSize'>Room:</span> <span class='txtSize'>" . $room1[0] . "</span></td>"; echo "</tr>"; echo "<tr>"; echo "<td><span class='txtSize'>Name:</span> </td><td> <a href='#' style='text-decoration:none; font-size:12px; color:black;'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</a></td>"; echo "<td align='left'> <span class='txtSize'>Physician:</span> </td><td> <span class='txtSize'>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</span></td>"; echo "<td> <span class='txtSize'>Case:" . $ro->selectNow("registrationDetails", "privateORhouse_case", "registrationNo", $registrationNo) . "</span></td>"; echo "</tr>"; echo "<tr>"; echo "<Td><span class='txtSize'>Admitted:</span> </td><td> <span class='txtSize'>" . $ro->getRegistrationDetails_dateRegistered() . "@" . $ro->getRegistrationDetails_timeRegistered() . "</span></td>"; //echo "<td>CaseType:</td><TD>".$ro->getRegistrationDetails_caseType()."</tD>"; echo "<Td align='left'> <span class='txtSize'>Discharged:</span> </td><td> <span class='txtSize'>" . $ro->getRegistrationDetails_dateUnregistered() . "@" . $ro->getRegistrationDetails_timeUnregistered() . "</span></td>"; echo "</tr>"; if ($ro->selectNow("registrationDetails", "LimitHMO", "registrationNo", $registrationNo) != "") { $hmoLimit = number_format($ro->selectNow("registrationDetails", "LimitHMO", "registrationNo", $registrationNo), 2); } else { if ($ro->selectNow("Company", "type", "companyName", $ro->getRegistrationDetails_company()) == "insurance") { //check kung insurance.. $hmoLimit = number_format(2000, 2); } else { $hmoLimit = ""; } } if ($ro->selectNow("registrationDetails", "company", "registrationNo", $registrationNo) != "") { echo "<tr>"; echo "<td><span class='txtSize'>Company:</span></td>"; echo "<td><span class='txtSize'>" . $ro->getRegistrationDetails_company() . " - {$hmoLimit}</span> </td>";
echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td><b>TIME DISCHARGED:</b></tD>"; echo "<td>" . $ro->getRegistrationDetails_timeUnregistered() . "</td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>TIME ADMITTED:</b></td>"; echo "<tD>" . $ro->getRegistrationDetails_timeRegistered() . "</td>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>";