Update Like Untuk Show

This commit is contained in:
mikael-zakaria 2025-08-05 11:38:11 +07:00
parent 2b8a2580fc
commit 204b133477

View File

@ -28,7 +28,7 @@ class Patient extends Controller {
$builder->like($rawSql, $Name, 'both'); $builder->like($rawSql, $Name, 'both');
} }
if ($InternalPID !== null) { $builder->where('InternalPID', $InternalPID); } 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); } if ($BirthDate !== null) { $builder->where('BirthDate', $BirthDate); }
$filteredPatients = $builder->get()->getResultArray(); $filteredPatients = $builder->get()->getResultArray();