@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,119 +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
|
-
import type { QuestionnaireResponse } from 'fhir/r4';
|
|
20
|
-
|
|
21
|
-
export const qIntegerBasic: Questionnaire = {
|
|
22
|
-
resourceType: 'Questionnaire',
|
|
23
|
-
id: 'IntegerBasic',
|
|
24
|
-
name: 'IntegerBasic',
|
|
25
|
-
title: 'Integer Basic',
|
|
26
|
-
version: '0.1.0',
|
|
27
|
-
status: 'draft',
|
|
28
|
-
publisher: 'AEHRC CSIRO',
|
|
29
|
-
date: '2024-05-01',
|
|
30
|
-
url: 'https://smartforms.csiro.au/docs/components/integer/basic',
|
|
31
|
-
item: [
|
|
32
|
-
{
|
|
33
|
-
linkId: 'age',
|
|
34
|
-
type: 'integer',
|
|
35
|
-
repeats: false,
|
|
36
|
-
text: 'Age'
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const qrIntegerBasicResponse: QuestionnaireResponse = {
|
|
42
|
-
resourceType: 'QuestionnaireResponse',
|
|
43
|
-
status: 'in-progress',
|
|
44
|
-
item: [
|
|
45
|
-
{
|
|
46
|
-
linkId: 'age',
|
|
47
|
-
text: 'Age',
|
|
48
|
-
answer: [
|
|
49
|
-
{
|
|
50
|
-
valueInteger: 40
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
questionnaire: 'https://smartforms.csiro.au/docs/components/integer/basic'
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const qIntegerCalculation: Questionnaire = {
|
|
59
|
-
resourceType: 'Questionnaire',
|
|
60
|
-
id: 'IntegerCalculation',
|
|
61
|
-
name: 'IntegerCalculation',
|
|
62
|
-
title: 'Integer Calculation',
|
|
63
|
-
version: '0.1.0',
|
|
64
|
-
status: 'draft',
|
|
65
|
-
publisher: 'AEHRC CSIRO',
|
|
66
|
-
date: '2024-05-01',
|
|
67
|
-
url: 'https://smartforms.csiro.au/docs/components/integer/calculation',
|
|
68
|
-
extension: [
|
|
69
|
-
{
|
|
70
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
71
|
-
valueExpression: {
|
|
72
|
-
name: 'length',
|
|
73
|
-
language: 'text/fhirpath',
|
|
74
|
-
expression: "item.where(linkId = 'length-controller').answer.value"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
item: [
|
|
79
|
-
{
|
|
80
|
-
extension: [
|
|
81
|
-
{
|
|
82
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
83
|
-
valueCoding: {
|
|
84
|
-
system: 'http://unitsofmeasure.org',
|
|
85
|
-
code: 'cm',
|
|
86
|
-
display: 'cm'
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
linkId: 'length-controller',
|
|
91
|
-
text: 'Length (cm)',
|
|
92
|
-
type: 'integer',
|
|
93
|
-
repeats: false
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
extension: [
|
|
97
|
-
{
|
|
98
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression',
|
|
99
|
-
valueExpression: {
|
|
100
|
-
language: 'text/fhirpath',
|
|
101
|
-
expression: '%length.power(2)'
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit',
|
|
106
|
-
valueCoding: {
|
|
107
|
-
system: 'http://unitsofmeasure.org',
|
|
108
|
-
code: 'cm2',
|
|
109
|
-
display: 'cm^2'
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
linkId: 'length-squared',
|
|
114
|
-
text: 'Length squared (cm^2)',
|
|
115
|
-
type: 'integer',
|
|
116
|
-
readOnly: true
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
};
|
|
@@ -1,558 +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 qItemControlDisplayPrompt: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'ItemControlDisplayPrompt',
|
|
23
|
-
name: 'ItemControlDisplayPrompt',
|
|
24
|
-
title: 'Item Control Display Prompt',
|
|
25
|
-
version: '0.1.0',
|
|
26
|
-
status: 'draft',
|
|
27
|
-
publisher: 'AEHRC CSIRO',
|
|
28
|
-
date: '2024-05-15',
|
|
29
|
-
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-display-prompt',
|
|
30
|
-
item: [
|
|
31
|
-
{
|
|
32
|
-
linkId: 'systolic-blood-pressure',
|
|
33
|
-
text: 'Systolic Blood Pressure',
|
|
34
|
-
type: 'decimal',
|
|
35
|
-
item: [
|
|
36
|
-
{
|
|
37
|
-
extension: [
|
|
38
|
-
{
|
|
39
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
40
|
-
valueCodeableConcept: {
|
|
41
|
-
coding: [
|
|
42
|
-
{
|
|
43
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
44
|
-
code: 'prompt'
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
linkId: 'systolic-blood-pressure-prompt',
|
|
51
|
-
text: '75 or more',
|
|
52
|
-
type: 'display'
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const qItemControlDisplayUnit: Questionnaire = {
|
|
60
|
-
resourceType: 'Questionnaire',
|
|
61
|
-
id: 'ItemControlDisplayUnit',
|
|
62
|
-
name: 'ItemControlDisplayUnit',
|
|
63
|
-
title: 'Item Control Display Unit',
|
|
64
|
-
version: '0.1.0',
|
|
65
|
-
status: 'draft',
|
|
66
|
-
publisher: 'AEHRC CSIRO',
|
|
67
|
-
date: '2024-05-15',
|
|
68
|
-
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-display-unit',
|
|
69
|
-
item: [
|
|
70
|
-
{
|
|
71
|
-
linkId: 'height',
|
|
72
|
-
text: 'Height',
|
|
73
|
-
type: 'decimal',
|
|
74
|
-
repeats: false,
|
|
75
|
-
item: [
|
|
76
|
-
{
|
|
77
|
-
extension: [
|
|
78
|
-
{
|
|
79
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
80
|
-
valueCodeableConcept: {
|
|
81
|
-
coding: [
|
|
82
|
-
{
|
|
83
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
84
|
-
code: 'unit'
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
linkId: 'height-unit',
|
|
91
|
-
text: 'cm',
|
|
92
|
-
type: 'display'
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export const qItemControlDisplayLowerAndUpper: Questionnaire = {
|
|
100
|
-
resourceType: 'Questionnaire',
|
|
101
|
-
id: 'ItemControlDisplayLowerAndUpper',
|
|
102
|
-
name: 'ItemControlDisplayLowerAndUpper',
|
|
103
|
-
title: 'Item Control Display Lower & Upper',
|
|
104
|
-
version: '0.1.0',
|
|
105
|
-
status: 'draft',
|
|
106
|
-
publisher: 'AEHRC CSIRO',
|
|
107
|
-
date: '2024-05-01',
|
|
108
|
-
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-display-lower-and-upper',
|
|
109
|
-
item: [
|
|
110
|
-
{
|
|
111
|
-
extension: [
|
|
112
|
-
{
|
|
113
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
114
|
-
valueCodeableConcept: {
|
|
115
|
-
coding: [
|
|
116
|
-
{
|
|
117
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
118
|
-
code: 'slider'
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
url: 'http://hl7.org/fhir/StructureDefinition/minValue',
|
|
125
|
-
valueInteger: 0
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
url: 'http://hl7.org/fhir/StructureDefinition/maxValue',
|
|
129
|
-
valueInteger: 10
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
linkId: 'pain-measure',
|
|
133
|
-
text: 'Pain measure',
|
|
134
|
-
type: 'integer',
|
|
135
|
-
repeats: false,
|
|
136
|
-
item: [
|
|
137
|
-
{
|
|
138
|
-
extension: [
|
|
139
|
-
{
|
|
140
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
141
|
-
valueCodeableConcept: {
|
|
142
|
-
coding: [
|
|
143
|
-
{
|
|
144
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
145
|
-
code: 'lower'
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
linkId: 'pain-measure-lower',
|
|
152
|
-
text: 'No pain',
|
|
153
|
-
type: 'display'
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
extension: [
|
|
157
|
-
{
|
|
158
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
159
|
-
valueCodeableConcept: {
|
|
160
|
-
coding: [
|
|
161
|
-
{
|
|
162
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
163
|
-
code: 'upper'
|
|
164
|
-
}
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
linkId: 'pain-measure-upper',
|
|
170
|
-
text: 'Unbearable pain',
|
|
171
|
-
type: 'display'
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
export const qItemControlDisplayFlyover: Questionnaire = {
|
|
179
|
-
resourceType: 'Questionnaire',
|
|
180
|
-
id: 'ItemControlDisplayFlyover',
|
|
181
|
-
name: 'ItemControlDisplayFlyover',
|
|
182
|
-
title: 'Item Control Display Flyover',
|
|
183
|
-
version: '0.1.0',
|
|
184
|
-
status: 'draft',
|
|
185
|
-
publisher: 'AEHRC CSIRO',
|
|
186
|
-
date: '2024-05-15',
|
|
187
|
-
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-display-flyover',
|
|
188
|
-
item: [
|
|
189
|
-
{
|
|
190
|
-
linkId: 'children-details',
|
|
191
|
-
text: 'Children details (male)',
|
|
192
|
-
type: 'group',
|
|
193
|
-
repeats: false,
|
|
194
|
-
item: [
|
|
195
|
-
{
|
|
196
|
-
linkId: 'height',
|
|
197
|
-
text: 'Height',
|
|
198
|
-
type: 'decimal',
|
|
199
|
-
repeats: false,
|
|
200
|
-
required: true,
|
|
201
|
-
item: [
|
|
202
|
-
{
|
|
203
|
-
extension: [
|
|
204
|
-
{
|
|
205
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
206
|
-
valueCodeableConcept: {
|
|
207
|
-
coding: [
|
|
208
|
-
{
|
|
209
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
210
|
-
code: 'unit'
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
linkId: 'height-unit',
|
|
217
|
-
text: 'cm',
|
|
218
|
-
type: 'display'
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
extension: [
|
|
222
|
-
{
|
|
223
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
224
|
-
valueCodeableConcept: {
|
|
225
|
-
coding: [
|
|
226
|
-
{
|
|
227
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
228
|
-
code: 'flyover'
|
|
229
|
-
}
|
|
230
|
-
]
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
linkId: 'height-flyover',
|
|
235
|
-
text: 'The average 12-year old boy is 149.5 cm tall',
|
|
236
|
-
type: 'display'
|
|
237
|
-
}
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
export const qItemControlDisplayContextDisplay: Questionnaire = {
|
|
246
|
-
resourceType: 'Questionnaire',
|
|
247
|
-
id: 'ItemControlDisplayContextDisplay',
|
|
248
|
-
name: 'ItemControlDisplayContextDisplay',
|
|
249
|
-
title: 'Item Control Display Context Display',
|
|
250
|
-
version: '0.1.0',
|
|
251
|
-
status: 'draft',
|
|
252
|
-
publisher: 'AEHRC CSIRO',
|
|
253
|
-
date: '2024-05-15',
|
|
254
|
-
url: 'https://smartforms.csiro.au/docs/advanced/control/item-control-display-context-display',
|
|
255
|
-
item: [
|
|
256
|
-
{
|
|
257
|
-
extension: [
|
|
258
|
-
{
|
|
259
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
260
|
-
valueCodeableConcept: {
|
|
261
|
-
coding: [
|
|
262
|
-
{
|
|
263
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
264
|
-
version: '1.0.0',
|
|
265
|
-
code: 'tab-container'
|
|
266
|
-
}
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
linkId: 'tab-container',
|
|
272
|
-
text: 'Tab Container',
|
|
273
|
-
type: 'group',
|
|
274
|
-
repeats: false,
|
|
275
|
-
item: [
|
|
276
|
-
{
|
|
277
|
-
linkId: 'tab-section-1',
|
|
278
|
-
text: 'Tab section 1',
|
|
279
|
-
type: 'group',
|
|
280
|
-
repeats: false,
|
|
281
|
-
item: [
|
|
282
|
-
{
|
|
283
|
-
extension: [
|
|
284
|
-
{
|
|
285
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
286
|
-
valueCodeableConcept: {
|
|
287
|
-
coding: [
|
|
288
|
-
{
|
|
289
|
-
system:
|
|
290
|
-
'https://smartforms.csiro.au/ig/CodeSystem/QuestionnaireItemControlExtended',
|
|
291
|
-
code: 'context-display'
|
|
292
|
-
}
|
|
293
|
-
]
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
],
|
|
297
|
-
linkId: 'CD-in-progress-1',
|
|
298
|
-
text: 'In progress',
|
|
299
|
-
_text: {
|
|
300
|
-
extension: [
|
|
301
|
-
{
|
|
302
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
303
|
-
valueString:
|
|
304
|
-
'<div title="In progress" xmlns="http://www.w3.org/1999/xhtml">\r\n\t<div style="display: flex; flex-direction: row;">\r\n\t\t<img width=\'24\' height=\'24\' src=\'data:image/svg+xml;base64,\r\n\t\tPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM3NTc1NzUiIGQ9Im0xNS44NCAxMC4ybC0xLjAxIDEuMDFsLTIuMDctMi4wM2wxLjAxLTEuMDJjLjItLjIxLjU0LS4yMi43OCAwbDEuMjkgMS4yNWMuMjEuMjEuMjIuNTUgMCAuNzlNOCAxMy45MWw0LjE3LTQuMTlsMi4wNyAyLjA4bC00LjE2IDQuMkg4di0yLjA5TTEzIDJ2MmM0LjM5LjU0IDcuNSA0LjUzIDYuOTYgOC45MkE4LjAxNCA4LjAxNCAwIDAgMSAxMyAxOS44OHYyYzUuNS0uNiA5LjQ1LTUuNTQgOC44NS0xMS4wM0MyMS4zMyA2LjE5IDE3LjY2IDIuNSAxMyAybS0yIDBjLTEuOTYuMTgtMy44MS45NS01LjMzIDIuMkw3LjEgNS43NGMxLjEyLS45IDIuNDctMS40OCAzLjktMS42OHYtMk00LjI2IDUuNjdBOS44MSA5LjgxIDAgMCAwIDIuMDUgMTFoMmMuMTktMS40Mi43NS0yLjc3IDEuNjQtMy45TDQuMjYgNS42N00yLjA2IDEzYy4yIDEuOTYuOTcgMy44MSAyLjIxIDUuMzNsMS40Mi0xLjQzQTguMDAyIDguMDAyIDAgMCAxIDQuMDYgMTNoLTJtNSA1LjM3bC0xLjM5IDEuMzdBOS45OTQgOS45OTQgMCAwIDAgMTEgMjJ2LTJhOC4wMDIgOC4wMDIgMCAwIDEtMy45LTEuNjNoLS4wNFoiLz48L3N2Zz4=\' \r\n\t\tstyle="align-self: center;"/>\r\n\t</div>\r\n</div>'
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
},
|
|
308
|
-
type: 'display',
|
|
309
|
-
enableWhen: [
|
|
310
|
-
{
|
|
311
|
-
question: 'MarkComplete-1',
|
|
312
|
-
operator: '!=',
|
|
313
|
-
answerBoolean: true
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
extension: [
|
|
319
|
-
{
|
|
320
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
321
|
-
valueCodeableConcept: {
|
|
322
|
-
coding: [
|
|
323
|
-
{
|
|
324
|
-
system:
|
|
325
|
-
'https://smartforms.csiro.au/ig/CodeSystem/QuestionnaireItemControlExtended',
|
|
326
|
-
code: 'context-display'
|
|
327
|
-
}
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
],
|
|
332
|
-
linkId: 'CD-complete-1',
|
|
333
|
-
text: 'Complete',
|
|
334
|
-
_text: {
|
|
335
|
-
extension: [
|
|
336
|
-
{
|
|
337
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
338
|
-
valueString:
|
|
339
|
-
'<div title="Section completed" xmlns="http://www.w3.org/1999/xhtml">\r\n\t<div style="display: flex; flex-direction: row;">\r\n\t\t<img width=\'24\' height=\'24\' src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiMyZTdkMzIiIGQ9Ik0yMCAxMmE4IDggMCAwIDEtOCA4YTggOCAwIDAgMS04LThhOCA4IDAgMCAxIDgtOGMuNzYgMCAxLjUuMTEgMi4yLjMxbDEuNTctMS41N0E5LjgyMiA5LjgyMiAwIDAgMCAxMiAyQTEwIDEwIDAgMCAwIDIgMTJhMTAgMTAgMCAwIDAgMTAgMTBhMTAgMTAgMCAwIDAgMTAtMTBNNy45MSAxMC4wOEw2LjUgMTEuNUwxMSAxNkwyMSA2bC0xLjQxLTEuNDJMMTEgMTMuMTdsLTMuMDktMy4wOVoiLz48L3N2Zz4=\'\r\n\t\tstyle="align-self: center;"/>\r\n\t</div>\r\n</div>'
|
|
340
|
-
}
|
|
341
|
-
]
|
|
342
|
-
},
|
|
343
|
-
type: 'display',
|
|
344
|
-
enableWhen: [
|
|
345
|
-
{
|
|
346
|
-
question: 'MarkComplete-1',
|
|
347
|
-
operator: '=',
|
|
348
|
-
answerBoolean: true
|
|
349
|
-
}
|
|
350
|
-
]
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
linkId: 'MarkComplete-1',
|
|
354
|
-
text: 'Mark section as complete',
|
|
355
|
-
_text: {
|
|
356
|
-
extension: [
|
|
357
|
-
{
|
|
358
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
359
|
-
valueString:
|
|
360
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n <style type="text/css">\r\n .alert {\r\n padding: 0.75rem;\r\n margin-bottom: 1rem;\r\n font-size: 0.875rem;\r\n color: #2E7D32;\r\n border-radius: 0.5rem;\r\n background-color: #d5e5d6;\r\n font-weight: 700;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n<div class="alert">Mark section as complete</div>\r\n</body>\r\n</div>'
|
|
361
|
-
}
|
|
362
|
-
]
|
|
363
|
-
},
|
|
364
|
-
type: 'boolean',
|
|
365
|
-
repeats: false
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
linkId: 'tab-section-2',
|
|
371
|
-
text: 'Tab section 2',
|
|
372
|
-
type: 'group',
|
|
373
|
-
repeats: false,
|
|
374
|
-
item: [
|
|
375
|
-
{
|
|
376
|
-
extension: [
|
|
377
|
-
{
|
|
378
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
379
|
-
valueCodeableConcept: {
|
|
380
|
-
coding: [
|
|
381
|
-
{
|
|
382
|
-
system:
|
|
383
|
-
'https://smartforms.csiro.au/ig/CodeSystem/QuestionnaireItemControlExtended',
|
|
384
|
-
code: 'context-display'
|
|
385
|
-
}
|
|
386
|
-
]
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
],
|
|
390
|
-
linkId: 'CD-in-progress-2',
|
|
391
|
-
text: 'In progress',
|
|
392
|
-
_text: {
|
|
393
|
-
extension: [
|
|
394
|
-
{
|
|
395
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
396
|
-
valueString:
|
|
397
|
-
'<div title="In progress" xmlns="http://www.w3.org/1999/xhtml">\r\n\t<div style="display: flex; flex-direction: row;">\r\n\t\t<img width=\'24\' height=\'24\' src=\'data:image/svg+xml;base64,\r\n\t\tPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM3NTc1NzUiIGQ9Im0xNS44NCAxMC4ybC0xLjAxIDEuMDFsLTIuMDctMi4wM2wxLjAxLTEuMDJjLjItLjIxLjU0LS4yMi43OCAwbDEuMjkgMS4yNWMuMjEuMjEuMjIuNTUgMCAuNzlNOCAxMy45MWw0LjE3LTQuMTlsMi4wNyAyLjA4bC00LjE2IDQuMkg4di0yLjA5TTEzIDJ2MmM0LjM5LjU0IDcuNSA0LjUzIDYuOTYgOC45MkE4LjAxNCA4LjAxNCAwIDAgMSAxMyAxOS44OHYyYzUuNS0uNiA5LjQ1LTUuNTQgOC44NS0xMS4wM0MyMS4zMyA2LjE5IDE3LjY2IDIuNSAxMyAybS0yIDBjLTEuOTYuMTgtMy44MS45NS01LjMzIDIuMkw3LjEgNS43NGMxLjEyLS45IDIuNDctMS40OCAzLjktMS42OHYtMk00LjI2IDUuNjdBOS44MSA5LjgxIDAgMCAwIDIuMDUgMTFoMmMuMTktMS40Mi43NS0yLjc3IDEuNjQtMy45TDQuMjYgNS42N00yLjA2IDEzYy4yIDEuOTYuOTcgMy44MSAyLjIxIDUuMzNsMS40Mi0xLjQzQTguMDAyIDguMDAyIDAgMCAxIDQuMDYgMTNoLTJtNSA1LjM3bC0xLjM5IDEuMzdBOS45OTQgOS45OTQgMCAwIDAgMTEgMjJ2LTJhOC4wMDIgOC4wMDIgMCAwIDEtMy45LTEuNjNoLS4wNFoiLz48L3N2Zz4=\' \r\n\t\tstyle="align-self: center;"/>\r\n\t</div>\r\n</div>'
|
|
398
|
-
}
|
|
399
|
-
]
|
|
400
|
-
},
|
|
401
|
-
type: 'display',
|
|
402
|
-
enableWhen: [
|
|
403
|
-
{
|
|
404
|
-
question: 'MarkComplete-2',
|
|
405
|
-
operator: '!=',
|
|
406
|
-
answerBoolean: true
|
|
407
|
-
}
|
|
408
|
-
]
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
extension: [
|
|
412
|
-
{
|
|
413
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
414
|
-
valueCodeableConcept: {
|
|
415
|
-
coding: [
|
|
416
|
-
{
|
|
417
|
-
system:
|
|
418
|
-
'https://smartforms.csiro.au/ig/CodeSystem/QuestionnaireItemControlExtended',
|
|
419
|
-
code: 'context-display'
|
|
420
|
-
}
|
|
421
|
-
]
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
],
|
|
425
|
-
linkId: 'CD-complete-2',
|
|
426
|
-
text: 'Complete',
|
|
427
|
-
_text: {
|
|
428
|
-
extension: [
|
|
429
|
-
{
|
|
430
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
431
|
-
valueString:
|
|
432
|
-
'<div title="Section completed" xmlns="http://www.w3.org/1999/xhtml">\r\n\t<div style="display: flex; flex-direction: row;">\r\n\t\t<img width=\'24\' height=\'24\' src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiMyZTdkMzIiIGQ9Ik0yMCAxMmE4IDggMCAwIDEtOCA4YTggOCAwIDAgMS04LThhOCA4IDAgMCAxIDgtOGMuNzYgMCAxLjUuMTEgMi4yLjMxbDEuNTctMS41N0E5LjgyMiA5LjgyMiAwIDAgMCAxMiAyQTEwIDEwIDAgMCAwIDIgMTJhMTAgMTAgMCAwIDAgMTAgMTBhMTAgMTAgMCAwIDAgMTAtMTBNNy45MSAxMC4wOEw2LjUgMTEuNUwxMSAxNkwyMSA2bC0xLjQxLTEuNDJMMTEgMTMuMTdsLTMuMDktMy4wOVoiLz48L3N2Zz4=\'\r\n\t\tstyle="align-self: center;"/>\r\n\t</div>\r\n</div>'
|
|
433
|
-
}
|
|
434
|
-
]
|
|
435
|
-
},
|
|
436
|
-
type: 'display',
|
|
437
|
-
enableWhen: [
|
|
438
|
-
{
|
|
439
|
-
question: 'MarkComplete-2',
|
|
440
|
-
operator: '=',
|
|
441
|
-
answerBoolean: true
|
|
442
|
-
}
|
|
443
|
-
]
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
linkId: 'MarkComplete-2',
|
|
447
|
-
text: 'Mark section as complete',
|
|
448
|
-
_text: {
|
|
449
|
-
extension: [
|
|
450
|
-
{
|
|
451
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
452
|
-
valueString:
|
|
453
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n <style type="text/css">\r\n .alert {\r\n padding: 0.75rem;\r\n margin-bottom: 1rem;\r\n font-size: 0.875rem;\r\n color: #2E7D32;\r\n border-radius: 0.5rem;\r\n background-color: #d5e5d6;\r\n font-weight: 700;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n<div class="alert">Mark section as complete</div>\r\n</body>\r\n</div>'
|
|
454
|
-
}
|
|
455
|
-
]
|
|
456
|
-
},
|
|
457
|
-
type: 'boolean',
|
|
458
|
-
repeats: false
|
|
459
|
-
}
|
|
460
|
-
]
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
linkId: 'tab-section-3',
|
|
464
|
-
text: 'Tab section 3',
|
|
465
|
-
type: 'group',
|
|
466
|
-
repeats: false,
|
|
467
|
-
item: [
|
|
468
|
-
{
|
|
469
|
-
extension: [
|
|
470
|
-
{
|
|
471
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
472
|
-
valueCodeableConcept: {
|
|
473
|
-
coding: [
|
|
474
|
-
{
|
|
475
|
-
system:
|
|
476
|
-
'https://smartforms.csiro.au/ig/CodeSystem/QuestionnaireItemControlExtended',
|
|
477
|
-
code: 'context-display'
|
|
478
|
-
}
|
|
479
|
-
]
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
linkId: 'CD-in-progress-3',
|
|
484
|
-
text: 'In progress',
|
|
485
|
-
_text: {
|
|
486
|
-
extension: [
|
|
487
|
-
{
|
|
488
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
489
|
-
valueString:
|
|
490
|
-
'<div title="In progress" xmlns="http://www.w3.org/1999/xhtml">\r\n\t<div style="display: flex; flex-direction: row;">\r\n\t\t<img width=\'24\' height=\'24\' src=\'data:image/svg+xml;base64,\r\n\t\tPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiM3NTc1NzUiIGQ9Im0xNS44NCAxMC4ybC0xLjAxIDEuMDFsLTIuMDctMi4wM2wxLjAxLTEuMDJjLjItLjIxLjU0LS4yMi43OCAwbDEuMjkgMS4yNWMuMjEuMjEuMjIuNTUgMCAuNzlNOCAxMy45MWw0LjE3LTQuMTlsMi4wNyAyLjA4bC00LjE2IDQuMkg4di0yLjA5TTEzIDJ2MmM0LjM5LjU0IDcuNSA0LjUzIDYuOTYgOC45MkE4LjAxNCA4LjAxNCAwIDAgMSAxMyAxOS44OHYyYzUuNS0uNiA5LjQ1LTUuNTQgOC44NS0xMS4wM0MyMS4zMyA2LjE5IDE3LjY2IDIuNSAxMyAybS0yIDBjLTEuOTYuMTgtMy44MS45NS01LjMzIDIuMkw3LjEgNS43NGMxLjEyLS45IDIuNDctMS40OCAzLjktMS42OHYtMk00LjI2IDUuNjdBOS44MSA5LjgxIDAgMCAwIDIuMDUgMTFoMmMuMTktMS40Mi43NS0yLjc3IDEuNjQtMy45TDQuMjYgNS42N00yLjA2IDEzYy4yIDEuOTYuOTcgMy44MSAyLjIxIDUuMzNsMS40Mi0xLjQzQTguMDAyIDguMDAyIDAgMCAxIDQuMDYgMTNoLTJtNSA1LjM3bC0xLjM5IDEuMzdBOS45OTQgOS45OTQgMCAwIDAgMTEgMjJ2LTJhOC4wMDIgOC4wMDIgMCAwIDEtMy45LTEuNjNoLS4wNFoiLz48L3N2Zz4=\' \r\n\t\tstyle="align-self: center;"/>\r\n\t</div>\r\n</div>'
|
|
491
|
-
}
|
|
492
|
-
]
|
|
493
|
-
},
|
|
494
|
-
type: 'display',
|
|
495
|
-
enableWhen: [
|
|
496
|
-
{
|
|
497
|
-
question: 'MarkComplete-3',
|
|
498
|
-
operator: '!=',
|
|
499
|
-
answerBoolean: true
|
|
500
|
-
}
|
|
501
|
-
]
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
extension: [
|
|
505
|
-
{
|
|
506
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
507
|
-
valueCodeableConcept: {
|
|
508
|
-
coding: [
|
|
509
|
-
{
|
|
510
|
-
system:
|
|
511
|
-
'https://smartforms.csiro.au/ig/CodeSystem/QuestionnaireItemControlExtended',
|
|
512
|
-
code: 'context-display'
|
|
513
|
-
}
|
|
514
|
-
]
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
linkId: 'CD-complete-3',
|
|
519
|
-
text: 'Complete',
|
|
520
|
-
_text: {
|
|
521
|
-
extension: [
|
|
522
|
-
{
|
|
523
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
524
|
-
valueString:
|
|
525
|
-
'<div title="Section completed" xmlns="http://www.w3.org/1999/xhtml">\r\n\t<div style="display: flex; flex-direction: row;">\r\n\t\t<img width=\'24\' height=\'24\' src=\'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9IiMyZTdkMzIiIGQ9Ik0yMCAxMmE4IDggMCAwIDEtOCA4YTggOCAwIDAgMS04LThhOCA4IDAgMCAxIDgtOGMuNzYgMCAxLjUuMTEgMi4yLjMxbDEuNTctMS41N0E5LjgyMiA5LjgyMiAwIDAgMCAxMiAyQTEwIDEwIDAgMCAwIDIgMTJhMTAgMTAgMCAwIDAgMTAgMTBhMTAgMTAgMCAwIDAgMTAtMTBNNy45MSAxMC4wOEw2LjUgMTEuNUwxMSAxNkwyMSA2bC0xLjQxLTEuNDJMMTEgMTMuMTdsLTMuMDktMy4wOVoiLz48L3N2Zz4=\'\r\n\t\tstyle="align-self: center;"/>\r\n\t</div>\r\n</div>'
|
|
526
|
-
}
|
|
527
|
-
]
|
|
528
|
-
},
|
|
529
|
-
type: 'display',
|
|
530
|
-
enableWhen: [
|
|
531
|
-
{
|
|
532
|
-
question: 'MarkComplete-3',
|
|
533
|
-
operator: '=',
|
|
534
|
-
answerBoolean: true
|
|
535
|
-
}
|
|
536
|
-
]
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
linkId: 'MarkComplete-3',
|
|
540
|
-
text: 'Mark section as complete',
|
|
541
|
-
_text: {
|
|
542
|
-
extension: [
|
|
543
|
-
{
|
|
544
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-xhtml',
|
|
545
|
-
valueString:
|
|
546
|
-
'<div xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n <style type="text/css">\r\n .alert {\r\n padding: 0.75rem;\r\n margin-bottom: 1rem;\r\n font-size: 0.875rem;\r\n color: #2E7D32;\r\n border-radius: 0.5rem;\r\n background-color: #d5e5d6;\r\n font-weight: 700;\r\n }\r\n </style>\r\n</head>\r\n<body>\r\n<div class="alert">Mark section as complete</div>\r\n</body>\r\n</div>'
|
|
547
|
-
}
|
|
548
|
-
]
|
|
549
|
-
},
|
|
550
|
-
type: 'boolean',
|
|
551
|
-
repeats: false
|
|
552
|
-
}
|
|
553
|
-
]
|
|
554
|
-
}
|
|
555
|
-
]
|
|
556
|
-
}
|
|
557
|
-
]
|
|
558
|
-
};
|