100 lines
3.6 KiB
PHP
100 lines
3.6 KiB
PHP
<hr style="border-top: 1px solid #000000; border-bottom: none; border-left: none; border-right: none;">
|
|
<h6 style="text-align: center;">
|
|
<b>
|
|
Patient Taking any Medications
|
|
</b>
|
|
</h6>
|
|
<hr style="border-top: 1px solid #000000; border-bottom: none; border-left: none; border-right: none;">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
|
|
<table width="100%" style="font-size: 12px; text-align: center;">
|
|
|
|
<tr style="border: 1px solid black; background-color: #F7DC6F; text-align: center;">
|
|
<!-- <th>Diagnosis date</th> -->
|
|
<th style="text-align: center;">Medicine</th>
|
|
<!-- <th>Frequency</th> -->
|
|
</tr>
|
|
<?php
|
|
$sql_prescription_master = "SELECT * FROM `prescription_master` where emp_id = '" . $p_id . "' order by diagnosis_date desc";
|
|
error_log("prescription_master: " . $sql_prescription_master);
|
|
if (!$result_prescription_master = @mysqli_query($conn, $sql_prescription_master)) {
|
|
exit(error_log(mysqli_error($conn)));
|
|
}
|
|
$illness = '';
|
|
if (mysqli_num_rows($result_prescription_master) > 0) {
|
|
while ($row_prescription_master = mysqli_fetch_assoc($result_prescription_master)) {
|
|
?>
|
|
|
|
<tr style='border: 1px solid black; text-align: left;'>
|
|
<td style='border: 1px solid black;'>
|
|
<b>
|
|
<?php
|
|
echo getTableFieldValue('tbl_items', 'item_name', 'item_id', $row_prescription_master['medicine_name']); ?>
|
|
</b>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
} else {
|
|
?>
|
|
<td colspan="4">
|
|
<br>
|
|
<div style="font-weight: bold; text-align: center; font-size: 12px;">No Record found</div>
|
|
|
|
|
|
</td>
|
|
|
|
<?php } ?>
|
|
</table>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
|
|
<table width="100%" style="font-size: 12px;">
|
|
<tr style="border: 1px solid black; background-color: #F7DC6F; text-align: left;">
|
|
<th style="text-align: center;">Other Medicine</th>
|
|
</tr>
|
|
|
|
<?php
|
|
$sql_prescription_master = "SELECT * FROM `prescription_master` where emp_id = '" . $p_id . "' and trim(other_med !='') order by diagnosis_date desc";
|
|
error_log("prescription_master: " . $sql_prescription_master);
|
|
if (!$result_prescription_master = @mysqli_query($conn, $sql_prescription_master)) {
|
|
exit(error_log(mysqli_error($conn)));
|
|
}
|
|
$illness = '';
|
|
if (mysqli_num_rows($result_prescription_master) > 0) {
|
|
while ($row_prescription_master = mysqli_fetch_assoc($result_prescription_master)) {
|
|
?>
|
|
|
|
<tr style='border: 1px solid black; text-align: left;'>
|
|
<td style='border: 1px solid black;'>
|
|
<b>
|
|
<?php
|
|
echo $row_prescription_master['other_med']; ?>
|
|
</b>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
} else {
|
|
?>
|
|
<td colspan="4">
|
|
<br>
|
|
<div style="font-weight: bold; text-align: center; font-size: 12px;">No Record found</div>
|
|
|
|
|
|
</td>
|
|
|
|
<?php } ?>
|
|
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
<hr>
|