Skip to content

Local patient searching behaviour is inconsistent with online patient searching #4776

Open
@kat-ms

Description

@kat-ms

Describe the bug

Local patient search uses 'startsWith' logic to filter the patient records, e.g:
image

But when doing online search, the behaviour changes to 'contains' behaviour:
image

To reproduce

Steps to reproduce the behaviour:

  1. Go to Vaccine Dispensing module or Dispensing module
  2. Do an initial local search of some kind that is fairly generic
  3. Either tap 'Search Online' (in Vaccine Dispensing module) or 'Lookup Patient' in the dispensary
  4. Observe inconsistency

Expected behaviour

Consistent matching logic between local and remote patients

Proposed Solution

Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.

Version and device info

  • App version:
  • Tablet model:
  • OS version:

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: developmentBug was found and believed to only be in development branches

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions