Update Patient, update penamaan variabel Emailaddress[n] menjadi EmailAddress[n]
This commit is contained in:
parent
7d9cbb1b69
commit
abab1f4479
@ -21,7 +21,7 @@ class Patient extends Controller {
|
|||||||
$BirthDate = $this->request->getVar('BirthDate');
|
$BirthDate = $this->request->getVar('BirthDate');
|
||||||
$qname = "LOWER(CONCAT_WS(' ', IFNULL(Prefix,''), IFNULL(NameFirst,''), IFNULL(NameMiddle,''), IFNULL(NameLast,''), IFNULL(NameMaiden,''), IFNULL(Suffix,'')))";
|
$qname = "LOWER(CONCAT_WS(' ', IFNULL(Prefix,''), IFNULL(NameFirst,''), IFNULL(NameMiddle,''), IFNULL(NameLast,''), IFNULL(NameMaiden,''), IFNULL(Suffix,'')))";
|
||||||
$builder = $this->db->table('patient');
|
$builder = $this->db->table('patient');
|
||||||
$builder->select("InternalPID, PatientID, $qname as FullName, Gender, BirthDate, Emailaddress1 as Email, MobilePhone");
|
$builder->select("InternalPID, PatientID, $qname as FullName, Gender, BirthDate, EmailAddress1 as Email, MobilePhone");
|
||||||
if ($Name !== null) {
|
if ($Name !== null) {
|
||||||
$sql = $qname;
|
$sql = $qname;
|
||||||
$rawSql = new RawSql($sql);
|
$rawSql = new RawSql($sql);
|
||||||
@ -115,8 +115,8 @@ class Patient extends Controller {
|
|||||||
"Province" => $input['Province'] ?? null,
|
"Province" => $input['Province'] ?? null,
|
||||||
"ZIP" => $input['ZIP'] ?? null,
|
"ZIP" => $input['ZIP'] ?? null,
|
||||||
"CountryID" => isset($input['CountryID']) ? (int) $input['CountryID'] : null,
|
"CountryID" => isset($input['CountryID']) ? (int) $input['CountryID'] : null,
|
||||||
"Emailaddress1" => $input['Emailaddress1'] ?? null,
|
"EmailAddress1" => $input['EmailAddress1'] ?? null,
|
||||||
"Emailaddress2" => $input['Emailaddress2'] ?? null,
|
"EmailAddress2" => $input['EmailAddress2'] ?? null,
|
||||||
"Phone" => $input['Phone'] ?? null,
|
"Phone" => $input['Phone'] ?? null,
|
||||||
"MobilePhone" => $input['MobilePhone'] ?? null,
|
"MobilePhone" => $input['MobilePhone'] ?? null,
|
||||||
"Mother" => $input['Mother'] ?? null,
|
"Mother" => $input['Mother'] ?? null,
|
||||||
@ -207,8 +207,8 @@ class Patient extends Controller {
|
|||||||
"Province" => $input['Province'] ?? null,
|
"Province" => $input['Province'] ?? null,
|
||||||
"ZIP" => $input['ZIP'] ?? null,
|
"ZIP" => $input['ZIP'] ?? null,
|
||||||
"CountryID" => isset($input['CountryID']) ? (int) $input['CountryID'] : null,
|
"CountryID" => isset($input['CountryID']) ? (int) $input['CountryID'] : null,
|
||||||
"Emailaddress1" => $input['Emailaddress1'] ?? null,
|
"EmailAddress1" => $input['EmailAddress1'] ?? null,
|
||||||
"Emailaddress2" => $input['Emailaddress2'] ?? null,
|
"EmailAddress2" => $input['EmailAddress2'] ?? null,
|
||||||
"Phone" => $input['Phone'] ?? null,
|
"Phone" => $input['Phone'] ?? null,
|
||||||
"MobilePhone" => $input['MobilePhone'] ?? null,
|
"MobilePhone" => $input['MobilePhone'] ?? null,
|
||||||
"Mother" => $input['Mother'] ?? null,
|
"Mother" => $input['Mother'] ?? null,
|
||||||
@ -299,7 +299,7 @@ class Patient extends Controller {
|
|||||||
'NameFirst', 'NameLast', 'NameMiddle',
|
'NameFirst', 'NameLast', 'NameMiddle',
|
||||||
'PatientID', 'AlternatePID', 'BirthDate', 'PlaceOfBirth',
|
'PatientID', 'AlternatePID', 'BirthDate', 'PlaceOfBirth',
|
||||||
'Street_1', 'Street_2', 'Street_3', 'City', 'Province', 'ZIP',
|
'Street_1', 'Street_2', 'Street_3', 'City', 'Province', 'ZIP',
|
||||||
'Emailaddress1', 'Emailaddress2', 'Phone', 'MobilePhone', 'Mother', 'AccountNumber'
|
'EmailAddress1', 'EmailAddress2', 'Phone', 'MobilePhone', 'Mother', 'AccountNumber'
|
||||||
];
|
];
|
||||||
|
|
||||||
$datas = [];
|
$datas = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user