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

Concept Service getDrugs(String phrase) should not return retired drugs

    XMLWordPrintable

Details

    Description

      Currently, the getDrugs(String phrase) method in ConceptService returns retired drugs. This seems to be at least partially by design (there is a @should return drugs that are retired on the interface), but also seems wrong. The expectation here is that a basic search method like this would not return retired drugs. There is also a contradiction here because the old, deprecated findDrugs(phrase, includeRetired) delegates to getDrugs if includeRetired=FALSE.

      At minimum, there must be a way to do a search like this and to specify to exclude retired drugs.

      Gliffy Diagrams

        Attachments

          Activity

            People

              k.joseph Kaweesi Joseph
              mogoodrich Mark Goodrich
              Daniel Kayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours
                  3d 2h