@aehrc/smart-forms-renderer 0.36.0 → 0.37.2

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 (106) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/lib/components/FormComponents/Button.styles.d.ts +4 -0
  3. package/lib/components/FormComponents/Button.styles.js +10 -0
  4. package/lib/components/FormComponents/Button.styles.js.map +1 -0
  5. package/lib/components/FormComponents/GroupItem/GroupHeading.d.ts +1 -0
  6. package/lib/components/FormComponents/GroupItem/GroupHeading.js +3 -2
  7. package/lib/components/FormComponents/GroupItem/GroupHeading.js.map +1 -1
  8. package/lib/components/FormComponents/GroupItem/GroupItem.d.ts +4 -0
  9. package/lib/components/FormComponents/GroupItem/GroupItem.js +3 -3
  10. package/lib/components/FormComponents/GroupItem/GroupItem.js.map +1 -1
  11. package/lib/components/FormComponents/GroupItem/GroupItemView.d.ts +4 -0
  12. package/lib/components/FormComponents/GroupItem/GroupItemView.js +8 -5
  13. package/lib/components/FormComponents/GroupItem/GroupItemView.js.map +1 -1
  14. package/lib/components/FormComponents/GroupItem/NextPageButton.d.ts +7 -0
  15. package/lib/components/FormComponents/GroupItem/NextPageButton.js +26 -0
  16. package/lib/components/FormComponents/GroupItem/NextPageButton.js.map +1 -0
  17. package/lib/components/FormComponents/GroupItem/PageButtonWrapper.d.ts +8 -0
  18. package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js +46 -0
  19. package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js.map +1 -0
  20. package/lib/components/FormComponents/GroupItem/PreviousPageButton.d.ts +7 -0
  21. package/lib/components/FormComponents/GroupItem/PreviousPageButton.js +26 -0
  22. package/lib/components/FormComponents/GroupItem/PreviousPageButton.js.map +1 -0
  23. package/lib/components/Renderer/BaseRenderer.js +8 -0
  24. package/lib/components/Renderer/BaseRenderer.js.map +1 -1
  25. package/lib/components/Renderer/FormBodyPage.d.ts +9 -0
  26. package/lib/components/Renderer/FormBodyPage.js +43 -0
  27. package/lib/components/Renderer/FormBodyPage.js.map +1 -0
  28. package/lib/components/Renderer/FormTopLevelItem.js +7 -0
  29. package/lib/components/Renderer/FormTopLevelItem.js.map +1 -1
  30. package/lib/components/Renderer/FormTopLevelPage.d.ts +9 -0
  31. package/lib/components/Renderer/FormTopLevelPage.js +29 -0
  32. package/lib/components/Renderer/FormTopLevelPage.js.map +1 -0
  33. package/lib/hooks/useCodingCalculatedExpression.js +11 -0
  34. package/lib/hooks/useCodingCalculatedExpression.js.map +1 -1
  35. package/lib/hooks/useNextAndPreviousVisiblePages.d.ts +7 -0
  36. package/lib/hooks/useNextAndPreviousVisiblePages.js +47 -0
  37. package/lib/hooks/useNextAndPreviousVisiblePages.js.map +1 -0
  38. package/lib/interfaces/page.interface.d.ts +16 -0
  39. package/lib/interfaces/page.interface.js +2 -0
  40. package/lib/interfaces/page.interface.js.map +1 -0
  41. package/lib/interfaces/questionnaireStore.interface.d.ts +2 -0
  42. package/lib/stores/questionnaireStore.d.ts +13 -0
  43. package/lib/stores/questionnaireStore.js +19 -3
  44. package/lib/stores/questionnaireStore.js.map +1 -1
  45. package/lib/utils/calculatedExpression.js +1 -1
  46. package/lib/utils/calculatedExpression.js.map +1 -1
  47. package/lib/utils/fhirpath.js +0 -4
  48. package/lib/utils/fhirpath.js.map +1 -1
  49. package/lib/utils/initialise.d.ts +3 -0
  50. package/lib/utils/initialise.js +6 -1
  51. package/lib/utils/initialise.js.map +1 -1
  52. package/lib/utils/page.d.ts +43 -0
  53. package/lib/utils/page.js +101 -0
  54. package/lib/utils/page.js.map +1 -0
  55. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js +4 -0
  56. package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +1 -1
  57. package/lib/utils/questionnaireStoreUtils/extractPages.d.ts +3 -0
  58. package/lib/utils/questionnaireStoreUtils/extractPages.js +18 -0
  59. package/lib/utils/questionnaireStoreUtils/extractPages.js.map +1 -0
  60. package/package.json +4 -4
  61. package/src/components/FormComponents/Button.styles.ts +10 -0
  62. package/src/components/FormComponents/GroupItem/GroupHeading.tsx +5 -3
  63. package/src/components/FormComponents/GroupItem/GroupItem.tsx +11 -1
  64. package/src/components/FormComponents/GroupItem/GroupItemView.tsx +12 -0
  65. package/src/components/FormComponents/GroupItem/NextPageButton.tsx +37 -0
  66. package/src/components/FormComponents/GroupItem/PageButtonWrapper.tsx +78 -0
  67. package/src/components/FormComponents/GroupItem/PreviousPageButton.tsx +41 -0
  68. package/src/components/Renderer/BaseRenderer.tsx +21 -0
  69. package/src/components/Renderer/FormBodyPage.tsx +93 -0
  70. package/src/components/Renderer/FormTopLevelItem.tsx +17 -0
  71. package/src/components/Renderer/FormTopLevelPage.tsx +70 -0
  72. package/src/hooks/useCodingCalculatedExpression.ts +14 -1
  73. package/src/hooks/useNextAndPreviousVisiblePages.ts +69 -0
  74. package/src/interfaces/page.interface.ts +13 -0
  75. package/src/interfaces/questionnaireStore.interface.ts +2 -0
  76. package/src/stores/questionnaireStore.ts +33 -2
  77. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +209 -0
  78. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +220 -0
  79. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +299 -0
  80. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +175 -0
  81. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +229 -0
  82. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +359 -0
  83. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +195 -0
  84. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +195 -0
  85. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +195 -0
  86. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +174 -0
  87. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +495 -0
  88. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +139 -0
  89. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +216 -0
  90. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +199 -0
  91. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +195 -0
  92. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +195 -0
  93. package/src/stories/assets/questionnaires/QAuCoreTesting.ts +3796 -0
  94. package/src/stories/assets/questionnaires/QItemControlGroup.ts +673 -0
  95. package/src/stories/assets/questionnaires/QPrePopTester.ts +266 -71
  96. package/src/stories/sdc/ItemControlGroup.stories.tsx +22 -1
  97. package/src/stories/testing/AuCoreTester.stories.tsx +196 -0
  98. package/src/utils/calculatedExpression.ts +1 -1
  99. package/src/utils/fhirpath.ts +0 -5
  100. package/src/utils/initialise.ts +11 -0
  101. package/src/utils/page.ts +134 -0
  102. package/src/utils/questionnaireStoreUtils/createQuestionaireModel.ts +5 -0
  103. package/src/utils/questionnaireStoreUtils/extractPages.ts +24 -0
  104. package/stats.html +0 -4842
  105. package/stats1.html +0 -4842
  106. package/stats3.html +0 -4842
