@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,139 +0,0 @@
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
- }
@@ -1,216 +0,0 @@
1
- {
2
- "resourceType": "Questionnaire",
3
- "id": "AuCorePractitionerRole",
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
- "url": "http://hl7.org/fhir/StructureDefinition/variable",
27
- "valueExpression": {
28
- "name": "PractitionerRole",
29
- "language": "application/x-fhir-query",
30
- "expression": "PractitionerRole?practitioner={{%user.id}}"
31
- }
32
- }
33
- ],
34
- "version": "0.1.0",
35
- "name": "AU Core PractitionerRole",
36
- "title": "AU Core PractitionerRole",
37
- "status": "draft",
38
- "date": "2024-07-24",
39
- "item": [
40
- {
41
- "linkId": "practitionerRole",
42
- "text": "AU Core PractitionerRole",
43
- "type": "group",
44
- "repeats": false,
45
- "item": [
46
- {
47
- "linkId": "practitioner-details",
48
- "text": "Practitioner Details",
49
- "type": "group",
50
- "item": [
51
- {
52
- "extension": [
53
- {
54
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
55
- "valueExpression": {
56
- "language": "text/fhirpath",
57
- "expression": "%user.id"
58
- }
59
- }
60
- ],
61
- "linkId": "practitioner-id",
62
- "text": "Practitioner ID",
63
- "type": "string",
64
- "required": true,
65
- "readOnly": true
66
- },
67
- {
68
- "extension": [
69
- {
70
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
71
- "valueExpression": {
72
- "language": "text/fhirpath",
73
- "expression": "(%user.name.select((family | (given | prefix).join(' ')).join(', ').where($this != '') | text)).first()"
74
- }
75
- }
76
- ],
77
- "linkId": "practitioner-name",
78
- "text": "Practitioner Name",
79
- "type": "string",
80
- "required": true,
81
- "readOnly": true
82
- }
83
- ]
84
- },
85
- {
86
- "linkId": "identifiers",
87
- "text": "Identifiers",
88
- "type": "group",
89
- "item": [
90
- {
91
- "linkId": "identifier-medicare-provider-number",
92
- "text": "Medicare Provider Number",
93
- "type": "string",
94
- "extension": [
95
- {
96
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
97
- "valueExpression": {
98
- "language": "text/fhirpath",
99
- "expression": "%PractitionerRole.entry[0].resource.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='UPIN')).value"
100
- }
101
- }
102
- ]
103
- },
104
- {
105
- "linkId": "identifier-national-provider-identifier",
106
- "text": "National Provider Identifier at Organisation (NPIO)",
107
- "type": "string",
108
- "extension": [
109
- {
110
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
111
- "valueExpression": {
112
- "language": "text/fhirpath",
113
- "expression": "%PractitionerRole.entry[0].resource.identifier.where(type.coding.exists(system='http://terminology.hl7.org.au/CodeSystem/v2-0203' and code='NPIO')).value"
114
- }
115
- }
116
- ]
117
- },
118
- {
119
- "linkId": "identifier-employee-number",
120
- "text": "Employee Number",
121
- "type": "string",
122
- "extension": [
123
- {
124
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
125
- "valueExpression": {
126
- "language": "text/fhirpath",
127
- "expression": "%PractitionerRole.entry[0].resource.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='EI')).value"
128
- }
129
- }
130
- ]
131
- }
132
- ]
133
- },
134
- {
135
- "linkId": "organization",
136
- "text": "Organization",
137
- "type": "reference",
138
- "extension": [
139
- {
140
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
141
- "valueExpression": {
142
- "language": "text/fhirpath",
143
- "expression": "%PractitionerRole.entry[0].resource.organization.reference"
144
- }
145
- }
146
- ]
147
- },
148
- {
149
- "linkId": "code",
150
- "text": "Code",
151
- "type": "choice",
152
- "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/practitioner-role-1",
153
- "extension": [
154
- {
155
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
156
- "valueExpression": {
157
- "language": "text/fhirpath",
158
- "expression": "%PractitionerRole.entry[0].resource.code.coding"
159
- }
160
- }
161
- ]
162
- },
163
- {
164
- "linkId": "specialty",
165
- "text": "Specialty",
166
- "type": "choice",
167
- "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-specialty-1",
168
- "extension": [
169
- {
170
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
171
- "valueExpression": {
172
- "language": "text/fhirpath",
173
- "expression": "%PractitionerRole.entry[0].resource.specialty.coding"
174
- }
175
- }
176
- ]
177
- },
178
- {
179
- "linkId": "telecom",
180
- "text": "Telecom",
181
- "type": "group",
182
- "item": [
183
- {
184
- "extension": [
185
- {
186
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
187
- "valueExpression": {
188
- "language": "text/fhirpath",
189
- "expression": "%PractitionerRole.entry[0].resource.telecom.where(system = 'phone' and use = 'work').value"
190
- }
191
- }
192
- ],
193
- "linkId": "9541f0b0-f5ba-4fe7-a8e9-ad003cef897b",
194
- "text": "Home phone",
195
- "type": "string"
196
- },
197
- {
198
- "extension": [
199
- {
200
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
201
- "valueExpression": {
202
- "language": "text/fhirpath",
203
- "expression": "%PractitionerRole.entry[0].resource.telecom.where(system = 'email' and use = 'work').value"
204
- }
205
- }
206
- ],
207
- "linkId": "4037a02b-4a85-40e0-9be6-5b17df1aac56",
208
- "text": "Mobile phone",
209
- "type": "string"
210
- }
211
- ]
212
- }
213
- ]
214
- }
215
- ]
216
- }
@@ -1,199 +0,0 @@
1
- {
2
- "resourceType": "Questionnaire",
3
- "id": "AuCoreProcedure",
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 procedure that is to be used to pre-populate the form"
22
- }
23
- ]
24
- },
25
- {
26
- "url": "http://hl7.org/fhir/StructureDefinition/variable",
27
- "valueExpression": {
28
- "name": "Procedure",
29
- "language": "application/x-fhir-query",
30
- "expression": "Procedure?patient={{%patient.id}}"
31
- }
32
- }
33
- ],
34
- "version": "0.1.0",
35
- "name": "AU Core Procedure",
36
- "title": "AU Core Procedure",
37
- "status": "draft",
38
- "date": "2024-07-24",
39
- "item": [
40
- {
41
- "linkId": "procedure",
42
- "text": "AU Core Procedure",
43
- "type": "group",
44
- "repeats": false,
45
- "item": [
46
- {
47
- "linkId": "patient-details",
48
- "text": "Patient Details",
49
- "type": "group",
50
- "item": [
51
- {
52
- "extension": [
53
- {
54
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
55
- "valueExpression": {
56
- "language": "text/fhirpath",
57
- "expression": "%patient.id"
58
- }
59
- }
60
- ],
61
- "linkId": "patient-id",
62
- "text": "Patient ID",
63
- "type": "string",
64
- "required": true,
65
- "readOnly": true
66
- },
67
- {
68
- "extension": [
69
- {
70
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
71
- "valueExpression": {
72
- "language": "text/fhirpath",
73
- "expression": "(%patient.name.where(use='official').select((family | (given\n| prefix).join(' ')).join(', ').where($this != '') | text)).first()"
74
- }
75
- }
76
- ],
77
- "linkId": "patient-name",
78
- "text": "Patient Name",
79
- "type": "string",
80
- "required": true,
81
- "readOnly": true
82
- }
83
- ]
84
- },
85
- {
86
- "linkId": "first-procedure-note",
87
- "text": "This questionnaire only uses the first Procedure resource of a referenced\npatient.",
88
- "_text": {
89
- "extension": [
90
- {
91
- "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
92
- "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"padding-bottom:\n8px;\">\r\n\n <b>This questionnaire only uses the first Procedure resource\nof a referenced\npatient.</b>\r\n</div>"
93
- }
94
- ]
95
- },
96
- "type": "display"
97
- },
98
- {
99
- "linkId": "status",
100
- "text": "Status",
101
- "type": "choice",
102
- "required": true,
103
- "answerValueSet": "http://hl7.org/fhir/ValueSet/event-status",
104
- "extension": [
105
- {
106
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
107
- "valueExpression": {
108
- "language": "text/fhirpath",
109
- "expression": "%Procedure.entry[0].resource.status"
110
- }
111
- }
112
- ]
113
- },
114
- {
115
- "linkId": "code",
116
- "text": "Code",
117
- "type": "choice",
118
- "required": true,
119
- "answerValueSet": "http://hl7.org/fhir/ValueSet/procedure-code",
120
- "extension": [
121
- {
122
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
123
- "valueExpression": {
124
- "language": "text/fhirpath",
125
- "expression": "%Procedure.entry[0].resource.code.coding"
126
- }
127
- },
128
- {
129
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
130
- "valueCodeableConcept": {
131
- "coding": [
132
- {
133
- "system": "http://hl7.org/fhir/questionnaire-item-control",
134
- "code": "autocomplete"
135
- }
136
- ]
137
- }
138
- }
139
- ]
140
- },
141
-
142
- {
143
- "linkId": "encounter",
144
- "text": "Encounter",
145
- "type": "reference",
146
- "extension": [
147
- {
148
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
149
- "valueExpression": {
150
- "language": "text/fhirpath",
151
- "expression": "%Procedure.entry[0].resource.encounter.reference"
152
- }
153
- }
154
- ]
155
- },
156
- {
157
- "linkId": "performed",
158
- "text": "Performed[x]",
159
- "type": "string",
160
- "extension": [
161
- {
162
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
163
- "valueExpression": {
164
- "language": "text/fhirpath",
165
- "expression": "%Procedure.entry[0].resource.performed"
166
- }
167
- }
168
- ]
169
- },
170
- {
171
- "linkId": "reasonCode",
172
- "text": "Reason Code",
173
- "type": "choice",
174
- "answerValueSet": "http://hl7.org/fhir/ValueSet/procedure-reason",
175
- "extension": [
176
- {
177
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
178
- "valueExpression": {
179
- "language": "text/fhirpath",
180
- "expression": "%Procedure.entry[0].resource.reasonCode.coding"
181
- }
182
- },
183
- {
184
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
185
- "valueCodeableConcept": {
186
- "coding": [
187
- {
188
- "system": "http://hl7.org/fhir/questionnaire-item-control",
189
- "code": "autocomplete"
190
- }
191
- ]
192
- }
193
- }
194
- ]
195
- }
196
- ]
197
- }
198
- ]
199
- }