Commit 7430b1be authored by Georg Fette's avatar Georg Fette
Browse files

- adjusted ehrID-test to return the value as well

parent 95b55ef4
*AQL
SELECT e/ehr_id
SELECT e/ehr_id, e/ehr_id/value
FROM EHR e
CONTAINS COMPOSITION c[openEHR-EHR-COMPOSITION.encounter.v1]
......@@ -13,10 +13,16 @@ QUERY(
'openEHR-EHR-COMPOSITION.encounter.v1'
) as c)
),
RETURN(FIELD(
RETURN(
FIELD(
ALIAS_REF('e'),
'ehr_id'
) out 'e/ehr_id')
) out 'e/ehr_id',
FIELD(
ALIAS_REF('e'),
'ehr_id'
)
)
)
*Cypher
......@@ -25,4 +31,4 @@ MATCH
WHERE
B.archetype_node_id = 'openEHR-EHR-COMPOSITION.encounter.v1'
RETURN
A.ehr_id as e_ehr_id
\ No newline at end of file
A.ehr_id as e_ehr_id, A.ehr_id
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment