diff --git a/app/Controllers/Patient.php b/app/Controllers/Patient.php index 05643a3..e0556a8 100644 --- a/app/Controllers/Patient.php +++ b/app/Controllers/Patient.php @@ -21,7 +21,7 @@ class Patient extends Controller { $BirthDate = $this->request->getVar('BirthDate'); $qname = "LOWER(CONCAT_WS(' ', IFNULL(Prefix,''), IFNULL(NameFirst,''), IFNULL(NameMiddle,''), IFNULL(NameLast,''), IFNULL(NameMaiden,''), IFNULL(Suffix,'')))"; $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) { $sql = $qname; $rawSql = new RawSql($sql); @@ -118,7 +118,7 @@ class Patient extends Controller { "Emailaddress1" => $input['Emailaddress1'] ?? null, "Emailaddress2" => $input['Emailaddress2'] ?? null, "Phone" => $input['Phone'] ?? null, - "Mobilephone" => $input['Mobilephone'] ?? null, + "MobilePhone" => $input['MobilePhone'] ?? null, "Mother" => $input['Mother'] ?? null, "AccountNumber" => isset($input['AccountNumber']) ? (int) $input['AccountNumber'] : null, "RaceID" => isset($input['RaceID']) ? (int) $input['RaceID'] : null, @@ -210,7 +210,7 @@ class Patient extends Controller { "Emailaddress1" => $input['Emailaddress1'] ?? null, "Emailaddress2" => $input['Emailaddress2'] ?? null, "Phone" => $input['Phone'] ?? null, - "Mobilephone" => $input['Mobilephone'] ?? null, + "MobilePhone" => $input['MobilePhone'] ?? null, "Mother" => $input['Mother'] ?? null, "AccountNumber" => isset($input['AccountNumber']) ? (int) $input['AccountNumber'] : null, "RaceID" => isset($input['RaceID']) ? (int) $input['RaceID'] : null, @@ -299,7 +299,7 @@ class Patient extends Controller { 'NameFirst', 'NameLast', 'NameMiddle', 'PatientID', 'AlternatePID', 'BirthDate', 'PlaceOfBirth', 'Street_1', 'Street_2', 'Street_3', 'City', 'Province', 'ZIP', - 'Emailaddress1', 'Emailaddress2', 'Phone', 'Mobilephone', 'Mother', 'AccountNumber' + 'Emailaddress1', 'Emailaddress2', 'Phone', 'MobilePhone', 'Mother', 'AccountNumber' ]; $datas = [];