Common or Centralized Approach to Tagging (Design Page)

Background

We want the capability to label (tag) data & metadata throughout OpenMRS.  Tagging can provide flexible folksonomies for categorizing and/or organizing information.

Requirements

  • Specific tags are never required or coded into core – i.e., the presence of tags is supported, but the specific values used are up to implementations.

  • Tags behave like simple strings

  • API methods for adding, removing, and searching for tags should be consistent across the API

Design Considerations

  • Do we want to use java.lang.String or an org.openmrs.Tag object for tags?  e.g., if a concept is tagged with "diabetes" and a patient is tagged with "diabetes" are these related by value or reference?

  • Do we create a centralized tag service?  Or do we share an interface that is implemented as needed for various domain objects?

See Also

  •  

    Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.