@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev2 → 1.0.0-alpha.42.dev4

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 (114) hide show
  1. package/package.json +1 -6
  2. package/.storybook/main.ts +0 -34
  3. package/.storybook/preview.tsx +0 -40
  4. package/src/stories/assets/fhirClient/mockFhirClient.ts +0 -52
  5. package/src/stories/assets/patients/PatSmartForm.ts +0 -281
  6. package/src/stories/assets/practitioners/PracPrimaryPeter.ts +0 -38
  7. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +0 -209
  8. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +0 -220
  9. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +0 -299
  10. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +0 -175
  11. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +0 -229
  12. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +0 -359
  13. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +0 -195
  14. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +0 -195
  15. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +0 -195
  16. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +0 -174
  17. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +0 -495
  18. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +0 -139
  19. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +0 -216
  20. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +0 -199
  21. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +0 -195
  22. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +0 -195
  23. package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +0 -113
  24. package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +0 -865
  25. package/src/stories/assets/questionnaires/QAdvancedOther.ts +0 -494
  26. package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +0 -503
  27. package/src/stories/assets/questionnaires/QAttachment.ts +0 -38
  28. package/src/stories/assets/questionnaires/QAuCoreTesting.ts +0 -3796
  29. package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +0 -643
  30. package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +0 -281
  31. package/src/stories/assets/questionnaires/QBehaviorOther.ts +0 -1241
  32. package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +0 -508
  33. package/src/stories/assets/questionnaires/QBoolean.ts +0 -180
  34. package/src/stories/assets/questionnaires/QButtonTester.ts +0 -497
  35. package/src/stories/assets/questionnaires/QChoice.ts +0 -493
  36. package/src/stories/assets/questionnaires/QDate.ts +0 -56
  37. package/src/stories/assets/questionnaires/QDateTime.ts +0 -56
  38. package/src/stories/assets/questionnaires/QDecimal.ts +0 -56
  39. package/src/stories/assets/questionnaires/QDisplay.ts +0 -197
  40. package/src/stories/assets/questionnaires/QFormPopulation.ts +0 -1349
  41. package/src/stories/assets/questionnaires/QGroup.ts +0 -52
  42. package/src/stories/assets/questionnaires/QGroupTableTester.ts +0 -461
  43. package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +0 -161
  44. package/src/stories/assets/questionnaires/QInteger.ts +0 -119
  45. package/src/stories/assets/questionnaires/QItemControlDisplay.ts +0 -558
  46. package/src/stories/assets/questionnaires/QItemControlGroup.ts +0 -1530
  47. package/src/stories/assets/questionnaires/QItemControlQuestion.ts +0 -1271
  48. package/src/stories/assets/questionnaires/QMbs715Tester.ts +0 -32888
  49. package/src/stories/assets/questionnaires/QOpenChoice.ts +0 -151
  50. package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +0 -312
  51. package/src/stories/assets/questionnaires/QPrePopTester.ts +0 -543
  52. package/src/stories/assets/questionnaires/QQuantity.ts +0 -365
  53. package/src/stories/assets/questionnaires/QReference.ts +0 -38
  54. package/src/stories/assets/questionnaires/QSingleItems.ts +0 -251
  55. package/src/stories/assets/questionnaires/QString.ts +0 -131
  56. package/src/stories/assets/questionnaires/QTerminologyControl.ts +0 -59
  57. package/src/stories/assets/questionnaires/QText.ts +0 -169
  58. package/src/stories/assets/questionnaires/QTime.ts +0 -38
  59. package/src/stories/assets/questionnaires/QUrl.ts +0 -38
  60. package/src/stories/assets/questionnaires/QValidateTester.ts +0 -118
  61. package/src/stories/assets/questionnaires/index.ts +0 -43
  62. package/src/stories/itemTypes/Attachment.stories.tsx +0 -39
  63. package/src/stories/itemTypes/Boolean.stories.tsx +0 -65
  64. package/src/stories/itemTypes/Choice.stories.tsx +0 -78
  65. package/src/stories/itemTypes/Date.stories.tsx +0 -46
  66. package/src/stories/itemTypes/DateTime.stories.tsx +0 -45
  67. package/src/stories/itemTypes/Decimal.stories.tsx +0 -56
  68. package/src/stories/itemTypes/Display.stories.tsx +0 -55
  69. package/src/stories/itemTypes/Group.stories.tsx +0 -39
  70. package/src/stories/itemTypes/Integer.stories.tsx +0 -55
  71. package/src/stories/itemTypes/OpenChoice.stories.tsx +0 -64
  72. package/src/stories/itemTypes/Quantity.stories.tsx +0 -71
  73. package/src/stories/itemTypes/Reference.stories.tsx +0 -39
  74. package/src/stories/itemTypes/String.stories.tsx +0 -51
  75. package/src/stories/itemTypes/Text.stories.tsx +0 -51
  76. package/src/stories/itemTypes/Time.stories.tsx +0 -39
  77. package/src/stories/itemTypes/Url.stories.tsx +0 -39
  78. package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +0 -51
  79. package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +0 -90
  80. package/src/stories/sdc/AdvancedOther.stories.tsx +0 -76
  81. package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +0 -104
  82. package/src/stories/sdc/BehaviorCalculations.stories.tsx +0 -69
  83. package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +0 -76
  84. package/src/stories/sdc/BehaviorOther.stories.tsx +0 -97
  85. package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +0 -88
  86. package/src/stories/sdc/FormPopulation.stories.tsx +0 -97
  87. package/src/stories/sdc/ItemControlDisplay.stories.tsx +0 -69
  88. package/src/stories/sdc/ItemControlGroup.stories.tsx +0 -90
  89. package/src/stories/sdc/ItemControlQuestion.stories.tsx +0 -118
  90. package/src/stories/sdc/OtherExtensions.stories.tsx +0 -39
  91. package/src/stories/sdc/ParameterisedValueSets.stories.tsx +0 -48
  92. package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +0 -54
  93. package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +0 -76
  94. package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +0 -61
  95. package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +0 -70
  96. package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +0 -28
  97. package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +0 -49
  98. package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +0 -84
  99. package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +0 -105
  100. package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +0 -56
  101. package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +0 -114
  102. package/src/stories/storybookWrappers/TestCssSheet.css +0 -17
  103. package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +0 -41
  104. package/src/stories/storybookWrappers/globals.ts +0 -18
  105. package/src/stories/storybookWrappers/iframeResizerChild.js +0 -1063
  106. package/src/stories/storybookWrappers/index.ts +0 -19
  107. package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +0 -55
  108. package/src/stories/testing/AuCoreTester.stories.tsx +0 -196
  109. package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +0 -40
  110. package/src/stories/testing/GroupTableTester.stories.tsx +0 -39
  111. package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +0 -39
  112. package/src/stories/testing/Mbs715Tester.stories.tsx +0 -57
  113. package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +0 -55
  114. package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +0 -39
