...
- Find what data is required. The aforementioned scenario requires abnormal blood pressure values are returned, including both systolic pressure and diastolic pressure.
- Write the appropriate identified path to the required item (variable name is required if the class object is required). Multiple identified path is separated using comma. For this particular scenario, two identified paths are found for systolic and diastolic data value by following Step 2. The completed query statement looks like:
No Format SELECT obs/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/valuemagnitude, obs/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value/valuemagnitude FROM EHR [ehr_id/value=$ehrUid] CONTAINS COMPOSITION [openEHR-EHR-COMPOSITION.encounter.v1] CONTAINS OBSERVATION obs [openEHR-EHR-OBSERVATION.blood_pressure.v1] WHERE obs/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/value >magnitude>= 140 OR obs/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value/value >magnitude>= 90
AQL features that are not supported in the AQL Parser implemented by Ocean Informatics
...