org.sql-on-fhir.ig 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ImplementationGuide-org.sql-on-fhir.ig.json +1 -0
- package/StructureDefinition-ShareableViewDefinition.json +1 -0
- package/StructureDefinition-TabularViewDefinition.json +1 -0
- package/StructureDefinition-ViewDefinition.json +1 -0
- package/example/Binary-PatientAddresses.json +1 -0
- package/example/Binary-PatientAndContactAddressUnion.json +1 -0
- package/example/Binary-PatientDemographics.json +1 -0
- package/example/Binary-ShareablePatientDemographics.json +1 -0
- package/example/Binary-UsCoreBloodPressures.json +1 -0
- package/other/ig-r4.jsonX +1 -0
- package/other/spec.internals +88 -0
- package/other/validation-oo.json +1 -0
- package/other/validation-summary.json +1 -0
- package/package.json +27 -0
- package/tests/basic.json +496 -0
- package/tests/collection.json +244 -0
- package/tests/combinations.json +256 -0
- package/tests/constant.json +331 -0
- package/tests/constant_types.json +1032 -0
- package/tests/fhirpath.json +412 -0
- package/tests/fhirpath_numbers.json +103 -0
- package/tests/fn_boundary.json +362 -0
- package/tests/fn_empty.json +57 -0
- package/tests/fn_extension.json +173 -0
- package/tests/fn_first.json +77 -0
- package/tests/fn_join.json +106 -0
- package/tests/fn_oftype.json +111 -0
- package/tests/fn_reference_keys.json +109 -0
- package/tests/foreach.json +832 -0
- package/tests/logic.json +125 -0
- package/tests/union.json +842 -0
- package/tests/validate.json +99 -0
- package/tests/view_resource.json +95 -0
- package/tests/where.json +279 -0
package/tests/logic.json
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "logic",
|
|
3
|
+
"description": "TBD",
|
|
4
|
+
"fhirVersion": ["5.0.0", "4.0.1"],
|
|
5
|
+
"resources": [
|
|
6
|
+
{
|
|
7
|
+
"resourceType": "Patient",
|
|
8
|
+
"id": "m0",
|
|
9
|
+
"gender": "male",
|
|
10
|
+
"deceasedBoolean": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"resourceType": "Patient",
|
|
14
|
+
"id": "f0",
|
|
15
|
+
"deceasedBoolean": false,
|
|
16
|
+
"gender": "female"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"resourceType": "Patient",
|
|
20
|
+
"id": "m1",
|
|
21
|
+
"gender": "male",
|
|
22
|
+
"deceasedBoolean": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"resourceType": "Patient",
|
|
26
|
+
"id": "f1",
|
|
27
|
+
"gender": "female"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"tests": [
|
|
31
|
+
{
|
|
32
|
+
"title": "filtering with 'and'",
|
|
33
|
+
"tags": ["shareable"],
|
|
34
|
+
"view": {
|
|
35
|
+
"resource": "Patient",
|
|
36
|
+
"where": [
|
|
37
|
+
{
|
|
38
|
+
"path": "gender = 'male' and deceased.ofType(boolean) = false"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"select": [
|
|
42
|
+
{
|
|
43
|
+
"column": [
|
|
44
|
+
{
|
|
45
|
+
"path": "id",
|
|
46
|
+
"name": "id",
|
|
47
|
+
"type": "id"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"expect": [
|
|
54
|
+
{
|
|
55
|
+
"id": "m0"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"title": "filtering with 'or'",
|
|
61
|
+
"tags": ["shareable"],
|
|
62
|
+
"view": {
|
|
63
|
+
"resource": "Patient",
|
|
64
|
+
"where": [
|
|
65
|
+
{
|
|
66
|
+
"path": "gender = 'male' or deceased.ofType(boolean) = false"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"select": [
|
|
70
|
+
{
|
|
71
|
+
"column": [
|
|
72
|
+
{
|
|
73
|
+
"path": "id",
|
|
74
|
+
"name": "id",
|
|
75
|
+
"type": "id"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"expect": [
|
|
82
|
+
{
|
|
83
|
+
"id": "m0"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "f0"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "m1"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"title": "filtering with 'not'",
|
|
95
|
+
"tags": ["shareable"],
|
|
96
|
+
"view": {
|
|
97
|
+
"resource": "Patient",
|
|
98
|
+
"where": [
|
|
99
|
+
{
|
|
100
|
+
"path": "(gender = 'male').not()"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"select": [
|
|
104
|
+
{
|
|
105
|
+
"column": [
|
|
106
|
+
{
|
|
107
|
+
"path": "id",
|
|
108
|
+
"name": "id",
|
|
109
|
+
"type": "id"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"expect": [
|
|
116
|
+
{
|
|
117
|
+
"id": "f0"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "f1"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|