formbuilder-lhcforms 10.2.0 → 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.
- package/dist/formbuilder-lhcforms/3rdpartylicenses.txt +27 -1
- package/dist/formbuilder-lhcforms/assets/fhir-definitions.schema.json5 +847 -1
- package/dist/formbuilder-lhcforms/assets/fhir-questionnaire.schema.json +7 -0
- package/dist/formbuilder-lhcforms/assets/fl-fields-layout.json5 +74 -19
- package/dist/formbuilder-lhcforms/assets/ngx-fl.schema.json5 +9 -1
- package/dist/formbuilder-lhcforms/assets/ngx-item.schema.json5 +35 -3
- package/dist/formbuilder-lhcforms/assets/ngx-vs.schema.json5 +3866 -0
- package/dist/formbuilder-lhcforms/assets/value-set-fields-layout.json5 +119 -0
- package/dist/formbuilder-lhcforms/assets/version.json +1 -1
- package/dist/formbuilder-lhcforms/index.html +2 -2
- package/dist/formbuilder-lhcforms/main.d95b176573569c41.js +1 -0
- package/dist/formbuilder-lhcforms/polyfills.4992065cb715e9b6.js +1 -0
- package/dist/formbuilder-lhcforms/{styles.82f88943c37f346e.css → styles.63cffab6768e8b8c.css} +2 -2
- package/dist/formbuilder-lhcforms/tests/window-open-test.html +117 -0
- package/package.json +12 -10
- package/dist/formbuilder-lhcforms/assets/item-editor.schema.json5 +0 -13
- package/dist/formbuilder-lhcforms/main.0b50ba685959096d.js +0 -1
- package/dist/formbuilder-lhcforms/polyfills.e53ef974fd1c72c8.js +0 -1
|
@@ -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
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
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
|
|
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
|
-
'
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
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
|
-
'
|
|
179
|
+
'$.properties.copyright',
|
|
131
180
|
],
|
|
132
181
|
inputDate: [
|
|
133
|
-
'
|
|
134
|
-
'
|
|
182
|
+
'$.properties.approvalDate',
|
|
183
|
+
'$.properties.lastReviewDate'
|
|
135
184
|
],
|
|
136
185
|
inputDateTime: [
|
|
137
|
-
'
|
|
186
|
+
'$.properties.date'
|
|
138
187
|
],
|
|
139
188
|
__$terminologyServer: [
|
|
140
|
-
'
|
|
189
|
+
'$.properties.__$terminologyServer'
|
|
141
190
|
],
|
|
142
191
|
coding: [
|
|
143
|
-
'
|
|
192
|
+
'$.properties.meta.properties.tag',
|
|
193
|
+
],
|
|
194
|
+
contained: [
|
|
195
|
+
'$.properties.contained'
|
|
196
|
+
],
|
|
197
|
+
valueSet: [
|
|
198
|
+
'$.definitions.ValueSet'
|
|
144
199
|
],
|
|
145
200
|
__$variable: [
|
|
146
|
-
'
|
|
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
|
{
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"id": "entry-format",
|
|
72
72
|
"labelPosition": "left",
|
|
73
73
|
"labelClasses": "col-2 ps-0 pe-1",
|
|
74
|
-
"controlClasses": "col-10 p-0"
|
|
75
|
-
}
|
|
74
|
+
"controlClasses": "col-10 p-0"
|
|
75
|
+
}
|
|
76
76
|
},
|
|
77
77
|
"__$restrictions": {
|
|
78
78
|
"description": "Choose to add value restrictions to the input.",
|
|
@@ -490,6 +490,9 @@
|
|
|
490
490
|
"operator": ["$EXP$ target.value != 'exists'"]
|
|
491
491
|
}
|
|
492
492
|
]
|
|
493
|
+
},
|
|
494
|
+
"widget": {
|
|
495
|
+
"id": "date"
|
|
493
496
|
}
|
|
494
497
|
},
|
|
495
498
|
"answerDateTime": {
|
|
@@ -505,6 +508,9 @@
|
|
|
505
508
|
"operator": ["$EXP$ target.value != 'exists'"]
|
|
506
509
|
}
|
|
507
510
|
]
|
|
511
|
+
},
|
|
512
|
+
"widget": {
|
|
513
|
+
"id": "datetime"
|
|
508
514
|
}
|
|
509
515
|
},
|
|
510
516
|
"answerTime": {
|
|
@@ -520,6 +526,9 @@
|
|
|
520
526
|
"operator": ["$EXP$ target.value != 'exists'"]
|
|
521
527
|
}
|
|
522
528
|
]
|
|
529
|
+
},
|
|
530
|
+
"widget": {
|
|
531
|
+
"id": "time"
|
|
523
532
|
}
|
|
524
533
|
},
|
|
525
534
|
"answerString": {
|
|
@@ -974,6 +983,9 @@
|
|
|
974
983
|
"title": "Value date",
|
|
975
984
|
"visibleIf": {
|
|
976
985
|
"/type": ["date"]
|
|
986
|
+
},
|
|
987
|
+
"widget": {
|
|
988
|
+
"id": "date"
|
|
977
989
|
}
|
|
978
990
|
},
|
|
979
991
|
"valueTime": {
|
|
@@ -983,6 +995,9 @@
|
|
|
983
995
|
"title": "Value time",
|
|
984
996
|
"visibleIf": {
|
|
985
997
|
"/type": ["time"]
|
|
998
|
+
},
|
|
999
|
+
"widget": {
|
|
1000
|
+
"id": "time"
|
|
986
1001
|
}
|
|
987
1002
|
},
|
|
988
1003
|
"valueString": {
|
|
@@ -1432,6 +1447,13 @@
|
|
|
1432
1447
|
"title": "Value date",
|
|
1433
1448
|
"visibleIf": {
|
|
1434
1449
|
"/type": ["date"]
|
|
1450
|
+
},
|
|
1451
|
+
"widget": {
|
|
1452
|
+
"id": "date",
|
|
1453
|
+
"labelPosition": "left",
|
|
1454
|
+
"labelClasses": "col-sm-2 m-0 ps-0 pe-1",
|
|
1455
|
+
"controlClasses": "col-sm-5",
|
|
1456
|
+
"placeholder": 'yyyy-MM-dd'
|
|
1435
1457
|
}
|
|
1436
1458
|
},
|
|
1437
1459
|
"valueDateTime": {
|
|
@@ -1441,6 +1463,13 @@
|
|
|
1441
1463
|
"title": "Value date time",
|
|
1442
1464
|
"visibleIf": {
|
|
1443
1465
|
"/type": ["dateTime"]
|
|
1466
|
+
},
|
|
1467
|
+
"widget": {
|
|
1468
|
+
"id": "datetime",
|
|
1469
|
+
"labelPosition": "left",
|
|
1470
|
+
"labelClasses": "col-sm-2 m-0 ps-0 pe-1",
|
|
1471
|
+
"controlClasses": "col-sm-5",
|
|
1472
|
+
"placeholder": 'yyyy-MM-dd hh:mm:ss (AM|PM)'
|
|
1444
1473
|
}
|
|
1445
1474
|
},
|
|
1446
1475
|
"valueTime": {
|
|
@@ -1450,6 +1479,9 @@
|
|
|
1450
1479
|
"title": "Value time",
|
|
1451
1480
|
"visibleIf": {
|
|
1452
1481
|
"/type": ["time"]
|
|
1482
|
+
},
|
|
1483
|
+
"widget": {
|
|
1484
|
+
"id": "time"
|
|
1453
1485
|
}
|
|
1454
1486
|
},
|
|
1455
1487
|
"valueString": {
|
|
@@ -2227,7 +2259,7 @@
|
|
|
2227
2259
|
"additionalProperties": false,
|
|
2228
2260
|
"type": "object",
|
|
2229
2261
|
"widget": {
|
|
2230
|
-
"id": "hidden"
|
|
2262
|
+
"id": "hidden"
|
|
2231
2263
|
}
|
|
2232
2264
|
}
|
|
2233
2265
|
|