@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.
- package/CHANGELOG.md +40 -0
- package/lib/components/FormComponents/Button.styles.d.ts +4 -0
- package/lib/components/FormComponents/Button.styles.js +10 -0
- package/lib/components/FormComponents/Button.styles.js.map +1 -0
- package/lib/components/FormComponents/GroupItem/GroupHeading.d.ts +1 -0
- package/lib/components/FormComponents/GroupItem/GroupHeading.js +3 -2
- package/lib/components/FormComponents/GroupItem/GroupHeading.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/GroupItem.d.ts +4 -0
- package/lib/components/FormComponents/GroupItem/GroupItem.js +3 -3
- package/lib/components/FormComponents/GroupItem/GroupItem.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/GroupItemView.d.ts +4 -0
- package/lib/components/FormComponents/GroupItem/GroupItemView.js +8 -5
- package/lib/components/FormComponents/GroupItem/GroupItemView.js.map +1 -1
- package/lib/components/FormComponents/GroupItem/NextPageButton.d.ts +7 -0
- package/lib/components/FormComponents/GroupItem/NextPageButton.js +26 -0
- package/lib/components/FormComponents/GroupItem/NextPageButton.js.map +1 -0
- package/lib/components/FormComponents/GroupItem/PageButtonWrapper.d.ts +8 -0
- package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js +46 -0
- package/lib/components/FormComponents/GroupItem/PageButtonWrapper.js.map +1 -0
- package/lib/components/FormComponents/GroupItem/PreviousPageButton.d.ts +7 -0
- package/lib/components/FormComponents/GroupItem/PreviousPageButton.js +26 -0
- package/lib/components/FormComponents/GroupItem/PreviousPageButton.js.map +1 -0
- package/lib/components/Renderer/BaseRenderer.js +8 -0
- package/lib/components/Renderer/BaseRenderer.js.map +1 -1
- package/lib/components/Renderer/FormBodyPage.d.ts +9 -0
- package/lib/components/Renderer/FormBodyPage.js +43 -0
- package/lib/components/Renderer/FormBodyPage.js.map +1 -0
- package/lib/components/Renderer/FormTopLevelItem.js +7 -0
- package/lib/components/Renderer/FormTopLevelItem.js.map +1 -1
- package/lib/components/Renderer/FormTopLevelPage.d.ts +9 -0
- package/lib/components/Renderer/FormTopLevelPage.js +29 -0
- package/lib/components/Renderer/FormTopLevelPage.js.map +1 -0
- package/lib/hooks/useCodingCalculatedExpression.js +11 -0
- package/lib/hooks/useCodingCalculatedExpression.js.map +1 -1
- package/lib/hooks/useNextAndPreviousVisiblePages.d.ts +7 -0
- package/lib/hooks/useNextAndPreviousVisiblePages.js +47 -0
- package/lib/hooks/useNextAndPreviousVisiblePages.js.map +1 -0
- package/lib/interfaces/page.interface.d.ts +16 -0
- package/lib/interfaces/page.interface.js +2 -0
- package/lib/interfaces/page.interface.js.map +1 -0
- package/lib/interfaces/questionnaireStore.interface.d.ts +2 -0
- package/lib/stores/questionnaireStore.d.ts +13 -0
- package/lib/stores/questionnaireStore.js +19 -3
- package/lib/stores/questionnaireStore.js.map +1 -1
- package/lib/utils/calculatedExpression.js +1 -1
- package/lib/utils/calculatedExpression.js.map +1 -1
- package/lib/utils/fhirpath.js +0 -4
- package/lib/utils/fhirpath.js.map +1 -1
- package/lib/utils/initialise.d.ts +3 -0
- package/lib/utils/initialise.js +6 -1
- package/lib/utils/initialise.js.map +1 -1
- package/lib/utils/page.d.ts +43 -0
- package/lib/utils/page.js +101 -0
- package/lib/utils/page.js.map +1 -0
- package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js +4 -0
- package/lib/utils/questionnaireStoreUtils/createQuestionaireModel.js.map +1 -1
- package/lib/utils/questionnaireStoreUtils/extractPages.d.ts +3 -0
- package/lib/utils/questionnaireStoreUtils/extractPages.js +18 -0
- package/lib/utils/questionnaireStoreUtils/extractPages.js.map +1 -0
- package/package.json +4 -4
- package/src/components/FormComponents/Button.styles.ts +10 -0
- package/src/components/FormComponents/GroupItem/GroupHeading.tsx +5 -3
- package/src/components/FormComponents/GroupItem/GroupItem.tsx +11 -1
- package/src/components/FormComponents/GroupItem/GroupItemView.tsx +12 -0
- package/src/components/FormComponents/GroupItem/NextPageButton.tsx +37 -0
- package/src/components/FormComponents/GroupItem/PageButtonWrapper.tsx +78 -0
- package/src/components/FormComponents/GroupItem/PreviousPageButton.tsx +41 -0
- package/src/components/Renderer/BaseRenderer.tsx +21 -0
- package/src/components/Renderer/FormBodyPage.tsx +93 -0
- package/src/components/Renderer/FormTopLevelItem.tsx +17 -0
- package/src/components/Renderer/FormTopLevelPage.tsx +70 -0
- package/src/hooks/useCodingCalculatedExpression.ts +14 -1
- package/src/hooks/useNextAndPreviousVisiblePages.ts +69 -0
- package/src/interfaces/page.interface.ts +13 -0
- package/src/interfaces/questionnaireStore.interface.ts +2 -0
- package/src/stores/questionnaireStore.ts +33 -2
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +209 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +220 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +299 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +175 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +229 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +359 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +174 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +495 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +139 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +216 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +199 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +195 -0
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +195 -0
- package/src/stories/assets/questionnaires/QAuCoreTesting.ts +3796 -0
- package/src/stories/assets/questionnaires/QItemControlGroup.ts +673 -0
- package/src/stories/assets/questionnaires/QPrePopTester.ts +266 -71
- package/src/stories/sdc/ItemControlGroup.stories.tsx +22 -1
- package/src/stories/testing/AuCoreTester.stories.tsx +196 -0
- package/src/utils/calculatedExpression.ts +1 -1
- package/src/utils/fhirpath.ts +0 -5
- package/src/utils/initialise.ts +11 -0
- package/src/utils/page.ts +134 -0
- package/src/utils/questionnaireStoreUtils/createQuestionaireModel.ts +5 -0
- package/src/utils/questionnaireStoreUtils/extractPages.ts +24 -0
- package/stats.html +0 -4842
- package/stats1.html +0 -4842
- package/stats3.html +0 -4842
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "Questionnaire",
|
|
3
|
+
"id": "AuCoreCondition",
|
|
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
|
+
"url": "http://hl7.org/fhir/StructureDefinition/variable",
|
|
27
|
+
"valueExpression": {
|
|
28
|
+
"name": "Condition",
|
|
29
|
+
"language": "application/x-fhir-query",
|
|
30
|
+
"expression": "Condition?patient={{%patient.id}}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"version": "0.5.0-ci-build",
|
|
35
|
+
"name": "AU Core Condition",
|
|
36
|
+
"title": "AU Core Condition",
|
|
37
|
+
"status": "draft",
|
|
38
|
+
"date": "2024-07-15",
|
|
39
|
+
"item": [
|
|
40
|
+
{
|
|
41
|
+
"linkId": "condition",
|
|
42
|
+
"text": "AU Core Condition",
|
|
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-condition-note",
|
|
87
|
+
"text": "This questionnaire only uses the first Condition resource of a referenced patient.",
|
|
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 <b>This questionnaire only uses the first Condition resource of a referenced patient.</b>\r\n</div>"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"type": "display"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"linkId": "clinical-status",
|
|
100
|
+
"text": "Clinical Status",
|
|
101
|
+
"type": "choice",
|
|
102
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/condition-clinical",
|
|
103
|
+
"extension": [
|
|
104
|
+
{
|
|
105
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
106
|
+
"valueExpression": {
|
|
107
|
+
"language": "text/fhirpath",
|
|
108
|
+
"expression": "%Condition.entry[0].resource.clinicalStatus.coding"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"linkId": "verification-status",
|
|
115
|
+
"text": "Verification Status",
|
|
116
|
+
"type": "choice",
|
|
117
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status",
|
|
118
|
+
"extension": [
|
|
119
|
+
{
|
|
120
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
121
|
+
"valueExpression": {
|
|
122
|
+
"language": "text/fhirpath",
|
|
123
|
+
"expression": "%Condition.entry[0].resource.verificationStatus.coding"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"linkId": "category",
|
|
130
|
+
"text": "Category",
|
|
131
|
+
"type": "choice",
|
|
132
|
+
"required": true,
|
|
133
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/condition-category",
|
|
134
|
+
"extension": [
|
|
135
|
+
{
|
|
136
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
137
|
+
"valueExpression": {
|
|
138
|
+
"language": "text/fhirpath",
|
|
139
|
+
"expression": "%Condition.entry[0].resource.category.coding"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"linkId": "severity",
|
|
146
|
+
"text": "Severity",
|
|
147
|
+
"type": "choice",
|
|
148
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/condition-severity",
|
|
149
|
+
"extension": [
|
|
150
|
+
{
|
|
151
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
152
|
+
"valueExpression": {
|
|
153
|
+
"language": "text/fhirpath",
|
|
154
|
+
"expression": "%Condition.entry[0].resource.severity.coding"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"linkId": "code",
|
|
161
|
+
"text": "Code",
|
|
162
|
+
"type": "choice",
|
|
163
|
+
"required": true,
|
|
164
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/condition-code",
|
|
165
|
+
"extension": [
|
|
166
|
+
{
|
|
167
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
168
|
+
"valueExpression": {
|
|
169
|
+
"language": "text/fhirpath",
|
|
170
|
+
"expression": "%Condition.entry[0].resource.code.coding"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"extension": [
|
|
177
|
+
{
|
|
178
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
179
|
+
"valueExpression": {
|
|
180
|
+
"language": "text/fhirpath",
|
|
181
|
+
"expression": "%Condition.entry[0].resource.onset.value"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"linkId": "onset",
|
|
186
|
+
"text": "Onset[x]",
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"extension": [
|
|
191
|
+
{
|
|
192
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
193
|
+
"valueExpression": {
|
|
194
|
+
"language": "text/fhirpath",
|
|
195
|
+
"expression": "%Condition.entry[0].resource.abatement.value"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"linkId": "abatement",
|
|
200
|
+
"text": "Abatement[x]",
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"linkId": "note",
|
|
205
|
+
"text": "Note",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"extension": [
|
|
208
|
+
{
|
|
209
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
210
|
+
"valueExpression": {
|
|
211
|
+
"language": "text/fhirpath",
|
|
212
|
+
"expression": "%Condition.entry[0].resource.note.text"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
{
|
|
2
|
+
"resourceType": "Questionnaire",
|
|
3
|
+
"id": "AuCoreEncounter",
|
|
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
|
+
"url": "http://hl7.org/fhir/StructureDefinition/variable",
|
|
27
|
+
"valueExpression": {
|
|
28
|
+
"name": "Encounter",
|
|
29
|
+
"language": "application/x-fhir-query",
|
|
30
|
+
"expression": "Encounter?patient={{%patient.id}}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"version": "0.5.0-ci-build",
|
|
35
|
+
"name": "AU Core Encounter",
|
|
36
|
+
"title": "AU Core Encounter",
|
|
37
|
+
"status": "draft",
|
|
38
|
+
"date": "2024-07-15",
|
|
39
|
+
"item": [
|
|
40
|
+
{
|
|
41
|
+
"linkId": "encounter",
|
|
42
|
+
"text": "AU Core Encounter",
|
|
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-encounter-note",
|
|
87
|
+
"text": "This questionnaire only uses the first Encounter 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 Encounter 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/encounter-status",
|
|
104
|
+
"extension": [
|
|
105
|
+
{
|
|
106
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
107
|
+
"valueExpression": {
|
|
108
|
+
"language": "text/fhirpath",
|
|
109
|
+
"expression": "%Encounter.entry[0].resource.status"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"linkId": "class",
|
|
116
|
+
"text": "Class",
|
|
117
|
+
"type": "choice",
|
|
118
|
+
"required": "true",
|
|
119
|
+
"answerValueSet": "http://terminology.hl7.org.au/ValueSet/v3-ActEncounterCode-extended",
|
|
120
|
+
"extension": [
|
|
121
|
+
{
|
|
122
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
123
|
+
"valueExpression": {
|
|
124
|
+
"language": "text/fhirpath",
|
|
125
|
+
"expression": "%Encounter.entry[0].resource.class"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"linkId": "service-type",
|
|
132
|
+
"text": "Service Type",
|
|
133
|
+
"type": "choice",
|
|
134
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/service-type",
|
|
135
|
+
"extension": [
|
|
136
|
+
{
|
|
137
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
138
|
+
"valueExpression": {
|
|
139
|
+
"language": "text/fhirpath",
|
|
140
|
+
"expression": "%Encounter.entry[0].resource.serviceType.coding"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"linkId": "participant",
|
|
147
|
+
"text": "Participant",
|
|
148
|
+
"type": "group",
|
|
149
|
+
"item": [
|
|
150
|
+
{
|
|
151
|
+
"linkId": "participant-type",
|
|
152
|
+
"text": "Participant Type",
|
|
153
|
+
"type": "choice",
|
|
154
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type",
|
|
155
|
+
"extension": [
|
|
156
|
+
{
|
|
157
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
158
|
+
"valueExpression": {
|
|
159
|
+
"language": "text/fhirpath",
|
|
160
|
+
"expression": "%Encounter.entry[0].resource.participant.type.coding"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"linkId": "participant-individual",
|
|
167
|
+
"text": "Participant Individual",
|
|
168
|
+
"type": "reference",
|
|
169
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/participant-individual",
|
|
170
|
+
"extension": [
|
|
171
|
+
{
|
|
172
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
173
|
+
"valueExpression": {
|
|
174
|
+
"language": "text/fhirpath",
|
|
175
|
+
"expression": "%Encounter.entry[0].resource.participant.individual.reference"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"linkId": "period",
|
|
184
|
+
"text": "Period",
|
|
185
|
+
"type": "group",
|
|
186
|
+
"item": [
|
|
187
|
+
{
|
|
188
|
+
"linkId": "period-start",
|
|
189
|
+
"text": "Period Start",
|
|
190
|
+
"type": "dateTime",
|
|
191
|
+
"extension": [
|
|
192
|
+
{
|
|
193
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
194
|
+
"valueExpression": {
|
|
195
|
+
"language": "text/fhirpath",
|
|
196
|
+
"expression": "%Encounter.entry[0].resource.period.start"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"linkId": "period-end",
|
|
203
|
+
"text": "Period End",
|
|
204
|
+
"type": "dateTime",
|
|
205
|
+
"extension": [
|
|
206
|
+
{
|
|
207
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
208
|
+
"valueExpression": {
|
|
209
|
+
"language": "text/fhirpath",
|
|
210
|
+
"expression": "%Encounter.entry[0].resource.period.end"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
{
|
|
219
|
+
"linkId": "reason-code",
|
|
220
|
+
"text": "Reason Code",
|
|
221
|
+
"type": "choice",
|
|
222
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/encounter-reason",
|
|
223
|
+
"extension": [
|
|
224
|
+
{
|
|
225
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
226
|
+
"valueExpression": {
|
|
227
|
+
"language": "text/fhirpath",
|
|
228
|
+
"expression": "%Encounter.entry[0].resource.reasonCode.coding"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
|
|
233
|
+
"valueCodeableConcept": {
|
|
234
|
+
"coding": [
|
|
235
|
+
{
|
|
236
|
+
"system": "http://hl7.org/fhir/questionnaire-item-control",
|
|
237
|
+
"code": "autocomplete"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"linkId": "reason-reference",
|
|
246
|
+
"text": "Reason Reference",
|
|
247
|
+
"type": "reference",
|
|
248
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/reason-reference",
|
|
249
|
+
"extension": [
|
|
250
|
+
{
|
|
251
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
252
|
+
"valueExpression": {
|
|
253
|
+
"language": "text/fhirpath",
|
|
254
|
+
"expression": "%Encounter.entry[0].resource.reasonReference.reference"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"linkId": "location",
|
|
261
|
+
"text": "Location",
|
|
262
|
+
"type": "group",
|
|
263
|
+
"item": [
|
|
264
|
+
{
|
|
265
|
+
"linkId": "location-location",
|
|
266
|
+
"text": "Location",
|
|
267
|
+
"type": "reference",
|
|
268
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/location",
|
|
269
|
+
"extension": [
|
|
270
|
+
{
|
|
271
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
272
|
+
"valueExpression": {
|
|
273
|
+
"language": "text/fhirpath",
|
|
274
|
+
"expression": "%Encounter.entry[0].resource.location.location.reference"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"linkId": "service-provider",
|
|
283
|
+
"text": "Service Provider",
|
|
284
|
+
"type": "reference",
|
|
285
|
+
"answerValueSet": "http://hl7.org/fhir/ValueSet/service-provider",
|
|
286
|
+
"extension": [
|
|
287
|
+
{
|
|
288
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
289
|
+
"valueExpression": {
|
|
290
|
+
"language": "text/fhirpath",
|
|
291
|
+
"expression": "%Encounter.entry[0].resource.serviceProvider.reference"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
}
|