From 5be354050577b5f30a9c16e30bebf37a35a6648a Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sat, 31 Oct 2015 01:42:48 -0700 Subject: [PATCH] some comment changes for prior commit --- library/patient.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/patient.inc b/library/patient.inc index a04e48d49..e7b96520e 100644 --- a/library/patient.inc +++ b/library/patient.inc @@ -391,13 +391,13 @@ function _set_patient_inc_count($limit, $count, $where, $whereBindArray=array()) function getPatientLnames($lname = "%", $given = "pid, id, lname, fname, mname, providerID, DATE_FORMAT(DOB,'%m/%d/%Y') as DOB_TS", $orderby = "lname ASC, fname ASC", $limit="all", $start="0") { // Allow the last name to be followed by a comma and some part of a first name. - // New behavior for searches: - // Allows comma alone followed by some part of a first name + // Allows comma alone followed by some part of a first name. + // Allows comma alone preceded by some part of a last name. + // If no comma, then will search both last name and first name. // If the first letter of either name is capital, searches for name starting - // with given substring (the expected behavior). If it is lower case, it - // it searches for the substring anywhere in the name. This applies to either - // last name or first name or both. The arbitrary limit of 100 results is set - // in the sql query below. --Mark Leeds + // with given substring (the expected behavior). If it is lower case, it + // it searches for the substring anywhere in the name. This applies to either + // last name or first name or both. $fname = $lname = trim($lname); $where = "lname LIKE ? OR fname LIKE ? "; if (preg_match('/^(.*),(.*)/', $lname, $matches)) { -- 2.11.4.GIT