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

Add LocationService method to search for a location by a location attribute

    XMLWordPrintable

    Details

      Description

      For example if I've got a location attribute type called "Facility Code" I would like to be able to look up a location given a code.

      Add methods:
      List<Location> LocationService.getLocationsByAttribute(Object searchString, LocationAttributeType lat); // does fuzzy search on searchstring
      Location LocationService.getLocationByAttribute(Object searchString, LocationAttributeType lat); // does exact search on search string. returns null if none found

      Update the LocationService.getLocations method to also take a Map<LocationAttributeType, Object> parameter. (Deprecate the old getLocations method and add a new one with the new param).

      See ProviderService.getProviders as an example

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              rowanseymour Rowan Seymour
              Reporter:
              darius Darius Jazayeri
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours Original Estimate - 3 hours
                  3h
                  Remaining:
                  Time Spent - 7 hours, 10 minutes Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - 7 hours, 10 minutes Remaining Estimate - 3 hours
                  7h 10m