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

PatientService getPatients(name, identifier, types, matchIdentifierExactly) only searches on name or identifier

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Platform 2.2.0, Core 2.2.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      If "name" is specified, identifier parameter is ignored.  If "name" is null, identifier is used:

      @Override
      @Transactional(readOnly = true)
      public List<Patient> getPatients(String name, String identifier, List<PatientIdentifierType> identifierTypes,
              boolean matchIdentifierExactly, Integer start, Integer length) throws APIException {
         
         return dao.getPatients(name != null ? name : identifier, start, length);
      }

      Not sure if this needs to be fixed, but it should be documented.

        Attachments

          Activity

            People

            Assignee:
            samuel34 Samuel Male
            Reporter:
            mogoodrich Mark Goodrich
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: