-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsnippets.json
31 lines (31 loc) · 963 Bytes
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"define MostRecentFunction": {
"prefix": "define func",
"body": [
"define function MostRecent(observations List<Observation>, asOf DateTime):",
"First(",
"observations O",
"sort by issued",
")"
],
"description": "Define MostRecent Function"
},
"define IssuedWithinFunction": {
"prefix": "define func",
"body": [
"define function IssuedWithin(observations List<Observation>, lookback System.Quantity):",
"observations O",
"where O.issued on or after day of AsOf - lookback"
],
"description": "Define IssuedWithin Function"
},
"define PerformedWithinFunction": {
"prefix": "define func",
"body": [
"define function PerformedWithin(procedures List<Procedure>, lookback System.Quantity):",
"procedures P",
"where end of FC.ToInterval(P.performed) on or after day of AsOf - lookback"
],
"description": "Define PerformedWithin Function"
}
}