Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
OpenMRS 1.9.6, Platform 1.10.0
-
None
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.