echo "<center>";
echo "<table border=0>";
echo "<tr>";
echo "<td><span class='txtSize'>Patient#:</span>&nbsp;</td><td><span class='txtSize'>" . $ro->getRegistrationDetails_patientNo() . "</span></td>";
echo "<td>&nbsp;&nbsp;<span class='txtSize'>Registration#:</span>&nbsp;</td><td>&nbsp;<span class='txtSize'>" . $ro->getRegistrationDetails_registrationNo() . "</span></td>";
echo "<td>&nbsp;<span class='txtSize'>Room:</span>&nbsp;<span class='txtSize'>" . $room1[0] . "</span></td>";
echo "</tr>";
echo "<tr>";
echo "<td><span class='txtSize'>Name:</span>&nbsp;</td><td>&nbsp;<a href='#' style='text-decoration:none; font-size:12px; color:black;'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</a></td>";
echo "<td align='left'>&nbsp;&nbsp;<span class='txtSize'>Physician:</span> </td><td>&nbsp;<span class='txtSize'>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</span></td>";
echo "<td>&nbsp;<span class='txtSize'>Case:" . $ro->selectNow("registrationDetails", "privateORhouse_case", "registrationNo", $registrationNo) . "</span></td>";
echo "</tr>";
echo "<tr>";
echo "<Td><span class='txtSize'>Admitted:</span>&nbsp;</td><td>&nbsp;<span class='txtSize'>" . $ro->getRegistrationDetails_dateRegistered() . "@" . $ro->getRegistrationDetails_timeRegistered() . "</span></td>";
//echo "<td>CaseType:</td><TD>".$ro->getRegistrationDetails_caseType()."</tD>";
echo "<Td align='left'>&nbsp;&nbsp;<span class='txtSize'>Discharged:</span>&nbsp;</td><td>&nbsp;<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>";
Beispiel #2
0
echo "<center>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Patient#:&nbsp;</td><td>" . $ro->getRegistrationDetails_patientNo() . "</td>";
echo "<td>&nbsp;&nbsp;Registration#:&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_registrationNo() . "</td>";
echo "<td>&nbsp;Room:&nbsp;" . $room1[0] . " </td>";
echo "</tr>";
echo "<tr>";
echo "<td>Name:&nbsp;</td><td>&nbsp;<a href='#' onClick='printF(printData)' style='text-decoration:none; color:black;'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</a></td>";
echo "<td align='right'>&nbsp;&nbsp;" . $ro->coconutText("Physician") . " : </td><td>&nbsp;" . $ro->getAttendingDoc($registrationNo, "Attending") . "</td>";
echo "<td>&nbsp;Case: " . $ro->selectNow("registrationDetails", "privateORhouse_case", "registrationNo", $registrationNo) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td>" . $ro->coconutText("Admitted") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateRegistered() . "@" . $ro->getRegistrationDetails_timeRegistered() . "</td>";
//echo "<td>CaseType:</td><TD>".$ro->getRegistrationDetails_caseType()."</tD>";
echo "<Td align='right'>&nbsp;&nbsp;" . $ro->coconutText("Discharged") . ":&nbsp;</td><td>&nbsp;" . $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>";
Beispiel #3
0
<?php

