RE: AQL query to archetype and it's specializations in slot
|
Hi Igor, AQL allows string RegEx pattern in an archetype predicate. RegEx
pattern needs to be enclosed by ‘{/’ RegEx ‘/}’. For
your scenario, the AQL may include something like: ...[openEHR-EHR-CLUSTER.a.v1]
/items[{/openEHR-EHR-CLUSTER\.b(-[a-zA-Z0-9])*\.v1/}]
/ items[at0003]/value Or something like the one below. The _expression_ below is for
retrieving both element [at0003] instance value and the specialization of this
element if the specialized archetype has specialization of element at0003 (such
as at0003.1): ...[openEHR-EHR-CLUSTER.a.v1] /items[{/openEHR-EHR-CLUSTER\.b(-[a-zA-Z0-9])*\.v1/}]
/ items[{/at0003([0-9.]+)*/}]/value Hope this helps. Please let me know if you have more questions. Regards, Chunlan From:
openehr-clinical-bounces@openehr.org
[mailto:openehr-clinical-bounces@openehr.org] On Behalf Of ????? ??????? Hi! |
_______________________________________________ openEHR-clinical mailing list openEHR-clinical@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/openehr-clinical