diff --git a/app/Controllers/Patient.php b/app/Controllers/Patient.php index 56f612c..05643a3 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"); + $builder->select("InternalPID, PatientID, $qname as FullName, Gender, BirthDate, Emailaddress1 as Email, Mobilephone"); if ($Name !== null) { $sql = $qname; $rawSql = new RawSql($sql);