Commit 7adee402 by Jansa Jose

get medical records

parent 9c25d186
......@@ -2691,7 +2691,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$med = array();
$prescrb = json_decode(decrypt_data($result['prescribtions']));
if($prescrb == ''){
$med = [];
$result['prescription'] = [];
}else{
foreach ($prescrb as $key => $value) {
$med[$key]['medicine_name'] = $value->name;
......@@ -2706,7 +2706,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$exam = json_decode(decrypt_data($result['exams']));
if($exam == ''){
$examss = [];
$result['medical_test'] = [];
}else{
foreach ($exam as $key => $value) {
$examss[$key]['test_name'] = $value->procedure;
......@@ -2718,7 +2718,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$bud = array();
$budget = json_decode(decrypt_data($result['budget']));
if($budget == ''){
$budget = [];
$result['services'] = [];
}else{
$tot = 0;
foreach ($budget as $key => $value) {
......@@ -2733,7 +2733,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$images = json_decode($result['images']);
if($images == ''){
$images = [];
$result['photos'] = [];
}else{
$result['photos'] = $images;
}
......
......@@ -44,8 +44,6 @@
<?php
foreach($data as $customer) {?>
<tr>
<td class="hidden"><?php echo $customer->id; ?></td>
<td><?php echo $customer->name; ?></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment