formbuilder-lhcforms 9.7.7 → 10.0.1
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/LICENSE.md +1 -1
- package/dist/formbuilder-lhcforms/3rdpartylicenses.txt +43 -0
- package/dist/formbuilder-lhcforms/assets/items-layout.json5 +3 -0
- package/dist/formbuilder-lhcforms/assets/ngx-item.schema.json5 +146 -14
- package/dist/formbuilder-lhcforms/assets/version.json +1 -1
- package/dist/formbuilder-lhcforms/index.html +1 -1
- package/dist/formbuilder-lhcforms/main.fc2965aae3d98501.js +1 -0
- package/package.json +29 -12
- package/dist/formbuilder-lhcforms/main.b0e4807b4ffe0ee9.js +0 -1
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Licensing and Copyright Notice and Terms of Use
|
|
4
4
|
|
|
5
|
-
Owner Notice: This software
|
|
5
|
+
Owner Notice: This software, including any associated website-service or
|
|
6
6
|
downloadable source (code) was developed by the Lister Hill National Center
|
|
7
7
|
for Biomedical Communications (LHNCBC), a research and development division
|
|
8
8
|
of the U.S. National Library of Medicine (NLM), with the permission and based
|
|
@@ -2598,6 +2598,49 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
2598
2598
|
SOFTWARE.
|
|
2599
2599
|
|
|
2600
2600
|
|
|
2601
|
+
questionnaire-version-converter
|
|
2602
|
+
See LICENSE.md
|
|
2603
|
+
# LICENSE
|
|
2604
|
+
|
|
2605
|
+
Licensing and Copyright Notice and Terms of Use
|
|
2606
|
+
|
|
2607
|
+
Owner Notice: This software, including any associated website-service or
|
|
2608
|
+
downloadable source (code) was developed by the Lister Hill National Center
|
|
2609
|
+
for Biomedical Communications (LHNCBC), a research and development division
|
|
2610
|
+
of the U.S. National Library of Medicine (NLM), NIH.
|
|
2611
|
+
|
|
2612
|
+
The following terms and conditions are based on the BSD open-source license.
|
|
2613
|
+
|
|
2614
|
+
If publishing research that used this software, please include a citation that
|
|
2615
|
+
acknowledges it.
|
|
2616
|
+
|
|
2617
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
2618
|
+
are permitted for commercial and non-commercial purposes and products alike,
|
|
2619
|
+
provided that the following conditions are met:
|
|
2620
|
+
|
|
2621
|
+
* Redistributions of source code shall retain the above Owner Notice, this
|
|
2622
|
+
list of conditions and the following disclaimer, and display them prominently.
|
|
2623
|
+
* Redistributions in binary form shall prominently reproduce the above Owner
|
|
2624
|
+
Notice, this list of conditions and the following disclaimer in the
|
|
2625
|
+
documentation and/or other materials provided with the distribution.
|
|
2626
|
+
* Neither the names of the National Library of Medicine (NLM), the Lister
|
|
2627
|
+
Hill National Center for Biomedical Communications (LHNCBC), the National
|
|
2628
|
+
Institutes of Health (NIH), nor the names of any of the software contributors
|
|
2629
|
+
may be used to endorse or promote products derived from this software without
|
|
2630
|
+
specific prior written permission.
|
|
2631
|
+
|
|
2632
|
+
THIS SOFTWARE IS PROVIDED BY THE OWNER AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
|
|
2633
|
+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
2634
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
|
2635
|
+
SHALL THE OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
2636
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
2637
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
2638
|
+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
2639
|
+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
2640
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
2641
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
2642
|
+
|
|
2643
|
+
|
|
2601
2644
|
reflect.getprototypeof
|
|
2602
2645
|
MIT
|
|
2603
2646
|
MIT License
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
{ "field": "__$helpText", "col": 12},
|
|
12
12
|
{ "field": "type", "col": 12 },
|
|
13
13
|
{ "field": "initial", "title": "Default value", "col": 12 },
|
|
14
|
+
{ "field": "__$isAnswerList", "col": 12 },
|
|
14
15
|
{ "field": "__$answerOptionMethods", "col": 12 },
|
|
15
16
|
{ "field": "answerValueSet", "col": 12 },
|
|
16
17
|
{ "field": "answerOption", "title": "Answer choices", "col": 12 },
|
|
18
|
+
{ "field": "answerConstraint", "col": 12 },
|
|
17
19
|
{ "field": "__$itemControl", "col": 12 },
|
|
18
20
|
{ "field": "__$itemControlGroup", "col": 12 },
|
|
19
21
|
{ "field": "__$itemControlDisplay", "col": 12 },
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
{ "field": "linkId", "col": 12 },
|
|
45
47
|
{ "field": "enableWhen", "col": 12 },
|
|
46
48
|
{ "field": "enableBehavior", "col": 12 },
|
|
49
|
+
{ "field": "disabledDisplay", "col": 12 },
|
|
47
50
|
{ "field": "__$terminologyServer", "col": 12 },
|
|
48
51
|
{ "field": "__$observationLinkPeriod", "col": 12},
|
|
49
52
|
{ "field": "__$observationExtract", "col": 12}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"type": {
|
|
31
|
-
"description": "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer,
|
|
31
|
+
"description": "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coding, etc.). Header implies group if it has children. No children implies display type",
|
|
32
32
|
"enum": [
|
|
33
33
|
"boolean",
|
|
34
34
|
"decimal",
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
"string",
|
|
40
40
|
"text",
|
|
41
41
|
"url",
|
|
42
|
-
"
|
|
43
|
-
"open-choice",
|
|
42
|
+
"coding",
|
|
44
43
|
"attachment",
|
|
45
44
|
"reference",
|
|
46
45
|
"quantity",
|
|
@@ -93,6 +92,33 @@
|
|
|
93
92
|
"type": "object"
|
|
94
93
|
},
|
|
95
94
|
"visibleIf": {
|
|
95
|
+
"oneOf": [
|
|
96
|
+
// When no answer list, show for these types.
|
|
97
|
+
{
|
|
98
|
+
"allOf": [
|
|
99
|
+
{
|
|
100
|
+
"type": ["$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url'"]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"__$isAnswerList": ["$EXP$ target.value == false || target.value == undefined"]
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
// For answer list, exclude showing for optionsOnly constraint.
|
|
108
|
+
{
|
|
109
|
+
"allOf": [
|
|
110
|
+
{
|
|
111
|
+
"type": ["$EXP$ target.value != 'coding'"]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"__$isAnswerList": [true]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"answerConstraint": ["$EXP$ target.value == 'optionsOrType' || target.value == 'optionsOrString'"]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
}
|
|
121
|
+
],
|
|
96
122
|
"type": ["$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url'"]
|
|
97
123
|
},
|
|
98
124
|
"widget": {
|
|
@@ -118,7 +144,7 @@
|
|
|
118
144
|
"pattern": "^-?([0]|([1-9][0-9]*))$",
|
|
119
145
|
"type": "number",
|
|
120
146
|
"visibleIf": {
|
|
121
|
-
"
|
|
147
|
+
"__$restrictions": ["$ANY$"]
|
|
122
148
|
},
|
|
123
149
|
"widget": {
|
|
124
150
|
"id": "hidden",
|
|
@@ -557,7 +583,7 @@
|
|
|
557
583
|
"visibleIf": {
|
|
558
584
|
"allOf": [
|
|
559
585
|
{
|
|
560
|
-
"__$answerType": ["$EXP$ target.value == '
|
|
586
|
+
"__$answerType": ["$EXP$ target.value == 'coding'"]
|
|
561
587
|
},
|
|
562
588
|
{
|
|
563
589
|
"operator": ["$EXP$ target.value == '=' || target.value == '!='"]
|
|
@@ -788,6 +814,24 @@
|
|
|
788
814
|
"controlClasses": "col-auto btn-group btn-group-sm ps-0"
|
|
789
815
|
}
|
|
790
816
|
},
|
|
817
|
+
"__$isAnswerList": {
|
|
818
|
+
"description": "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.",
|
|
819
|
+
"title": "Create answer list",
|
|
820
|
+
"pattern": "^true|false$",
|
|
821
|
+
"type": "boolean",
|
|
822
|
+
"default": false,
|
|
823
|
+
"visibleIf": {
|
|
824
|
+
"type": [
|
|
825
|
+
"$EXP$ target.value == 'integer' || target.value == 'date' || target.value == 'time' || target.value == 'string' || target.value == 'text' || target.value == 'coding'"
|
|
826
|
+
]
|
|
827
|
+
},
|
|
828
|
+
"widget": {
|
|
829
|
+
"id": "boolean-radio",
|
|
830
|
+
"labelClasses": "col-2 ps-0 pe-1",
|
|
831
|
+
"controlClasses": "col-auto btn-group btn-group-sm ps-0",
|
|
832
|
+
"optionLabels": [[false, "No"], [true, "Yes"]]
|
|
833
|
+
}
|
|
834
|
+
},
|
|
791
835
|
"__$answerOptionMethods": {
|
|
792
836
|
"description": "Define predefined answers for the user to choose.",
|
|
793
837
|
"title": "Answer list source",
|
|
@@ -811,7 +855,7 @@
|
|
|
811
855
|
"default": "answer-option",
|
|
812
856
|
"type": "string",
|
|
813
857
|
"visibleIf": {
|
|
814
|
-
"
|
|
858
|
+
"__$isAnswerList": [true]
|
|
815
859
|
},
|
|
816
860
|
"widget": {
|
|
817
861
|
"id": "answer-option-methods",
|
|
@@ -820,8 +864,36 @@
|
|
|
820
864
|
"controlClasses": "col-auto btn-group btn-group-sm m-auto p-0"
|
|
821
865
|
}
|
|
822
866
|
},
|
|
867
|
+
/*
|
|
868
|
+
answerConstraint is R5 feature.
|
|
869
|
+
*/
|
|
870
|
+
"answerConstraint": {
|
|
871
|
+
"description": "For items that have a defined set of allowed answers (via answerOption or answerValueSet), indicates whether values other than those specified can be selected.",
|
|
872
|
+
"enum": [
|
|
873
|
+
"optionsOnly",
|
|
874
|
+
"optionsOrType",
|
|
875
|
+
"optionsOrString"
|
|
876
|
+
],
|
|
877
|
+
"type": "string",
|
|
878
|
+
"title": "Answer constraint",
|
|
879
|
+
"visibleIf": {
|
|
880
|
+
"__$isAnswerList": [true]
|
|
881
|
+
},
|
|
882
|
+
"widget": {
|
|
883
|
+
"id": "lb-radio",
|
|
884
|
+
"layout": "row",
|
|
885
|
+
"labelPosition": "left",
|
|
886
|
+
"labelClasses": "col-2 ps-0 pe-1",
|
|
887
|
+
"controlClasses": "col-auto ps-0 btn-group btn-group-sm",
|
|
888
|
+
"labels": {
|
|
889
|
+
"optionsOnly": "Restrict to the list",
|
|
890
|
+
"optionsOrType": "Allow off list",
|
|
891
|
+
"optionsOrString": "Allow free text"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
},
|
|
823
895
|
"answerValueSet": {
|
|
824
|
-
"description": "A reference to a value set containing a list of codes representing permitted answers for a \"
|
|
896
|
+
"description": "A reference to a value set containing a list of codes representing permitted answers for a \"coding\" question.",
|
|
825
897
|
"title": "Answer value set",
|
|
826
898
|
"pattern": "^\\S*$",
|
|
827
899
|
"type": "string",
|
|
@@ -836,7 +908,7 @@
|
|
|
836
908
|
}
|
|
837
909
|
},
|
|
838
910
|
"answerOption": {
|
|
839
|
-
"description": "One of the permitted answers for a \"
|
|
911
|
+
"description": "One of the permitted answers for a \"coding\" question.",
|
|
840
912
|
"items": {
|
|
841
913
|
"description": "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.",
|
|
842
914
|
"properties": {
|
|
@@ -964,7 +1036,7 @@
|
|
|
964
1036
|
"additionalProperties": false,
|
|
965
1037
|
"type": "object",
|
|
966
1038
|
"visibleIf": {
|
|
967
|
-
"/type": ["$EXP$ target.value == '
|
|
1039
|
+
"/type": ["$EXP$ target.value == 'coding'"]
|
|
968
1040
|
}
|
|
969
1041
|
},
|
|
970
1042
|
"valueReference": {
|
|
@@ -1021,7 +1093,7 @@
|
|
|
1021
1093
|
"type": "array",
|
|
1022
1094
|
"title": "Answer choices",
|
|
1023
1095
|
"visibleIf": {
|
|
1024
|
-
"
|
|
1096
|
+
"__$answerOptionMethods": ["answer-option"]
|
|
1025
1097
|
},
|
|
1026
1098
|
"widget": {
|
|
1027
1099
|
"id": "answer-option",
|
|
@@ -1050,7 +1122,7 @@
|
|
|
1050
1122
|
"title": "Answer list layout",
|
|
1051
1123
|
"type": "string",
|
|
1052
1124
|
"visibleIf": {
|
|
1053
|
-
"type": ["$EXP$ target.value == '
|
|
1125
|
+
"type": ["$EXP$ target.value == 'coding'"]
|
|
1054
1126
|
},
|
|
1055
1127
|
"widget": {
|
|
1056
1128
|
"id": "item-control",
|
|
@@ -1073,13 +1145,13 @@
|
|
|
1073
1145
|
{
|
|
1074
1146
|
'enum': ["table"],
|
|
1075
1147
|
'display': 'Vertical Answer Table',
|
|
1076
|
-
'description': 'For \'
|
|
1148
|
+
'description': 'For \'coding\' questions, the table representation should have questions as rows and answers as columns. Ensure option sets are consistent within a group. Sparse tables, where certain options are missing for specific questions, may not be rendered as tables by all tools due to inconsistent data structure.',
|
|
1077
1149
|
'support': true
|
|
1078
1150
|
},
|
|
1079
1151
|
{
|
|
1080
1152
|
'enum': ["htable"],
|
|
1081
1153
|
'display': 'Horizontal Answer Table',
|
|
1082
|
-
'description': 'For \'
|
|
1154
|
+
'description': 'For \'coding\' questions, the table representation should have questions as columns and answers as rows. Ensure option sets are consistent within a group. Sparse tables, where certain options are missing for specific questions, may not be rendered as tables by all tools due to inconsistent data structure.',
|
|
1083
1155
|
'support': false
|
|
1084
1156
|
},
|
|
1085
1157
|
{
|
|
@@ -1442,6 +1514,15 @@
|
|
|
1442
1514
|
"additionalProperties": false,
|
|
1443
1515
|
"type": "object",
|
|
1444
1516
|
"visibleIf": {
|
|
1517
|
+
"allOf": [
|
|
1518
|
+
{
|
|
1519
|
+
"/__$answerOptionMethods": ["answer-option"]
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"/type": ["$EXP$ target.value == 'coding'"]
|
|
1523
|
+
}
|
|
1524
|
+
],
|
|
1525
|
+
|
|
1445
1526
|
"/__$answerOptionMethods": ["answer-option"]
|
|
1446
1527
|
},
|
|
1447
1528
|
"widget": {
|
|
@@ -1559,7 +1640,7 @@
|
|
|
1559
1640
|
"type": "array",
|
|
1560
1641
|
"title": "Initial value",
|
|
1561
1642
|
"visibleIf": {
|
|
1562
|
-
"/type": ["$EXP$ target.value != 'group' && target.value != 'display' && target.value != '
|
|
1643
|
+
"/type": ["$EXP$ target.value != 'group' && target.value != 'display' && target.value != 'coding'"]
|
|
1563
1644
|
},
|
|
1564
1645
|
"widget": {
|
|
1565
1646
|
"id": "table",
|
|
@@ -1722,6 +1803,24 @@
|
|
|
1722
1803
|
"controlClasses": "col p-0"
|
|
1723
1804
|
}
|
|
1724
1805
|
},
|
|
1806
|
+
/*
|
|
1807
|
+
disabledDisplay is R5 feature
|
|
1808
|
+
*/
|
|
1809
|
+
"disabledDisplay": {
|
|
1810
|
+
"description": "Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.",
|
|
1811
|
+
"enum": [
|
|
1812
|
+
"hidden",
|
|
1813
|
+
"protected"
|
|
1814
|
+
],
|
|
1815
|
+
"type": "string",
|
|
1816
|
+
"title": "Hide or show this item when conditional display evaluates to 'false'?",
|
|
1817
|
+
"widget": {
|
|
1818
|
+
"id": "enable-behavior",
|
|
1819
|
+
"layout": "row",
|
|
1820
|
+
"labelWidthClass": "col-sm-2",
|
|
1821
|
+
"controlWidthClass": "col-sm-7"
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1725
1824
|
"__$end": {
|
|
1726
1825
|
"description": "An internal field to indicate end of loading an item. User should not see this.",
|
|
1727
1826
|
"title": "End - Should be invisible",
|
|
@@ -1826,6 +1925,17 @@
|
|
|
1826
1925
|
}
|
|
1827
1926
|
]
|
|
1828
1927
|
},
|
|
1928
|
+
{
|
|
1929
|
+
"fields": [
|
|
1930
|
+
"__$isAnswerList"
|
|
1931
|
+
],
|
|
1932
|
+
"showFields": [
|
|
1933
|
+
{
|
|
1934
|
+
"field": "__$isAnswerList",
|
|
1935
|
+
"col": 12
|
|
1936
|
+
}
|
|
1937
|
+
]
|
|
1938
|
+
},
|
|
1829
1939
|
{
|
|
1830
1940
|
"fields": [
|
|
1831
1941
|
"__$answerOptionMethods"
|
|
@@ -1837,6 +1947,17 @@
|
|
|
1837
1947
|
}
|
|
1838
1948
|
]
|
|
1839
1949
|
},
|
|
1950
|
+
{
|
|
1951
|
+
"fields": [
|
|
1952
|
+
"answerConstraint"
|
|
1953
|
+
],
|
|
1954
|
+
"showFields": [
|
|
1955
|
+
{
|
|
1956
|
+
"field": "answerConstraint",
|
|
1957
|
+
"col": 12
|
|
1958
|
+
}
|
|
1959
|
+
]
|
|
1960
|
+
},
|
|
1840
1961
|
{
|
|
1841
1962
|
"fields": [
|
|
1842
1963
|
"answerValueSet"
|
|
@@ -1958,6 +2079,17 @@
|
|
|
1958
2079
|
}
|
|
1959
2080
|
]
|
|
1960
2081
|
},
|
|
2082
|
+
{
|
|
2083
|
+
"fields": [
|
|
2084
|
+
"disabledDisplay"
|
|
2085
|
+
],
|
|
2086
|
+
"showFields": [
|
|
2087
|
+
{
|
|
2088
|
+
"field": "disabledDisplay",
|
|
2089
|
+
"col": 3
|
|
2090
|
+
}
|
|
2091
|
+
]
|
|
2092
|
+
},
|
|
1961
2093
|
{
|
|
1962
2094
|
"fields": [
|
|
1963
2095
|
"__$observationLinkPeriod"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version": "
|
|
1
|
+
{"version": "10.0.1"}
|
|
@@ -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.451db9930bcccb8c.js" type="module"></script><script src="polyfills.e53ef974fd1c72c8.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.
|
|
22
|
+
<script src="runtime.451db9930bcccb8c.js" type="module"></script><script src="polyfills.e53ef974fd1c72c8.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.fc2965aae3d98501.js" type="module"></script></body>
|
|
23
23
|
</html>
|
|
24
24
|
|