Update Index Patient(Email dan Mobilephone) dan perubahan Mobilephone menjadi MobilePhone

This commit is contained in:
mikael-zakaria 2025-08-05 14:52:17 +07:00
parent e657035574
commit dabc1ccef7

View File

@ -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 = [];