@aehrc/smart-forms-renderer 0.27.2 → 0.27.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.
Files changed (179) hide show
  1. package/.storybook/main.ts +2 -1
  2. package/.storybook/preview.ts +6 -1
  3. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.d.ts +3 -2
  4. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js +9 -17
  5. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.js.map +1 -1
  6. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js +12 -9
  7. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js.map +1 -1
  8. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.d.ts +2 -2
  9. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js +7 -9
  10. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.js.map +1 -1
  11. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js +12 -8
  12. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  13. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.d.ts +2 -1
  14. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js +3 -3
  15. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js.map +1 -1
  16. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js +6 -4
  17. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js.map +1 -1
  18. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.d.ts +2 -1
  19. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js +3 -3
  20. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js.map +1 -1
  21. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.d.ts +2 -2
  22. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js +5 -7
  23. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js.map +1 -1
  24. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js +4 -4
  25. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js.map +1 -1
  26. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.d.ts +2 -1
  27. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js +2 -3
  28. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js.map +1 -1
  29. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js +5 -3
  30. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js.map +1 -1
  31. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.d.ts +2 -1
  32. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js +3 -3
  33. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js.map +1 -1
  34. package/lib/components/FormComponents/DecimalItem/DecimalItem.js +1 -1
  35. package/lib/components/FormComponents/GroupItem/TabButtonsWrapper.js +20 -20
  36. package/lib/components/FormComponents/GroupItem/TabButtonsWrapper.js.map +1 -1
  37. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.d.ts +3 -2
  38. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js +7 -19
  39. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.js.map +1 -1
  40. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js +40 -40
  41. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.js.map +1 -1
  42. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.js +15 -3
  43. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.js.map +1 -1
  44. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.d.ts +2 -1
  45. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js +3 -3
  46. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.js.map +1 -1
  47. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js +27 -26
  48. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.js.map +1 -1
  49. package/lib/components/FormComponents/StringItem/StringField.js +1 -1
  50. package/lib/components/FormComponents/StringItem/StringField.js.map +1 -1
  51. package/lib/hooks/useInitialiseRenderer.js +1 -1
  52. package/lib/hooks/useInitialiseRenderer.js.map +1 -1
  53. package/lib/hooks/useNextAndPreviousVisibleTabs.d.ts +7 -0
  54. package/lib/hooks/useNextAndPreviousVisibleTabs.js +63 -0
  55. package/lib/hooks/useNextAndPreviousVisibleTabs.js.map +1 -0
  56. package/lib/hooks/useNextPreviousVisibleTabs.d.ts +6 -0
  57. package/lib/hooks/useNextPreviousVisibleTabs.js +63 -0
  58. package/lib/hooks/useNextPreviousVisibleTabs.js.map +1 -0
  59. package/lib/index.d.ts +0 -7
  60. package/lib/index.js +0 -24
  61. package/lib/index.js.map +1 -1
  62. package/lib/utils/choice.d.ts +1 -7
  63. package/lib/utils/choice.js +10 -20
  64. package/lib/utils/choice.js.map +1 -1
  65. package/lib/utils/enableWhen.js +5 -7
  66. package/lib/utils/enableWhen.js.map +1 -1
  67. package/lib/utils/index.d.ts +1 -0
  68. package/lib/utils/index.js +1 -0
  69. package/lib/utils/index.js.map +1 -1
  70. package/lib/utils/openChoice.d.ts +9 -4
  71. package/lib/utils/openChoice.js +47 -78
  72. package/lib/utils/openChoice.js.map +1 -1
  73. package/lib/utils/tabs.d.ts +0 -21
  74. package/lib/utils/tabs.js +0 -51
  75. package/lib/utils/tabs.js.map +1 -1
  76. package/package.json +4 -4
  77. package/src/components/FormComponents/ChoiceItems/CheckboxOptionList.tsx +82 -0
  78. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionFields.tsx +23 -52
  79. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.tsx +15 -9
  80. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetFields.tsx +17 -19
  81. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.tsx +13 -8
  82. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.tsx +5 -4
  83. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.tsx +6 -2
  84. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.tsx +5 -1
  85. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.tsx +9 -16
  86. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.tsx +4 -4
  87. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.tsx +4 -3
  88. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.tsx +5 -2
  89. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.tsx +5 -1
  90. package/src/components/FormComponents/DecimalItem/DecimalItem.tsx +1 -1
  91. package/src/components/FormComponents/GroupItem/TabButtonsWrapper.tsx +28 -25
  92. package/src/components/FormComponents/ItemParts/{RadioAnswerOptionButtons.tsx → RadioOptionList.tsx} +7 -7
  93. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionFields.tsx +18 -50
  94. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerOptionItem.tsx +70 -68
  95. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetFields.tsx +110 -0
  96. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxAnswerValueSetItem.tsx +188 -0
  97. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceItemSwitcher.tsx +46 -19
  98. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionFields.tsx +5 -3
  99. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerOptionItem.tsx +37 -29
  100. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetFields.tsx +104 -0
  101. package/src/components/FormComponents/OpenChoiceItems/OpenChoiceRadioAnswerValueSetItem.tsx +156 -0
  102. package/src/components/FormComponents/StringItem/StringField.tsx +1 -1
  103. package/src/hooks/useInitialiseRenderer.ts +1 -1
  104. package/src/hooks/useNextAndPreviousVisibleTabs.ts +86 -0
  105. package/src/hooks/useOpenLabel.ts +43 -0
  106. package/src/index.ts +0 -21
  107. package/src/stories/BuildFormWrapper.tsx +57 -0
  108. package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +83 -0
  109. package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +294 -0
  110. package/src/stories/assets/questionnaires/QAdvancedOther.ts +495 -0
  111. package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +188 -0
  112. package/src/stories/assets/questionnaires/QAttachment.ts +38 -0
  113. package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +645 -0
  114. package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +281 -0
  115. package/src/stories/assets/questionnaires/QBehaviorOther.ts +1149 -0
  116. package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +508 -0
  117. package/src/stories/assets/questionnaires/QBoolean.ts +130 -0
  118. package/src/stories/assets/questionnaires/QChoice.ts +137 -0
  119. package/src/stories/assets/questionnaires/QDate.ts +56 -0
  120. package/src/stories/assets/questionnaires/QDateTime.ts +56 -0
  121. package/src/stories/assets/questionnaires/QDecimal.ts +56 -0
  122. package/src/stories/assets/questionnaires/QDisplay.ts +38 -0
  123. package/src/stories/assets/questionnaires/QGroup.ts +52 -0
  124. package/src/stories/assets/questionnaires/QInteger.ts +119 -0
  125. package/src/stories/assets/questionnaires/QItemControlDisplay.ts +114 -0
  126. package/src/stories/assets/questionnaires/QItemControlGroup.ts +419 -0
  127. package/src/stories/assets/questionnaires/QItemControlQuestion.ts +1271 -0
  128. package/src/stories/assets/questionnaires/QOpenChoice.ts +151 -0
  129. package/src/stories/assets/questionnaires/QQuantity.ts +38 -0
  130. package/src/stories/assets/questionnaires/QReference.ts +38 -0
  131. package/src/stories/assets/questionnaires/QSingleItems.ts +251 -0
  132. package/src/stories/assets/questionnaires/QString.ts +131 -0
  133. package/src/stories/assets/questionnaires/QText.ts +169 -0
  134. package/src/stories/assets/questionnaires/QTime.ts +38 -0
  135. package/src/stories/assets/questionnaires/QUrl.ts +38 -0
  136. package/src/stories/assets/questionnaires/index.ts +44 -0
  137. package/src/stories/itemTypes/Attachment.stories.tsx +39 -0
  138. package/src/stories/itemTypes/Boolean.stories.tsx +72 -0
  139. package/src/stories/{MedicalHistoryTable.stories.tsx → itemTypes/Choice.stories.tsx} +32 -26
  140. package/src/stories/itemTypes/Date.stories.tsx +46 -0
  141. package/src/stories/itemTypes/DateTime.stories.tsx +45 -0
  142. package/src/stories/itemTypes/Decimal.stories.tsx +56 -0
  143. package/src/stories/itemTypes/Display.stories.tsx +39 -0
  144. package/src/stories/itemTypes/Group.stories.tsx +39 -0
  145. package/src/stories/itemTypes/Integer.stories.tsx +55 -0
  146. package/src/stories/itemTypes/OpenChoice.stories.tsx +64 -0
  147. package/src/stories/itemTypes/Quantity.stories.tsx +39 -0
  148. package/src/stories/itemTypes/Reference.stories.tsx +39 -0
  149. package/src/stories/itemTypes/String.stories.tsx +51 -0
  150. package/src/stories/itemTypes/Text.stories.tsx +51 -0
  151. package/src/stories/itemTypes/Time.stories.tsx +39 -0
  152. package/src/stories/itemTypes/Url.stories.tsx +39 -0
  153. package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +45 -0
  154. package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +51 -0
  155. package/src/stories/sdc/AdvancedOther.stories.tsx +76 -0
  156. package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +69 -0
  157. package/src/stories/sdc/BehaviorCalculations.stories.tsx +69 -0
  158. package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +76 -0
  159. package/src/stories/sdc/BehaviorOther.stories.tsx +90 -0
  160. package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +88 -0
  161. package/src/stories/sdc/ItemControlDisplay.stories.tsx +39 -0
  162. package/src/stories/sdc/ItemControlGroup.stories.tsx +55 -0
  163. package/src/stories/sdc/ItemControlQuestion.stories.tsx +118 -0
  164. package/src/utils/buildForm.ts +23 -0
  165. package/src/utils/choice.ts +16 -23
  166. package/src/utils/enableWhen.ts +5 -7
  167. package/src/utils/index.ts +1 -0
  168. package/src/utils/openChoice.ts +83 -98
  169. package/src/utils/tabs.ts +0 -75
  170. package/vite.config.ts +23 -0
  171. package/doctor-storybook.log +0 -18
  172. package/src/stories/SmartFormsRenderer.stories.ts +0 -139
  173. package/src/stories/assets/QItems-and-QRItems/QR_GTableMedicalHistory.json +0 -80
  174. package/src/stories/assets/QItems-and-QRItems/Q_GTableMedicalHistory.json +0 -109
  175. package/src/stories/assets/Qs-and-QRs/Q715.json +0 -15086
  176. package/src/stories/assets/Qs-and-QRs/QDev715.json +0 -16081
  177. package/src/stories/assets/Qs-and-QRs/QTestGrid.json +0 -411
  178. package/src/stories/assets/Qs-and-QRs/R715.json +0 -311
  179. package/src/stories/assets/Qs-and-QRs/RTestGrid.json +0 -34
