Could path predicates be used to filter on other attributes than archetype ids and node ids? For instance, is this valid?
SELECT c FROM COMPOSITION c [uid/value='_this_is_a_version_id_']
Note: testing that on EHRScape, I get 400 Bad Request with no error message, and on Ethercis/EHRBASE I get 400 and an antlr exception “Could not process query, reason:org.antlr.v4.runtime.misc.ParseCancellationException: AQL Parse exception: line 1: char 29 mismatched input ‘uid’ expecting ARCHETYPEID”
Or the only way of doing such thing is by using a condition in the WHERE?
SELECT c FROM COMPOSITION c WHERE c/uid/value = '_this_is_a_version_id_'
By looking at the spec (https://specifications.openehr.org/releases/QUERY/latest/AQL.html#_predicates), it seem to be valid by using “standard predicates”.