diff --git a/app/Controllers/Patient.php b/app/Controllers/Patient.php index 44cdf7c..14b79ae 100644 --- a/app/Controllers/Patient.php +++ b/app/Controllers/Patient.php @@ -28,7 +28,7 @@ class Patient extends Controller { $builder->like($rawSql, $Name, 'both'); } if ($InternalPID !== null) { $builder->where('InternalPID', $InternalPID); } - if ($PatientID !== null) { $builder->where('PatientID', $PatientID); } + if ($PatientID !== null) { $builder->like('PatientID', $PatientID, 'both'); } if ($BirthDate !== null) { $builder->where('BirthDate', $BirthDate); } $filteredPatients = $builder->get()->getResultArray();