File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 <ns4 : typeInfo xsi : type =" ns4:ClassInfo" name =" Condition" baseType =" Simple.Record" retrievable =" true" primaryCodePath =" code" >
2525 <ns4 : element name =" code" elementType =" System.Code" />
2626 <ns4 : element name =" status" elementType =" System.Code" />
27+ <ns4 : element name =" encounterId" elementType =" System.String" />
28+ <ns4 : element name =" period" >
29+ <ns4 : elementTypeSpecifier xsi : type =" ns4:IntervalTypeSpecifier" >
30+ <ns4 : pointTypeSpecifier xsi : type =" ns4:NamedTypeSpecifier" modelName =" System" name =" DateTime" />
31+ </ns4 : elementTypeSpecifier >
32+ </ns4 : element >
33+ </ns4 : typeInfo >
34+ <ns4 : typeInfo xsi : type =" ns4:ClassInfo" name =" Medication" baseType =" Simple.Record" retrievable =" true" primaryCodePath =" code" >
35+ <ns4 : element name =" code" elementType =" System.Code" />
36+ <ns4 : element name =" status" elementType =" System.Code" />
37+ <ns4 : element name =" encounterId" elementType =" System.String" />
2738 <ns4 : element name =" period" >
2839 <ns4 : elementTypeSpecifier xsi : type =" ns4:IntervalTypeSpecifier" >
2940 <ns4 : pointTypeSpecifier xsi : type =" ns4:NamedTypeSpecifier" modelName =" System" name =" DateTime" />
Original file line number Diff line number Diff line change @@ -30,16 +30,22 @@ define multiSourceWithArrays:
3030
3131// @Test: QueryRelationship
3232define withQuery: [Encounter] E
33- with [Condition] C such that C.id = 'http://cqframework.org/3/2'
33+ with [Condition] C such that C.encounterId = E.id
3434
3535define withQuery2: [Encounter] E
36- with [Condition] C such that C.id = 'http://cqframework.org/3'
36+ with [Condition] C such that C.encounterId = E.id and exists(C.status)
37+
38+ define withQueryEmptySecondarySource: [Encounter] E
39+ with [Medication] M such that M.encounterId = E.id
3740
3841define withOutQuery: [Encounter] E
39- without [Condition] C such that C.id = 'http://cqframework.org/3/'
42+ without [Condition] C such that C.encounterId = E.id and exists(C.status)
4043
4144define withOutQuery2: [Encounter] E
42- without [Condition] C such that C.id = 'http://cqframework.org/3/2'
45+ without [Condition] C such that C.encounterId = E.id
46+
47+ define withOutQueryEmptySecondarySource: [Encounter] E
48+ without [Medication] M such that M.encounterId = E.id
4349
4450// @Test: QueryLet
4551define query: [Encounter] E
You can’t perform that action at this time.
0 commit comments