Simplify FullName to only include first, middle, and last name
This commit is contained in:
parent
64646293dc
commit
4b8d31f3a1
@ -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");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user