@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev2 → 1.0.0-alpha.42.dev3
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/package.json +1 -1
- package/.storybook/main.ts +0 -34
- package/.storybook/preview.tsx +0 -40
- package/src/stories/assets/fhirClient/mockFhirClient.ts +0 -52
- package/src/stories/assets/patients/PatSmartForm.ts +0 -281
- package/src/stories/assets/practitioners/PracPrimaryPeter.ts +0 -38
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +0 -209
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +0 -220
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +0 -299
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +0 -175
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +0 -229
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +0 -359
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +0 -174
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +0 -495
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +0 -139
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +0 -216
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +0 -199
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +0 -195
- package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +0 -113
- package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +0 -865
- package/src/stories/assets/questionnaires/QAdvancedOther.ts +0 -494
- package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +0 -503
- package/src/stories/assets/questionnaires/QAttachment.ts +0 -38
- package/src/stories/assets/questionnaires/QAuCoreTesting.ts +0 -3796
- package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +0 -643
- package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +0 -281
- package/src/stories/assets/questionnaires/QBehaviorOther.ts +0 -1241
- package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +0 -508
- package/src/stories/assets/questionnaires/QBoolean.ts +0 -180
- package/src/stories/assets/questionnaires/QButtonTester.ts +0 -497
- package/src/stories/assets/questionnaires/QChoice.ts +0 -493
- package/src/stories/assets/questionnaires/QDate.ts +0 -56
- package/src/stories/assets/questionnaires/QDateTime.ts +0 -56
- package/src/stories/assets/questionnaires/QDecimal.ts +0 -56
- package/src/stories/assets/questionnaires/QDisplay.ts +0 -197
- package/src/stories/assets/questionnaires/QFormPopulation.ts +0 -1349
- package/src/stories/assets/questionnaires/QGroup.ts +0 -52
- package/src/stories/assets/questionnaires/QGroupTableTester.ts +0 -461
- package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +0 -161
- package/src/stories/assets/questionnaires/QInteger.ts +0 -119
- package/src/stories/assets/questionnaires/QItemControlDisplay.ts +0 -558
- package/src/stories/assets/questionnaires/QItemControlGroup.ts +0 -1530
- package/src/stories/assets/questionnaires/QItemControlQuestion.ts +0 -1271
- package/src/stories/assets/questionnaires/QMbs715Tester.ts +0 -32888
- package/src/stories/assets/questionnaires/QOpenChoice.ts +0 -151
- package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +0 -312
- package/src/stories/assets/questionnaires/QPrePopTester.ts +0 -543
- package/src/stories/assets/questionnaires/QQuantity.ts +0 -365
- package/src/stories/assets/questionnaires/QReference.ts +0 -38
- package/src/stories/assets/questionnaires/QSingleItems.ts +0 -251
- package/src/stories/assets/questionnaires/QString.ts +0 -131
- package/src/stories/assets/questionnaires/QTerminologyControl.ts +0 -59
- package/src/stories/assets/questionnaires/QText.ts +0 -169
- package/src/stories/assets/questionnaires/QTime.ts +0 -38
- package/src/stories/assets/questionnaires/QUrl.ts +0 -38
- package/src/stories/assets/questionnaires/QValidateTester.ts +0 -118
- package/src/stories/assets/questionnaires/index.ts +0 -43
- package/src/stories/itemTypes/Attachment.stories.tsx +0 -39
- package/src/stories/itemTypes/Boolean.stories.tsx +0 -65
- package/src/stories/itemTypes/Choice.stories.tsx +0 -78
- package/src/stories/itemTypes/Date.stories.tsx +0 -46
- package/src/stories/itemTypes/DateTime.stories.tsx +0 -45
- package/src/stories/itemTypes/Decimal.stories.tsx +0 -56
- package/src/stories/itemTypes/Display.stories.tsx +0 -55
- package/src/stories/itemTypes/Group.stories.tsx +0 -39
- package/src/stories/itemTypes/Integer.stories.tsx +0 -55
- package/src/stories/itemTypes/OpenChoice.stories.tsx +0 -64
- package/src/stories/itemTypes/Quantity.stories.tsx +0 -71
- package/src/stories/itemTypes/Reference.stories.tsx +0 -39
- package/src/stories/itemTypes/String.stories.tsx +0 -51
- package/src/stories/itemTypes/Text.stories.tsx +0 -51
- package/src/stories/itemTypes/Time.stories.tsx +0 -39
- package/src/stories/itemTypes/Url.stories.tsx +0 -39
- package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +0 -51
- package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +0 -90
- package/src/stories/sdc/AdvancedOther.stories.tsx +0 -76
- package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +0 -104
- package/src/stories/sdc/BehaviorCalculations.stories.tsx +0 -69
- package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +0 -76
- package/src/stories/sdc/BehaviorOther.stories.tsx +0 -97
- package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +0 -88
- package/src/stories/sdc/FormPopulation.stories.tsx +0 -97
- package/src/stories/sdc/ItemControlDisplay.stories.tsx +0 -69
- package/src/stories/sdc/ItemControlGroup.stories.tsx +0 -90
- package/src/stories/sdc/ItemControlQuestion.stories.tsx +0 -118
- package/src/stories/sdc/OtherExtensions.stories.tsx +0 -39
- package/src/stories/sdc/ParameterisedValueSets.stories.tsx +0 -48
- package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +0 -54
- package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +0 -76
- package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +0 -61
- package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +0 -70
- package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +0 -28
- package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +0 -49
- package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +0 -84
- package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +0 -105
- package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +0 -56
- package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +0 -114
- package/src/stories/storybookWrappers/TestCssSheet.css +0 -17
- package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +0 -41
- package/src/stories/storybookWrappers/globals.ts +0 -18
- package/src/stories/storybookWrappers/iframeResizerChild.js +0 -1063
- package/src/stories/storybookWrappers/index.ts +0 -19
- package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +0 -55
- package/src/stories/testing/AuCoreTester.stories.tsx +0 -196
- package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +0 -40
- package/src/stories/testing/GroupTableTester.stories.tsx +0 -39
- package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +0 -39
- package/src/stories/testing/Mbs715Tester.stories.tsx +0 -57
- package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +0 -55
- package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +0 -39
|
@@ -1,643 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 Commonwealth Scientific and Industrial Research
|
|
3
|
-
* Organisation (CSIRO) ABN 41 687 119 230.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import type { Questionnaire } from 'fhir/r4';
|
|
19
|
-
|
|
20
|
-
export const qLaunchContext: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'LaunchContext',
|
|
23
|
-
name: 'LaunchContext',
|
|
24
|
-
title: 'Launch Context',
|
|
25
|
-
version: '0.1.0',
|
|
26
|
-
status: 'draft',
|
|
27
|
-
publisher: 'AEHRC CSIRO',
|
|
28
|
-
date: '2024-05-01',
|
|
29
|
-
url: 'https://smartforms.csiro.au/docs/behavior/calculations/launch-context',
|
|
30
|
-
item: [
|
|
31
|
-
{
|
|
32
|
-
linkId: 'launch-context-instructions',
|
|
33
|
-
_text: {
|
|
34
|
-
extension: [
|
|
35
|
-
{
|
|
36
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
37
|
-
valueString:
|
|
38
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p>Please refer to the <strong>Form Population</strong> section for the usage of launch context.</p></div>'
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
text: 'Please refer to the Form Population section for the usage of launch context.',
|
|
43
|
-
type: 'display',
|
|
44
|
-
repeats: false
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const qVariable: Questionnaire = {
|
|
50
|
-
resourceType: 'Questionnaire',
|
|
51
|
-
id: 'Variable',
|
|
52
|
-
name: 'Variable',
|
|
53
|
-
title: 'Variable',
|
|
54
|
-
version: '0.1.0',
|
|
55
|
-
status: 'draft',
|
|
56
|
-
publisher: 'AEHRC CSIRO',
|
|
57
|
-
date: '2024-05-01',
|
|
58
|
-
url: 'https://smartforms.csiro.au/docs/behavior/calculations/variable',
|
|
59
|
-
item: [
|
|
60
|
-
{
|
|
61
|
-
linkId: 'variables-instructions',
|
|
62
|
-
_text: {
|
|
63
|
-
extension: [
|
|
64
|
-
{
|
|
65
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
66
|
-
valueString:
|
|
67
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p>Please refer to the <strong>Calculated Expression</strong> examples above or the <strong>Form Population</strong> section for the usage of variables.</p></div>'
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
text: 'Please refer to the Calculated Expression examples above or the Form Population section for the usage of variables.',
|
|
72
|
-
type: 'display',
|
|
73
|
-
repeats: false
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export const qInitialExpression: Questionnaire = {
|
|
79
|
-
resourceType: 'Questionnaire',
|
|
80
|
-
id: 'InitialExpression',
|
|
81
|
-
name: 'InitialExpression',
|
|
82
|
-
title: 'Initial Expression',
|
|
83
|
-
version: '0.1.0',
|
|
84
|
-
status: 'draft',
|
|
85
|
-
publisher: 'AEHRC CSIRO',
|
|
86
|
-
date: '2024-05-01',
|
|
87
|
-
url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/initial-expression',
|
|
88
|
-
item: [
|
|
89
|
-
{
|
|
90
|
-
linkId: 'initial-expression-instructions',
|
|
91
|
-
_text: {
|
|
92
|
-
extension: [
|
|
93
|
-
{
|
|
94
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
95
|
-
valueString:
|
|
96
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n <p>Please refer to the <strong>Form Population</strong> section for the usage of initial expressions.</p></div>'
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
text: 'Please refer to the Form Population section for the usage of initial expressions.',
|
|
101
|
-
type: 'display',
|
|
102
|
-
repeats: false
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export const qCalculatedExpressionBMICalculator: Questionnaire = {
|
|
108
|
-
resourceType: 'Questionnaire',
|
|
109
|
-
id: 'CalculatedExpressionBMICalculator',
|
|
110
|
-
name: 'CalculatedExpressionBMICalculator',
|
|
111
|
-
title: 'Calculated Expression BMI Calculator',
|
|
112
|
-
version: '0.1.0',
|
|
113
|
-
status: 'draft',
|
|
114
|
-
publisher: 'AEHRC CSIRO',
|
|
115
|
-
date: '2024-05-01',
|
|
116
|
-
url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/calculated-expression-1',
|
|
117
|
-
item: [
|
|
118
|
-
{
|
|
119
|
-
linkId: 'bmi-calculation',
|
|
120
|
-
text: 'BMI Calculation',
|
|
121
|
-
type: 'group',
|
|
122
|
-
repeats: false,
|
|
123
|
-
extension: [
|
|
124
|
-
{
|
|
125
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
126
|
-
valueExpression: {
|
|
127
|
-
name: 'height',
|
|
128
|
-
language: 'text/fhirpath',
|
|
129
|
-
expression: "item.where(linkId='patient-height').answer.value"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
134
|
-
valueExpression: {
|
|
135
|
-
name: 'weight',
|
|
136
|
-
language: 'text/fhirpath',
|
|
137
|
-
expression: "item.where(linkId='patient-weight').answer.value"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
item: [
|
|
142
|
-
{
|
|
143
|
-
extension: [
|
|
144
|
-
{
|
|
145
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
146
|
-
valueCoding: {
|
|
147
|
-
system: 'http://unitsofmeasure.org',
|
|
148
|
-
code: 'cm',
|
|
149
|
-
display: 'cm'
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
linkId: 'patient-height',
|
|
154
|
-
text: 'Height',
|
|
155
|
-
type: 'decimal',
|
|
156
|
-
repeats: false,
|
|
157
|
-
readOnly: false
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
extension: [
|
|
161
|
-
{
|
|
162
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
163
|
-
valueCoding: {
|
|
164
|
-
system: 'http://unitsofmeasure.org',
|
|
165
|
-
code: 'kg',
|
|
166
|
-
display: 'kg'
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
linkId: 'patient-weight',
|
|
171
|
-
text: 'Weight',
|
|
172
|
-
type: 'decimal',
|
|
173
|
-
repeats: false,
|
|
174
|
-
readOnly: false
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
extension: [
|
|
178
|
-
{
|
|
179
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression',
|
|
180
|
-
valueExpression: {
|
|
181
|
-
description: 'BMI calculation',
|
|
182
|
-
language: 'text/fhirpath',
|
|
183
|
-
expression: '(%weight/((%height/100).power(2))).round(1)'
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
188
|
-
valueCoding: {
|
|
189
|
-
system: 'http://unitsofmeasure.org',
|
|
190
|
-
code: 'kg/m2',
|
|
191
|
-
display: 'kg/m2'
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
linkId: 'bmi-result',
|
|
196
|
-
text: 'Value',
|
|
197
|
-
type: 'decimal',
|
|
198
|
-
repeats: false,
|
|
199
|
-
readOnly: true
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export const qCalculatedExpressionCvdRiskCalculator: Questionnaire = {
|
|
207
|
-
resourceType: 'Questionnaire',
|
|
208
|
-
id: 'CalculatedExpressionCvdRiskCalculator',
|
|
209
|
-
name: 'CalculatedExpressionCvdRiskCalculator',
|
|
210
|
-
title: 'Calculated Expression CVD Risk Calculator',
|
|
211
|
-
version: '0.1.0',
|
|
212
|
-
status: 'draft',
|
|
213
|
-
publisher: 'AEHRC CSIRO',
|
|
214
|
-
date: '2024-05-01',
|
|
215
|
-
url: 'https://smartforms.csiro.au/docs/behavior/choice-restrictions/calculated-expression-2',
|
|
216
|
-
item: [
|
|
217
|
-
{
|
|
218
|
-
extension: [
|
|
219
|
-
{
|
|
220
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
221
|
-
valueExpression: {
|
|
222
|
-
name: 'female',
|
|
223
|
-
language: 'text/fhirpath',
|
|
224
|
-
expression: "iif(item.where(linkId='gender').answer.value.code='female', 1, 0)"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
229
|
-
valueExpression: {
|
|
230
|
-
name: 'age',
|
|
231
|
-
language: 'text/fhirpath',
|
|
232
|
-
expression: "item.where(linkId='patient-age').answer.value"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
237
|
-
valueExpression: {
|
|
238
|
-
name: 'cvdAge',
|
|
239
|
-
language: 'text/fhirpath',
|
|
240
|
-
expression: 'iif(%age > 74, 74, iif(%age < 35, 35, %age))'
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
245
|
-
valueExpression: {
|
|
246
|
-
name: 'systolicBP',
|
|
247
|
-
language: 'text/fhirpath',
|
|
248
|
-
expression: "item.where(linkId='systolic-blood-pressure').answer.value"
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
253
|
-
valueExpression: {
|
|
254
|
-
name: 'smoker',
|
|
255
|
-
language: 'text/fhirpath',
|
|
256
|
-
expression:
|
|
257
|
-
"iif(item.where(linkId='smoking-status').answer.value.code='77176002', 1, 0)"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
262
|
-
valueExpression: {
|
|
263
|
-
name: 'totalCh',
|
|
264
|
-
language: 'text/fhirpath',
|
|
265
|
-
expression: "item.where(linkId='total-cholesterol').answer.value"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
270
|
-
valueExpression: {
|
|
271
|
-
name: 'hdl',
|
|
272
|
-
language: 'text/fhirpath',
|
|
273
|
-
expression: "item.where(linkId='hdl-cholesterol').answer.value"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
278
|
-
valueExpression: {
|
|
279
|
-
name: 'diabetes',
|
|
280
|
-
language: 'text/fhirpath',
|
|
281
|
-
expression: "iif(item.where(linkId='has-diabetes').answer.value = true,1,0)"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
286
|
-
valueExpression: {
|
|
287
|
-
name: 'ecgLvh',
|
|
288
|
-
language: 'text/fhirpath',
|
|
289
|
-
expression: "iif(item.where(linkId='ecg-lvh').answer.value = true,1,0)"
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
294
|
-
valueExpression: {
|
|
295
|
-
name: 'cBase',
|
|
296
|
-
language: 'text/fhirpath',
|
|
297
|
-
expression: '18.8144'
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
302
|
-
valueExpression: {
|
|
303
|
-
name: 'cFemale',
|
|
304
|
-
language: 'text/fhirpath',
|
|
305
|
-
expression: '%female * -1.2146'
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
310
|
-
valueExpression: {
|
|
311
|
-
name: 'cAge',
|
|
312
|
-
language: 'text/fhirpath',
|
|
313
|
-
expression: '%cvdAge.ln() * -1.8443'
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
318
|
-
valueExpression: {
|
|
319
|
-
name: 'cAgeFemale',
|
|
320
|
-
language: 'text/fhirpath',
|
|
321
|
-
expression: '%female * %cvdAge.ln() * 0.3668'
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
326
|
-
valueExpression: {
|
|
327
|
-
name: 'cSBP',
|
|
328
|
-
language: 'text/fhirpath',
|
|
329
|
-
expression: '%systolicBP.ln() * -1.4032'
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
334
|
-
valueExpression: {
|
|
335
|
-
name: 'cSmoker',
|
|
336
|
-
language: 'text/fhirpath',
|
|
337
|
-
expression: '%smoker * -0.3899'
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
342
|
-
valueExpression: {
|
|
343
|
-
name: 'cTcHdl',
|
|
344
|
-
language: 'text/fhirpath',
|
|
345
|
-
expression: '(%totalCh / %hdl).ln() * -0.539'
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
350
|
-
valueExpression: {
|
|
351
|
-
name: 'cDiabetes',
|
|
352
|
-
language: 'text/fhirpath',
|
|
353
|
-
expression: '%diabetes * -0.3036'
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
358
|
-
valueExpression: {
|
|
359
|
-
name: 'cDiabetesFemale',
|
|
360
|
-
language: 'text/fhirpath',
|
|
361
|
-
expression: '%female * %diabetes * -0.1697'
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
366
|
-
valueExpression: {
|
|
367
|
-
name: 'cEcgLvh',
|
|
368
|
-
language: 'text/fhirpath',
|
|
369
|
-
expression: '%ecgLvh * -0.3362'
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
374
|
-
valueExpression: {
|
|
375
|
-
name: 'sumOfCoeffs',
|
|
376
|
-
language: 'text/fhirpath',
|
|
377
|
-
expression:
|
|
378
|
-
'%cBase + %cFemale + %cAge + %cAgeFemale + %cSBP + %cSmoker + %cTcHdl + %cDiabetes + %cDiabetesFemale + %cEcgLvh'
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
383
|
-
valueExpression: {
|
|
384
|
-
name: 'cvdScale',
|
|
385
|
-
language: 'text/fhirpath',
|
|
386
|
-
expression: '(0.6536 + (%sumOfCoeffs * -0.2402)).exp()'
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
391
|
-
valueExpression: {
|
|
392
|
-
name: 'cvdU',
|
|
393
|
-
language: 'text/fhirpath',
|
|
394
|
-
expression: '(5.ln()-%sumOfCoeffs)/%cvdScale'
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
399
|
-
valueExpression: {
|
|
400
|
-
name: 'cvdScore',
|
|
401
|
-
language: 'text/fhirpath',
|
|
402
|
-
expression: '(1 - (%cvdU.exp()*-1).exp()) * 100'
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
],
|
|
406
|
-
linkId: 'absolute-cvd-risk-calculation',
|
|
407
|
-
text: 'Absolute Cardiovascular Risk Calculation ',
|
|
408
|
-
type: 'group',
|
|
409
|
-
item: [
|
|
410
|
-
{
|
|
411
|
-
linkId: 'instruction-use-updated-cvd-risk-calculator',
|
|
412
|
-
_text: {
|
|
413
|
-
extension: [
|
|
414
|
-
{
|
|
415
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
416
|
-
valueString:
|
|
417
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n <b><p>NOTE: The Australian guideline for assessing and managing cardiovascular disease risk recommends the use of the online <a href="https://www.cvdcheck.org.au/calculator" target="_blank">Australian CVD risk calculator</a>.</p></b>\r\n The calculator below should only be used for technology demonstration purposes.</p>\r\n</div>'
|
|
418
|
-
}
|
|
419
|
-
]
|
|
420
|
-
},
|
|
421
|
-
text: 'NOTE: The Australian guideline for assessing and managing cardiovascular disease risk recommends the use of the online Australian CVD risk calculator (https://www.cvdcheck.org.au/calculator). The calculator below should only be used for technology demonstration purposes.',
|
|
422
|
-
type: 'display',
|
|
423
|
-
repeats: false
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
linkId: 'patient-age',
|
|
427
|
-
text: 'Age',
|
|
428
|
-
type: 'integer',
|
|
429
|
-
repeats: false
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
extension: [
|
|
433
|
-
{
|
|
434
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
435
|
-
valueCodeableConcept: {
|
|
436
|
-
coding: [
|
|
437
|
-
{
|
|
438
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
439
|
-
code: 'radio-button'
|
|
440
|
-
}
|
|
441
|
-
]
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
],
|
|
445
|
-
linkId: 'gender',
|
|
446
|
-
text: 'Gender',
|
|
447
|
-
type: 'choice',
|
|
448
|
-
repeats: false,
|
|
449
|
-
answerValueSet: 'http://hl7.org/fhir/ValueSet/administrative-gender'
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
extension: [
|
|
453
|
-
{
|
|
454
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
455
|
-
valueCodeableConcept: {
|
|
456
|
-
coding: [
|
|
457
|
-
{
|
|
458
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
459
|
-
code: 'radio-button'
|
|
460
|
-
}
|
|
461
|
-
]
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
],
|
|
465
|
-
linkId: 'smoking-status',
|
|
466
|
-
text: 'Smoking status',
|
|
467
|
-
type: 'choice',
|
|
468
|
-
repeats: false,
|
|
469
|
-
answerOption: [
|
|
470
|
-
{
|
|
471
|
-
valueCoding: {
|
|
472
|
-
system: 'http://snomed.info/sct',
|
|
473
|
-
code: '266919005',
|
|
474
|
-
display: 'Never smoked'
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
valueCoding: {
|
|
479
|
-
system: 'http://snomed.info/sct',
|
|
480
|
-
code: '77176002',
|
|
481
|
-
display: 'Smoker'
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
valueCoding: {
|
|
486
|
-
system: 'http://snomed.info/sct',
|
|
487
|
-
code: '8517006',
|
|
488
|
-
display: 'Ex-Smoker'
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
valueCoding: {
|
|
493
|
-
system: 'http://snomed.info/sct',
|
|
494
|
-
code: '16090371000119103',
|
|
495
|
-
display: 'Environmental exposure to tobacco smoke (home, car, etc)'
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
valueString: 'Wants to quit'
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
valueString: 'Other tobacco use'
|
|
503
|
-
}
|
|
504
|
-
]
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
extension: [
|
|
508
|
-
{
|
|
509
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
510
|
-
valueCoding: {
|
|
511
|
-
system: 'http://unitsofmeasure.org',
|
|
512
|
-
code: 'mm[Hg]',
|
|
513
|
-
display: 'mm Hg'
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
],
|
|
517
|
-
linkId: 'systolic-blood-pressure',
|
|
518
|
-
text: 'Systolic Blood Pressure',
|
|
519
|
-
type: 'decimal',
|
|
520
|
-
item: [
|
|
521
|
-
{
|
|
522
|
-
extension: [
|
|
523
|
-
{
|
|
524
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
525
|
-
valueCodeableConcept: {
|
|
526
|
-
coding: [
|
|
527
|
-
{
|
|
528
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
529
|
-
code: 'prompt'
|
|
530
|
-
}
|
|
531
|
-
]
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
],
|
|
535
|
-
linkId: 'systolic-blood-pressure-prompt',
|
|
536
|
-
text: '75 or more',
|
|
537
|
-
type: 'display'
|
|
538
|
-
}
|
|
539
|
-
]
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
extension: [
|
|
543
|
-
{
|
|
544
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
545
|
-
valueCoding: {
|
|
546
|
-
system: 'http://unitsofmeasure.org',
|
|
547
|
-
code: 'mmol/L',
|
|
548
|
-
display: 'mmol/L'
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
],
|
|
552
|
-
linkId: 'total-cholesterol',
|
|
553
|
-
text: 'Total Cholesterol',
|
|
554
|
-
type: 'decimal',
|
|
555
|
-
item: [
|
|
556
|
-
{
|
|
557
|
-
extension: [
|
|
558
|
-
{
|
|
559
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
560
|
-
valueCodeableConcept: {
|
|
561
|
-
coding: [
|
|
562
|
-
{
|
|
563
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
564
|
-
code: 'prompt'
|
|
565
|
-
}
|
|
566
|
-
]
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
],
|
|
570
|
-
linkId: 'total-cholesterol-prompt',
|
|
571
|
-
text: '2 or more',
|
|
572
|
-
type: 'display'
|
|
573
|
-
}
|
|
574
|
-
]
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
extension: [
|
|
578
|
-
{
|
|
579
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
580
|
-
valueCoding: {
|
|
581
|
-
system: 'http://unitsofmeasure.org',
|
|
582
|
-
code: 'mmol/L',
|
|
583
|
-
display: 'mmol/L'
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
],
|
|
587
|
-
linkId: 'hdl-cholesterol',
|
|
588
|
-
text: 'HDL Cholesterol',
|
|
589
|
-
type: 'decimal',
|
|
590
|
-
item: [
|
|
591
|
-
{
|
|
592
|
-
extension: [
|
|
593
|
-
{
|
|
594
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
595
|
-
valueCodeableConcept: {
|
|
596
|
-
coding: [
|
|
597
|
-
{
|
|
598
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
599
|
-
code: 'prompt'
|
|
600
|
-
}
|
|
601
|
-
]
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
],
|
|
605
|
-
linkId: 'hdl-cholesterol-prompt',
|
|
606
|
-
text: 'Between 0.2 - 5',
|
|
607
|
-
type: 'display'
|
|
608
|
-
}
|
|
609
|
-
]
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
linkId: 'has-diabetes',
|
|
613
|
-
text: 'Diabetes',
|
|
614
|
-
type: 'boolean',
|
|
615
|
-
repeats: false
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
linkId: 'ecg-lvh',
|
|
619
|
-
text: 'ECG LVH',
|
|
620
|
-
type: 'boolean',
|
|
621
|
-
repeats: false
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
extension: [
|
|
625
|
-
{
|
|
626
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression',
|
|
627
|
-
valueExpression: {
|
|
628
|
-
description: 'CVD Risk Score',
|
|
629
|
-
language: 'text/fhirpath',
|
|
630
|
-
expression: '%cvdScore.round(0)'
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
],
|
|
634
|
-
linkId: 'cvd-result',
|
|
635
|
-
text: 'Cardiovascular disease risk calculated result',
|
|
636
|
-
type: 'integer',
|
|
637
|
-
repeats: false,
|
|
638
|
-
readOnly: true
|
|
639
|
-
}
|
|
640
|
-
]
|
|
641
|
-
}
|
|
642
|
-
]
|
|
643
|
-
};
|