Will the AQL queries qualifying on Archetype internal codes do so using the value of the code and if so will it use the full path to that value.
For example if we wanted to find all patients with pupils observed to be sluggish/slow would the query be: Select pupils >From EHR e CONTAINS Composition anyComposition CONTAINS Observation pupils[openEHR-EHR-OBSERVATION.pupils.v1] Where pupils/data/events[at0002]/data/rows[at0013]/items[at0015]/value = pupils/data/events[at0002]/data/rows[at0013]/items[at0015]/value/defining_code/[at0016] where [at0016] is the internal code for that archetype. I couldn't find an example on the wiki. thanks! Greg

