From 900af581eb140602b755d829dd90d624560223df Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Sun, 24 May 2026 22:37:27 +0700 Subject: [PATCH] Search nolab by lab number OR patient name in search_v2 Co-Authored-By: Claude Sonnet 4.6 --- application/controllers/mockup/fo/resultemailv7/Patient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/mockup/fo/resultemailv7/Patient.php b/application/controllers/mockup/fo/resultemailv7/Patient.php index 32e34c3f..358c8356 100644 --- a/application/controllers/mockup/fo/resultemailv7/Patient.php +++ b/application/controllers/mockup/fo/resultemailv7/Patient.php @@ -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) {