include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database2();
$ro->coconutDesign();
$ro->getPatientProfile($registrationNo);
echo "<b>Date Admitted</b>&nbsp;" . $ro->getRegistrationDetails_dateRegistered();
echo "<Br>";
echo "<b>Date Discharged</b>&nbsp;" . $ro->getRegistrationDetails_dateUnregistered();
echo "<Br><Br><Br><BR><BR><br>";
$ro->coconutFormStart("get", "checkGenerator1.php");
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("username", $username);
$ro->coconutBoxStart("500", "120");
echo "<Br>";
echo "<table border=0>";
echo "<Tr>";
echo "<Td>From</td>";
echo "<Td>";
$ro->coconutComboBoxStart_short("month");
echo "<option value='01'>Jan</option>";
echo "<option value='02'>Feb</option>";
echo "<option value='03'>Mar</option>";
echo "<option value='04'>Apr</option>";
echo "<option value='05'>May</option>";
echo "<option value='06'>Jun</option>";
echo "<option value='07'>Jul</option>";
echo "<option value='08'>Aug</option>";
echo "<option value='09'>Sep</option>";
echo "<script type='text/javascript' src='../js/wickedpicker/dist/wickedpicker.min.js'></script>";
echo "<link rel='stylesheet' href='../../bootstrap-3.3.6/css/bootstrap.css'></link>";
echo "<link rel='stylesheet' href='../js/wickedpicker/dist/wickedpicker.min.css'></link>";
if ($ro->selectNow("registrationDetails", "timeAdmission", "registrationNo", $registrationNo) != "") {
    $timePickerDefault = $ro->selectNow("registrationDetails", "timeAdmission", "registrationNo", $registrationNo);
    $buttonClass = "btn btn-danger";
} else {
    $timePickerDefault = $ro->selectNow("registrationDetails", "timeRegistered", "registrationNo", $registrationNo);
    $buttonClass = "btn btn-success";
}
echo "\n\n<script>\n\t\$(document).ready(function(){\n\n\t\t\$('#thumbsup').hide();\n\n\t\t\$('#timeAdmission').wickedpicker({\n\t\t\tnow:'" . $timePickerDefault . "',\n\t\t\ttitle:'Time Admission',\n\t\t\ttwentyFour:true,\n\t\t});\n\n\t\t\$('#saveTimeBtn').click(function(){\n\n\t\t\tvar registrationNo = " . $registrationNo . ";\n\t\t\tvar timeAdmission = \$('#timeAdmission').val();\n\n\t\t\tvar data = {\n\t\t\t\tregistrationNo:registrationNo,\n\t\t\t\ttimeAdmission:timeAdmission\n\t\t\t};\n\n\t\t\t\$.post('timeAdmission.php',data,function(result){\n\t\t\t\t\$('#saveTimeBtn').hide();\n\t\t\t\t\$('#thumbsup').show();\n\t\t\t});\n\n\t\t});\n\n\t});\n</script>\n\n";
echo "\n<style type='text/css'>\n.informationLabel {\nfont-size:15px;\nfont-weight:bold;\n}\n\n.initialDiagnosis {\n\tborder: 1px solid #CCC;\n\tcolor: #000;\n\theight:80px;\n\twidth: 350px;\n\tpadding:4px 4px 4px 2px;\n}\n\n\n</style>";
$room = preg_split("/\\_/", $ro->getRegistrationDetails_room());
echo "<br>";
if ($ro->selectNow("registrationDetails", "mgh", "registrationNo", $registrationNo) == "") {
    if ($ro->getRegistrationDetails_dateUnregistered() == "") {
        echo "&nbsp;&nbsp;<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharge_new.php?registrationNo={$registrationNo}&protoType=Discharged&room=" . $ro->getRegistrationDetails_room() . "&username={$username}'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/unlock.jpeg'></a>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font>&nbsp;&nbsp;<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue'>View Discharged History</font></a><br>";
    } else {
        echo "&nbsp;&nbsp;<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Undischarged&room=&username={$username}'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'></a>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font>&nbsp;&nbsp;<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue'>View Discharged History</font></a><br>";
    }
} else {
    if ($ro->getRegistrationDetails_dateUnregistered() == "") {
        echo "&nbsp;&nbsp;<img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/unlock.jpeg'>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font>&nbsp;&nbsp;<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue'>View Discharged History</font></a><br>";
    } else {
        echo "&nbsp;&nbsp;<img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font>&nbsp;&nbsp;<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue' >View Discharged History</font></a><br>";
    }
}
//echo "<img src='http://".$ro->getMyUrl()."/COCONUT/myImages/verified.jpeg'>";
echo "<br>&nbsp;&nbsp;<font class='informationLabel'>Px Count:</font>&nbsp;<font color=red>" . $ro->selectNow("registrationDetails", "pxCount", "registrationNo", $registrationNo) . "</font><br />";
echo "&nbsp;&nbsp;<font class='informationLabel'>PIN#:</font>&nbsp;<font color=red>" . $ro->selectNow("patientRecord", "manual_patientNo", "patientNo", $ro->getRegistrationDetails_patientNo()) . "</font><br>";
echo "&nbsp;&nbsp;<font class='informationLabel'>Registration#:</font>&nbsp;<font color=red>" . $registrationNo . "</font>";
Beispiel #5
0
echo "<style type='text/css'>\n\n.editable{\n\tborder: 1px solid #000;\n\tcolor: #000;\n\theight: 15px;\n\twidth: 80px;\n\tborder-color:white white white white;\n\tfont-size:10px;\n\ttext-align:center;\n}\n\n</style>";
echo "<center><div style='border:0px solid #000000; width:700px; height:auto; border-color:black black black black;'>";
echo "";
echo "<font size=5><b><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/updateSOA.php?registrationNo={$registrationNo}' style='color:#000; text-decoration:none;'>" . $ro->getReportInformation("hmoSOA_name") . "</a></b></font>";
echo "<br><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font>";
echo "<br><br><center>";
echo "<table>";
echo "<tr>";
echo "<td>Name:&nbsp;</td><td>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>" . $ro->coconutText("Doctor") . "</td><td>&nbsp;" . $ro->getAttendingDoc($registrationNo, "Attending") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td>" . $ro->coconutText("Admitted") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateRegistered() . "</td>";
echo "<td>&nbsp;</td>";
//echo "<td>CaseType:</td><TD>".$ro->getRegistrationDetails_caseType()."</tD>";
echo "<Td>" . $ro->coconutText("Discharged") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateUnregistered() . "</td>";
echo "</tr>";
//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>";
$room = preg_split("/\\-/", $ro->getRegistrationDetails_room());
$roomRate = $ro->selectNow("room", "rate", "Description", $ro->getRegistrationDetails_room());
echo "<tr>";
echo "<Td>" . $ro->coconutText("Room") . ":&nbsp;</td>";
echo $ro->getPatientRoom($registrationNo);
//echo "<Td>".$ro->coconutText("Discharged").":&nbsp;</td><td>&nbsp;".$ro->getRegistrationDetails_dateUnregistered()."</td>";
echo "</tr>";
/*
echo "<tr>";
Beispiel #6
0
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td><b>DATE DISCHARGED:</b></tD>";
echo "<td>" . $ro->getRegistrationDetails_dateUnregistered() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>DATE ADMITTED:</b>&nbsp;</td>";
echo "<tD>" . $ro->getRegistrationDetails_dateRegistered() . "</td>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
echo "<Td>&nbsp;</tD>";
}else { }
*/
//echo "<li><a href='http://".$ro->getMyUrl()."/COCONUT/patientProfile/patientChargesTitle.php?registrationNo=$registrationNo&title=OTHERS&username=$username&show=&desc=' target='rightFrame'><font size=2>Others</font></a></li>";
if ($ro->getRegistrationDetails_room() != "OPD_OPD") {
    // enable room
    echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=Room And Board&username={$username}&show=&desc=' target='rightFrame'><font size=2>Room</font></a></li>";
} else {
    //disable room
    echo "";
}
if ($ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == 'OPD') {
    echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=DERMA&username={$username}&show=&desc=' target='rightFrame'><font size=2>Derma</font></a></li>";
}
echo "</ul>";
echo "<ul>";
if ($ro->getRegistrationDetails_dateUnregistered() == "") {
    if ($from == "PHARMACY") {
        echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/ECART/cartHandler.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
    } else {
        echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/ECART/cartHandler.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>";
    }
} else {
    echo "";
}
echo "</ul>";
echo "<ul>";
echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/soaOption.php?registrationNo={$registrationNo}&username={$username}' target='rightFrame'><font size=2>S.O.A</font></a></li>";
$rdtype = $ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo);
if ($rdtype == 'OPD') {
    echo "<li><a href='http://" . $ro->getMyUrl() . "/BillingReports/OPDSOA.php?registrationNo={$registrationNo}&username={$username}' target='_blank'><font size=2>OPD Summary</font></a></li>";
}