@@ -1,494 +0,0 @@
1
- import type { Questionnaire } from 'fhir/r4';
2
-
3
- export const qRequired: Questionnaire = {
4
- resourceType: 'Questionnaire',
5
- id: 'Required',
6
- name: 'Required',
7
- title: 'Required',
8
- version: '0.1.0',
9
- status: 'draft',
10
- publisher: 'AEHRC CSIRO',
11
- date: '2024-05-01',
12
- url: 'https://smartforms.csiro.au/docs/advanced/other/required',
13
- item: [
14
- {
15
- linkId: 'required-question',
16
- text: 'Consent for sharing of health information',
17
- type: 'boolean',
18
- repeats: false,
19
- required: true
20
- }
21
- ]
22
- };
23
-
24
- export const qRepeatsAutocomplete: Questionnaire = {
25
- resourceType: 'Questionnaire',
26
- id: 'RepeatsAutocomplete',
27
- name: 'RepeatsAutocomplete',
28
- title: 'Repeats Autocomplete',
29
- version: '0.1.0',
30
- status: 'draft',
31
- publisher: 'AEHRC CSIRO',
32
- date: '2024-05-01',
33
- url: 'https://smartforms.csiro.au/docs/advanced/other/repeats-autocomplete',
34
- item: [
35
- {
36
- linkId: 'parent-container',
37
- text: '',
38
- type: 'group',
39
- repeats: false,
40
- item: [
41
- {
42
- extension: [
43
- {
44
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
45
- valueCodeableConcept: {
46
- coding: [
47
- {
48
- system: 'http://hl7.org/fhir/questionnaire-item-control',
49
- code: 'autocomplete'
50
- }
51
- ]
52
- }
53
- }
54
- ],
55
- linkId: 'medical-history-repeat',
56
- text: 'Medical history and current problems',
57
- type: 'open-choice',
58
- repeats: true,
59
- answerValueSet: 'https://smartforms.csiro.au/ig/ValueSet/MedicalHistory'
60
- }
61
- ]
62
- }
63
- ]
64
- };
65
-
66
- export const qRepeatsCheckbox: Questionnaire = {
67
- resourceType: 'Questionnaire',
68
- id: 'RepeatsCheckbox',
69
- name: 'RepeatsCheckbox',
70
- title: 'Repeats Checkbox',
71
- version: '0.1.0',
72
- status: 'draft',
73
- publisher: 'AEHRC CSIRO',
74
- date: '2024-05-01',
75
- url: 'https://smartforms.csiro.au/docs/advanced/other/repeats-checkbox',
76
- contained: [
77
- {
78
- resourceType: 'ValueSet',
79
- id: 'PrimaryCarerParentGrandparent',
80
- url: 'https://smartforms.csiro.au/ig/ValueSet/PrimaryCarerParentGrandparent',
81
- name: 'PrimaryCarerParentGrandparent',
82
- title: 'Primary Carer Of Parent Or Grandparent',
83
- status: 'draft',
84
- experimental: false,
85
- description:
86
- 'The Primary Carer Of Parent Or Grandparent value set includes values that can indicate whether a primary carer is one of the parents or a grandparent.',
87
- compose: {
88
- include: [
89
- {
90
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode',
91
- concept: [
92
- {
93
- code: 'MTH'
94
- },
95
- {
96
- code: 'FTH'
97
- },
98
- {
99
- code: 'GRPRN'
100
- }
101
- ]
102
- },
103
- {
104
- system: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor',
105
- concept: [
106
- {
107
- code: 'NA'
108
- }
109
- ]
110
- }
111
- ]
112
- },
113
- expansion: {
114
- identifier: '2809c2fa-28ec-4def-9b16-93a611d29da3',
115
- timestamp: '2022-10-20T11:42:30+10:00',
116
- total: 4,
117
- offset: 0,
118
- parameter: [
119
- {
120
- name: 'version',
121
- valueUri: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode|2018-08-12'
122
- },
123
- {
124
- name: 'version',
125
- valueUri: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor|2018-08-12'
126
- },
127
- {
128
- name: 'count',
129
- valueInteger: 2147483647
130
- },
131
- {
132
- name: 'offset',
133
- valueInteger: 0
134
- }
135
- ],
136
- contains: [
137
- {
138
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode',
139
- version: '2018-08-12',
140
- code: 'MTH',
141
- display: 'Mother'
142
- },
143
- {
144
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode',
145
- version: '2018-08-12',
146
- code: 'FTH',
147
- display: 'Father'
148
- },
149
- {
150
- system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode',
151
- version: '2018-08-12',
152
- code: 'GRPRN',
153
- display: 'Grandparent'
154
- },
155
- {
156
- system: 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor',
157
- version: '2018-08-12',
158
- code: 'NA',
159
- display: 'N/A'
160
- }
161
- ]
162
- }
163
- },
164
- {
165
- resourceType: 'ValueSet',
166
- id: 'administrative-gender',
167
- meta: {
168
- profile: ['http://hl7.org/fhir/StructureDefinition/shareablevalueset']
169
- },
170
- extension: [
171
- {
172
- url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-wg',
173
- valueCode: 'pa'
174
- },
175
- {
176
- url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status',
177
- valueCode: 'normative'
178
- },
179
- {
180
- url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm',
181
- valueInteger: 5
182
- },
183
- {
184
- url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version',
185
- valueCode: '4.0.0'
186
- }
187
- ],
188
- url: 'http://hl7.org/fhir/ValueSet/administrative-gender',
189
- identifier: [
190
- {
191
- system: 'urn:ietf:rfc:3986',
192
- value: 'urn:oid:2.16.840.1.113883.4.642.3.1'
193
- }
194
- ],
195
- version: '4.0.1',
196
- name: 'AdministrativeGender',
197
- title: 'AdministrativeGender',
198
- status: 'active',
199
- experimental: false,
200
- date: '2019-11-01T09:29:23+11:00',
201
- publisher: 'HL7 (FHIR Project)',
202
- contact: [
203
- {
204
- telecom: [
205
- {
206
- system: 'url',
207
- value: 'http://hl7.org/fhir'
208
- },
209
- {
210
- system: 'email',
211
- value: 'fhir@lists.hl7.org'
212
- }
213
- ]
214
- }
215
- ]
216
- }
217
- ],
218
- item: [
219
- {
220
- extension: [
221
- {
222
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
223
- valueCodeableConcept: {
224
- coding: [
225
- {
226
- system: 'http://hl7.org/fhir/questionnaire-item-control',
227
- code: 'check-box'
228
- }
229
- ]
230
- }
231
- }
232
- ],
233
- linkId: 'primary-carers-repeat',
234
- text: 'Primary carers (multi-select)',
235
- type: 'choice',
236
- repeats: true,
237
- answerValueSet: '#PrimaryCarerParentGrandparent'
238
- }
239
- ]
240
- };
241
-
242
- export const qRepeatsGroup: Questionnaire = {
243
- resourceType: 'Questionnaire',
244
- id: 'RepeatsGroup',
245
- name: 'RepeatsGroup',
246
- title: 'Repeats Group',
247
- version: '0.1.0',
248
- status: 'draft',
249
- publisher: 'AEHRC CSIRO',
250
- date: '2024-05-01',
251
- url: 'https://smartforms.csiro.au/docs/advanced/other/repeats-group',
252
- item: [
253
- {
254
- linkId: 'home-address-group',
255
- text: 'Home address',
256
- type: 'group',
257
- repeats: true,
258
- item: [
259
- {
260
- linkId: 'home-address-street',
261
- definition: 'http://hl7.org.au/fhir/StructureDefinition/au-address#Address.line',
262
- text: 'Street address',
263
- type: 'string',
264
- repeats: false
265
- },
266
- {
267
- linkId: 'home-address-city',
268
- definition: 'http://hl7.org.au/fhir/StructureDefinition/au-address#Address.city',
269
- text: 'City',
270
- type: 'string',
271
- repeats: false
272
- },
273
- {
274
- extension: [
275
- {
276
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
277
- valueCodeableConcept: {
278
- coding: [
279
- {
280
- system: 'http://hl7.org/fhir/questionnaire-item-control',
281
- code: 'drop-down'
282
- }
283
- ]
284
- }
285
- }
286
- ],
287
- linkId: 'home-address-state',
288
- definition: 'http://hl7.org.au/fhir/StructureDefinition/au-address#Address.state',
289
- text: 'State',
290
- type: 'choice',
291
- repeats: false,
292
- answerValueSet:
293
- 'https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2'
294
- },
295
- {
296
- extension: [
297
- {
298
- url: 'http://hl7.org/fhir/StructureDefinition/regex',
299
- valueString: "matches('^[0-9]{4}$')"
300
- },
301
- {
302
- url: 'http://hl7.org/fhir/StructureDefinition/entryFormat',
303
- valueString: '####'
304
- }
305
- ],
306
- linkId: 'home-address-postcode',
307
- definition: 'http://hl7.org.au/fhir/StructureDefinition/au-address#Address.postalCode',
308
- text: 'Postcode',
309
- type: 'string',
310
- repeats: false
311
- }
312
- ]
313
- }
314
- ]
315
- };
316
-
317
- export const qRepeatsGroupNested: Questionnaire = {
318
- resourceType: 'Questionnaire',
319
- id: 'RepeatsGroupNested',
320
- name: 'RepeatsGroupNested',
321
- title: 'Repeats Group with Nested Repeats',
322
- version: '0.1.0',
323
- status: 'draft',
324
- publisher: 'AEHRC CSIRO',
325
- date: '2024-05-01',
326
- url: 'https://smartforms.csiro.au/docs/advanced/other/repeats-group-nested',
327
- item: [
328
- {
329
- linkId: 'restrictive-practice',
330
- text: 'Restrictive practice',
331
- type: 'group',
332
- repeats: false,
333
- item: [
334
- {
335
- linkId: 'restrictive-practice-intervention',
336
- text: 'Restrictive practice intervention',
337
- type: 'group',
338
- repeats: true,
339
- item: [
340
- {
341
- extension: [
342
- {
343
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
344
- valueCodeableConcept: {
345
- coding: [
346
- {
347
- system: 'http://hl7.org/fhir/questionnaire-item-control',
348
- code: 'drop-down'
349
- }
350
- ]
351
- }
352
- }
353
- ],
354
- linkId: 'restrictive-practice-intervention-code',
355
- text: 'Code',
356
- type: 'choice',
357
- repeats: false,
358
- answerOption: [
359
- {
360
- valueCoding: {
361
- system: 'http://snomed.info/sct',
362
- code: '386423001',
363
- display: 'Physical restraint'
364
- }
365
- },
366
- {
367
- valueCoding: {
368
- system: 'http://snomed.info/sct',
369
- code: '90278001',
370
- display: 'Secluding patient'
371
- }
372
- },
373
- {
374
- valueCoding: {
375
- system: 'http://snomed.info/sct',
376
- code: '386517008',
377
- display: 'Area restriction (Environmental)'
378
- }
379
- },
380
- {
381
- valueCoding: {
382
- system: 'http://snomed.info/sct',
383
- code: '68894007',
384
- display: 'Placing restraint (Mechanical)'
385
- }
386
- }
387
- ]
388
- },
389
- {
390
- extension: [
391
- {
392
- url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
393
- valueCodeableConcept: {
394
- coding: [
395
- {
396
- system: 'http://hl7.org/fhir/questionnaire-item-control',
397
- code: 'drop-down'
398
- }
399
- ]
400
- }
401
- }
402
- ],
403
- linkId: 'restrictive-practice-intervention-status',
404
- text: 'Status',
405
- type: 'choice',
406
- repeats: false,
407
- answerOption: [
408
- {
409
- valueCoding: {
410
- system: 'http://hl7.org/fhir/event-status',
411
- code: 'in-progress',
412
- display: 'In Progress'
413
- }
414
- },
415
- {
416
- valueCoding: {
417
- system: 'http://hl7.org/fhir/event-status',
418
- code: 'on-hold',
419
- display: 'On Hold'
420
- }
421
- },
422
- {
423
- valueCoding: {
424
- system: 'http://hl7.org/fhir/event-status',
425
- code: 'completed',
426
- display: 'Completed'
427
- }
428
- }
429
- ]
430
- },
431
- {
432
- linkId: 'restrictive-practice-intervention-performedstartdate',
433
- text: 'Performed start date',
434
- type: 'dateTime',
435
- repeats: false
436
- },
437
- {
438
- linkId: 'restrictive-practice-intervention-performedenddate',
439
- text: 'Performed end date',
440
- type: 'dateTime',
441
- repeats: false
442
- },
443
- {
444
- linkId: 'restrictive-practice-intervention-note',
445
- text: 'Note',
446
- type: 'group',
447
- repeats: true,
448
- item: [
449
- {
450
- linkId: 'restrictive-practice-intervention-note-time',
451
- text: 'Date and time',
452
- type: 'dateTime',
453
- repeats: false
454
- },
455
- {
456
- linkId: 'restrictive-practice-intervention-note-text',
457
- text: 'Text',
458
- type: 'text',
459
- repeats: false
460
- }
461
- ]
462
- }
463
- ]
464
- }
465
- ]
466
- }
467
- ]
468
- };
469
-
470
- export const qReadOnly: Questionnaire = {
471
- resourceType: 'Questionnaire',
472
- id: 'ReadOnly',
473
- name: 'ReadOnly',
474
- title: 'Read Only Question',
475
- version: '0.1.0',
476
- status: 'draft',
477
- publisher: 'AEHRC CSIRO',
478
- date: '2024-05-01',
479
- url: 'https://smartforms.csiro.au/docs/advanced/other/read-only',
480
- item: [
481
- {
482
- linkId: 'read-only',
483
- text: 'Age',
484
- type: 'integer',
485
- initial: [
486
- {
487
- valueInteger: 50
488
- }
489
- ],
490
- repeats: false,
491
- readOnly: true
492
- }
493
- ]
494
- };