@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,151 +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, QuestionnaireResponse } from 'fhir/r4';
|
|
19
|
-
|
|
20
|
-
export const qOpenChoiceAnswerOptionBasic: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'OpenChoiceAnswerOptionBasic',
|
|
23
|
-
name: 'OpenChoiceAnswerOptionBasic',
|
|
24
|
-
title: 'Open Choice AnswerOption Basic',
|
|
25
|
-
version: '0.1.0',
|
|
26
|
-
status: 'draft',
|
|
27
|
-
publisher: 'AEHRC CSIRO',
|
|
28
|
-
date: '2024-05-01',
|
|
29
|
-
url: 'https://smartforms.csiro.au/docs/components/open-choice/answeroption-basic',
|
|
30
|
-
item: [
|
|
31
|
-
{
|
|
32
|
-
extension: [
|
|
33
|
-
{
|
|
34
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
35
|
-
valueCodeableConcept: {
|
|
36
|
-
coding: [
|
|
37
|
-
{
|
|
38
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
39
|
-
code: 'radio-button'
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-openLabel',
|
|
46
|
-
valueString: 'Other, please specify'
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
linkId: 'health-check-location',
|
|
50
|
-
text: 'Location of health check',
|
|
51
|
-
type: 'open-choice',
|
|
52
|
-
repeats: false,
|
|
53
|
-
answerOption: [
|
|
54
|
-
{
|
|
55
|
-
valueCoding: {
|
|
56
|
-
system: 'http://snomed.info/sct',
|
|
57
|
-
code: '257585005',
|
|
58
|
-
display: 'Clinic'
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
valueCoding: {
|
|
63
|
-
system: 'http://snomed.info/sct',
|
|
64
|
-
code: '264362003',
|
|
65
|
-
display: 'Home'
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
valueCoding: {
|
|
70
|
-
system: 'http://snomed.info/sct',
|
|
71
|
-
code: '257698009',
|
|
72
|
-
display: 'School'
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const qrOpenChoiceAnswerOptionBasicResponse: QuestionnaireResponse = {
|
|
81
|
-
resourceType: 'QuestionnaireResponse',
|
|
82
|
-
status: 'in-progress',
|
|
83
|
-
item: [
|
|
84
|
-
{
|
|
85
|
-
linkId: 'health-check-location',
|
|
86
|
-
text: 'Location of health check',
|
|
87
|
-
answer: [
|
|
88
|
-
{
|
|
89
|
-
valueString: 'Pharmacy'
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
questionnaire: 'https://smartforms.csiro.au/docs/components/open-choice/answeroption-basic'
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export const qOpenChoiceAnswerValueSetBasic: Questionnaire = {
|
|
98
|
-
resourceType: 'Questionnaire',
|
|
99
|
-
id: 'OpenChoiceAnswerValueSetBasic',
|
|
100
|
-
name: 'OpenChoiceAnswerValueSetBasic',
|
|
101
|
-
title: 'Open Choice AnswerValueSet Basic',
|
|
102
|
-
version: '0.1.0',
|
|
103
|
-
status: 'draft',
|
|
104
|
-
publisher: 'AEHRC CSIRO',
|
|
105
|
-
date: '2024-05-01',
|
|
106
|
-
url: 'https://smartforms.csiro.au/docs/components/display/open-choice/answervalueset-basic',
|
|
107
|
-
item: [
|
|
108
|
-
{
|
|
109
|
-
extension: [
|
|
110
|
-
{
|
|
111
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
112
|
-
valueCodeableConcept: {
|
|
113
|
-
coding: [
|
|
114
|
-
{
|
|
115
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
116
|
-
code: 'radio-button'
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-openLabel',
|
|
123
|
-
valueString: 'Overseas state, please specify'
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
linkId: 'state',
|
|
127
|
-
text: 'State',
|
|
128
|
-
type: 'open-choice',
|
|
129
|
-
repeats: false,
|
|
130
|
-
answerValueSet:
|
|
131
|
-
'https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2'
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export const qrOpenChoiceAnswerValueSetBasicResponse: QuestionnaireResponse = {
|
|
137
|
-
resourceType: 'QuestionnaireResponse',
|
|
138
|
-
status: 'in-progress',
|
|
139
|
-
item: [
|
|
140
|
-
{
|
|
141
|
-
linkId: 'state',
|
|
142
|
-
text: 'State',
|
|
143
|
-
answer: [
|
|
144
|
-
{
|
|
145
|
-
valueString: 'Branbendurg'
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
questionnaire: 'https://smartforms.csiro.au/docs/components/open-choice/answervalueset-basic'
|
|
151
|
-
};
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2025 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 qParameterisedValueSetBasic: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'ParameterisedValueSetBasic',
|
|
23
|
-
name: 'ParameterisedValueSetBasic',
|
|
24
|
-
title: 'Parameterised ValueSet Basic - States',
|
|
25
|
-
version: '0.1.0',
|
|
26
|
-
status: 'draft',
|
|
27
|
-
publisher: 'AEHRC CSIRO',
|
|
28
|
-
date: '2025-03-01',
|
|
29
|
-
url: 'https://smartforms.csiro.au/docs/pvs/basic',
|
|
30
|
-
item: [
|
|
31
|
-
{
|
|
32
|
-
type: 'choice',
|
|
33
|
-
extension: [
|
|
34
|
-
{
|
|
35
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
36
|
-
valueCodeableConcept: {
|
|
37
|
-
coding: [
|
|
38
|
-
{
|
|
39
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
40
|
-
code: 'radio-button',
|
|
41
|
-
display: 'Radio Button'
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
linkId: 'countryCode',
|
|
48
|
-
text: 'Country',
|
|
49
|
-
answerValueSet: 'http://example.com/countries/vs'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
linkId: 'requestDisplay',
|
|
53
|
-
type: 'display',
|
|
54
|
-
repeats: false,
|
|
55
|
-
_text: {
|
|
56
|
-
extension: [
|
|
57
|
-
{
|
|
58
|
-
url: 'http://hl7.org/fhir/StructureDefinition/cqf-expression',
|
|
59
|
-
valueExpression: {
|
|
60
|
-
language: 'text/fhirpath',
|
|
61
|
-
expression:
|
|
62
|
-
"'State GET request url: https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&p-country=' + %resource.item.where(linkId = 'countryCode').answer.value.code"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
text: 'State GET request url: https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
type: 'choice',
|
|
71
|
-
extension: [
|
|
72
|
-
{
|
|
73
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
74
|
-
valueCodeableConcept: {
|
|
75
|
-
coding: [
|
|
76
|
-
{
|
|
77
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
78
|
-
code: 'drop-down',
|
|
79
|
-
display: 'Drop down'
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
linkId: 'stateCodeDropdown',
|
|
86
|
-
text: 'State (Dropdown)',
|
|
87
|
-
answerValueSet: 'https://example.com/limited-states',
|
|
88
|
-
_answerValueSet: {
|
|
89
|
-
// Mimics GET request of https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&p-country={country_value}
|
|
90
|
-
extension: [
|
|
91
|
-
{
|
|
92
|
-
url: 'http://hl7.org/fhir/tools/StructureDefinition/binding-parameter',
|
|
93
|
-
extension: [
|
|
94
|
-
{
|
|
95
|
-
url: 'name',
|
|
96
|
-
valueString: 'p-country'
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
url: 'expression',
|
|
100
|
-
valueExpression: {
|
|
101
|
-
expression: "%resource.item.where(linkId = 'countryCode').answer.value.code",
|
|
102
|
-
language: 'text/fhirpath'
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
type: 'choice',
|
|
112
|
-
extension: [
|
|
113
|
-
{
|
|
114
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
115
|
-
valueCodeableConcept: {
|
|
116
|
-
coding: [
|
|
117
|
-
{
|
|
118
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
119
|
-
code: 'radio-button',
|
|
120
|
-
display: 'Radio'
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
linkId: 'stateCodeRadio',
|
|
127
|
-
text: 'State (Radio)',
|
|
128
|
-
answerValueSet: 'https://example.com/limited-states',
|
|
129
|
-
_answerValueSet: {
|
|
130
|
-
// Mimics GET request of https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&p-country={country_value}
|
|
131
|
-
extension: [
|
|
132
|
-
{
|
|
133
|
-
url: 'http://hl7.org/fhir/tools/StructureDefinition/binding-parameter',
|
|
134
|
-
extension: [
|
|
135
|
-
{
|
|
136
|
-
url: 'name',
|
|
137
|
-
valueString: 'p-country'
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
url: 'expression',
|
|
141
|
-
valueExpression: {
|
|
142
|
-
expression: "%resource.item.where(linkId = 'countryCode').answer.value.code",
|
|
143
|
-
language: 'text/fhirpath'
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
export const qParameterisedValueSetMultiple: Questionnaire = {
|
|
155
|
-
resourceType: 'Questionnaire',
|
|
156
|
-
id: 'ParameterisedValueSetMultiple',
|
|
157
|
-
name: 'ParameterisedValueSetMultiple',
|
|
158
|
-
title: 'Parameterised ValueSet Multiple Params - States',
|
|
159
|
-
version: '0.1.0',
|
|
160
|
-
status: 'draft',
|
|
161
|
-
publisher: 'AEHRC CSIRO',
|
|
162
|
-
date: '2025-03-01',
|
|
163
|
-
url: 'https://smartforms.csiro.au/docs/pvs/multiple',
|
|
164
|
-
item: [
|
|
165
|
-
{
|
|
166
|
-
type: 'choice',
|
|
167
|
-
extension: [
|
|
168
|
-
{
|
|
169
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
170
|
-
valueCodeableConcept: {
|
|
171
|
-
coding: [
|
|
172
|
-
{
|
|
173
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
174
|
-
code: 'radio-button',
|
|
175
|
-
display: 'Radio Button'
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
linkId: 'countryCode',
|
|
182
|
-
text: 'Country',
|
|
183
|
-
answerValueSet: 'http://example.com/countries/vs'
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
linkId: 'requestDisplay',
|
|
187
|
-
type: 'display',
|
|
188
|
-
repeats: false,
|
|
189
|
-
_text: {
|
|
190
|
-
extension: [
|
|
191
|
-
{
|
|
192
|
-
url: 'http://hl7.org/fhir/StructureDefinition/cqf-expression',
|
|
193
|
-
valueExpression: {
|
|
194
|
-
language: 'text/fhirpath',
|
|
195
|
-
expression:
|
|
196
|
-
"'State GET request url: https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&p-country=' + %resource.item.where(linkId = 'countryCode').answer.value.code + '&includeDefinition=true'"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
text: 'State GET request url: https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&includeDefinition=true'
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
type: 'choice',
|
|
205
|
-
extension: [
|
|
206
|
-
{
|
|
207
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
208
|
-
valueCodeableConcept: {
|
|
209
|
-
coding: [
|
|
210
|
-
{
|
|
211
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
212
|
-
code: 'drop-down',
|
|
213
|
-
display: 'Drop down'
|
|
214
|
-
}
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
linkId: 'stateCodeDropdown',
|
|
220
|
-
text: 'State (drop down)',
|
|
221
|
-
answerValueSet: 'https://example.com/limited-states',
|
|
222
|
-
_answerValueSet: {
|
|
223
|
-
// Mimics GET request of https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&p-country={country_value}
|
|
224
|
-
extension: [
|
|
225
|
-
{
|
|
226
|
-
url: 'http://hl7.org/fhir/tools/StructureDefinition/binding-parameter',
|
|
227
|
-
extension: [
|
|
228
|
-
{
|
|
229
|
-
url: 'name',
|
|
230
|
-
valueString: 'p-country'
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
url: 'expression',
|
|
234
|
-
valueExpression: {
|
|
235
|
-
expression: "%resource.item.where(linkId = 'countryCode').answer.value.code",
|
|
236
|
-
language: 'text/fhirpath'
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
url: 'http://hl7.org/fhir/tools/StructureDefinition/binding-parameter',
|
|
243
|
-
extension: [
|
|
244
|
-
{
|
|
245
|
-
url: 'name',
|
|
246
|
-
valueString: 'includeDefinition'
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
url: 'expression',
|
|
250
|
-
valueString: 'true'
|
|
251
|
-
}
|
|
252
|
-
]
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
type: 'choice',
|
|
259
|
-
extension: [
|
|
260
|
-
{
|
|
261
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
262
|
-
valueCodeableConcept: {
|
|
263
|
-
coding: [
|
|
264
|
-
{
|
|
265
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
266
|
-
code: 'radio-button',
|
|
267
|
-
display: 'Radio'
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
linkId: 'stateCodeRadio',
|
|
274
|
-
text: 'State (Radio)',
|
|
275
|
-
answerValueSet: 'https://example.com/limited-states',
|
|
276
|
-
_answerValueSet: {
|
|
277
|
-
// Mimics GET request of https://r4.ontoserver.csiro.au/fhir/ValueSet/$expand?url=https://example.com/limited-states&p-country={country_value}
|
|
278
|
-
extension: [
|
|
279
|
-
{
|
|
280
|
-
url: 'http://hl7.org/fhir/tools/StructureDefinition/binding-parameter',
|
|
281
|
-
extension: [
|
|
282
|
-
{
|
|
283
|
-
url: 'name',
|
|
284
|
-
valueString: 'p-country'
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
url: 'expression',
|
|
288
|
-
valueExpression: {
|
|
289
|
-
expression: "%resource.item.where(linkId = 'countryCode').answer.value.code",
|
|
290
|
-
language: 'text/fhirpath'
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
url: 'http://hl7.org/fhir/tools/StructureDefinition/binding-parameter',
|
|
297
|
-
extension: [
|
|
298
|
-
{
|
|
299
|
-
url: 'name',
|
|
300
|
-
valueString: 'includeDefinition'
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
url: 'expression',
|
|
304
|
-
valueString: 'true'
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
}
|
|
308
|
-
]
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
};
|