formbuilder-lhcforms 10.2.1 → 10.3.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.
@@ -20,6 +20,13 @@
20
20
  "$ref": "#/definitions/Meta",
21
21
  "title": "Meta"
22
22
  },
23
+ "contained": {
24
+ "description": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
25
+ "items": {
26
+ "$ref": "#/definitions/ResourceList"
27
+ },
28
+ "type": "array"
29
+ },
23
30
  "implicitRules": {
24
31
  "description": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
25
32
  "$ref": "#/definitions/uri",
@@ -26,16 +26,20 @@
26
26
  { field: "copyright", col: 12},
27
27
  { field: "approvalDate", col: 12},
28
28
  { field: "lastReviewDate", col: 12},
29
+ { field: "contained", "col": 12},
29
30
  { field: "__$variable", col: 12}
30
31
  ]
31
32
  }
32
33
  ],
33
34
  "targetPage": "formLevel"
34
35
  },
36
+ // Please note that the jsonpath expression paths in the keys
35
37
  overridePropertyLabels: {
36
- '/properties/name': 'Questionnaire name',
37
- '/properties/date': 'Revision date',
38
- '/properties/meta/properties/tag': 'Tags',
38
+ '$.properties.contained': 'Contained resources',
39
+ '$.properties.name': 'Questionnaire name',
40
+ '$.properties.date': 'Revision date',
41
+ '$.properties.meta.properties.tag': 'Tags',
42
+ '$.definitions.ValueSet.properties.resourceType': 'Type',
39
43
  },
40
44
  // Specify widget layout.
41
45
  // id is widget schema registry defined in lforms-widget-registry.ts
@@ -87,6 +91,51 @@
87
91
  {"field": "system", "col": 4, "nolabel": true}
88
92
  ]
89
93
  },
94
+ contained: {
95
+ "id": "contained",
96
+ "addEditAction": true,
97
+ "labelPosition": "left",
98
+ "labelClasses": "col-sm-2 ps-0 pe-1",
99
+ "controlClasses": "col-sm-10",
100
+ "addButtonLabel": "Add new ValueSet",
101
+ "addButtonTitle": "At present, only ValueSet is supported as contained resource.",
102
+ "showFields": [
103
+ // The fields here are canonical paths of FormProperty.
104
+ {"field": "resourceType", "col": 1, "nolabel": true},
105
+ {"field": "id", "col": 3, "nolabel": true},
106
+ {"field": "title", "col": 4, "nolabel": true},
107
+ {"field": "date", "col": 2, "nolabel": true},
108
+ {"field": "status", "col": 1, "nolabel": true}
109
+ ]
110
+ },
111
+ valueSet: {
112
+ "id": "value-set",
113
+ "nolabel": true,
114
+ "controlClasses": "col-sm-12",
115
+ "showFields": [
116
+ // The fields here are canonical paths of FormProperty.
117
+ {
118
+ "field": "id",
119
+ "col": 2,
120
+ "nolabel": true
121
+ },
122
+ {
123
+ "field": "meta/tag",
124
+ "col": 4,
125
+ "nolabel": true
126
+ },
127
+ {
128
+ "field": "meta/tag",
129
+ "col": 3,
130
+ "nolabel": true
131
+ },
132
+ {
133
+ "field": "meta/tag",
134
+ "col": 3,
135
+ "nolabel": true
136
+ }
137
+ ]
138
+ },
90
139
  "__$variable": {
91
140
  "id": "variable",
92
141
  "expressionUri": "http://hl7.org/fhir/StructuredDefinition/variable",
@@ -113,37 +162,43 @@
113
162
  ]
114
163
  }
115
164
  },
116
- // Map property: Each widget type is mapped to fields with json pointers of its schema.
165
+ // Map property: Each widget type is mapped to fields with jsonpath of its schema.
117
166
  widgetsMap: {
118
167
  // List of fields implementing this widget.
119
168
  inputBox: [
120
- '/properties/url',
121
- '/properties/implicitRules',
122
- '/properties/version',
123
- '/properties/title',
124
- '/properties/name',
125
- '/properties/publisher',
126
- '/properties/description',
127
- '/properties/purpose',
169
+ '$.properties.url',
170
+ '$.properties.implicitRules',
171
+ '$.properties.version',
172
+ '$.properties.title',
173
+ '$.properties.name',
174
+ '$.properties.publisher',
175
+ '$.properties.description',
176
+ '$.properties.purpose',
128
177
  ],
129
178
  textArea: [
130
- '/properties/copyright',
179
+ '$.properties.copyright',
131
180
  ],
132
181
  inputDate: [
133
- '/properties/approvalDate',
134
- '/properties/lastReviewDate'
182
+ '$.properties.approvalDate',
183
+ '$.properties.lastReviewDate'
135
184
  ],
136
185
  inputDateTime: [
137
- '/properties/date'
186
+ '$.properties.date'
138
187
  ],
139
188
  __$terminologyServer: [
140
- '/properties/__$terminologyServer'
189
+ '$.properties.__$terminologyServer'
141
190
  ],
142
191
  coding: [
143
- '/properties/meta/properties/tag'
192
+ '$.properties.meta.properties.tag',
193
+ ],
194
+ contained: [
195
+ '$.properties.contained'
196
+ ],
197
+ valueSet: [
198
+ '$.definitions.ValueSet'
144
199
  ],
145
200
  __$variable: [
146
- '/properties/__$variable'
201
+ '$.properties.__$variable'
147
202
  ]
148
203
  }
149
204
  }
@@ -1297,6 +1297,13 @@
1297
1297
  "title": "Terminology server",
1298
1298
  "type": "string"
1299
1299
  },
1300
+ "contained": {
1301
+ "description": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
1302
+ "items": {
1303
+ "$ref": "#/definitions/ValueSet"
1304
+ },
1305
+ "type": "array"
1306
+ },
1300
1307
  "__$variable": {
1301
1308
  "description": "Use to store values derived from calculations, references to other answers, or external data.",
1302
1309
  "title": "Variables",
@@ -1445,7 +1452,8 @@
1445
1452
  "copyright",
1446
1453
  "approvalDate",
1447
1454
  "lastReviewDate",
1448
- "effectivePeriod"
1455
+ "effectivePeriod",
1456
+ "contained"
1449
1457
  ]
1450
1458
  },
1451
1459
  {