formbuilder-lhcforms 7.0.12 → 7.0.13

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project follows [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [7.0.13] 2022-06-09
6
+ ### Changed
7
+ - Removed total score calculation.
8
+
5
9
  ## [7.0.12] 2022-05-24
6
10
  ### Fixed
7
11
  - Fixed a bug which overwrites a node when clicking two nodes rapidly.
@@ -35,13 +35,7 @@
35
35
  "showFields": [
36
36
  { "field": "__$observationLinkPeriod", "col": 12}
37
37
  ]
38
- },
39
- {
40
- "showFields": [
41
- { "field": "__$totalScore", "col": 12}
42
- ]
43
38
  }
44
-
45
39
  ]
46
40
  },
47
41
  "propertyLabels": {
@@ -2,6 +2,14 @@
2
2
  "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.",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "__$start": {
6
+ "description": "An internal field to indicate start of loading item. User should not see this.",
7
+ "title": "Start - Should be invisible.",
8
+ "type": "boolean",
9
+ "widget": {
10
+ "id": "hidden"
11
+ }
12
+ },
5
13
  "id": {
6
14
  "description": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
7
15
  "title": "Id",
@@ -11,6 +19,109 @@
11
19
  "id": "hidden"
12
20
  }
13
21
  },
22
+ "type": {
23
+ "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, coded choice, etc.).",
24
+ "enum": [
25
+ "boolean",
26
+ "decimal",
27
+ "integer",
28
+ "date",
29
+ "dateTime",
30
+ "time",
31
+ "string",
32
+ "text",
33
+ "url",
34
+ "choice",
35
+ "open-choice",
36
+ "attachment",
37
+ "reference",
38
+ "quantity",
39
+ "group",
40
+ "display"
41
+ ],
42
+ "type": "string",
43
+ "title": "Data type",
44
+ "widget": {
45
+ "id": "type",
46
+ "labelPosition": "left",
47
+ "labelWidthClass": "col-sm-2 pr-1",
48
+ "controlWidthClass": "col-sm-10",
49
+ "selectOptionsMap": {
50
+ "remove": ["display", "reference", "attachment"],
51
+ "map": {
52
+ "group": "header"
53
+ }
54
+ }
55
+ },
56
+ "default": "string"
57
+ },
58
+ "__$restrictions": {
59
+ "description": "Choose to add value restrictions to the input.",
60
+ "title": "Restrictions",
61
+ "type": "array",
62
+ "items": {
63
+ "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.",
64
+ "properties": {
65
+ "operator": {
66
+ "description": "Comparing operator to restrict the input value",
67
+ "type": "string",
68
+ "enum": [
69
+ "maxLength",
70
+ "minLength",
71
+ "regex",
72
+ "minValue",
73
+ "maxValue",
74
+ "mazSize",
75
+ "mimeType"
76
+ ],
77
+ "title": "Restriction",
78
+ "widget": {"id": "restrictions-operator"}
79
+ },
80
+ "value": {
81
+ "description": "Value to restrict the input",
82
+ "type": "string",
83
+ "title": "Value"
84
+ }
85
+ },
86
+ "additionalProperties": false,
87
+ "type": "object"
88
+ },
89
+ "visibleIf": {
90
+ "type": ["$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'"]
91
+ },
92
+ "widget": {
93
+ "id": "restrictions",
94
+ "labelPosition": "left",
95
+ "labelWidthClass": "col-sm-2 pr-1",
96
+ "controlWidthClass": "col-sm-10",
97
+ "noTableLabel": true,
98
+ "noCollapseButton": true,
99
+ "addButtonLabel": "Add new restriction",
100
+ "booleanControlled": true,
101
+ "booleanLabel": "Use restrictions?",
102
+ "booleanControlledInitial": false,
103
+ "showFields": [
104
+ {"field": "operator", "col": 7, "nolabel": true},
105
+ {"field": "value", "col": 4, "nolabel": true}
106
+ ]
107
+
108
+ }
109
+ },
110
+ "maxLength": {
111
+ "description": "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.",
112
+ "title": "Maximum number of char.",
113
+ "pattern": "^-?([0]|([1-9][0-9]*))$",
114
+ "type": "number",
115
+ "visibleIf": {
116
+ "type": ["$EXP$ target.value == 'boolean' || target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'"]
117
+ },
118
+ "widget": {
119
+ "id": "hidden",
120
+ "labelPosition": "left",
121
+ "labelWidthClass": "col-sm-2",
122
+ "controlWidthClass": "col-sm-1"
123
+ }
124
+ },
14
125
  "extension": {
15
126
  "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.",
16
127
  "items": {
@@ -313,42 +424,6 @@
313
424
  "id": "hidden"
314
425
  }
315
426
  },
316
- "type": {
317
- "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, coded choice, etc.).",
318
- "enum": [
319
- "boolean",
320
- "decimal",
321
- "integer",
322
- "date",
323
- "dateTime",
324
- "time",
325
- "string",
326
- "text",
327
- "url",
328
- "choice",
329
- "open-choice",
330
- "attachment",
331
- "reference",
332
- "quantity",
333
- "group",
334
- "display"
335
- ],
336
- "type": "string",
337
- "title": "Data type",
338
- "widget": {
339
- "id": "type",
340
- "labelPosition": "left",
341
- "labelWidthClass": "col-sm-2 pr-1",
342
- "controlWidthClass": "col-sm-10",
343
- "selectOptionsMap": {
344
- "remove": ["display", "reference", "attachment"],
345
- "map": {
346
- "group": "header"
347
- }
348
- }
349
- },
350
- "default": "string"
351
- },
352
427
  "enableWhen": {
353
428
  "description": "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.",
354
429
  "items": {
@@ -901,21 +976,6 @@
901
976
  "controlWidthClass": "col-sm-10"
902
977
  }
903
978
  },
