Simplify FullName to only include first, middle, and last name

This commit is contained in:
mahdahar 2026-02-11 09:22:15 +07:00
parent 64646293dc
commit 4b8d31f3a1

View File

@ -22,7 +22,7 @@ class PatientModel extends BaseModel {
protected $deletedField = 'DelDate'; protected $deletedField = 'DelDate';
public function getPatients($filters = []) { public function getPatients($filters = []) {
$qname = "CONCAT_WS(' ', IFNULL(Prefix,''), IFNULL(NameFirst,''), IFNULL(NameMiddle,''), IFNULL(NameLast,''), IFNULL(NameMaiden,''), IFNULL(Suffix,''))"; $qname = "CONCAT_WS(' ', IFNULL(NameFirst,''), IFNULL(NameMiddle,''), IFNULL(NameLast,''))";
$this->select("InternalPID, PatientID, $qname as FullName, Sex, Birthdate, EmailAddress1 as Email, MobilePhone"); $this->select("InternalPID, PatientID, $qname as FullName, Sex, Birthdate, EmailAddress1 as Email, MobilePhone");