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

Implement API method for retrieving PersonNames by PersonNameId

    Details

    • Complexity:
      Low

      Description

      The only method available to retrieve a specific PersonName object is PersonService.getPersonNameByUuid(String uuid).

      Add PersonService.getPersonName(Integer personNameId) that returns a PersonName object. The lookup should look at the primary key of person_name. If the name with the given id doesn't exist, return null.

      Add a unit test for this method in the PersonServiceTest class.

        Attachments

          Activity

            People

            • Assignee:
              gbathla Garima Bathla
              Reporter:
              jeremy Jeremy Keiper
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: