@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,52 +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 qGroupBasic: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'GroupBasic',
|
|
23
|
-
name: 'GroupBasic',
|
|
24
|
-
title: 'Group 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/group/basic',
|
|
30
|
-
item: [
|
|
31
|
-
{
|
|
32
|
-
linkId: 'patient-details-group',
|
|
33
|
-
type: 'group',
|
|
34
|
-
repeats: false,
|
|
35
|
-
text: 'Patient Details',
|
|
36
|
-
item: [
|
|
37
|
-
{
|
|
38
|
-
linkId: 'name',
|
|
39
|
-
type: 'string',
|
|
40
|
-
repeats: false,
|
|
41
|
-
text: 'Name'
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
linkId: 'age',
|
|
45
|
-
type: 'integer',
|
|
46
|
-
repeats: false,
|
|
47
|
-
text: 'Age'
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
};
|
|
@@ -1,461 +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 qGTableWithBoolean: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'GTableWithBoolean',
|
|
23
|
-
name: 'GTableWithBoolean',
|
|
24
|
-
title: 'GTable with Boolean',
|
|
25
|
-
version: '0.1.0',
|
|
26
|
-
status: 'draft',
|
|
27
|
-
publisher: 'AEHRC CSIRO',
|
|
28
|
-
date: '2024-05-01',
|
|
29
|
-
url: 'https://smartforms.csiro.au/docs/tester/gtable-1',
|
|
30
|
-
contained: [
|
|
31
|
-
{
|
|
32
|
-
resourceType: 'ValueSet',
|
|
33
|
-
id: 'MedicalHistory',
|
|
34
|
-
url: 'https://smartforms.csiro.au/ig/ValueSet/MedicalHistory',
|
|
35
|
-
name: 'MedicalHistory',
|
|
36
|
-
title: 'Medical History',
|
|
37
|
-
status: 'draft',
|
|
38
|
-
experimental: false,
|
|
39
|
-
description:
|
|
40
|
-
'The Medical History value set includes values that may be used to represent medical history, operations and hospital admissions.',
|
|
41
|
-
compose: {
|
|
42
|
-
include: [
|
|
43
|
-
{
|
|
44
|
-
system: 'http://snomed.info/sct',
|
|
45
|
-
filter: [
|
|
46
|
-
{
|
|
47
|
-
property: 'constraint',
|
|
48
|
-
op: '=',
|
|
49
|
-
value:
|
|
50
|
-
'^32570581000036105|Problem/Diagnosis reference set| OR ^32570141000036105|Procedure foundation reference set|'
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
resourceType: 'ValueSet',
|
|
59
|
-
id: 'condition-clinical',
|
|
60
|
-
extension: [
|
|
61
|
-
{
|
|
62
|
-
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-wg',
|
|
63
|
-
valueCode: 'pc'
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status',
|
|
67
|
-
valueCode: 'trial-use'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm',
|
|
71
|
-
valueInteger: 3
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
url: 'http://hl7.org/fhir/ValueSet/condition-clinical',
|
|
75
|
-
identifier: [
|
|
76
|
-
{
|
|
77
|
-
system: 'urn:ietf:rfc:3986',
|
|
78
|
-
value: 'urn:oid:2.16.840.1.113883.4.642.3.164'
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
version: '4.0.1',
|
|
82
|
-
name: 'ConditionClinicalStatusCodes',
|
|
83
|
-
title: 'Condition Clinical Status Codes',
|
|
84
|
-
status: 'draft',
|
|
85
|
-
experimental: false,
|
|
86
|
-
publisher: 'FHIR Project team',
|
|
87
|
-
contact: [
|
|
88
|
-
{
|
|
89
|
-
telecom: [
|
|
90
|
-
{
|
|
91
|
-
system: 'url',
|
|
92
|
-
value: 'http://hl7.org/fhir'
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
description: 'Preferred value set for Condition Clinical Status.',
|
|
98
|
-
copyright: 'Copyright © 2011+ HL7. Licensed under Creative Commons "No Rights Reserved".',
|
|
99
|
-
compose: {
|
|
100
|
-
include: [
|
|
101
|
-
{
|
|
102
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical'
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
expansion: {
|
|
107
|
-
identifier: 'urn:uuid:79d21cca-9f34-4cfa-9020-17eee95eeed8',
|
|
108
|
-
timestamp: '2024-04-02T14:17:12+10:00',
|
|
109
|
-
total: 6,
|
|
110
|
-
parameter: [
|
|
111
|
-
{
|
|
112
|
-
name: 'version',
|
|
113
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'used-codesystem',
|
|
117
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'warning-draft',
|
|
121
|
-
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'warning-trial-use',
|
|
125
|
-
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: 'warning-trial-use',
|
|
129
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
name: 'warning-draft',
|
|
133
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
contains: [
|
|
137
|
-
{
|
|
138
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
139
|
-
code: 'active',
|
|
140
|
-
display: 'Active'
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
144
|
-
code: 'inactive',
|
|
145
|
-
display: 'Inactive'
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
149
|
-
code: 'recurrence',
|
|
150
|
-
display: 'Recurrence'
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
154
|
-
code: 'relapse',
|
|
155
|
-
display: 'Relapse'
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
159
|
-
code: 'remission',
|
|
160
|
-
display: 'Remission'
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
164
|
-
code: 'resolved',
|
|
165
|
-
display: 'Resolved'
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
item: [
|
|
172
|
-
{
|
|
173
|
-
extension: [
|
|
174
|
-
{
|
|
175
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
176
|
-
valueCodeableConcept: {
|
|
177
|
-
coding: [
|
|
178
|
-
{
|
|
179
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
180
|
-
code: 'gtable'
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
linkId: 'medical-history',
|
|
187
|
-
text: 'Medical history and current problems list',
|
|
188
|
-
type: 'group',
|
|
189
|
-
repeats: true,
|
|
190
|
-
item: [
|
|
191
|
-
{
|
|
192
|
-
extension: [
|
|
193
|
-
{
|
|
194
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
195
|
-
valueCodeableConcept: {
|
|
196
|
-
coding: [
|
|
197
|
-
{
|
|
198
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
199
|
-
code: 'autocomplete'
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
linkId: 'medical-history-condition',
|
|
206
|
-
text: 'Condition',
|
|
207
|
-
type: 'open-choice',
|
|
208
|
-
answerValueSet: '#MedicalHistory'
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
extension: [
|
|
212
|
-
{
|
|
213
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
214
|
-
valueCodeableConcept: {
|
|
215
|
-
coding: [
|
|
216
|
-
{
|
|
217
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
218
|
-
code: 'drop-down'
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
linkId: 'medical-history-status',
|
|
225
|
-
text: 'Clinical Status',
|
|
226
|
-
type: 'choice',
|
|
227
|
-
answerValueSet: '#condition-clinical'
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
linkId: 'medical-history-onset',
|
|
231
|
-
text: 'Onset Date',
|
|
232
|
-
type: 'date'
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
linkId: 'medical-history-boolean-tester',
|
|
236
|
-
text: 'Boolean tester',
|
|
237
|
-
type: 'boolean'
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
export const qGTableWithChoice: Questionnaire = {
|
|
245
|
-
resourceType: 'Questionnaire',
|
|
246
|
-
id: 'GTableWithChoice',
|
|
247
|
-
name: 'GTableWithChoice',
|
|
248
|
-
title: 'GTable with Choice',
|
|
249
|
-
version: '0.1.0',
|
|
250
|
-
status: 'draft',
|
|
251
|
-
publisher: 'AEHRC CSIRO',
|
|
252
|
-
date: '2024-05-01',
|
|
253
|
-
url: 'https://smartforms.csiro.au/docs/tester/gtable-2',
|
|
254
|
-
contained: [
|
|
255
|
-
{
|
|
256
|
-
resourceType: 'ValueSet',
|
|
257
|
-
id: 'MedicalHistory',
|
|
258
|
-
url: 'https://smartforms.csiro.au/ig/ValueSet/MedicalHistory',
|
|
259
|
-
name: 'MedicalHistory',
|
|
260
|
-
title: 'Medical History',
|
|
261
|
-
status: 'draft',
|
|
262
|
-
experimental: false,
|
|
263
|
-
description:
|
|
264
|
-
'The Medical History value set includes values that may be used to represent medical history, operations and hospital admissions.',
|
|
265
|
-
compose: {
|
|
266
|
-
include: [
|
|
267
|
-
{
|
|
268
|
-
system: 'http://snomed.info/sct',
|
|
269
|
-
filter: [
|
|
270
|
-
{
|
|
271
|
-
property: 'constraint',
|
|
272
|
-
op: '=',
|
|
273
|
-
value:
|
|
274
|
-
'^32570581000036105|Problem/Diagnosis reference set| OR ^32570141000036105|Procedure foundation reference set|'
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
resourceType: 'ValueSet',
|
|
283
|
-
id: 'condition-clinical',
|
|
284
|
-
extension: [
|
|
285
|
-
{
|
|
286
|
-
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-wg',
|
|
287
|
-
valueCode: 'pc'
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status',
|
|
291
|
-
valueCode: 'trial-use'
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
url: 'http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm',
|
|
295
|
-
valueInteger: 3
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
url: 'http://hl7.org/fhir/ValueSet/condition-clinical',
|
|
299
|
-
identifier: [
|
|
300
|
-
{
|
|
301
|
-
system: 'urn:ietf:rfc:3986',
|
|
302
|
-
value: 'urn:oid:2.16.840.1.113883.4.642.3.164'
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
version: '4.0.1',
|
|
306
|
-
name: 'ConditionClinicalStatusCodes',
|
|
307
|
-
title: 'Condition Clinical Status Codes',
|
|
308
|
-
status: 'draft',
|
|
309
|
-
experimental: false,
|
|
310
|
-
publisher: 'FHIR Project team',
|
|
311
|
-
contact: [
|
|
312
|
-
{
|
|
313
|
-
telecom: [
|
|
314
|
-
{
|
|
315
|
-
system: 'url',
|
|
316
|
-
value: 'http://hl7.org/fhir'
|
|
317
|
-
}
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
description: 'Preferred value set for Condition Clinical Status.',
|
|
322
|
-
copyright: 'Copyright © 2011+ HL7. Licensed under Creative Commons "No Rights Reserved".',
|
|
323
|
-
compose: {
|
|
324
|
-
include: [
|
|
325
|
-
{
|
|
326
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical'
|
|
327
|
-
}
|
|
328
|
-
]
|
|
329
|
-
},
|
|
330
|
-
expansion: {
|
|
331
|
-
identifier: 'urn:uuid:79d21cca-9f34-4cfa-9020-17eee95eeed8',
|
|
332
|
-
timestamp: '2024-04-02T14:17:12+10:00',
|
|
333
|
-
total: 6,
|
|
334
|
-
parameter: [
|
|
335
|
-
{
|
|
336
|
-
name: 'version',
|
|
337
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
name: 'used-codesystem',
|
|
341
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: 'warning-draft',
|
|
345
|
-
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
name: 'warning-trial-use',
|
|
349
|
-
valueUri: 'http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1'
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
name: 'warning-trial-use',
|
|
353
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
name: 'warning-draft',
|
|
357
|
-
valueUri: 'http://terminology.hl7.org/CodeSystem/condition-clinical|4.0.1'
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
contains: [
|
|
361
|
-
{
|
|
362
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
363
|
-
code: 'active',
|
|
364
|
-
display: 'Active'
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
368
|
-
code: 'inactive',
|
|
369
|
-
display: 'Inactive'
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
373
|
-
code: 'recurrence',
|
|
374
|
-
display: 'Recurrence'
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
378
|
-
code: 'relapse',
|
|
379
|
-
display: 'Relapse'
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
383
|
-
code: 'remission',
|
|
384
|
-
display: 'Remission'
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
system: 'http://terminology.hl7.org/CodeSystem/condition-clinical',
|
|
388
|
-
code: 'resolved',
|
|
389
|
-
display: 'Resolved'
|
|
390
|
-
}
|
|
391
|
-
]
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
item: [
|
|
396
|
-
{
|
|
397
|
-
extension: [
|
|
398
|
-
{
|
|
399
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
400
|
-
valueCodeableConcept: {
|
|
401
|
-
coding: [
|
|
402
|
-
{
|
|
403
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
404
|
-
code: 'gtable'
|
|
405
|
-
}
|
|
406
|
-
]
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
],
|
|
410
|
-
linkId: 'medical-history',
|
|
411
|
-
text: 'Medical history and current problems list',
|
|
412
|
-
type: 'group',
|
|
413
|
-
repeats: true,
|
|
414
|
-
item: [
|
|
415
|
-
{
|
|
416
|
-
extension: [
|
|
417
|
-
{
|
|
418
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
419
|
-
valueCodeableConcept: {
|
|
420
|
-
coding: [
|
|
421
|
-
{
|
|
422
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
423
|
-
code: 'autocomplete'
|
|
424
|
-
}
|
|
425
|
-
]
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
linkId: 'medical-history-condition',
|
|
430
|
-
text: 'Condition',
|
|
431
|
-
type: 'open-choice',
|
|
432
|
-
answerValueSet: '#MedicalHistory'
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
extension: [
|
|
436
|
-
{
|
|
437
|
-
url: 'http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl',
|
|
438
|
-
valueCodeableConcept: {
|
|
439
|
-
coding: [
|
|
440
|
-
{
|
|
441
|
-
system: 'http://hl7.org/fhir/questionnaire-item-control',
|
|
442
|
-
code: 'drop-down'
|
|
443
|
-
}
|
|
444
|
-
]
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
],
|
|
448
|
-
linkId: 'medical-history-status',
|
|
449
|
-
text: 'Clinical Status',
|
|
450
|
-
type: 'choice',
|
|
451
|
-
answerValueSet: '#condition-clinical'
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
linkId: 'medical-history-onset',
|
|
455
|
-
text: 'Onset Date',
|
|
456
|
-
type: 'date'
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
}
|
|
460
|
-
]
|
|
461
|
-
};
|
|
@@ -1,161 +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 qMyPatient: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'canshare-myPatient1',
|
|
23
|
-
meta: {
|
|
24
|
-
versionId: '9',
|
|
25
|
-
lastUpdated: '2024-09-18T07:23:35.7317908+00:00'
|
|
26
|
-
},
|
|
27
|
-
extension: [
|
|
28
|
-
{
|
|
29
|
-
extension: [
|
|
30
|
-
{
|
|
31
|
-
url: 'name',
|
|
32
|
-
valueId: 'LaunchPatient'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
url: 'type',
|
|
36
|
-
valueCode: 'Patient'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
url: 'description',
|
|
40
|
-
valueString: 'The patient that is to be used to pre-populate the form'
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext'
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
extension: [
|
|
47
|
-
{
|
|
48
|
-
url: 'name',
|
|
49
|
-
valueId: 'LaunchPractitioner'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
url: 'type',
|
|
53
|
-
valueCode: 'Practitioner'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
url: 'description',
|
|
57
|
-
valueString: 'The practitioner that is to be used to pre-populate the form'
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
url: 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemExtractionContext',
|
|
64
|
-
valueCode: 'Patient'
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
url: 'http://canshare.co.nz/questionnaire/myPatient1',
|
|
68
|
-
name: 'myPatient1',
|
|
69
|
-
status: 'active',
|
|
70
|
-
publisher: 'DEMO: David Hay',
|
|
71
|
-
useContext: [
|
|
72
|
-
{
|
|
73
|
-
code: {
|
|
74
|
-
system: 'http://terminology.hl7.org/CodeSystem/usage-context-type',
|
|
75
|
-
code: 'user',
|
|
76
|
-
display: 'User Type'
|
|
77
|
-
},
|
|
78
|
-
valueCodeableConcept: {
|
|
79
|
-
coding: [
|
|
80
|
-
{
|
|
81
|
-
code: 'extract',
|
|
82
|
-
display: 'Demo Extract'
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
item: [
|
|
89
|
-
{
|
|
90
|
-
linkId: 'myPatient1',
|
|
91
|
-
text: 'myPatient1',
|
|
92
|
-
type: 'group',
|
|
93
|
-
item: [
|
|
94
|
-
{
|
|
95
|
-
linkId: 'myPatient1.name',
|
|
96
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.name',
|
|
97
|
-
text: 'name *',
|
|
98
|
-
type: 'group',
|
|
99
|
-
repeats: true,
|
|
100
|
-
item: [
|
|
101
|
-
{
|
|
102
|
-
linkId: 'myPatient1.name.first',
|
|
103
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.name.given',
|
|
104
|
-
text: 'firstName *',
|
|
105
|
-
type: 'string',
|
|
106
|
-
repeats: true
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
linkId: 'myPatient1.name.lastName',
|
|
110
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.name.family',
|
|
111
|
-
text: 'lastName',
|
|
112
|
-
type: 'string'
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
linkId: 'myPatient1.hair',
|
|
118
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.extension',
|
|
119
|
-
text: 'hair',
|
|
120
|
-
type: 'group',
|
|
121
|
-
item: [
|
|
122
|
-
{
|
|
123
|
-
linkId: 'myPatient1.hair.colour',
|
|
124
|
-
definition:
|
|
125
|
-
'http://hl7.org/fhir/StructureDefinition/Patient#Patient.extension.valueString',
|
|
126
|
-
text: 'colour',
|
|
127
|
-
type: 'string'
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
linkId: 'myPatient1.hair.url',
|
|
131
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.extension.url',
|
|
132
|
-
text: 'url',
|
|
133
|
-
type: 'string'
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
linkId: 'myPatient1.religion',
|
|
139
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.extension',
|
|
140
|
-
text: 'religion',
|
|
141
|
-
type: 'group',
|
|
142
|
-
item: [
|
|
143
|
-
{
|
|
144
|
-
linkId: 'myPatient1.religion.brand',
|
|
145
|
-
definition:
|
|
146
|
-
'http://hl7.org/fhir/StructureDefinition/Patient#Patient.extension.valueString',
|
|
147
|
-
text: 'brand',
|
|
148
|
-
type: 'string'
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
linkId: 'myPatient1.religion.url1',
|
|
152
|
-
definition: 'http://hl7.org/fhir/StructureDefinition/Patient#Patient.extension.url',
|
|
153
|
-
text: 'url',
|
|
154
|
-
type: 'string'
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
};
|