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

Add a utility method to get a Concept by an identifier, name or mapping

    XMLWordPrintable

Details

    • Low

    Description

      We need a method that retrieves a concept from the database by either its identifier ie.( id or uuid), name or mapping.

      We already have such a method living in modules like htmlformentry => HtmlFormEntryUtil#getConcept (id) .

      The trigger of creating this ticket was: I found myself doing a copy and paste of the above method into the appframework module and we thought of having such a method live in core for reusability across all module.

      On creation of the utility method, similar methods in community supported modules should be deprecated eg. HtmlFormEntryUtil#getConcept (id)

      Talk discussion thread : https://talk.openmrs.org/t/utility-method-to-get-a-concept-by-an-identifier-name-or-mapping/24513

      Gliffy Diagrams

        Attachments

          Activity

            People

              jnsereko Nsereko Joshua
              samuel34 Samuel Male
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5 minutes Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  1h