Exemple #1
0
    echo "<td>" . $ro->getRegistrationDetails_company() . " - {$hmoLimit} </td>";
    echo "<td>&nbsp;</td>";
    echo "<td></td>";
    echo "<td></td>";
    echo "</tr>";
} else {
    echo "<tr>";
    echo "<td></td>";
    echo "<td></td>";
    echo "</tr>";
}
if ($ro->selectNow("registrationDetails", "package", "registrationNo", $registrationNo) != "") {
    $package = $ro->selectNow("registrationDetails", "package", "registrationNo", $registrationNo);
    $splitPackage = preg_split("/\\_/", $package);
    echo "<tr>";
    if ($ro->getPatientRecord_phic() == "NO") {
        echo "<Td>Package:</td><td>&nbsp;" . $splitPackage[1] . " - " . $splitPackage[2] . "</td>";
    } else {
        echo "<Td>Package:</td><td>&nbsp;" . $splitPackage[1] . " - " . $splitPackage[2] . "</td>";
    }
    echo "</tr>";
} else {
}
//echo "<tr>";
//echo "<Td>".$ro->coconutText("Company").":&nbsp;</td><td>&nbsp;".$ro->getRegistrationDetails_company()."</td>";
//echo "<td>&nbsp;</tD>";
//echo "<Td>".$ro->coconutText("Fx Diagnosis:").":&nbsp;</td><td>&nbsp;".$ro->getRegistrationDetails_finalDiagnosis()."</td>";
//echo "</tr>";
//echo "<tr>";
//echo "<Td>".$ro->coconutText("Room").":&nbsp;</td>";
//echo $ro->getPatientRoom($registrationNo);
                     echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
                 } else {
                     //kpg ndi pharmacy or cashier ndi pde mag charge
                     echo $ro->coconutImages_return("locked1.jpeg") . "<font size=2 color=blue>[LOCKED ACCOUNT]</font><br><font size=2 color=red>" . $ro->selectNow("registrationDetails", "LimitHMO", "registrationNo", $registrationNo) . " Limit of " . $ro->getRegistrationDetails_company() . " for this Patient is Already Consumed</font>";
                 }
             }
         } else {
             //mas mababa pa ung total balance ng patient kaysa sa limit ng hmo
             echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
         }
     } else {
         //code sa walang limit n hmo
         echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
     }
 } else {
     if ($ro->getPatientRecord_phic() == "YES") {
         if ($totalBalanceNow <= 7000) {
             //kpg PHIC set LIMIT to 7000
             echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
         } else {
             if ($ro->checkPermission($registrationNo) != "") {
                 echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
             } else {
                 if ($ro->selectNow("registeredUser", "module", "username", $username) == "CASHIER" || $ro->selectNow("registeredUser", "module", "username", $username) == "PHARMACY") {
                     echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'>" . $ro->coconutImages_return("locked1.jpeg") . "<font size=2 color=red>Charges Cart</font></a></li>";
                 } else {
                     echo $ro->coconutImages_return("locked1.jpeg") . "<font size=2 color=blue>[LOCKED ACCOUNT]</font><br><font size=2 color=red>7,000 Limit for this Patient is Already Consumed</font>";
                 }
             }
         }
     } else {
echo "&nbsp;&nbsp;<font class='informationLabel'>Registration#:</font>&nbsp;<font color=red>" . $registrationNo . "</font>";
if ($ro->getRegistrationDetails_type() == "OPD") {
    echo "";
} else {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Admission#:</font>&nbsp;<font color='blue'>" . $ro->selectNow("registrationDetails", "manual_registrationNo", "registrationNo", $ro->getRegistrationDetails_registrationNo()) . "</font>";
}
//echo "<br><font class='informationLabel'>System#:</font>&nbsp;".$ro->getRegistrationDetails_patientNo();
//echo "<br><font class='informationLabel'>Registration#:</font>&nbsp;".$ro->getRegistrationDetails_registrationNo();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Age:</font>&nbsp;" . $ro->getPatientRecord_age();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Gender:</font>&nbsp;" . $ro->getPatientRecord_gender();
//echo "<br><font class='informationLabel'>Civil Status:</font>&nbsp;".$ro->getPatientRecord_civilStatus();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Birth Date:</font>&nbsp;" . $ro4->formatDate($ro->getPatientRecord_Birthdate());
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Contact No#:</font>&nbsp;" . $ro->getPatientRecord_contactNo();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Senior:</font>&nbsp;" . $ro->getPatientRecord_senior();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Senior ID#:</font>&nbsp;" . $ro->selectNow("registrationDetails", "seniorID", "registrationNo", $registrationNo);
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>PhilHealth:</font>&nbsp;" . $ro->getPatientRecord_phic() . " <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/Payments/phicPayment_selection.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font color='red' size=2>[Payment]</font></a>";
//echo "<br><font class='informationLabel'>Religion:</font>&nbsp;".$ro->getPHICtype_patientRecord();
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Company:</font>&nbsp;" . $ro->getRegistrationDetails_company() . " <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/Payments/companyPayment_selection.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font color='red' size=2>[Payment]</font></a>";
if ($ro->selectNow("registrationDetails", "company1", "registrationNo", $registrationNo) != "") {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Company1:</font>&nbsp;" . $ro->selectNow("registrationDetails", "company1", "registrationNo", $registrationNo);
} else {
}
if ($ro->selectNow("registrationDetails", "company2", "registrationNo", $registrationNo) != "") {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Company2:</font>&nbsp;" . $ro->selectNow("registrationDetails", "company2", "registrationNo", $registrationNo);
} else {
}
//echo "<br><font class='informationLabel'>Mother's Name:</font>&nbsp;".$ro->selectNow("patientRecord","mothersName","patientNo",$ro->getRegistrationDetails_patientNo());
//echo "<br><font class='informationLabel'>Father's Name:</font>&nbsp;".$ro->selectNow("patientRecord","fathersName","patientNo",$ro->getRegistrationDetails_patientNo());
if ($ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == "OPD") {
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Time Registered:</font>&nbsp;" . $ro4->formatTime($ro->getRegistrationDetails_timeRegistered());
    echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Date Registered:</font>&nbsp;" . $ro4->formatDate($ro->getRegistrationDetails_dateRegistered());
}
//echo "<img src='http://".$ro->getMyUrl()."/COCONUT/myImages/verified.jpeg'>";
echo "<font class='informationLabel'>Patient No:</font>&nbsp;" . $ro->getRegistrationDetails_patientNo();
if ($ro->getRegistrationDetails_type() != "OPD") {
    echo "<br><font class='informationLabel'>Registration No:</font>&nbsp;<font color=red>Admission-" . $ro->getRegistrationDetails_registrationNo() . "</font>";
} else {
    echo "<br><font class='informationLabel'>Registration No:</font>&nbsp;<font color='blue'>Outpatient-" . $ro->getRegistrationDetails_registrationNo() . "</font>";
}
echo "<br><font class='informationLabel'>Age:</font>&nbsp;" . $ro->getPatientRecord_age();
echo "<br><font class='informationLabel'>Gender:</font>&nbsp;" . $ro->getPatientRecord_gender();
echo "<br><font class='informationLabel'>Civil Status:</font>&nbsp;" . $ro->getPatientRecord_civilStatus();
echo "<br><font class='informationLabel'>Birth Date:</font>&nbsp;" . $ro->getPatientRecord_Birthdate();
echo "<br><font class='informationLabel'>Contact No#:</font>&nbsp;" . $ro->getPatientRecord_contactNo();
echo "<br><font class='informationLabel'>Senior:</font>&nbsp;" . $ro->getPatientRecord_senior();
echo "<br><font class='informationLabel'>Senior ID#:</font>&nbsp;" . $ro->selectNow("registrationDetails", "seniorID", "registrationNo", $registrationNo);
echo "<br><font class='informationLabel'>PhilHealth:</font>&nbsp;" . $ro->getPatientRecord_phic();
echo "<br><font class='informationLabel'>Religion:</font>&nbsp;" . $ro->getPHICtype_patientRecord();
if ($ro->selectNow("registrationDetails", "verified", "registrationNo", $registrationNo) != "" && $ro->selectNow("registrationDetails", "certified", "registrationNo", $registrationNo) == "") {
    echo "<img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/verified.jpeg'>";
} else {
    if ($ro->selectNow("registrationDetails", "verified", "registrationNo", $registrationNo) == "" && $ro->selectNow("registrationDetails", "certified", "registrationNo", $registrationNo) != "") {
        echo "<img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/certified.jpeg'>";
    } else {
        if ($ro->selectNow("registrationDetails", "verified", "registrationNo", $registrationNo) != "" && $ro->selectNow("registrationDetails", "certified", "registrationNo", $registrationNo) != "") {
            echo "<img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/verified.jpeg'>";
            echo "&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/certified.jpeg'>";
        } else {
            echo "";
        }
    }