formbuilder-lhcforms 11.0.2 → 11.0.4
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/items-layout.json5 +2 -0
- package/dist/formbuilder-lhcforms/assets/ngx-item.schema.json5 +135 -3
- package/dist/formbuilder-lhcforms/assets/version.json +1 -1
- package/dist/formbuilder-lhcforms/index.html +1 -1
- package/dist/formbuilder-lhcforms/main.e97786ea8cd39c29.js +1 -0
- package/dist/formbuilder-lhcforms/tests/window-open-test.html +117 -0
- package/package.json +2 -2
- package/dist/formbuilder-lhcforms/main.69e6aae5bf754283.js +0 -1
|
@@ -52,9 +52,11 @@
|
|
|
52
52
|
{
|
|
53
53
|
"showFields": [
|
|
54
54
|
{ "field": "linkId", "col": 12 },
|
|
55
|
+
{ "field": "__$enableWhenMethod", "col": 12 },
|
|
55
56
|
{ "field": "enableWhen", "col": 12 },
|
|
56
57
|
{ "field": "enableBehavior", "col": 12 },
|
|
57
58
|
{ "field": "disabledDisplay", "col": 12 },
|
|
59
|
+
{ "field": "__$enableWhenExpression", "col": 12 },
|
|
58
60
|
{ "field": "__$terminologyServer", "col": 12 },
|
|
59
61
|
{ "field": "__$observationLinkPeriod", "col": 12},
|
|
60
62
|
{ "field": "__$observationExtract", "col": 12}
|
|
@@ -369,6 +369,31 @@
|
|
|
369
369
|
"id": "hidden"
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
|
+
|
|
373
|
+
"__$enableWhenMethod": {
|
|
374
|
+
"description": "'enableWhen condition' is a structured way to control item visibility based on specific answers to previous questions, ideal for simple logic using built-in operators. 'enableWhenExpression' allows for more complex, custom visibility rules using FHIRPath expressions, and is preferred when logic goes beyond what enableWhen supports, such as referencing multiple values or applying calculations.",
|
|
375
|
+
"title": "Conditional method",
|
|
376
|
+
"enum": [
|
|
377
|
+
"enablewhen-cond",
|
|
378
|
+
"enablewhen-expression",
|
|
379
|
+
"none"
|
|
380
|
+
],
|
|
381
|
+
"default": "none",
|
|
382
|
+
"type": "string",
|
|
383
|
+
|
|
384
|
+
"widget": {
|
|
385
|
+
"id": "enable-when-method",
|
|
386
|
+
"labelPosition": "left",
|
|
387
|
+
"labelClasses": "col-2 ps-0 pe-1",
|
|
388
|
+
"controlClasses": "col-auto btn-group btn-group-sm m-auto p-0",
|
|
389
|
+
"labels": {
|
|
390
|
+
"enablewhen-cond": "enableWhen condition and behavior",
|
|
391
|
+
"enablewhen-expression": "enableWhen expression",
|
|
392
|
+
"none": "None"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
|
|
372
397
|
"enableWhen": {
|
|
373
398
|
"description": "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.",
|
|
374
399
|
"items": {
|
|
@@ -752,8 +777,12 @@
|
|
|
752
777
|
},
|
|
753
778
|
"type": "array",
|
|
754
779
|
"title": "Conditional display",
|
|
780
|
+
"visibleIf": {
|
|
781
|
+
"__$enableWhenMethod": ["enablewhen-cond"]
|
|
782
|
+
},
|
|
755
783
|
"widget": {
|
|
756
784
|
"noCollapseButton": true,
|
|
785
|
+
"noTableLabel": true,
|
|
757
786
|
"labelPosition": "left",
|
|
758
787
|
"labelWidthClass": "col-sm-2 pe-1",
|
|
759
788
|
"controlWidthClass": "col-sm-10",
|
|
@@ -782,6 +811,9 @@
|
|
|
782
811
|
],
|
|
783
812
|
"type": "string",
|
|
784
813
|
"title": "Show this item when",
|
|
814
|
+
"visibleIf": {
|
|
815
|
+
"__$enableWhenMethod": ["enablewhen-cond"]
|
|
816
|
+
},
|
|
785
817
|
"widget": {
|
|
786
818
|
"id": "enable-behavior",
|
|
787
819
|
"layout": "row",
|
|
@@ -789,6 +821,69 @@
|
|
|
789
821
|
"controlWidthClass": "col-sm-7"
|
|
790
822
|
}
|
|
791
823
|
},
|
|
824
|
+
"__$enableWhenExpression": {
|
|
825
|
+
"description": "An expression that evaluates to a boolean value to determine whether the item should be enabled.",
|
|
826
|
+
"title": "Expression",
|
|
827
|
+
"type": "object",
|
|
828
|
+
"properties": {
|
|
829
|
+
"id": {
|
|
830
|
+
"description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
|
|
831
|
+
"title": "Id",
|
|
832
|
+
"pattern": "^[ \\r\\n\\t\\S]+$",
|
|
833
|
+
"type": "string",
|
|
834
|
+
"widget": {"id": "hidden"}
|
|
835
|
+
},
|
|
836
|
+
"url": {
|
|
837
|
+
"description": "A location where the data can be accessed.",
|
|
838
|
+
"pattern": "^\\S*$",
|
|
839
|
+
"type": "string"
|
|
840
|
+
},
|
|
841
|
+
"extension": {
|
|
842
|
+
"description": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
|
|
843
|
+
"items": {
|
|
844
|
+
"$ref": "#/definitions/Extension"
|
|
845
|
+
},
|
|
846
|
+
"type": "array",
|
|
847
|
+
"title": "Extension",
|
|
848
|
+
"widget": {
|
|
849
|
+
"id": "hidden"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"valueString": {
|
|
853
|
+
"description": "A potential answer that's allowed as the answer to this question.",
|
|
854
|
+
"pattern": "^[ \\r\\n\\t\\S]+$",
|
|
855
|
+
"type": "string",
|
|
856
|
+
"title": "Value string",
|
|
857
|
+
"visibleIf": {
|
|
858
|
+
"/type": ["$EXP$ target.value == 'string' || target.value == 'text'"]
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"valueExpression": {
|
|
862
|
+
"description": "The value of the Output parameter as a basic type.",
|
|
863
|
+
"$ref": "#/definitions/Expression"
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"visibleIf": {
|
|
867
|
+
"__$enableWhenMethod": ["enablewhen-expression"]
|
|
868
|
+
},
|
|
869
|
+
"widget": {
|
|
870
|
+
"id": "expression-editor",
|
|
871
|
+
"expressionUri": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
|
|
872
|
+
"expressionLabel": "enableWhen Expression",
|
|
873
|
+
"noTableLabel": true,
|
|
874
|
+
"showExpression": true,
|
|
875
|
+
"displayExpressionEditorSections": {
|
|
876
|
+
titleSection: true,
|
|
877
|
+
uneditableVariablesSection: true,
|
|
878
|
+
itemVariablesSection: true,
|
|
879
|
+
outputExpressionSection: true
|
|
880
|
+
},
|
|
881
|
+
"labelPosition": "left",
|
|
882
|
+
"labelClasses": "col-2 ps-0 pe-1",
|
|
883
|
+
"controlClasses": "col form-control form-control-sm"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
|
|
792
887
|
"required": {
|
|
793
888
|
"description": "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.",
|
|
794
889
|
"title": "Answer required",
|
|
@@ -878,9 +973,14 @@
|
|
|
878
973
|
"type": "string",
|
|
879
974
|
"enum": ["answer-expression"],
|
|
880
975
|
"title": "Answer expression"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"type": "string",
|
|
979
|
+
"enum": ["none"],
|
|
980
|
+
"title": "None"
|
|
881
981
|
}
|
|
882
982
|
],
|
|
883
|
-
"default": "
|
|
983
|
+
"default": "none",
|
|
884
984
|
"type": "string",
|
|
885
985
|
"visibleIf": {
|
|
886
986
|
"__$isAnswerList": [true]
|
|
@@ -2120,6 +2220,7 @@
|
|
|
2120
2220
|
"id": "variable",
|
|
2121
2221
|
"expressionUri": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
2122
2222
|
"showExpression": false,
|
|
2223
|
+
"expressionLabel": "",
|
|
2123
2224
|
"displayExpressionEditorSections": {
|
|
2124
2225
|
titleSection: true,
|
|
2125
2226
|
uneditableVariablesSection: false,
|
|
@@ -2143,7 +2244,7 @@
|
|
|
2143
2244
|
}
|
|
2144
2245
|
},
|
|
2145
2246
|
"__$initialExpression": {
|
|
2146
|
-
"description": "
|
|
2247
|
+
"description": "A FHIRPath expression used to compute the initial (default) value of a questionnaire item when the form is first rendered.",
|
|
2147
2248
|
"title": "Expression",
|
|
2148
2249
|
"type": "object",
|
|
2149
2250
|
"properties": {
|
|
@@ -2194,7 +2295,9 @@
|
|
|
2194
2295
|
{ name: 'Computed continuously', uri: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression' },
|
|
2195
2296
|
{ name: 'Only computed when the form loads', uri: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression' }
|
|
2196
2297
|
],
|
|
2298
|
+
"noTableLabel": true,
|
|
2197
2299
|
"showExpression": true,
|
|
2300
|
+
"expressionLabel": "Output Expression",
|
|
2198
2301
|
"displayExpressionEditorSections": {
|
|
2199
2302
|
titleSection: true,
|
|
2200
2303
|
uneditableVariablesSection: true,
|
|
@@ -2207,7 +2310,7 @@
|
|
|
2207
2310
|
}
|
|
2208
2311
|
},
|
|
2209
2312
|
"__$calculatedExpression": {
|
|
2210
|
-
"description": "
|
|
2313
|
+
"description": "A FHIRPath expression that determines the current value of a Questionnaire item based on other answers or context.",
|
|
2211
2314
|
"title": "Expression",
|
|
2212
2315
|
"type": "object",
|
|
2213
2316
|
"properties": {
|
|
@@ -2258,7 +2361,9 @@
|
|
|
2258
2361
|
{ name: 'Computed continuously', uri: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression' },
|
|
2259
2362
|
{ name: 'Only computed when the form loads', uri: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression' }
|
|
2260
2363
|
],
|
|
2364
|
+
"noTableLabel": true,
|
|
2261
2365
|
"showExpression": true,
|
|
2366
|
+
"expressionLabel": "Output Expression",
|
|
2262
2367
|
"displayExpressionEditorSections": {
|
|
2263
2368
|
titleSection: true,
|
|
2264
2369
|
uneditableVariablesSection: true,
|
|
@@ -2318,7 +2423,9 @@
|
|
|
2318
2423
|
"widget": {
|
|
2319
2424
|
"id": "expression-editor",
|
|
2320
2425
|
"expressionUri": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
|
|
2426
|
+
"noTableLabel": true,
|
|
2321
2427
|
"showExpression": true,
|
|
2428
|
+
"expressionLabel": "Answer Expression",
|
|
2322
2429
|
"displayExpressionEditorSections": {
|
|
2323
2430
|
titleSection: true,
|
|
2324
2431
|
uneditableVariablesSection: false,
|
|
@@ -2591,6 +2698,9 @@
|
|
|
2591
2698
|
],
|
|
2592
2699
|
"type": "string",
|
|
2593
2700
|
"title": "Hide or show this item when conditional display evaluates to 'false'?",
|
|
2701
|
+
"visibleIf": {
|
|
2702
|
+
"__$enableWhenMethod": ["enablewhen-cond"]
|
|
2703
|
+
},
|
|
2594
2704
|
"widget": {
|
|
2595
2705
|
"id": "enable-behavior",
|
|
2596
2706
|
"layout": "row",
|
|
@@ -2922,6 +3032,17 @@
|
|
|
2922
3032
|
}
|
|
2923
3033
|
]
|
|
2924
3034
|
},
|
|
3035
|
+
{
|
|
3036
|
+
"fields": [
|
|
3037
|
+
"__$enableWhenMethod"
|
|
3038
|
+
],
|
|
3039
|
+
"showFields": [
|
|
3040
|
+
{
|
|
3041
|
+
"field": "__$enableWhenMethod",
|
|
3042
|
+
"col": 12
|
|
3043
|
+
}
|
|
3044
|
+
]
|
|
3045
|
+
},
|
|
2925
3046
|
{
|
|
2926
3047
|
"fields": [
|
|
2927
3048
|
"enableWhen"
|
|
@@ -2944,6 +3065,17 @@
|
|
|
2944
3065
|
}
|
|
2945
3066
|
]
|
|
2946
3067
|
},
|
|
3068
|
+
{
|
|
3069
|
+
"fields": [
|
|
3070
|
+
"__$enableWhenExpression"
|
|
3071
|
+
],
|
|
3072
|
+
"showFields": [
|
|
3073
|
+
{
|
|
3074
|
+
"field": "__$enableWhenExpression",
|
|
3075
|
+
"col": 12
|
|
3076
|
+
}
|
|
3077
|
+
]
|
|
3078
|
+
},
|
|
2947
3079
|
{
|
|
2948
3080
|
"fields": [
|
|
2949
3081
|
"disabledDisplay"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version": "11.0.
|
|
1
|
+
{"version": "11.0.4"}
|
|
@@ -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.a897ac1babe9b915.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.a897ac1babe9b915.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.e97786ea8cd39c29.js" type="module"></script></body>
|
|
23
23
|
</html>
|
|
24
24
|
|