Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Oct 10, 2023
2 parents 2de061a + 90ba6c8 commit f593e03
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
16 changes: 12 additions & 4 deletions tests/content/fn_rkeys.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,25 @@
"title": "get reference key",
"view": {
"resource": "Observation",
"forEach": "basedOn",
"select": [{ "alias": "rid", "path": "getReferenceKey()" }]
"select": [
{
"forEach": "basedOn",
"select": [{ "alias": "rid", "path": "getReferenceKey()" }]
}
]
},
"expectCount": 3
},
{
"title": "get reference key with resource param",
"view": {
"resource": "Observation",
"forEach": "basedOn.where(getReferenceKey('CarePlan').exists())",
"select": [{ "alias": "rid", "path": "getReferenceKey()" }]
"select": [
{
"forEach": "basedOn.where(getReferenceKey('CarePlan').exists())",
"select": [{ "alias": "rid", "path": "getReferenceKey()" }]
}
]
},
"expectCount": 1
}
Expand Down
4 changes: 2 additions & 2 deletions tests/content/where.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"view": {
"resource": "Observation",
"select": [{ "path": "id" }],
"where": [{ "path": "where(value > 11).exists()" }]
"where": [{ "path": "where(value.ofType(integer) > 11).exists()" }]
},
"expect": [{ "id": "o1" }]
},
Expand All @@ -76,7 +76,7 @@
"view": {
"resource": "Observation",
"select": [{ "path": "id" }],
"where": [{ "path": "where(value < 11).exists()" }]
"where": [{ "path": "where(value.ofType(integer) < 11).exists()" }]
},
"expect": [{ "id": "o2" }]
},
Expand Down
2 changes: 2 additions & 0 deletions tests/tests.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Schema for tests",
"type": "object",
"required": ["title", "resources", "tests"],
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
Expand Down Expand Up @@ -127,6 +128,7 @@
},
"view": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
Expand Down

0 comments on commit f593e03

Please sign in to comment.