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

ConceptService getDrugs doesnt search for drugs with concept names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: Platform 1.10.0
    • Fix Version/s: Platform 1.10.1
    • Component/s: None
    • Labels:

      Description

      The expected behavior of following getDrugs method is to search for drugs with either drug name OR concept name.

      HibernateConceptDAO.java
      getDrugs(String drugName, Concept concept, boolean searchOnPhrase, boolean searchDrugConceptNames, boolean includeRetired, Integer start, Integer length)
      

      The existing code searches for "drugName AND conceptName" instead of "drugName OR conceptName"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                bharti Bharti Nagpal
                Reporter:
                bharti Bharti Nagpal
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 3 hours
                    3h
                    Remaining:
                    Remaining Estimate - 3 hours
                    3h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified