$ro = new database1(); $ro->getBatchNo(); $myFile = $ro->getReportInformation("homeRoot") . "/COCONUT/trackingNo/batchNo.dat"; $fh = fopen($myFile, 'r'); $batchNo = fread($fh, 100); fclose($fh); echo "\r\n\r\n<style type='text/css'>\r\na \r\n{ \r\ntext-decoration:none;\r\ncolor:black;\r\nfont-weight:bold;\r\n }\r\nul { list-style-type:none; }\r\ndisplay: block;\r\n</style>\r\n\r\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><font size=2 color=red>" . $ro->getPatientRecord_lastName() . " " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</font><hr>"; } echo "<ul>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_right.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "' 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 ""; } */ echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientCharges.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&show=All&desc=' target='rightFrame'><font size=2>Charges</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=PROFESSIONAL FEE&username={$username}&show=&desc=' target='rightFrame'><font size=2>Doctor</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=LABORATORY&username={$username}&show=&desc=' target='rightFrame'><font size=2>Laboratory</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=RADIOLOGY&username={$username}&show=&desc=' target='rightFrame'><font size=2>Radiology</font></a></li>";
} 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 { echo ""; }