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

Concept doesn't have flexible methods for getting a name by locale, type, and tags

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.7.2, OpenMRS 1.8.2
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Mario is adding a feature such that in a JSP page he can display either the fully-specified name, or the short name, depending on the type of user. (TRUNK-2593)

      Looking into this, we don't have methods like:

      Concept.getName(Locale locale, ConceptNameType ofType)
      Concept.getName(Locale locale, ConceptNameTag havingTag)
      // or maybe combine them:
      Concept.getName(Locale locale, ConceptNameType ofType, ConceptNameTag havingTag)
      

      Whichever methods we choose to add should properly handle locales, i.e. they should look in the locale, then fall back to the language-only version of the locale, in the correct order.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmario Mario Giraldo
                Reporter:
                darius Darius Jazayeri
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: