{
"group": "Append time windows",
"entries": [
{
"name": "Records in a version window",
"sentence": "Read records saved within a span of branch versions.",
"query": "collection(${collection}) | window(${from}; ${to})",
"change": "Change ${collection} to the quoted collection name, ${from} to the first included version and ${to} to the first excluded version or $now.",
"defaults": {
"collection": "\"patients\"",
"from": "0",
"to": "$now"
}
},
{
"name": "Records in an instant window",
"sentence": "Read records saved within a span of instants.",
"query": "collection(${collection}) | window(${from}; ${to})",
"change": "Change ${collection} to the quoted collection name, ${from} to a quoted RFC 3339 instant and ${to} to a later quoted instant or $now.",
"defaults": {
"collection": "\"patients\"",
"from": "\"1970-01-01T00:00:00Z\"",
"to": "$now"
}
}
]
}