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 ...@@ -2691,7 +2691,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$med = array(); $med = array();
$prescrb = json_decode(decrypt_data($result['prescribtions'])); $prescrb = json_decode(decrypt_data($result['prescribtions']));
if($prescrb == ''){ if($prescrb == ''){
$med = []; $result['prescription'] = [];
}else{ }else{
foreach ($prescrb as $key => $value) { foreach ($prescrb as $key => $value) {
$med[$key]['medicine_name'] = $value->name; $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 ...@@ -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'])); $exam = json_decode(decrypt_data($result['exams']));
if($exam == ''){ if($exam == ''){
$examss = []; $result['medical_test'] = [];
}else{ }else{
foreach ($exam as $key => $value) { foreach ($exam as $key => $value) {
$examss[$key]['test_name'] = $value->procedure; $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 ...@@ -2718,7 +2718,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$bud = array(); $bud = array();
$budget = json_decode(decrypt_data($result['budget'])); $budget = json_decode(decrypt_data($result['budget']));
if($budget == ''){ if($budget == ''){
$budget = []; $result['services'] = [];
}else{ }else{
$tot = 0; $tot = 0;
foreach ($budget as $key => $value) { foreach ($budget as $key => $value) {
...@@ -2733,7 +2733,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F ...@@ -2733,7 +2733,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$images = json_decode($result['images']); $images = json_decode($result['images']);
if($images == ''){ if($images == ''){
$images = []; $result['photos'] = [];
}else{ }else{
$result['photos'] = $images; $result['photos'] = $images;
} }
......
...@@ -44,23 +44,21 @@ ...@@ -44,23 +44,21 @@
<?php <?php
foreach($data as $customer) {?> foreach($data as $customer) {?>
<tr>
<td class="hidden"><?php echo $customer->id; ?></td>
<tr> <td><?php echo $customer->name; ?></td>
<td class="hidden"><?php echo $customer->id; ?></td> <td><?php if($customer->feedback_type == 0){
<td><?php echo $customer->name; ?></td> echo "Problemas Atendimento";
<td><?php if($customer->feedback_type == 0){ }else if ($customer->feedback_type == 1) {
echo "Problemas Atendimento"; echo "Dificuldade para agendamento";
}else if ($customer->feedback_type == 1) { }else if($customer->feedback_type == 2){
echo "Dificuldade para agendamento"; echo "Problemas Pagamento";
}else if($customer->feedback_type == 2){ }else{
echo "Problemas Pagamento"; echo "Outros";
}else{ }
echo "Outros"; ?></td>
} <td><?php echo $customer->feedback_content; ?></td>
?></td> </tr>
<td><?php echo $customer->feedback_content; ?></td>
</tr>
<?php <?php
} }
?> ?>
......
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