Commit d498edb9 by Jansa Jose

consultaion data

parent fa828a8a
......@@ -2522,7 +2522,7 @@ class Webservice_model extends CI_Model {
}
$ill = json_decode(decrypt_data($result['diseases']));
print_r($ill);echo"<br>";
// print_r($ill);echo"<br>";
if($ill == ''){
$new = [];
}else{
......@@ -2531,7 +2531,7 @@ class Webservice_model extends CI_Model {
$i=0;
foreach ($ill->anamnese as $key => $value) {
if($key != 'others'){
print_r($key); echo" - "; print_r($value);echo"<br>";
//print_r($key); echo" - "; print_r($value);echo"<br>";
$new[$i]['name'] = $key;
$new[$i]['cause'] = $value;
}else{
......@@ -2540,7 +2540,7 @@ class Webservice_model extends CI_Model {
}
$i++;
}
print_r($news);echo"<br>";exit();
//print_r($news);echo"<br>";exit();
$result['illness'] = $new;
if($news['cause'] != ''){
......@@ -3039,6 +3039,8 @@ class Webservice_model extends CI_Model {
foreach ($query as $key => $value) {
$new[$key]['id'] = $value->medical_record_id;
$new[$key]['date'] = $value->date;
$new[$key]['time_start'] = $value->time_start;
}
//echo"<pre>";print_r($query);echo"</pre>";exit();
if(count($query) > 0){
......@@ -3137,7 +3139,7 @@ class Webservice_model extends CI_Model {
unset($anamse_details->anamnese);
$anamse_details->anamnese = (object)$new;
$anamse_details->anamnese->principal_problem = decrypt_data($res->main_complaint);
$anamse_details->anamnese->description = decrypt_data(strip_tags($res->description));
$anamse_details->anamnese->description =strip_tags(decrypt_data($res->description));
if(isset($anamse_details->anamnese->others)){
if(in_array('hepatitis',$anamse_details->anamnese->others)){
$anamse_details->anamnese->has_hepatitis= true;
......
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