openmrs/openmrs-core — pull request #450 by pamcdm (2013-11-14 20:07:18+00:00)
Title: TRUNK-4116 

We left getDrugs(String phrase) as is but change the existing getDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired, Integer start, Integer length) so that it performs the same sort of query as getDrugs(String phrase)--that is, it if "searchOnPhrase=true" is breaks up the passed in drugName string and parses it into individual words and adds each word as an ilike queries Restriction separately. Since the different implementations of getDrugs accept and others don't return retired drugs, couldn't have an agreement without impact the current behaviour.