fix aphostrope on patient n agent name
This commit is contained in:
parent
16b0c781c5
commit
c251d095a6
@ -11,7 +11,7 @@ class API_Requests extends ResourceController {
|
|||||||
$raw = $this->request->getVar();
|
$raw = $this->request->getVar();
|
||||||
|
|
||||||
// log to cm_tm_logs
|
// log to cm_tm_logs
|
||||||
$data = json_encode($raw);
|
$data = str_replace("'","''",json_encode($raw));
|
||||||
$sql = "INSERT INTO cmod.dbo.CM_TM_LOGS (URL, METHOD, BODY, LOGDATE) VALUES ('API/REQUESTS', 'POST', '$data', GETDATE())";
|
$sql = "INSERT INTO cmod.dbo.CM_TM_LOGS (URL, METHOD, BODY, LOGDATE) VALUES ('API/REQUESTS', 'POST', '$data', GETDATE())";
|
||||||
$db->query($sql);
|
$db->query($sql);
|
||||||
|
|
||||||
@ -21,8 +21,8 @@ class API_Requests extends ResourceController {
|
|||||||
|
|
||||||
//patdata
|
//patdata
|
||||||
$rm = $qpat['rm_number'];
|
$rm = $qpat['rm_number'];
|
||||||
$firstname = $qpat['patient_first_name'];
|
$firstname = str_replace("'","''",$qpat['patient_first_name']);
|
||||||
$lastname = $qpat['patient_last_name'];
|
$lastname = str_replace("'","''",$qpat['patient_last_name']);
|
||||||
$dob = $qpat['patient_dob'];
|
$dob = $qpat['patient_dob'];
|
||||||
$dob = str_replace("-","",$dob);
|
$dob = str_replace("-","",$dob);
|
||||||
$sex = $qpat['patient_sex'];
|
$sex = $qpat['patient_sex'];
|
||||||
@ -50,9 +50,9 @@ class API_Requests extends ResourceController {
|
|||||||
$visitdesc = $qpat['visit_description'];
|
$visitdesc = $qpat['visit_description'];
|
||||||
$visitdt = $qpat['visit_date_time'];
|
$visitdt = $qpat['visit_date_time'];
|
||||||
$agent = $qpat['agent'];
|
$agent = $qpat['agent'];
|
||||||
$agentname = $qpat['agent_name'];
|
$agentname = str_replace("'","''",$qpat['agent_name']);
|
||||||
$visittype = $qpat['visit_type'];
|
$visittype = $qpat['visit_type'];
|
||||||
$doc = $qpat['treating_doctor'];
|
$doc = str_replace("'","''",$qpat['treating_doctor']);
|
||||||
|
|
||||||
$createdt = $qdata['created'];
|
$createdt = $qdata['created'];
|
||||||
$qant = (array)$qpat['anthropometry'];
|
$qant = (array)$qpat['anthropometry'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user