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

Obey searchable property from person attributes

    XMLWordPrintable

Details

    • Low
    • OpenMRS Platform 1.11 Sprint 1

    Description

      The person_attribute table has had a 'searchable' checkbox since inception. However, it has never actually been used in the searches in the PatientService, PersonService, or UserService. Find the getter methods in those services for the Patient, Person, and User objects and add a join in their dao to also look at the searchable property. The DAO implementation classes are HibernatePatientDAO, HibernatePersonDAO and HibernateUserDAO. The DAO interfaces are PatientDAO, PersonDAO and UserDAO

      You also need to edit PatientSearchCriteria to join to the person_attribute table for the searchable attribute types

      Remember to add unit tests to ensure that the desired behaviour is achieved.

      (Requires some knowledge of hibernate and criteria queries)

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                jkondrat Jakub Kondrat
                bwolfe Ben Wolfe
                Votes:
                4 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - 6 hours Original Estimate - 6 hours
                    6h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 days
                    2d