FHM09062601IBL - guard patient visit search info
This commit is contained in:
@@ -979,9 +979,14 @@ class Registrationv3 extends MY_Controller
|
||||
}
|
||||
unset($rows[$k]['M_PatientNameRaw']);
|
||||
|
||||
$info = $this->db_onedev->query("SELECT fn_fo_patient_visit(?) info", [$v['M_PatientID']])->row();
|
||||
$rows[$k]['info'] = json_decode($info->info);
|
||||
}
|
||||
$info_query = $this->db_onedev->query("SELECT fn_fo_patient_visit(?) info", [$v['M_PatientID']]);
|
||||
if ($info_query) {
|
||||
$info = $info_query->row();
|
||||
$rows[$k]['info'] = ($info && isset($info->info)) ? json_decode($info->info) : null;
|
||||
} else {
|
||||
$rows[$k]['info'] = null;
|
||||
}
|
||||
}
|
||||
|
||||
$this->sys_ok(["total" => 0, "records" => $rows]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user