Skip to content

Commit

Permalink
Add date boundary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Feb 22, 2024
1 parent e249da0 commit c3751d2
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions tests/fn_boundary.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"text": "code"
},
"status": "final"
},
{
"resourceType": "Patient",
"id": "p1",
"birthDate": "1970-06"
}
],
"tests": [
Expand Down Expand Up @@ -171,6 +176,60 @@
"datetime": null
}
]
},
{
"title": "date lowBoundary",
"view": {
"resource": "Patient",
"status": "active",
"select": [
{
"column": [
{
"name": "id",
"path": "id"
},
{
"name": "date",
"path": "birthDate.lowBoundary()"
}
]
}
]
},
"expect": [
{
"id": "p1",
"date": "1970-06-01"
}
]
},
{
"title": "date highBoundary",
"view": {
"resource": "Patient",
"status": "active",
"select": [
{
"column": [
{
"name": "id",
"path": "id"
},
{
"name": "date",
"path": "birthDate.highBoundary()"
}
]
}
]
},
"expect": [
{
"id": "p1",
"date": "1970-06-30"
}
]
}
]
}

0 comments on commit c3751d2

Please sign in to comment.