904
- "maxLength": {
905
- "description": "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.",
906
- "title": "Maximum number of char.",
907
- "pattern": "^-?([0]|([1-9][0-9]*))$",
908
- "type": "number",
909
- "visibleIf": {
910
- "type": ["$EXP$ target.value == 'boolean' || target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'"]
911
- },
912
- "widget": {
913
- "id": "hidden",
914
- "labelPosition": "left",
915
- "labelWidthClass": "col-sm-2",
916
- "controlWidthClass": "col-sm-1"
917
- }
918
- },
919
979
  "answerValueSet": {
920
980
  "description": "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.",
921
981
  "title": "Answer value set",
@@ -1726,13 +1786,6 @@
1726
1786
  "type": ["$EXP$ target.value == 'integer' || target.value == 'decimal' || target.value == 'quantity'"]
1727
1787
  }
1728
1788
  },
1729
- "__$totalScoreItem": {
1730
- "type": "boolean",
1731
- "default": "true",
1732
- "widget": {
1733
- "id": "hidden"
1734
- }
1735
- },
1736
1789
  "__$totalScore": {
1737
1790
  "description": "Makes this as an item with total score, i.e. totaling scores in pre-defined answers of the choice type items.",
1738
1791
  "title": "Make this a total score item",
@@ -1740,13 +1793,10 @@
1740
1793
  "default": "false",
1741
1794
  "type": "boolean",
1742
1795
  "widget": {
1743
- "id": "totalScore",
1796
+ "id": "hidden",
1744
1797
  "labelPosition": "left",
1745
1798
  "labelWidthClass": "col-sm-2 pr-1",
1746
1799
  "controlWidthClass": "col-sm-10"
1747
- },
1748
- "visibleIf": {
1749
- "__$totalScoreItem": ["$EXP$ target.value == 'true'"]
1750
1800
  }
1751
1801
  },
1752
1802
  "__$helpText": {
@@ -1760,56 +1810,12 @@
1760
1810
  "controlWidthClass": "col-sm-10"
1761
1811
  }
1762
1812
  },
1763
- "__$restrictions": {
1764
- "description": "Choose to add value restrictions to the input.",
1765
- "title": "Restrictions",
1766
- "type": "array",
1767
- "items": {
1768
- "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.",
1769
- "properties": {
1770
- "operator": {
1771
- "description": "Comparing operator to restrict the input value",
1772
- "type": "string",
1773
- "enum": [
1774
- "maxLength",
1775
- "minLength",
1776
- "regex",
1777
- "minValue",
1778
- "maxValue",
1779
- "mazSize",
1780
- "mimeType"
1781
- ],
1782
- "title": "Restriction",
1783
- "widget": {"id": "restrictions-operator"}
1784
- },
1785
- "value": {
1786
- "description": "Value to restrict the input",
1787
- "type": "string",
1788
- "title": "Value"
1789
- }
1790
- },
1791
- "additionalProperties": false,
1792
- "type": "object"
1793
- },
1794
- "visibleIf": {
1795
- "type": ["$EXP$ target.value == 'decimal' || target.value == 'integer' || target.value == 'string' || target.value == 'text' || target.value == 'url' || target.value == 'open-choice'"]
1796
- },
1813
+ "__$end": {
1814
+ "description": "An internal field to indicate end of loading an item. User should not see this.",
1815
+ "title": "End - Should be invisible",
1816
+ "type": "boolean",
1797
1817
  "widget": {
1798
- "id": "restrictions",
1799
- "labelPosition": "left",
1800
- "labelWidthClass": "col-sm-2 pr-1",
1801
- "controlWidthClass": "col-sm-10",
1802
- "noTableLabel": true,
1803
- "noCollapseButton": true,
1804
- "addButtonLabel": "Add new restriction",
1805
- "booleanControlled": true,
1806
- "booleanLabel": "Use restrictions?",
1807
- "booleanControlledInitial": false,
1808
- "showFields": [
1809
- {"field": "operator", "col": 7, "nolabel": true},
1810
- {"field": "value", "col": 4, "nolabel": true}
1811
- ]
1812
-
1818
+ "id": "hidden"
1813
1819
  }
1814
1820
  }
1815
1821
  },
@@ -4965,7 +4971,7 @@
4965
4971
  },
4966
4972
  "fieldsets": [
4967
4973
  {
4968
- "fields": ["type", "linkId", "maxLength"],
4974
+ "fields": ["type", "linkId", "maxLength", "__$start", "__$end"],
4969
4975
  "showFields": [
4970
4976
  { "field": "linkId", "col": 3 },
4971
4977
  { "field": "type", "col": 3 },
@@ -5019,7 +5025,7 @@
5019
5025
  ]
5020
5026
  },
5021
5027
  {
5022
- "fields": ["__$totalScoreItem", "__$totalScore"],
5028
+ "fields": ["__$totalScore"],
5023
5029
  "showFields": [
5024
5030
  {"field": "__$totalScore", "col": 12}
5025
5031
  ]