@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev2 → 1.0.0-alpha.42.dev4
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 -6
- 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,197 +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 qDisplayBasic: Questionnaire = {
|
|
21
|
-
resourceType: 'Questionnaire',
|
|
22
|
-
id: 'DisplayBasic',
|
|
23
|
-
name: 'DisplayBasic',
|
|
24
|
-
title: 'Display 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/display/basic',
|
|
30
|
-
item: [
|
|
31
|
-
{
|
|
32
|
-
linkId: 'information-display',
|
|
33
|
-
type: 'display',
|
|
34
|
-
repeats: false,
|
|
35
|
-
text: 'You can use the display item to show information to the user.'
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const qDisplayCalculation: Questionnaire = {
|
|
41
|
-
resourceType: 'Questionnaire',
|
|
42
|
-
id: 'DisplayCalculation',
|
|
43
|
-
name: 'DisplayCalculation',
|
|
44
|
-
title: 'Display Calculation',
|
|
45
|
-
version: '0.1.0',
|
|
46
|
-
status: 'draft',
|
|
47
|
-
publisher: 'AEHRC CSIRO',
|
|
48
|
-
date: '2024-05-01',
|
|
49
|
-
url: 'https://smartforms.csiro.au/docs/components/display/calculation',
|
|
50
|
-
extension: [
|
|
51
|
-
{
|
|
52
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
53
|
-
valueExpression: {
|
|
54
|
-
name: 'gender',
|
|
55
|
-
language: 'text/fhirpath',
|
|
56
|
-
expression: "item.where(linkId = 'gender-controller').answer.valueCoding.code"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
item: [
|
|
61
|
-
{
|
|
62
|
-
linkId: 'gender-controller',
|
|
63
|
-
text: 'Gender',
|
|
64
|
-
type: 'choice',
|
|
65
|
-
repeats: false,
|
|
66
|
-
answerOption: [
|
|
67
|
-
{
|
|
68
|
-
valueCoding: {
|
|
69
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
70
|
-
code: 'female',
|
|
71
|
-
display: 'Female'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
valueCoding: {
|
|
76
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
77
|
-
code: 'male',
|
|
78
|
-
display: 'Male'
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
valueCoding: {
|
|
83
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
84
|
-
code: 'other',
|
|
85
|
-
display: 'Other'
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
valueCoding: {
|
|
90
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
91
|
-
code: 'unknown',
|
|
92
|
-
display: 'Unknown'
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
linkId: 'gender-display',
|
|
99
|
-
type: 'display',
|
|
100
|
-
repeats: false,
|
|
101
|
-
_text: {
|
|
102
|
-
extension: [
|
|
103
|
-
{
|
|
104
|
-
url: 'http://hl7.org/fhir/StructureDefinition/cqf-expression',
|
|
105
|
-
valueExpression: {
|
|
106
|
-
language: 'text/fhirpath',
|
|
107
|
-
expression: "'Gender: '+ %gender"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
text: ''
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export const qDisplayCalculationStyled: Questionnaire = {
|
|
118
|
-
resourceType: 'Questionnaire',
|
|
119
|
-
id: 'DisplayCalculationStyled',
|
|
120
|
-
name: 'DisplayCalculationStyled',
|
|
121
|
-
title: 'Display Calculation Styled',
|
|
122
|
-
version: '0.1.0',
|
|
123
|
-
status: 'draft',
|
|
124
|
-
publisher: 'AEHRC CSIRO',
|
|
125
|
-
date: '2024-05-01',
|
|
126
|
-
url: 'https://smartforms.csiro.au/docs/components/display/calculation-styled',
|
|
127
|
-
extension: [
|
|
128
|
-
{
|
|
129
|
-
url: 'http://hl7.org/fhir/StructureDefinition/variable',
|
|
130
|
-
valueExpression: {
|
|
131
|
-
name: 'gender',
|
|
132
|
-
language: 'text/fhirpath',
|
|
133
|
-
expression: "item.where(linkId = 'gender-controller').answer.valueCoding.code"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
item: [
|
|
138
|
-
{
|
|
139
|
-
linkId: 'gender-controller',
|
|
140
|
-
text: 'Gender',
|
|
141
|
-
type: 'choice',
|
|
142
|
-
repeats: false,
|
|
143
|
-
answerOption: [
|
|
144
|
-
{
|
|
145
|
-
valueCoding: {
|
|
146
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
147
|
-
code: 'female',
|
|
148
|
-
display: 'Female'
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
valueCoding: {
|
|
153
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
154
|
-
code: 'male',
|
|
155
|
-
display: 'Male'
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
valueCoding: {
|
|
160
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
161
|
-
code: 'other',
|
|
162
|
-
display: 'Other'
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
valueCoding: {
|
|
167
|
-
system: 'http://hl7.org/fhir/administrative-gender',
|
|
168
|
-
code: 'unknown',
|
|
169
|
-
display: 'Unknown'
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
]
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
linkId: 'gender-display',
|
|
176
|
-
type: 'display',
|
|
177
|
-
repeats: false,
|
|
178
|
-
_text: {
|
|
179
|
-
extension: [
|
|
180
|
-
{
|
|
181
|
-
url: 'http://hl7.org/fhir/StructureDefinition/cqf-expression',
|
|
182
|
-
valueExpression: {
|
|
183
|
-
language: 'text/fhirpath',
|
|
184
|
-
expression: "'Gender: '+ %gender"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
url: 'http://hl7.org/fhir/StructureDefinition/rendering-style',
|
|
189
|
-
valueString:
|
|
190
|
-
'padding: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem; color: #2E7D32; border-radius: 0.5rem; background-color: #d5e5d6; font-weight: 700;'
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
text: ''
|
|
195
|
-
}
|
|
196
|
-
]
|
|
197
|
-
};
|