...
stopping with ‘labels’ in favor of ‘tags’.
allowing tags to have optional value.
support usage of tags in query as functions as Bjørn Næss suggested:
select c/name/value, tag(c, 'EpisodeOfCareId') from composition c where tag(c, 'EpisodeOfCareId') = 'test' limit 5
if via function tag() is not an valid option (curious about Seref Arikan feedback) , then
TAGGED BY
will also do, but preferably as… WHERE c TAGGED BY key = 'value'
DIPS
Tags where were developed to support integration with proprietary systems which doesn’t don’t do versioning of data. Some metadata might change without commiting committing a new version. The tags are used to update metadata on Compositions from the client.
...