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

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

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");
$builder->select("InternalPID, PatientID, $qname as FullName, Gender, BirthDate, Emailaddress1 as Email, Mobilephone");
if ($Name !== null) {
$sql = $qname;
$rawSql = new RawSql($sql);