#366 Find box search by "Any" doesn't work when searching for a name

Development_Release
open
nobody
None
5
2015-11-08
2013-05-08
DrKay
No

When using the find box, searching for a name and clicking the "Any" link will not find the patient. The user has to click on the "Name" link in order to find a patient by name.

Discussion

  • Vikram Sharma

    Vikram Sharma - 2013-05-23

    The latest code from git seems to be working fine. Find by "Name" will find by last name and by "Any" does a wild card search in both first and last name.

     
  • Dragon

    Dragon - 2015-09-05

    I see that this is still considered open, so I've tested a few situations out.

    Based on having a patient named John H Smith:

    • Find "john smith" by Name - not found
    • Find "john smith" by Any - not found
    • Find "john h smith" by Name - not found
    • Find "john h smith" by Any - not found
    • Find "smith, john" by Name - found
    • Find "smith, john" by Any - not found
    • Find "smith" by Name - found
    • Find "smith" by Any - found
    • Find "john" by Name - not found
    • Find "john" by Any - found
    • Find "smith, j" by Name - found
    • Find "smith, j" by Any - not found
     
  • Dragon

    Dragon - 2015-11-07

    I have an update for this to improve the functionality of the search by "Name"... my plan is to update the search by "Any" function next to incorporate this.

    To test this, I have a patient named John H Smith and another named John Ronald Reuel Tolkien. ("Roland Reuel" is entered in the Middle Name field.) Here are some of my test results:

    • Find "john smith" by Name - found 1
    • Find "john r r tolkien" by Name - found 1 (ignores multiple middle names currently)
    • Find "john h smith" by Name - found 1
    • Find "smith, john" by Name - found 1
    • Find "smith" by Name - found 1
    • Find "tolkien" by Name - found 1
    • Find "john" by Name - found both Smith, John and Tolkien, John
    • Find "john s" by Name - found 1
    • Find "john tol" by Name - found 1
    • Find "tol, john" by Name - found 1
    • Find "smith, j" by Name - found 1

    My modification is for the /library/patient.inc, with modification to the getPatientLnames function and a new function called getPatientNameSplit.

    Here is my changelist:
    https://github.com/dragon76n/openemr/commit/563a50000d172342eb4eb328f92fa4bbc7ca2dba
    -Pinellas Hack Shack Member

     

Log in to post a comment.