Search nolab by lab number OR patient name in search_v2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sas.fajri
2026-05-24 22:37:27 +07:00
parent 2d6c2b9fa2
commit 900af581eb

View File

@@ -418,7 +418,8 @@ class Patient extends MY_Controller
$extra_params[] = '%' . $name . '%';
}
if ($nolab != '') {
$extra_where .= ' AND toh.T_OrderHeaderLabNumber LIKE ?';
$extra_where .= ' AND (toh.T_OrderHeaderLabNumber LIKE ? OR tse.T_SendEmailPatientName LIKE ?)';
$extra_params[] = '%' . $nolab . '%';
$extra_params[] = '%' . $nolab . '%';
}
if ($company > 0) {