Commit 8de8a3a5 authored by Georg Fette's avatar Georg Fette
Browse files

- now the query was commited

parent 13dec260
*AQL
SELECT e
FROM EHR e
CONTAINS COMPOSITION a[openEHR-EHR-COMPOSITION.report.v1]
WHERE a/content[openEHR-EHR-EVALUATION.gender.v1]/data[at0002]/items[at0022]/value/value = 'SkSoPSNZCrKSVNRgKNRV eON GoSsTe.cPNXzcnAeKtKqqzMFrvtmmuRQdp,fYpQvryDgKRSytYXcLIsRjCCWYjkaMfoBiuhWctvOxxmmkrOokXKC jDcAwZnrBlCStC,IOfcohjMezZdWQXCRQJaWAr,wRwWmReJFQCdHaEwgYMFEoDbFYkfxJDiyMjlE GCZlGSRRDqpDbfpAbjVY ixOaRkTCDarMDPKSGWcHLUb,nkQlntYvLSellVLr.S'
*Graph
QUERY(
FILTER(
ITERATE('EHR') as e,
EXISTS(
CONTAINS_TYPE(
ALIAS_REF('e'),
'COMPOSITION',
'openEHR-EHR-COMPOSITION.report.v1'
) as a,
EQUALS(
FIELD(
FIELD(
INDEXED_FIELD(
INDEXED_FIELD(
INDEXED_FIELD(
ALIAS_REF('a'),
'content',
'openEHR-EHR-EVALUATION.gender.v1'
),
'data',
'at0002'
),
'items',
'at0022'
),
'value'
),
'value'
),
'SkSoPSNZCrKSVNRgKNRV eON GoSsTe.cPNXzcnAeKtKqqzMFrvtmmuRQdp,fYpQvryDgKRSytYXcLIsRjCCWYjkaMfoBiuhWctvOxxmmkrOokXKC jDcAwZnrBlCStC,IOfcohjMezZdWQXCRQJaWAr,wRwWmReJFQCdHaEwgYMFEoDbFYkfxJDiyMjlE GCZlGSRRDqpDbfpAbjVY ixOaRkTCDarMDPKSGWcHLUb,nkQlntYvLSellVLr.S'
)
)
),
RETURN(ALIAS_REF('e'))
)
*Cypher
MATCH
(A:EHR), (A)-[*]->(B:COMPOSITION), (B)-[:content]->(C:EVALUATION), (C)-[:data]->(D:ITEM_TREE), (D)-[:items]->(E:ELEMENT)
WHERE
E.value.value = 'SkSoPSNZCrKSVNRgKNRV eON GoSsTe.cPNXzcnAeKtKqqzMFrvtmmuRQdp,fYpQvryDgKRSytYXcLIsRjCCWYjkaMfoBiuhWctvOxxmmkrOokXKC jDcAwZnrBlCStC,IOfcohjMezZdWQXCRQJaWAr,wRwWmReJFQCdHaEwgYMFEoDbFYkfxJDiyMjlE GCZlGSRRDqpDbfpAbjVY ixOaRkTCDarMDPKSGWcHLUb,nkQlntYvLSellVLr.S' AND
E.archetype_node_id = 'at0022' AND
D.archetype_node_id = 'at0002' AND
C.archetype_node_id = 'openEHR-EHR-EVALUATION.gender.v1' AND
B.archetype_node_id = 'openEHR-EHR-COMPOSITION.report.v1'
RETURN
A
\ 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