formbuilder-lhcforms 12.2.1 → 12.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/assets/extension-fields-layout.json5 +7 -23
- package/dist/formbuilder-lhcforms/assets/fhir-definitions.schema.json5 +0 -4
- package/dist/formbuilder-lhcforms/assets/fhir-questionnaire.schema.json +1 -1
- package/dist/formbuilder-lhcforms/assets/fl-fields-layout.json5 +28 -31
- package/dist/formbuilder-lhcforms/assets/identifier-fields-layout.json5 +8 -53
- package/dist/formbuilder-lhcforms/assets/ngx-fl.schema.json5 +13 -2
- package/dist/formbuilder-lhcforms/assets/ngx-vs.schema.json5 +1 -1
- package/dist/formbuilder-lhcforms/assets/shared-widget-presets.json5 +95 -0
- package/dist/formbuilder-lhcforms/assets/usage-context-fields-layout.json5 +208 -0
- package/dist/formbuilder-lhcforms/assets/value-set-fields-layout.json5 +8 -31
- package/dist/formbuilder-lhcforms/assets/version.json +1 -1
- package/dist/formbuilder-lhcforms/index.html +1 -1
- package/dist/formbuilder-lhcforms/main.4c9c7733796a9515.js +1 -0
- package/dist/formbuilder-lhcforms/tests/window-open-test.html +120 -0
- package/package.json +1 -1
- package/dist/formbuilder-lhcforms/main.77392e165f8eb159.js +0 -1
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
// Specify widget layout.
|
|
48
48
|
// id is widget schema registry defined in lforms-widget-registry.ts
|
|
49
49
|
// Label classes and control classes are used in the widget templates to fine tune widget layout positions
|
|
50
|
+
widgetPresetMap: {
|
|
51
|
+
string: 'dialogStringField',
|
|
52
|
+
dateRange: 'dialogDateRangeField',
|
|
53
|
+
number: 'dialogNumberField'
|
|
54
|
+
},
|
|
55
|
+
|
|
50
56
|
widgets: {
|
|
51
|
-
string: {
|
|
52
|
-
id: "string",
|
|
53
|
-
labelPosition: "left",
|
|
54
|
-
labelClasses: "col-sm-2 m-0 px-1",
|
|
55
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
56
|
-
},
|
|
57
57
|
textarea: {
|
|
58
58
|
id: "textarea",
|
|
59
59
|
labelPosition: "left",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
tooltipFormat: "json"
|
|
70
70
|
},
|
|
71
71
|
urlMandatory: {
|
|
72
|
-
id: "url",
|
|
72
|
+
id: "extension-url",
|
|
73
73
|
labelPosition: "left",
|
|
74
74
|
labelClasses: "col-sm-2 m-0 px-1",
|
|
75
75
|
controlClasses: "col-sm-10 m-0 p-0",
|
|
@@ -154,16 +154,6 @@
|
|
|
154
154
|
controlClasses: "col-sm-3",
|
|
155
155
|
placeholder: 'yyyy-MM-dd hh:mm:ss (AM|PM)'
|
|
156
156
|
},
|
|
157
|
-
dateRange: {
|
|
158
|
-
id: "date-range",
|
|
159
|
-
labelPosition: "left",
|
|
160
|
-
labelClasses: "col-sm-2 m-0 px-1",
|
|
161
|
-
controlClasses: "col-sm-6",
|
|
162
|
-
showFields: [
|
|
163
|
-
{"field": "start", "col": 6},
|
|
164
|
-
{"field": "end", "col": 6}
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
157
|
instant: {
|
|
168
158
|
id: "instant",
|
|
169
159
|
labelPosition: "left",
|
|
@@ -196,12 +186,6 @@
|
|
|
196
186
|
labelClasses: "col-sm-2 m-0 px-1",
|
|
197
187
|
controlClasses: "col-sm-10 m-0 p-0"
|
|
198
188
|
},
|
|
199
|
-
number: {
|
|
200
|
-
id: "number",
|
|
201
|
-
labelPosition: "left",
|
|
202
|
-
labelClasses: "col-sm-2 m-0 px-1",
|
|
203
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
204
|
-
},
|
|
205
189
|
expression: {
|
|
206
190
|
"id": "lfb-object",
|
|
207
191
|
"labelPosition": "left",
|
|
@@ -2837,10 +2837,6 @@
|
|
|
2837
2837
|
"pattern": "^\\S*$",
|
|
2838
2838
|
"type": "string"
|
|
2839
2839
|
},
|
|
2840
|
-
"identifier": {
|
|
2841
|
-
"description": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
|
|
2842
|
-
"$ref": "#/definitions/Identifier"
|
|
2843
|
-
},
|
|
2844
2840
|
"display": {
|
|
2845
2841
|
"description": "Plain text narrative that identifies the resource in addition to the resource reference.",
|
|
2846
2842
|
"pattern": "^[ \\r\\n\\t\\S]+$",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"$ref": "#/definitions/UsageContext"
|
|
148
148
|
},
|
|
149
149
|
"type": "array",
|
|
150
|
-
"title": "
|
|
150
|
+
"title": "Usage Context"
|
|
151
151
|
},
|
|
152
152
|
"jurisdiction": {
|
|
153
153
|
"description": "A legal or geographic region in which the questionnaire is intended to be used.",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
{ field: "name", col: 12},
|
|
23
23
|
{ field: "identifier", col: 12},
|
|
24
24
|
{ field: "meta", col: 12},
|
|
25
|
+
{ field: "useContext", col: 12},
|
|
25
26
|
{ field: "subjectType", "col": 12},
|
|
26
27
|
{ field: "date", col: 12},
|
|
27
28
|
{ field: "publisher", col: 12},
|
|
@@ -46,6 +47,8 @@
|
|
|
46
47
|
'$.properties.meta.properties.tag': 'Tags',
|
|
47
48
|
'$.properties.identifier': 'Identifiers',
|
|
48
49
|
'$.properties.meta': 'Meta',
|
|
50
|
+
'$.properties.useContext': 'Usage Context',
|
|
51
|
+
'$.properties.useContext.items.properties.__$valueSummary': 'Value',
|
|
49
52
|
'$.definitions.Meta.properties.versionId': 'Version ID (Read-only)',
|
|
50
53
|
'$.definitions.Meta.properties.lastUpdated': 'Last updated (Read-only)',
|
|
51
54
|
'$.definitions.Meta.properties.source': 'Source',
|
|
@@ -57,19 +60,15 @@
|
|
|
57
60
|
// Specify widget layout.
|
|
58
61
|
// id is widget schema registry defined in lforms-widget-registry.ts
|
|
59
62
|
// Label classes and control classes are used in the widget templates to fine tune widget layout positions
|
|
63
|
+
widgetPresetMap: {
|
|
64
|
+
inputBox: 'formStringField',
|
|
65
|
+
textArea: 'formTextareaField',
|
|
66
|
+
instant: 'formInstantField',
|
|
67
|
+
'positive-integer': 'formPositiveIntegerField',
|
|
68
|
+
'unsigned-integer': 'formUnsignedIntegerField'
|
|
69
|
+
},
|
|
70
|
+
|
|
60
71
|
widgets: {
|
|
61
|
-
inputBox: {
|
|
62
|
-
id: "string",
|
|
63
|
-
labelPosition: "left",
|
|
64
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
65
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
66
|
-
},
|
|
67
|
-
textArea: {
|
|
68
|
-
id: "textarea",
|
|
69
|
-
labelPosition: "left",
|
|
70
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
71
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
72
|
-
},
|
|
73
72
|
inputDate: {
|
|
74
73
|
id: "date",
|
|
75
74
|
labelPosition: "left",
|
|
@@ -100,25 +99,6 @@
|
|
|
100
99
|
{"field": "end", "col": 6}
|
|
101
100
|
]
|
|
102
101
|
},
|
|
103
|
-
instant: {
|
|
104
|
-
id: "instant",
|
|
105
|
-
labelPosition: "left",
|
|
106
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
107
|
-
controlClasses: "col-sm-3",
|
|
108
|
-
placeholder: 'yyyy-MM-dd hh:mm:ss (AM|PM)'
|
|
109
|
-
},
|
|
110
|
-
"positive-integer": {
|
|
111
|
-
id: "positive-integer",
|
|
112
|
-
labelPosition: "left",
|
|
113
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
114
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
115
|
-
},
|
|
116
|
-
"unsigned-integer": {
|
|
117
|
-
id: "unsigned-integer",
|
|
118
|
-
labelPosition: "left",
|
|
119
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
120
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
121
|
-
},
|
|
122
102
|
__$terminologyServer: {
|
|
123
103
|
"id": "terminology-server",
|
|
124
104
|
"placeholder": "Enter url for preferred terminology server",
|
|
@@ -190,6 +170,20 @@
|
|
|
190
170
|
{"field": "tag", "col": 12}
|
|
191
171
|
]
|
|
192
172
|
},
|
|
173
|
+
usageContext: {
|
|
174
|
+
"id": "usage-context",
|
|
175
|
+
"addEditAction": true,
|
|
176
|
+
"labelPosition": "left",
|
|
177
|
+
"labelClasses": "col-sm-2 ps-0 pe-1",
|
|
178
|
+
"controlClasses": "col-sm-10",
|
|
179
|
+
"noTableLabel": false,
|
|
180
|
+
"addButtonLabel": "Add Usage Context",
|
|
181
|
+
"showFields": [
|
|
182
|
+
{"field": "code.display", "title": "Display", "col": 4, "nolabel": true},
|
|
183
|
+
{"field": "code.code", "title": "Code", "col": 3, "nolabel": true},
|
|
184
|
+
{"field": "__$valueSummary", "title": "Value", "col": 4, "nolabel": true}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
193
187
|
contained: {
|
|
194
188
|
"id": "contained",
|
|
195
189
|
"addEditAction": true,
|
|
@@ -328,6 +322,9 @@
|
|
|
328
322
|
metaGroup: [
|
|
329
323
|
'$.properties.meta',
|
|
330
324
|
],
|
|
325
|
+
usageContext: [
|
|
326
|
+
'$.properties.useContext'
|
|
327
|
+
],
|
|
331
328
|
extension: [
|
|
332
329
|
'$.properties.extension'
|
|
333
330
|
],
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
'$.properties.assigner.properties.identifier': 'Identifier'
|
|
30
30
|
},
|
|
31
31
|
|
|
32
|
+
widgetPresetMap: {
|
|
33
|
+
string: 'dialogStringField',
|
|
34
|
+
codingTable: 'dialogCodingTable',
|
|
35
|
+
typeObject: 'dialogCodeableConceptObject',
|
|
36
|
+
dateRange: 'dialogDateRangeField',
|
|
37
|
+
assignerObject: 'dialogReferenceObject'
|
|
38
|
+
},
|
|
39
|
+
|
|
32
40
|
widgets: {
|
|
33
41
|
useSelect: {
|
|
34
42
|
id: 'select',
|
|
@@ -44,65 +52,12 @@
|
|
|
44
52
|
labelClasses: "col-sm-2 m-0 px-1",
|
|
45
53
|
controlClasses: "col-sm-10 m-0 p-0"
|
|
46
54
|
},
|
|
47
|
-
string: {
|
|
48
|
-
id: 'string',
|
|
49
|
-
labelPosition: "left",
|
|
50
|
-
labelClasses: "col-sm-2 m-0 px-1",
|
|
51
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
52
|
-
},
|
|
53
|
-
|
|
54
55
|
object: {
|
|
55
56
|
id: 'lfb-object',
|
|
56
57
|
labelPosition: 'left',
|
|
57
58
|
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
58
59
|
controlClasses: 'col-sm-10'
|
|
59
60
|
},
|
|
60
|
-
codingTable: {
|
|
61
|
-
id: 'table',
|
|
62
|
-
labelPosition: 'left',
|
|
63
|
-
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
64
|
-
controlClasses: 'col-sm-10',
|
|
65
|
-
addButtonLabel: 'Add coding',
|
|
66
|
-
showFields: [
|
|
67
|
-
{field: 'display', col: 4, nolabel: true},
|
|
68
|
-
{field: 'code', col: 3, nolabel: true},
|
|
69
|
-
{field: 'system', col: 4, nolabel: true}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
typeObject: {
|
|
73
|
-
id: 'lfb-object',
|
|
74
|
-
labelPosition: 'left',
|
|
75
|
-
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
76
|
-
controlClasses: 'col-sm-10',
|
|
77
|
-
objectBodyClasses: 'shadow rounded p-1 mb-1 d-grid gap-1',
|
|
78
|
-
showFields: [
|
|
79
|
-
{field: 'text', col: 12},
|
|
80
|
-
{field: 'coding', col: 12}
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
dateRange: {
|
|
84
|
-
id: 'date-range',
|
|
85
|
-
labelPosition: 'left',
|
|
86
|
-
labelClasses: 'col-sm-2 m-0 px-1',
|
|
87
|
-
controlClasses: 'col-sm-6',
|
|
88
|
-
showFields: [
|
|
89
|
-
{field: 'start', col: 6},
|
|
90
|
-
{field: 'end', col: 6}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
assignerObject: {
|
|
94
|
-
id: 'lfb-object',
|
|
95
|
-
labelPosition: 'left',
|
|
96
|
-
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
97
|
-
controlClasses: 'col-sm-10',
|
|
98
|
-
objectBodyClasses: 'shadow rounded p-1 mb-1 d-grid gap-1',
|
|
99
|
-
showFields: [
|
|
100
|
-
{field: 'display', col: 12},
|
|
101
|
-
{field: 'reference', col: 12},
|
|
102
|
-
{field: 'type', col: 12},
|
|
103
|
-
{field: 'identifier', col: 12}
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
61
|
identifierTable: {
|
|
107
62
|
id: 'identifier',
|
|
108
63
|
labelPosition: 'left',
|
|
@@ -900,7 +900,8 @@
|
|
|
900
900
|
"<",
|
|
901
901
|
"<=",
|
|
902
902
|
">=",
|
|
903
|
-
">"
|
|
903
|
+
">",
|
|
904
|
+
"ad"
|
|
904
905
|
],
|
|
905
906
|
"type": "string"
|
|
906
907
|
},
|
|
@@ -1085,6 +1086,16 @@
|
|
|
1085
1086
|
},
|
|
1086
1087
|
"additionalProperties": false,
|
|
1087
1088
|
"type": "object"
|
|
1089
|
+
},
|
|
1090
|
+
"__$valueSummary": {
|
|
1091
|
+
"description": "Generated summary of the selected UsageContext value.",
|
|
1092
|
+
"title": "Value",
|
|
1093
|
+
"pattern": "^[ \\r\\n\\t\\S]+$",
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"widget": {
|
|
1096
|
+
"id": "string",
|
|
1097
|
+
"tooltipFormat": "json"
|
|
1098
|
+
}
|
|
1088
1099
|
}
|
|
1089
1100
|
},
|
|
1090
1101
|
"additionalProperties": false,
|
|
@@ -1094,7 +1105,7 @@
|
|
|
1094
1105
|
"type": "object"
|
|
1095
1106
|
},
|
|
1096
1107
|
"type": "array",
|
|
1097
|
-
"title": "
|
|
1108
|
+
"title": "Usage Context"
|
|
1098
1109
|
},
|
|
1099
1110
|
"jurisdiction": {
|
|
1100
1111
|
"description": "A legal or geographic region in which the questionnaire is intended to be used.",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Presets are opt-in. Feature layouts map their local widget names to these
|
|
3
|
+
// deliberately scoped names through widgetPresetMap.
|
|
4
|
+
presets: {
|
|
5
|
+
dialogStringField: {
|
|
6
|
+
id: 'string',
|
|
7
|
+
labelPosition: 'left',
|
|
8
|
+
labelClasses: 'col-sm-2 m-0 px-1',
|
|
9
|
+
controlClasses: 'col-sm-10 m-0 p-0'
|
|
10
|
+
},
|
|
11
|
+
dialogNumberField: {
|
|
12
|
+
id: 'number',
|
|
13
|
+
labelPosition: 'left',
|
|
14
|
+
labelClasses: 'col-sm-2 m-0 px-1',
|
|
15
|
+
controlClasses: 'col-sm-10 m-0 p-0'
|
|
16
|
+
},
|
|
17
|
+
dialogDateRangeField: {
|
|
18
|
+
id: 'date-range',
|
|
19
|
+
labelPosition: 'left',
|
|
20
|
+
labelClasses: 'col-sm-2 m-0 px-1',
|
|
21
|
+
controlClasses: 'col-sm-6',
|
|
22
|
+
showFields: [
|
|
23
|
+
{field: 'start', col: 6},
|
|
24
|
+
{field: 'end', col: 6}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
dialogCodingTable: {
|
|
28
|
+
id: 'table',
|
|
29
|
+
labelPosition: 'left',
|
|
30
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
31
|
+
controlClasses: 'col-sm-10',
|
|
32
|
+
addButtonLabel: 'Add coding',
|
|
33
|
+
showFields: [
|
|
34
|
+
{field: 'display', col: 4, nolabel: true},
|
|
35
|
+
{field: 'code', col: 3, nolabel: true},
|
|
36
|
+
{field: 'system', col: 4, nolabel: true}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
dialogCodeableConceptObject: {
|
|
40
|
+
id: 'lfb-object',
|
|
41
|
+
labelPosition: 'left',
|
|
42
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
43
|
+
controlClasses: 'col-sm-10',
|
|
44
|
+
objectBodyClasses: 'shadow rounded p-1 mb-1',
|
|
45
|
+
showFields: [
|
|
46
|
+
{field: 'text', col: 12},
|
|
47
|
+
{field: 'coding', col: 12}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
dialogReferenceObject: {
|
|
51
|
+
id: 'lfb-object',
|
|
52
|
+
labelPosition: 'left',
|
|
53
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
54
|
+
controlClasses: 'col-sm-10',
|
|
55
|
+
objectBodyClasses: 'shadow rounded p-1 mb-1',
|
|
56
|
+
showFields: [
|
|
57
|
+
{field: 'display', col: 12},
|
|
58
|
+
{field: 'reference', col: 12},
|
|
59
|
+
{field: 'type', col: 12},
|
|
60
|
+
{field: 'identifier', col: 12}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
formStringField: {
|
|
64
|
+
id: 'string',
|
|
65
|
+
labelPosition: 'left',
|
|
66
|
+
labelClasses: 'col-sm-2 m-0 ps-0 pe-1',
|
|
67
|
+
controlClasses: 'col-sm-10 m-0 p-0'
|
|
68
|
+
},
|
|
69
|
+
formTextareaField: {
|
|
70
|
+
id: 'textarea',
|
|
71
|
+
labelPosition: 'left',
|
|
72
|
+
labelClasses: 'col-sm-2 m-0 ps-0 pe-1',
|
|
73
|
+
controlClasses: 'col-sm-10 m-0 p-0'
|
|
74
|
+
},
|
|
75
|
+
formInstantField: {
|
|
76
|
+
id: 'instant',
|
|
77
|
+
labelPosition: 'left',
|
|
78
|
+
labelClasses: 'col-sm-2 m-0 ps-0 pe-1',
|
|
79
|
+
controlClasses: 'col-sm-3',
|
|
80
|
+
placeholder: 'yyyy-MM-dd hh:mm:ss (AM|PM)'
|
|
81
|
+
},
|
|
82
|
+
formPositiveIntegerField: {
|
|
83
|
+
id: 'positive-integer',
|
|
84
|
+
labelPosition: 'left',
|
|
85
|
+
labelClasses: 'col-sm-2 m-0 ps-0 pe-1',
|
|
86
|
+
controlClasses: 'col-sm-10 m-0 p-0'
|
|
87
|
+
},
|
|
88
|
+
formUnsignedIntegerField: {
|
|
89
|
+
id: 'unsigned-integer',
|
|
90
|
+
labelPosition: 'left',
|
|
91
|
+
labelClasses: 'col-sm-2 m-0 ps-0 pe-1',
|
|
92
|
+
controlClasses: 'col-sm-10 m-0 p-0'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
formLayout: {
|
|
3
|
+
targetPage: 'usageContextDialog',
|
|
4
|
+
basic: [
|
|
5
|
+
{
|
|
6
|
+
showFields: [
|
|
7
|
+
{field: 'code', col: 12},
|
|
8
|
+
{field: '__$valueType', col: 12},
|
|
9
|
+
{field: 'valueCodeableConcept', col: 12},
|
|
10
|
+
{field: 'valueQuantity', col: 12},
|
|
11
|
+
{field: 'valueRange', col: 12},
|
|
12
|
+
{field: 'valueReference', col: 12}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
advanced: []
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
overridePropertyLabels: {
|
|
20
|
+
'$.properties.code': 'Code',
|
|
21
|
+
'$.properties.code.properties.display': 'Display',
|
|
22
|
+
'$.properties.code.properties.code': 'Code',
|
|
23
|
+
'$.properties.code.properties.system': 'System',
|
|
24
|
+
'$.properties.__$valueType': 'Value',
|
|
25
|
+
'$.properties.valueCodeableConcept': 'Value codeable concept',
|
|
26
|
+
'$.properties.valueCodeableConcept.properties.text': 'Text',
|
|
27
|
+
'$.properties.valueCodeableConcept.properties.coding': 'Coding',
|
|
28
|
+
'$.properties.valueCodeableConcept.properties.coding.items.properties.display': 'Display',
|
|
29
|
+
'$.properties.valueCodeableConcept.properties.coding.items.properties.code': 'Code',
|
|
30
|
+
'$.properties.valueCodeableConcept.properties.coding.items.properties.system': 'System',
|
|
31
|
+
'$.properties.valueQuantity': 'Value quantity',
|
|
32
|
+
'$.properties.valueQuantity.properties.value': 'Value',
|
|
33
|
+
'$.properties.valueQuantity.properties.comparator': 'Comparator',
|
|
34
|
+
'$.properties.valueQuantity.properties.unit': 'Unit',
|
|
35
|
+
'$.properties.valueQuantity.properties.system': 'System',
|
|
36
|
+
'$.properties.valueQuantity.properties.code': 'Code',
|
|
37
|
+
'$.properties.valueRange': 'Value range',
|
|
38
|
+
'$.properties.valueRange.properties.low': 'Low',
|
|
39
|
+
'$.properties.valueRange.properties.low.properties.value': 'Value',
|
|
40
|
+
'$.properties.valueRange.properties.low.properties.unit': 'Unit',
|
|
41
|
+
'$.properties.valueRange.properties.low.properties.system': 'System',
|
|
42
|
+
'$.properties.valueRange.properties.low.properties.code': 'Code',
|
|
43
|
+
'$.properties.valueRange.properties.high': 'High',
|
|
44
|
+
'$.properties.valueRange.properties.high.properties.value': 'Value',
|
|
45
|
+
'$.properties.valueRange.properties.high.properties.unit': 'Unit',
|
|
46
|
+
'$.properties.valueRange.properties.high.properties.system': 'System',
|
|
47
|
+
'$.properties.valueRange.properties.high.properties.code': 'Code',
|
|
48
|
+
'$.properties.valueReference': 'Value reference',
|
|
49
|
+
'$.properties.valueReference.properties.display': 'Display',
|
|
50
|
+
'$.properties.valueReference.properties.reference': 'Reference',
|
|
51
|
+
'$.properties.valueReference.properties.type': 'Type',
|
|
52
|
+
'$.properties.valueReference.properties.identifier': 'Identifier'
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
widgetPresetMap: {
|
|
56
|
+
number: 'dialogNumberField',
|
|
57
|
+
codingTable: 'dialogCodingTable',
|
|
58
|
+
codeableConceptObject: 'dialogCodeableConceptObject',
|
|
59
|
+
referenceObject: 'dialogReferenceObject'
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
widgets: {
|
|
63
|
+
string: {
|
|
64
|
+
id: 'string',
|
|
65
|
+
labelPosition: 'left',
|
|
66
|
+
labelClasses: 'col-sm-2 m-0 px-1',
|
|
67
|
+
controlClasses: 'col-sm-10 m-0'
|
|
68
|
+
},
|
|
69
|
+
url: {
|
|
70
|
+
id: 'url',
|
|
71
|
+
labelPosition: 'left',
|
|
72
|
+
labelClasses: 'col-sm-2 m-0 px-1',
|
|
73
|
+
controlClasses: 'col-sm-10 m-0'
|
|
74
|
+
},
|
|
75
|
+
valueTypeSelect: {
|
|
76
|
+
id: 'select',
|
|
77
|
+
labelPosition: 'left',
|
|
78
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
79
|
+
controlClasses: 'col-sm-10 m-0 p-0',
|
|
80
|
+
suppressEmptyInvalidStyle: true,
|
|
81
|
+
selectOptionsMap: {
|
|
82
|
+
map: {
|
|
83
|
+
valueCodeableConcept: 'Codeable concept',
|
|
84
|
+
valueQuantity: 'Quantity',
|
|
85
|
+
valueRange: 'Range',
|
|
86
|
+
valueReference: 'Reference'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
comparatorSelect: {
|
|
91
|
+
id: 'select',
|
|
92
|
+
labelPosition: 'left',
|
|
93
|
+
labelClasses: 'col-sm-2 m-0 px-1',
|
|
94
|
+
controlClasses: 'col-sm-10 m-0 p-0',
|
|
95
|
+
suppressEmptyInvalidStyle: true,
|
|
96
|
+
addEmptyOption: true
|
|
97
|
+
},
|
|
98
|
+
object: {
|
|
99
|
+
id: 'lfb-object',
|
|
100
|
+
labelPosition: 'left',
|
|
101
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
102
|
+
controlClasses: 'col-sm-10',
|
|
103
|
+
objectBodyClasses: 'shadow rounded p-1 mb-1'
|
|
104
|
+
},
|
|
105
|
+
codeObject: {
|
|
106
|
+
id: 'usage-context-code',
|
|
107
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
108
|
+
objectBodyClasses: 'col-sm-10 shadow rounded p-1 mb-1'
|
|
109
|
+
},
|
|
110
|
+
quantityObject: {
|
|
111
|
+
id: 'lfb-object',
|
|
112
|
+
labelPosition: 'left',
|
|
113
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
114
|
+
controlClasses: 'col-sm-10',
|
|
115
|
+
objectBodyClasses: 'shadow rounded p-1 mb-1',
|
|
116
|
+
showFields: [
|
|
117
|
+
{field: 'value', col: 12},
|
|
118
|
+
{field: 'comparator', col: 12},
|
|
119
|
+
{field: 'unit', col: 12},
|
|
120
|
+
{field: 'system', col: 12},
|
|
121
|
+
{field: 'code', col: 12}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
simpleQuantityObject: {
|
|
125
|
+
id: 'lfb-object',
|
|
126
|
+
labelPosition: 'left',
|
|
127
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
128
|
+
controlClasses: 'col-sm-10',
|
|
129
|
+
objectBodyClasses: 'shadow rounded p-1 mb-1',
|
|
130
|
+
showFields: [
|
|
131
|
+
{field: 'value', col: 12},
|
|
132
|
+
{field: 'unit', col: 12},
|
|
133
|
+
{field: 'system', col: 12},
|
|
134
|
+
{field: 'code', col: 12}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
rangeObject: {
|
|
138
|
+
id: 'lfb-object',
|
|
139
|
+
labelPosition: 'left',
|
|
140
|
+
labelClasses: 'col-sm-2 ps-0 pe-1',
|
|
141
|
+
controlClasses: 'col-sm-10',
|
|
142
|
+
objectBodyClasses: 'shadow rounded p-1 mb-1',
|
|
143
|
+
showFields: [
|
|
144
|
+
{field: 'low', col: 12},
|
|
145
|
+
{field: 'high', col: 12}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
widgetsMap: {
|
|
151
|
+
valueTypeSelect: [
|
|
152
|
+
'$.properties.__$valueType'
|
|
153
|
+
],
|
|
154
|
+
comparatorSelect: [
|
|
155
|
+
'$.properties.valueQuantity.properties.comparator'
|
|
156
|
+
],
|
|
157
|
+
string: [
|
|
158
|
+
'$.properties.code.properties.display',
|
|
159
|
+
'$.properties.code.properties.code',
|
|
160
|
+
'$.properties.valueCodeableConcept.properties.text',
|
|
161
|
+
'$.properties.valueCodeableConcept.properties.coding.items.properties.display',
|
|
162
|
+
'$.properties.valueCodeableConcept.properties.coding.items.properties.code',
|
|
163
|
+
'$.properties.valueQuantity.properties.unit',
|
|
164
|
+
'$.properties.valueQuantity.properties.code',
|
|
165
|
+
'$.properties.valueRange.properties.low.properties.unit',
|
|
166
|
+
'$.properties.valueRange.properties.low.properties.code',
|
|
167
|
+
'$.properties.valueRange.properties.high.properties.unit',
|
|
168
|
+
'$.properties.valueRange.properties.high.properties.code',
|
|
169
|
+
'$.properties.valueReference.properties.display',
|
|
170
|
+
'$.properties.valueReference.properties.reference',
|
|
171
|
+
'$.properties.valueReference.properties.type'
|
|
172
|
+
],
|
|
173
|
+
url: [
|
|
174
|
+
'$.properties.code.properties.system',
|
|
175
|
+
'$.properties.valueCodeableConcept.properties.coding.items.properties.system',
|
|
176
|
+
'$.properties.valueQuantity.properties.system',
|
|
177
|
+
'$.properties.valueRange.properties.low.properties.system',
|
|
178
|
+
'$.properties.valueRange.properties.high.properties.system'
|
|
179
|
+
],
|
|
180
|
+
number: [
|
|
181
|
+
'$.properties.valueQuantity.properties.value',
|
|
182
|
+
'$.properties.valueRange.properties.low.properties.value',
|
|
183
|
+
'$.properties.valueRange.properties.high.properties.value'
|
|
184
|
+
],
|
|
185
|
+
codeObject: [
|
|
186
|
+
'$.properties.code'
|
|
187
|
+
],
|
|
188
|
+
codeableConceptObject: [
|
|
189
|
+
'$.properties.valueCodeableConcept'
|
|
190
|
+
],
|
|
191
|
+
codingTable: [
|
|
192
|
+
'$.properties.valueCodeableConcept.properties.coding'
|
|
193
|
+
],
|
|
194
|
+
quantityObject: [
|
|
195
|
+
'$.properties.valueQuantity'
|
|
196
|
+
],
|
|
197
|
+
simpleQuantityObject: [
|
|
198
|
+
'$.properties.valueRange.properties.low',
|
|
199
|
+
'$.properties.valueRange.properties.high'
|
|
200
|
+
],
|
|
201
|
+
rangeObject: [
|
|
202
|
+
'$.properties.valueRange'
|
|
203
|
+
],
|
|
204
|
+
referenceObject: [
|
|
205
|
+
'$.properties.valueReference'
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -34,13 +34,15 @@
|
|
|
34
34
|
// Specify widget layout.
|
|
35
35
|
// id is widget schema registry defined in lforms-widget-registry.ts
|
|
36
36
|
// Label classes and control classes are used in the widget templates to fine tune widget layout positions
|
|
37
|
+
widgetPresetMap: {
|
|
38
|
+
inputBox: 'formStringField',
|
|
39
|
+
textArea: 'formTextareaField',
|
|
40
|
+
instant: 'formInstantField',
|
|
41
|
+
'positive-integer': 'formPositiveIntegerField',
|
|
42
|
+
'unsigned-integer': 'formUnsignedIntegerField'
|
|
43
|
+
},
|
|
44
|
+
|
|
37
45
|
widgets: {
|
|
38
|
-
inputBox: {
|
|
39
|
-
id: "string",
|
|
40
|
-
labelPosition: "left",
|
|
41
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
42
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
43
|
-
},
|
|
44
46
|
idInput: {
|
|
45
47
|
id: "string",
|
|
46
48
|
labelPosition: "left",
|
|
@@ -49,31 +51,6 @@
|
|
|
49
51
|
showEmptyError: true,
|
|
50
52
|
"note": "* This field is mandatory, and must be unique across the questionnaire. If you change it, make sure to update any places in the questionnaire that reference this field."
|
|
51
53
|
},
|
|
52
|
-
textArea: {
|
|
53
|
-
id: "textarea",
|
|
54
|
-
labelPosition: "left",
|
|
55
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
56
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
57
|
-
},
|
|
58
|
-
instant: {
|
|
59
|
-
id: "instant",
|
|
60
|
-
labelPosition: "left",
|
|
61
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
62
|
-
controlClasses: "col-sm-3",
|
|
63
|
-
placeholder: 'yyyy-MM-dd hh:mm:ss (AM|PM)'
|
|
64
|
-
},
|
|
65
|
-
"positive-integer": {
|
|
66
|
-
id: "positive-integer",
|
|
67
|
-
labelPosition: "left",
|
|
68
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
69
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
70
|
-
},
|
|
71
|
-
"unsigned-integer": {
|
|
72
|
-
id: "unsigned-integer",
|
|
73
|
-
labelPosition: "left",
|
|
74
|
-
labelClasses: "col-sm-2 m-0 ps-0 pe-1",
|
|
75
|
-
controlClasses: "col-sm-10 m-0 p-0"
|
|
76
|
-
},
|
|
77
54
|
"lb-radio": {
|
|
78
55
|
"id": "lb-radio",
|
|
79
56
|
"layout": "row",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version": "12.
|
|
1
|
+
{"version": "12.3.0"}
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
<body class="bg-secondary">
|
|
20
20
|
<lfb-root></lfb-root>
|
|
21
21
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
22
|
-
<script src="runtime.821ff28674267dd4.js" type="module"></script><script src="polyfills.315ba4e3241084b8.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.
|
|
22
|
+
<script src="runtime.821ff28674267dd4.js" type="module"></script><script src="polyfills.315ba4e3241084b8.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.4c9c7733796a9515.js" type="module"></script></body>
|
|
23
23
|
</html>
|
|
24
24
|
|