@@ -0,0 +1,281 @@
1
+ /*
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
+ * Organisation (CSIRO) ABN 41 687 119 230.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ import type { Questionnaire } from 'fhir/r4';
19
+
20
+ // TODO Add docs on validation is exposed as operationOutcomes
21
+
22
+ export const qAnswerOption: Questionnaire = {
23
+ resourceType: 'Questionnaire',
24
+ id: 'AnswerOption',
25
+ name: 'AnswerOption',
26
+ title: 'Answer Option',
27
+ version: '0.1.0',
28
+ status: 'draft',
29
+ publisher: 'AEHRC CSIRO',
30
+ date: '2024-05-01',
31
+ url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/answer-option',
32
+ item: [
33
+ {
34
+ linkId: 'answer-option-instruction',
35
+ _text: {
36
+ extension: [
37
+ {
38
+ url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
39
+ valueString:
40
+ '<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p style="font-size:0.875em"> Please refer to the <strong>Advanced Control Appearance - Item Control Question</strong> section for the full list of answerOption examples.</p></div>'
41
+ }
42
+ ]
43
+ },
44
+ text: 'Please refer to the Advanced Control Appearance - Item Control Question section for the full list of answerOption examples.',
45
+ type: 'display',
46
+ repeats: false
47
+ },
48
+ {
49
+ extension: [
50
+ {
51
+ url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
52
+ valueCodeableConcept: {
53
+ coding: [
54
+ {
55
+ system: 'http://hl7.org/fhir/questionnaire-item-control',
56
+ code: 'drop-down'
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ ],
62
+ linkId: 'smoking-status',
63
+ text: 'Smoking status',
64
+ type: 'choice',
65
+ repeats: false,
66
+ answerOption: [
67
+ {
68
+ valueCoding: {
69
+ system: 'http://snomed.info/sct',
70
+ code: '266919005',
71
+ display: 'Never smoked'
72
+ }
73
+ },
74
+ {
75
+ valueCoding: {
76
+ system: 'http://snomed.info/sct',
77
+ code: '77176002',
78
+ display: 'Smoker'
79
+ }
80
+ },
81
+ {
82
+ valueCoding: {
83
+ system: 'http://snomed.info/sct',
84
+ code: '8517006',
85
+ display: 'Ex-smoker'
86
+ }
87
+ },
88
+ {
89
+ valueCoding: {
90
+ system: 'http://snomed.info/sct',
91
+ code: '16090371000119103',
92
+ display: 'Exposure to second hand tobacco smoke'
93
+ }
94
+ },
95
+ {
96
+ valueString: 'Wants to quit'
97
+ },
98
+ {
99
+ valueString: 'Other tobacco use'
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ };
105
+
106
+ export const qAnswerValueSet: Questionnaire = {
107
+ resourceType: 'Questionnaire',
108
+ id: 'AnswerValueSet',
109
+ name: 'AnswerValueSet',
110
+ title: 'Answer Value Set',
111
+ version: '0.1.0',
112
+ status: 'draft',
113
+ publisher: 'AEHRC CSIRO',
114
+ date: '2024-05-01',
115
+ url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/answer-value-set',
116
+ item: [
117
+ {
118
+ linkId: 'answer-value-set-instructions',
119
+ _text: {
120
+ extension: [
121
+ {
122
+ url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
123
+ valueString:
124
+ '<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p style="font-size:0.875em">Please refer to the <strong>Advanced Control Appearance - Item Control Question</strong> section for the full list of answerValueSet examples.</p></div>'
125
+ }
126
+ ]
127
+ },
128
+ text: 'Please refer to the Advanced Control Appearance - Item Control Question section for the full list of answerValueSet examples.',
129
+ type: 'display',
130
+ repeats: false
131
+ },
132
+ {
133
+ extension: [
134
+ {
135
+ url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
136
+ valueCodeableConcept: {
137
+ coding: [
138
+ {
139
+ system: 'http://hl7.org/fhir/questionnaire-item-control',
140
+ code: 'autocomplete'
141
+ }
142
+ ]
143
+ }
144
+ }
145
+ ],
146
+ linkId: 'medical-history',
147
+ text: 'Medical history and current problems',
148
+ type: 'open-choice',
149
+ repeats: false,
150
+ answerValueSet: 'https://smartforms.csiro.au/ig/ValueSet/MedicalHistory'
151
+ }
152
+ ]
153
+ };
154
+
155
+ export const qAnswerExpression: Questionnaire = {
156
+ resourceType: 'Questionnaire',
157
+ id: 'AnswerExpression',
158
+ name: 'AnswerExpression',
159
+ title: 'Answer Expression',
160
+ version: '0.1.0',
161
+ status: 'draft',
162
+ publisher: 'AEHRC CSIRO',
163
+ date: '2024-05-01',
164
+ url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/answer-expression',
165
+ item: [
166
+ {
167
+ extension: [
168
+ {
169
+ url: 'http://hl7.org/fhir/StructureDefinition/variable',
170
+ valueExpression: {
171
+ description: 'Variable to hold the results of the expansion',
172
+ name: 'vsListOfLanguages',
173
+ language: 'application/x-fhir-query',
174
+ expression:
175
+ 'https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=http://hl7.org/fhir/ValueSet/languages'
176
+ }
177
+ },
178
+ {
179
+ url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression',
180
+ valueExpression: {
181
+ description:
182
+ 'select the coded values from the expansion results in the above expression',
183
+ name: 'ListOfLanguages',
184
+ language: 'text/fhirpath',
185
+ expression: '%vsListOfLanguages.expansion.contains'
186
+ }
187
+ }
188
+ ],
189
+ linkId: 'language',
190
+ text: 'Language',
191
+ type: 'choice'
192
+ }
193
+ ]
194
+ };
195
+
196
+ export const qRequiredDuplicate: Questionnaire = {
197
+ resourceType: 'Questionnaire',
198
+ id: 'RequiredDuplicate',
199
+ name: 'RequiredDuplicate',
200
+ title: 'Required - Duplicate',
201
+ version: '0.1.0',
202
+ status: 'draft',
203
+ publisher: 'AEHRC CSIRO',
204
+ date: '2024-05-01',
205
+ url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/required-duplicate',
206
+ item: [
207
+ {
208
+ linkId: 'required-instructions',
209
+ _text: {
210
+ extension: [
211
+ {
212
+ url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
213
+ valueString:
214
+ '<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p style="font-size:0.875em"> Please refer to the <strong>Advanced Form Rendering - Other</strong> section for the full list of required examples.</p></div>'
215
+ }
216
+ ]
217
+ },
218
+ text: 'Please refer to the Advanced Form Rendering - Other section for the full list of required examples.',
219
+ type: 'display',
220
+ repeats: false
221
+ }
222
+ ]
223
+ };
224
+
225
+ export const qRepeatsDuplicate: Questionnaire = {
226
+ resourceType: 'Questionnaire',
227
+ id: 'RepeatsDuplicate',
228
+ name: 'RepeatsDuplicate',
229
+ title: 'Repeats Duplicate',
230
+ version: '0.1.0',
231
+ status: 'draft',
232
+ publisher: 'AEHRC CSIRO',
233
+ date: '2024-05-01',
234
+ url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/repeats-duplicate',
235
+ item: [
236
+ {
237
+ linkId: 'repeats-instructions',
238
+ _text: {
239
+ extension: [
240
+ {
241
+ url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
242
+ valueString:
243
+ '<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p style="font-size:0.875em"> Please refer to the <strong>Advanced Form Rendering - Other</strong> section for the full list of repeats examples.</p></div>'
244
+ }
245
+ ]
246
+ },
247
+ text: 'Please refer to the Advanced Form Rendering - Other section for the full list of repeats examples.',
248
+ type: 'display',
249
+ repeats: false
250
+ }
251
+ ]
252
+ };
253
+
254
+ export const qReadOnlyDuplicate: Questionnaire = {
255
+ resourceType: 'Questionnaire',
256
+ id: 'ReadOnlyDuplicate',
257
+ name: 'ReadOnlyDuplicate',
258
+ title: 'Read-Only Duplicate',
259
+ version: '0.1.0',
260
+ status: 'draft',
261
+ publisher: 'AEHRC CSIRO',
262
+ date: '2024-05-01',
263
+ url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/read-only-duplicate',
264
+ item: [
265
+ {
266
+ linkId: 'read-only-instructions',
267
+ _text: {
268
+ extension: [
269
+ {
270
+ url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
271
+ valueString:
272
+ '<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p style="font-size:0.875em"> Please refer to the <strong>Advanced Form Rendering - Other</strong> section for the full list of readOnly examples.</p></div>'
273
+ }
274
+ ]
275
+ },
276
+ text: 'Please refer to the Advanced Form Rendering - Other section for the full list of readOnly examples.',
277
+ type: 'display',
278
+ repeats: false
279
+ }
280
+ ]
281
+ };