@@ -0,0 +1,495 @@
1
+ {
2
+ "resourceType": "Questionnaire",
3
+ "id": "AuCorePatient",
4
+ "extension": [
5
+ {
6
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
7
+ "extension": [
8
+ {
9
+ "url": "name",
10
+ "valueCoding": {
11
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
12
+ "code": "patient"
13
+ }
14
+ },
15
+ {
16
+ "url": "type",
17
+ "valueCode": "Patient"
18
+ },
19
+ {
20
+ "url": "description",
21
+ "valueString": "The patient that is to be used to pre-populate the form"
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "version": "0.1.0",
27
+ "name": "AU Core Patient",
28
+ "title": "AU Core Patient",
29
+ "status": "draft",
30
+ "date": "2024-07-24",
31
+ "item": [
32
+ {
33
+ "linkId": "patient",
34
+ "text": "AU Core Patient",
35
+ "type": "group",
36
+ "repeats": false,
37
+ "item": [
38
+ {
39
+ "extension": [
40
+ {
41
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
42
+ "valueExpression": {
43
+ "language": "text/fhirpath",
44
+ "expression": "%patient.id"
45
+ }
46
+ }
47
+ ],
48
+ "linkId": "patient-id",
49
+ "text": "Patient ID",
50
+ "type": "string"
51
+ },
52
+ {
53
+ "linkId": "extensions",
54
+ "text": "Extensions",
55
+ "type": "group",
56
+ "item": [
57
+ {
58
+ "linkId": "extension-indigenous-status",
59
+ "text": "Indigenous Status",
60
+ "type": "choice",
61
+ "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-indigenous-status-1",
62
+ "extension": [
63
+ {
64
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
65
+ "valueExpression": {
66
+ "language": "text/fhirpath",
67
+ "expression": "%patient.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value"
68
+ }
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "extension": [
74
+ {
75
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
76
+ "valueExpression": {
77
+ "language": "text/fhirpath",
78
+ "expression": "%patient.extension.where(exists(url='http://hl7.org/fhir/StructureDefinition/individual-genderIdentity') and extension.where(url='period').value.end.empty()).extension.where(url='value').value.coding"
79
+ }
80
+ },
81
+ {
82
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
83
+ "valueCodeableConcept": {
84
+ "coding": [
85
+ {
86
+ "system": "http://hl7.org/fhir/questionnaire-item-control",
87
+ "code": "drop-down"
88
+ }
89
+ ]
90
+ }
91
+ }
92
+ ],
93
+ "linkId": "f669a4fe-4818-429a-8847-d20da88d2bb3",
94
+ "text": "Gender identity",
95
+ "type": "choice",
96
+ "repeats": false,
97
+ "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/gender-identity-response-1"
98
+ },
99
+ {
100
+ "linkId": "extension-individual-pronouns",
101
+ "text": "Individual Pronouns",
102
+ "type": "choice",
103
+ "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-pronouns-1",
104
+ "extension": [
105
+ {
106
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
107
+ "valueExpression": {
108
+ "language": "text/fhirpath",
109
+ "expression": "%patient.extension.where(exists(url='http://hl7.org/fhir/StructureDefinition/individual-pronouns') and extension.where(url='period').value.end.empty()).extension.where(url='value').value.coding"
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "linkId": "identifiers",
118
+ "text": "Identifiers",
119
+ "type": "group",
120
+ "item": [
121
+ {
122
+ "linkId": "identifier-ihi",
123
+ "text": "IHI",
124
+ "type": "string",
125
+ "extension": [
126
+ {
127
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
128
+ "valueExpression": {
129
+ "language": "text/fhirpath",
130
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='NI')).value"
131
+ }
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "linkId": "identifier-medicare-number",
137
+ "text": "Medicare Number",
138
+ "type": "string",
139
+ "extension": [
140
+ {
141
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
142
+ "valueExpression": {
143
+ "language": "text/fhirpath",
144
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MC')).value"
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "linkId": "identifier-dva-number",
151
+ "text": "DVA Number",
152
+ "type": "string",
153
+ "extension": [
154
+ {
155
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
156
+ "valueExpression": {
157
+ "language": "text/fhirpath",
158
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='DVAU')).value"
159
+ }
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "linkId": "identifier-healthcare-card-number",
165
+ "text": "Healthcare Card Number",
166
+ "type": "string",
167
+ "extension": [
168
+ {
169
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
170
+ "valueExpression": {
171
+ "language": "text/fhirpath",
172
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='HC')).value"
173
+ }
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "linkId": "identifier-pensioner-consession-card-number",
179
+ "text": "Pensioner Concession Card Number",
180
+ "type": "string",
181
+ "extension": [
182
+ {
183
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
184
+ "valueExpression": {
185
+ "language": "text/fhirpath",
186
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='PEN')).value"
187
+ }
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "linkId": "identifier-senior-health-card-number",
193
+ "text": "Seniors Health Card Number",
194
+ "type": "string",
195
+ "extension": [
196
+ {
197
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
198
+ "valueExpression": {
199
+ "language": "text/fhirpath",
200
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='SEN')).value"
201
+ }
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "linkId": "identifier-medical-record-number",
207
+ "text": "Medical Record Number",
208
+ "type": "string",
209
+ "extension": [
210
+ {
211
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
212
+ "valueExpression": {
213
+ "language": "text/fhirpath",
214
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MR')).value"
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "linkId": "identifier-au-insurance-member-number",
221
+ "text": " AU Insurance Member Number",
222
+ "type": "string",
223
+ "extension": [
224
+ {
225
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
226
+ "valueExpression": {
227
+ "language": "text/fhirpath",
228
+ "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MB')).value"
229
+ }
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "linkId": "name",
237
+ "text": "Name",
238
+ "type": "group",
239
+ "item": [
240
+ {
241
+ "linkId": "name-use",
242
+ "text": "Name Use",
243
+ "type": "choice",
244
+ "answerValueSet": "http://hl7.org/fhir/ValueSet/name-use",
245
+ "extension": [
246
+ {
247
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
248
+ "valueExpression": {
249
+ "language": "text/fhirpath",
250
+ "expression": "%patient.name.use"
251
+ }
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "linkId": "name-text",
257
+ "text": "Name Text",
258
+ "type": "string",
259
+ "extension": [
260
+ {
261
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
262
+ "valueExpression": {
263
+ "language": "text/fhirpath",
264
+ "expression": "%patient.name.text"
265
+ }
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "linkId": "name-family",
271
+ "text": "Family Name",
272
+ "type": "string",
273
+ "extension": [
274
+ {
275
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
276
+ "valueExpression": {
277
+ "language": "text/fhirpath",
278
+ "expression": "%patient.name.family"
279
+ }
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "linkId": "name-given",
285
+ "text": "Given Name",
286
+ "type": "string",
287
+ "extension": [
288
+ {
289
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
290
+ "valueExpression": {
291
+ "language": "text/fhirpath",
292
+ "expression": "%patient.name.given"
293
+ }
294
+ }
295
+ ]
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ "linkId": "telecom",
301
+ "text": "Telecom",
302
+ "type": "group",
303
+ "item": [
304
+ {
305
+ "extension": [
306
+ {
307
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
308
+ "valueExpression": {
309
+ "language": "text/fhirpath",
310
+ "expression": "%patient.telecom.where(system = 'phone' and use = 'home').value"
311
+ }
312
+ }
313
+ ],
314
+ "linkId": "9541f0b0-f5ba-4fe7-a8e9-ad003cef897b",
315
+ "text": "Home phone",
316
+ "type": "string"
317
+ },
318
+ {
319
+ "extension": [
320
+ {
321
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
322
+ "valueExpression": {
323
+ "language": "text/fhirpath",
324
+ "expression": "%patient.telecom.where(system = 'phone' and use = 'mobile').value"
325
+ }
326
+ }
327
+ ],
328
+ "linkId": "4037a02b-4a85-40e0-9be6-5b17df1aac56",
329
+ "text": "Mobile phone",
330
+ "type": "string"
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "linkId": "gender",
336
+ "text": "Gender",
337
+ "type": "choice",
338
+ "answerValueSet": "http://hl7.org/fhir/ValueSet/administrative-gender",
339
+ "extension": [
340
+ {
341
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
342
+ "valueExpression": {
343
+ "language": "text/fhirpath",
344
+ "expression": "%patient.gender"
345
+ }
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "linkId": "birth-date",
351
+ "text": "Birth Date",
352
+ "type": "string",
353
+ "extension": [
354
+ {
355
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
356
+ "valueExpression": {
357
+ "language": "text/fhirpath",
358
+ "expression": "%patient.birthDate"
359
+ }
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "linkId": "address",
365
+ "text": "Address",
366
+ "type": "group",
367
+ "item": [
368
+ {
369
+ "linkId": "address-use",
370
+ "text": "Address Use",
371
+ "type": "choice",
372
+ "answerValueSet": "http://hl7.org/fhir/ValueSet/address-use",
373
+ "extension": [
374
+ {
375
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
376
+ "valueExpression": {
377
+ "language": "text/fhirpath",
378
+ "expression": "%patient.address.use"
379
+ }
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "linkId": "address-text",
385
+ "text": "Address Text",
386
+ "type": "string",
387
+ "extension": [
388
+ {
389
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
390
+ "valueExpression": {
391
+ "language": "text/fhirpath",
392
+ "expression": "%patient.address.text"
393
+ }
394
+ }
395
+ ]
396
+ },
397
+ {
398
+ "linkId": "address-line",
399
+ "text": "Address Line",
400
+ "type": "string",
401
+ "repeats": true,
402
+ "extension": [
403
+ {
404
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
405
+ "valueExpression": {
406
+ "language": "text/fhirpath",
407
+ "expression": "%patient.address.line"
408
+ }
409
+ }
410
+ ]
411
+ },
412
+ {
413
+ "linkId": "address-city",
414
+ "text": "City",
415
+ "type": "string",
416
+ "extension": [
417
+ {
418
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
419
+ "valueExpression": {
420
+ "language": "text/fhirpath",
421
+ "expression": "%patient.address.city"
422
+ }
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "linkId": "address-state",
428
+ "text": "State",
429
+ "type": "string",
430
+ "extension": [
431
+ {
432
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
433
+ "valueExpression": {
434
+ "language": "text/fhirpath",
435
+ "expression": "%patient.address.state"
436
+ }
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "linkId": "address-postal-code",
442
+ "text": "Postal Code",
443
+ "type": "string",
444
+ "extension": [
445
+ {
446
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
447
+ "valueExpression": {
448
+ "language": "text/fhirpath",
449
+ "expression": "%patient.address.postalCode"
450
+ }
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "linkId": "communication",
458
+ "text": "Communication",
459
+ "type": "group",
460
+ "item": [
461
+ {
462
+ "linkId": "communication-language",
463
+ "text": "Communication Language",
464
+ "type": "choice",
465
+ "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-2",
466
+ "extension": [
467
+ {
468
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
469
+ "valueExpression": {
470
+ "language": "text/fhirpath",
471
+ "expression": "%patient.communication.language.coding"
472
+ }
473
+ }
474
+ ]
475
+ },
476
+ {
477
+ "linkId": "communication-preferred",
478
+ "text": "Communication Preferred",
479
+ "type": "boolean",
480
+ "extension": [
481
+ {
482
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
483
+ "valueExpression": {
484
+ "language": "text/fhirpath",
485
+ "expression": "%patient.communication.preferred"
486
+ }
487
+ }
488
+ ]
489
+ }
490
+ ]
491
+ }
492
+ ]
493
+ }
494
+ ]
495
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "resourceType": "Questionnaire",
3
+ "id": "AuCorePractitioner",
4
+ "extension": [
5
+ {
6
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
7
+ "extension": [
8
+ {
9
+ "url": "name",
10
+ "valueCoding": {
11
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
12
+ "code": "user"
13
+ }
14
+ },
15
+ {
16
+ "url": "type",
17
+ "valueCode": "Practitioner"
18
+ },
19
+ {
20
+ "url": "description",
21
+ "valueString": "The practitioner that is to be used to pre-populate the form"
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "version": "0.1.0",
27
+ "name": "AU Core Practitioner",
28
+ "title": "AU Core Practitioner",
29
+ "status": "draft",
30
+ "date": "2024-07-24",
31
+ "item": [
32
+ {
33
+ "linkId": "practitioner",
34
+ "text": "AU Core Practitioner",
35
+ "type": "group",
36
+ "repeats": false,
37
+ "item": [
38
+ {
39
+ "linkId": "identifiers",
40
+ "text": "Identifiers",
41
+ "type": "group",
42
+ "item": [
43
+ {
44
+ "linkId": "identifier-au-hpi-i",
45
+ "text": "Healthcare Provider Identifier – Individual",
46
+ "type": "string",
47
+ "extension": [
48
+ {
49
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
50
+ "valueExpression": {
51
+ "language": "text/fhirpath",
52
+ "expression": "%user.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='NPI')).value"
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "linkId": "identifier-pbs-presciber-number",
59
+ "text": "PBS Prescriber Number",
60
+ "type": "string",
61
+ "extension": [
62
+ {
63
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
64
+ "valueExpression": {
65
+ "language": "text/fhirpath",
66
+ "expression": "%user.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='PRES')).value"
67
+ }
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "linkId": "identifier-cae-identifier",
73
+ "text": "Care Agency Employee (CAE) Identifier",
74
+ "type": "string",
75
+ "extension": [
76
+ {
77
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
78
+ "valueExpression": {
79
+ "language": "text/fhirpath",
80
+ "expression": "%user.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='CAEI')).value"
81
+ }
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "linkId": "identifier-ahpra-number",
87
+ "text": "Australian Health Practitioner Regulation Agency (Ahpra) Registration Number",
88
+ "type": "string",
89
+ "extension": [
90
+ {
91
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
92
+ "valueExpression": {
93
+ "language": "text/fhirpath",
94
+ "expression": "%user.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='AHPRA')).value"
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ "linkId": "name",
103
+ "text": "Name",
104
+ "type": "group",
105
+ "item": [
106
+ {
107
+ "linkId": "name-family",
108
+ "text": "Family Name",
109
+ "type": "string",
110
+ "extension": [
111
+ {
112
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
113
+ "valueExpression": {
114
+ "language": "text/fhirpath",
115
+ "expression": "%user.name.family"
116
+ }
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "linkId": "name-given",
122
+ "text": "Given Name",
123
+ "type": "string",
124
+ "extension": [
125
+ {
126
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
127
+ "valueExpression": {
128
+ "language": "text/fhirpath",
129
+ "expression": "%user.name.given"
130
+ }
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ }