Skip to content

Commit

Permalink
Add time boundary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Feb 22, 2024
1 parent c3751d2 commit 2303534
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions tests/fn_boundary.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
},
"status": "final"
},
{
"resourceType": "Observation",
"id": "o4",
"code": {
"text": "code"
},
"valueTime": "12:34"
},
{
"resourceType": "Patient",
"id": "p1",
Expand Down Expand Up @@ -230,6 +238,84 @@
"date": "1970-06-30"
}
]
},
{
"title": "time lowBoundary",
"view": {
"resource": "Observation",
"status": "active",
"select": [
{
"column": [
{
"name": "id",
"path": "id"
},
{
"name": "time",
"path": "value.ofType(time).lowBoundary()"
}
]
}
]
},
"expect": [
{
"id": "o1",
"time": null
},
{
"id": "o2",
"time": null
},
{
"id": "o3",
"time": null
},
{
"id": "o4",
"time": "12:34:00.000"
}
]
},
{
"title": "time highBoundary",
"view": {
"resource": "Observation",
"status": "active",
"select": [
{
"column": [
{
"name": "id",
"path": "id"
},
{
"name": "time",
"path": "value.ofType(time).highBoundary()"
}
]
}
]
},
"expect": [
{
"id": "o1",
"time": null
},
{
"id": "o2",
"time": null
},
{
"id": "o3",
"time": null
},
{
"id": "o4",
"time": "12:34:59.999"
}
]
}
]
}

0 comments on commit 2303534

Please sign in to comment.