echo "<Td>".$ro->coconutText("Age")."</tD><td> ".$ro->getPatientRecord_age()."</tD>"; echo "<tD> </tD>"; echo "<Td>".$ro->coconutText("Room:")."</tD><td>".$ro->getRegistrationDetails_room()."</tD>"; echo "<td>Case:</td>"; echo "<td>".$ro->selectNow("registrationDetails","privateORhouse_case","registrationNo",$registrationNo)."</td>"; echo "</tr>"; */ //echo "<tr>"; //echo "<td>".$ro->coconutText("Att.Doctor")."</tD><td> <font size=2>".$ro->getAttendingDoc($registrationNo,"Attending")."</font></td>"; //echo "<td></td>"; //echo "<td>".$ro->coconutText("Admitting Doc")."</td><tD> <font size=2>".$ro->getAttendingDoc($registrationNo,"Admitting")."</font></tD>"; //echo "</tr>"; echo "</table>"; echo "<table border=0>"; echo "<td>Address: </tD>"; echo "<tD>" . $ro->getPatientRecord_address() . "</tD>"; echo "</table>"; echo "<center>" . $ro->checkAllReturns_notification($registrationNo) . "<br>" . $ro->checkForDispense_notification($registrationNo); echo "<table border=1 cellpadding=1 cellspacing=0 rules=all>"; echo "<tr>"; echo "<th> Particular </th>"; echo "<th> Actual </th>"; echo "<th> PhilHealth </th>"; echo "<th> Company </th>"; echo "<th> Cash </th>"; echo "</tr>"; echo "<tr>"; echo "<td> <font size=3>Room</font> </td>"; if ($ro->getTotal("total", "Room And Board", $registrationNo) > 0) { echo "<td> "; echo number_format($ro->getTotal("total", "Room And Board", $registrationNo), 2);
echo "<tr>"; echo "<Td>".$ro->coconutText("Age")."</tD><td> ".$ro->getPatientRecord_age()."</tD>"; echo "<tD> </tD>"; echo "<Td>".$ro->coconutText("Room:")."</tD><td>".$ro->getRegistrationDetails_room()."</tD>"; echo "<td>Case:</td>"; echo "<td>".$ro->selectNow("registrationDetails","privateORhouse_case","registrationNo",$registrationNo)."</td>"; echo "</tr>"; */ //echo "<tr>"; //echo "<td>".$ro->coconutText("Att.Doctor")."</tD><td> <font size=2>".$ro->getAttendingDoc($registrationNo,"Attending")."</font></td>"; //echo "<td></td>"; //echo "<td>".$ro->coconutText("Admitting Doc")."</td><tD> <font size=2>".$ro->getAttendingDoc($registrationNo,"Admitting")."</font></tD>"; //echo "</tr>"; echo "<tr>"; echo "<td><span class='txtSize'>Address:</span> </tD>"; echo "<tD><span class='txtSize'>" . $ro->getPatientRecord_address() . "</span></tD>"; echo "</tr>"; echo "</table>"; /* echo "<table border=0>"; echo "<td><span class='txtSize'>Address:</span> </tD>"; echo "<tD><span class='txtSize'>".$ro->getPatientRecord_address()."</span></tD>"; echo "</table>"; */ echo "" . $ro->checkAllReturns_notification($registrationNo) . "<br>" . $ro->checkForDispense_notification($registrationNo); echo "<table border=1 cellpadding=1 cellspacing=0 rules=all>"; echo "<tr>"; echo "<th> Particular </th>"; echo "<th> Actual </th>"; echo "<th> PhilHealth </th>"; echo "<th> Company </th>";
echo "<tr>"; echo "<Td>".$ro->coconutText("Age")."</tD><td> ".$ro->getPatientRecord_age()."</tD>"; echo "<tD> </tD>"; echo "<Td>".$ro->coconutText("Room:")."</tD><td>".$ro->getRegistrationDetails_room()."</tD>"; echo "<td>Case:</td>"; echo "<td>".$ro->selectNow("registrationDetails","privateORhouse_case","registrationNo",$registrationNo)."</td>"; echo "</tr>"; */ //echo "<tr>"; //echo "<td>".$ro->coconutText("Att.Doctor")."</tD><td> <font size=2>".$ro->getAttendingDoc($registrationNo,"Attending")."</font></td>"; //echo "<td></td>"; //echo "<td>".$ro->coconutText("Admitting Doc")."</td><tD> <font size=2>".$ro->getAttendingDoc($registrationNo,"Admitting")."</font></tD>"; //echo "</tr>"; echo "<tr>"; echo "<td><span class='Arial11Black'>Address:</span> </tD>"; echo "<tD><span class='Arial11BlackBold'>" . $ro->getPatientRecord_address() . "</span></tD>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='6'><div align='center'><span class='Arial11BlackBold'>" . date("M d, Y") . " " . date("H:i:s") . "</span></div></tD>"; echo "</tr>"; echo "</table>"; /* echo "<table border=0>"; echo "<td><span class='txtSize'>Address:</span> </tD>"; echo "<tD><span class='txtSize'>".$ro->getPatientRecord_address()."</span></tD>"; echo "</table>"; */ echo "" . $ro->checkAllReturns_notification($registrationNo) . "<br>" . $ro->checkForDispense_notification($registrationNo); echo "<table border=1 cellpadding=1 cellspacing=0 rules=all>"; echo "<tr>"; echo "<td><div align='center' class='Arial11BlackBold'> PARTICULARS </di></td>";
} //echo "<br><font class='informationLabel'>Mother's Name:</font> ".$ro->selectNow("patientRecord","mothersName","patientNo",$ro->getRegistrationDetails_patientNo()); //echo "<br><font class='informationLabel'>Father's Name:</font> ".$ro->selectNow("patientRecord","fathersName","patientNo",$ro->getRegistrationDetails_patientNo()); if ($ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == "OPD") { echo "<br> <font class='informationLabel'>Time Registered:</font> " . $ro4->formatTime($ro->getRegistrationDetails_timeRegistered()); echo "<br> <font class='informationLabel'>Date Registered:</font> " . $ro4->formatDate($ro->getRegistrationDetails_dateRegistered()); } else { echo "<br><font class='informationLabel'>Time Registered:</font> " . $ro4->formatTime($ro->getRegistrationDetails_timeRegistered()); echo "<br><div class='col-xs-3 input-group'>\n\t\t\t\t<span class='input-group-addon'><i class='glyphicon glyphicon-time'></i> Admitted</span>\n\t\t\t\t<input type='text' class='form-control' id='timeAdmission' placeholder='click to add time'>\n\t\t\t\t<span class='input-group-btn'>\n\t\t\t\t\t<button id='saveTimeBtn' class='" . $buttonClass . "'>\n\t\t\t\t\t\tSave\n\t\t\t\t\t</button>\n\t\t\t\t</span>\n\t\t\t</div>"; echo "<font class='informationLabel'>Date Registered:</font> " . $ro4->formatDate($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->selectNow("registrationDetails", "privateORhouse_case", "registrationNo", $registrationNo) . "</a>"; //selectNow($table,$cols,$identifier,$identifierData) echo "<br> <font class='informationLabel'>Room:</font> " . $room[0]; echo "<br> <font class='informationLabel'>Address:</font> " . $ro->getPatientRecord_address(); echo "<br> <font class='informationLabel'>Email:</font> " . $ro->selectNow("patientRecord", "email", "patientNo", $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo)); echo "<br> <font class='informationLabel'>Registered By:</font> " . $ro->getRegistrationDetails_registeredBy(); if ($ro->getRegistrationDetails_type() == "IPD") { if ($ro->selectNow("nbs", "motherRegistrationNo", "motherRegistrationNo", $registrationNo) != "") { echo "<br>" . $ro->coconutImages_return("mother.jpeg"); $ro->getBabies($registrationNo); echo "<br><a href='/COCONUT/patientProfile/nbs/searchBaby.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font class='informationLabel' color=red>[+1 Baby]</font></a> "; } else { if ($ro->selectNow("nbs", "motherRegistrationNo", "babyRegistrationNo", $registrationNo) != "") { echo "<br> " . $ro->coconutImages_return("mother.jpeg") . " - <font color=blue>" . $ro->selectNow("patientRecord", "lastName", "patientNo", $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $ro->selectNow("nbs", "motherRegistrationNo", "babyRegistrationNo", $registrationNo))) . ", " . $ro->selectNow("patientRecord", "firstName", "patientNo", $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $ro->selectNow("nbs", "motherRegistrationNo", "babyRegistrationNo", $registrationNo))) . "</font> "; } else { 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 "<font size=3>Cabrera St,Pagadian City</font>"; echo "<br><font size=2>Philipines</font>"; echo "<br><font size=2>Tel No.(062) 2143737</font>"; echo "<hr>"; echo "<br><b><font size=5>MEDICO LEGAL</font></b>"; $ro->coconutFormStart("post", "medicoLegal_edit1.php"); $ro->coconutHidden("registrationNo", $registrationNo); echo "<br><br><br>"; echo "<table border=0 width='70%'>"; echo "<Tr>"; echo "<td width='70%'>Name: <input type='text' class='patientName' value='" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "'></td>"; echo "<td width='30%'>Age: <input type='text' class='patientAge' value='" . $ro->getPatientRecord_Age() . "'></td>"; echo "</tr>"; echo "</table>"; echo "<table border=0 width='70%'>"; echo "<td>Address: <input type='text' class='patientAddress' value='" . $ro->getPatientRecord_address() . "'></td>"; echo "</table>"; echo "<Br><br>"; echo "<table border=0 width='70%'>"; echo "<tr>"; echo "<td>DATE OF INCIDENCCE: <input type='text' autocomplete='off' name='dateOfIncidence' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "dateOfIncidence", "registrationNo", $registrationNo) . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<td>TIME OF INCIDENCCE: <input type='text' autocomplete='off' name='timeOfIncidence' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "timeOfIncidence", "registrationNo", $registrationNo) . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<td>DATE OF EXAMINATION: <input type='text' autocomplete='off' name='dateOfExamination' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "dateOfExamination", "registrationNo", $registrationNo) . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<td>TIME OF EXAMINATION: <input type='text' autocomplete='off' name='timeOfExamination' class='medicoLegalInformation' value='" . $ro->selectNow("medicoLegal", "timeOfExamination", "registrationNo", $registrationNo) . "'></td>"; echo "</tr>";
echo "</center>"; echo "<br>"; echo "<centeR>"; echo "<table border=0>"; echo "<tr>"; echo "<td><font size=1>Name:</font> </td>"; echo "<td><font size=1><b>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</b></font></td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td><font size=1>Date:</font></td>"; echo "<td><font size=1><b>" . date("M, d Y") . "</b></font></td>"; echo "</tr>"; echo "<tr>"; echo "<td><font size=2>Address:</font> </td>"; echo "<td><font size=2><b>" . $ro->getPatientRecord_address() . "</b></font></td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td><font size=2>Age/Sex:</font></td>"; echo "<td><font size=2><b> " . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender() . "</b></font></td>"; echo "</tr>"; echo "</table>"; echo "<table border=0>"; echo "<tr>"; echo "<td><font size=2>Diagnosis:</font></td>"; echo "<td><b>" . $ro->selectNow("SOAP", "assessment", "registrationNo", $registrationNo) . "</b></td>"; echo "</tr>"; echo "</table>"; echo "<table border=0 width='560px;'>"; echo "<tr>";