Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5696

Patient search is broken for more than one identifier types

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Patient searching does not return correct results when more than one identifier type is passed in the third parameter: https://github.com/openmrs/openmrs-core/blob/2.2.0/api/src/main/java/org/openmrs/api/PatientService.java#L176

      The problem comes from the fact that when a list of more than one identifier type is passed in, the underlying lucene query is built as AND instead of OR

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: