@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.
Files changed (114) hide show
  1. package/package.json +1 -6
  2. package/.storybook/main.ts +0 -34
  3. package/.storybook/preview.tsx +0 -40
  4. package/src/stories/assets/fhirClient/mockFhirClient.ts +0 -52
  5. package/src/stories/assets/patients/PatSmartForm.ts +0 -281
  6. package/src/stories/assets/practitioners/PracPrimaryPeter.ts +0 -38
  7. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +0 -209
  8. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +0 -220
  9. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +0 -299
  10. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +0 -175
  11. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +0 -229
  12. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +0 -359
  13. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +0 -195
  14. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +0 -195
  15. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +0 -195
  16. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +0 -174
  17. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +0 -495
  18. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +0 -139
  19. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +0 -216
  20. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +0 -199
  21. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +0 -195
  22. package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +0 -195
  23. package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +0 -113
  24. package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +0 -865
  25. package/src/stories/assets/questionnaires/QAdvancedOther.ts +0 -494
  26. package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +0 -503
  27. package/src/stories/assets/questionnaires/QAttachment.ts +0 -38
  28. package/src/stories/assets/questionnaires/QAuCoreTesting.ts +0 -3796
  29. package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +0 -643
  30. package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +0 -281
  31. package/src/stories/assets/questionnaires/QBehaviorOther.ts +0 -1241
  32. package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +0 -508
  33. package/src/stories/assets/questionnaires/QBoolean.ts +0 -180
  34. package/src/stories/assets/questionnaires/QButtonTester.ts +0 -497
  35. package/src/stories/assets/questionnaires/QChoice.ts +0 -493
  36. package/src/stories/assets/questionnaires/QDate.ts +0 -56
  37. package/src/stories/assets/questionnaires/QDateTime.ts +0 -56
  38. package/src/stories/assets/questionnaires/QDecimal.ts +0 -56
  39. package/src/stories/assets/questionnaires/QDisplay.ts +0 -197
  40. package/src/stories/assets/questionnaires/QFormPopulation.ts +0 -1349
  41. package/src/stories/assets/questionnaires/QGroup.ts +0 -52
  42. package/src/stories/assets/questionnaires/QGroupTableTester.ts +0 -461
  43. package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +0 -161
  44. package/src/stories/assets/questionnaires/QInteger.ts +0 -119
  45. package/src/stories/assets/questionnaires/QItemControlDisplay.ts +0 -558
  46. package/src/stories/assets/questionnaires/QItemControlGroup.ts +0 -1530
  47. package/src/stories/assets/questionnaires/QItemControlQuestion.ts +0 -1271
  48. package/src/stories/assets/questionnaires/QMbs715Tester.ts +0 -32888
  49. package/src/stories/assets/questionnaires/QOpenChoice.ts +0 -151
  50. package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +0 -312
  51. package/src/stories/assets/questionnaires/QPrePopTester.ts +0 -543
  52. package/src/stories/assets/questionnaires/QQuantity.ts +0 -365
  53. package/src/stories/assets/questionnaires/QReference.ts +0 -38
  54. package/src/stories/assets/questionnaires/QSingleItems.ts +0 -251
  55. package/src/stories/assets/questionnaires/QString.ts +0 -131
  56. package/src/stories/assets/questionnaires/QTerminologyControl.ts +0 -59
  57. package/src/stories/assets/questionnaires/QText.ts +0 -169
  58. package/src/stories/assets/questionnaires/QTime.ts +0 -38
  59. package/src/stories/assets/questionnaires/QUrl.ts +0 -38
  60. package/src/stories/assets/questionnaires/QValidateTester.ts +0 -118
  61. package/src/stories/assets/questionnaires/index.ts +0 -43
  62. package/src/stories/itemTypes/Attachment.stories.tsx +0 -39
  63. package/src/stories/itemTypes/Boolean.stories.tsx +0 -65
  64. package/src/stories/itemTypes/Choice.stories.tsx +0 -78
  65. package/src/stories/itemTypes/Date.stories.tsx +0 -46
  66. package/src/stories/itemTypes/DateTime.stories.tsx +0 -45
  67. package/src/stories/itemTypes/Decimal.stories.tsx +0 -56
  68. package/src/stories/itemTypes/Display.stories.tsx +0 -55
  69. package/src/stories/itemTypes/Group.stories.tsx +0 -39
  70. package/src/stories/itemTypes/Integer.stories.tsx +0 -55
  71. package/src/stories/itemTypes/OpenChoice.stories.tsx +0 -64
  72. package/src/stories/itemTypes/Quantity.stories.tsx +0 -71
  73. package/src/stories/itemTypes/Reference.stories.tsx +0 -39
  74. package/src/stories/itemTypes/String.stories.tsx +0 -51
  75. package/src/stories/itemTypes/Text.stories.tsx +0 -51
  76. package/src/stories/itemTypes/Time.stories.tsx +0 -39
  77. package/src/stories/itemTypes/Url.stories.tsx +0 -39
  78. package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +0 -51
  79. package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +0 -90
  80. package/src/stories/sdc/AdvancedOther.stories.tsx +0 -76
  81. package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +0 -104
  82. package/src/stories/sdc/BehaviorCalculations.stories.tsx +0 -69
  83. package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +0 -76
  84. package/src/stories/sdc/BehaviorOther.stories.tsx +0 -97
  85. package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +0 -88
  86. package/src/stories/sdc/FormPopulation.stories.tsx +0 -97
  87. package/src/stories/sdc/ItemControlDisplay.stories.tsx +0 -69
  88. package/src/stories/sdc/ItemControlGroup.stories.tsx +0 -90
  89. package/src/stories/sdc/ItemControlQuestion.stories.tsx +0 -118
  90. package/src/stories/sdc/OtherExtensions.stories.tsx +0 -39
  91. package/src/stories/sdc/ParameterisedValueSets.stories.tsx +0 -48
  92. package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +0 -54
  93. package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +0 -76
  94. package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +0 -61
  95. package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +0 -70
  96. package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +0 -28
  97. package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +0 -49
  98. package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +0 -84
  99. package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +0 -105
  100. package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +0 -56
  101. package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +0 -114
  102. package/src/stories/storybookWrappers/TestCssSheet.css +0 -17
  103. package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +0 -41
  104. package/src/stories/storybookWrappers/globals.ts +0 -18
  105. package/src/stories/storybookWrappers/iframeResizerChild.js +0 -1063
  106. package/src/stories/storybookWrappers/index.ts +0 -19
  107. package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +0 -55
  108. package/src/stories/testing/AuCoreTester.stories.tsx +0 -196
  109. package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +0 -40
  110. package/src/stories/testing/GroupTableTester.stories.tsx +0 -39
  111. package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +0 -39
  112. package/src/stories/testing/Mbs715Tester.stories.tsx +0 -57
  113. package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +0 -55
  114. package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +0 -39
@@ -1,195 +0,0 @@
1
- {
2
- "resourceType": "Questionnaire",
3
- "id": "BodyHeightObservation",
4
- "version": "0.1.0",
5
- "name": "BodyHeightObservation",
6
- "title": "Body Height Observation",
7
- "status": "draft",
8
- "date": "2024-07-15",
9
- "extension": [
10
- {
11
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
12
- "extension": [
13
- {
14
- "url": "name",
15
- "valueCoding": {
16
- "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
17
- "code": "patient"
18
- }
19
- },
20
- {
21
- "url": "type",
22
- "valueCode": "Patient"
23
- },
24
- {
25
- "url": "description",
26
- "valueString": "The patient that is to be used to pre-populate the form"
27
- }
28
- ]
29
- },
30
- {
31
- "url": "http://hl7.org/fhir/StructureDefinition/variable",
32
- "valueExpression": {
33
- "name": "ObservationHeight",
34
- "language": "application/x-fhir-query",
35
- "expression": "Observation?code=8302-2&_count=1&_sort=-date&patient={{%patient.id}}"
36
- }
37
- }
38
- ],
39
- "item": [
40
- {
41
- "linkId": "observation",
42
- "text": "AU Core Observation - Body Height",
43
- "type": "group",
44
- "item": [
45
- {
46
- "linkId": "patient-details",
47
- "text": "Patient Details",
48
- "type": "group",
49
- "item": [
50
- {
51
- "extension": [
52
- {
53
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
54
- "valueExpression": {
55
- "language": "text/fhirpath",
56
- "expression": "%patient.id"
57
- }
58
- }
59
- ],
60
- "linkId": "patient-id",
61
- "text": "Patient ID",
62
- "type": "string",
63
- "required": true,
64
- "readOnly": true
65
- },
66
- {
67
- "extension": [
68
- {
69
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
70
- "valueExpression": {
71
- "language": "text/fhirpath",
72
- "expression": "(%patient.name.where(use='official').select((family | (given\n| prefix).join(' ')).join(', ').where($this != '') | text)).first()"
73
- }
74
- }
75
- ],
76
- "linkId": "patient-name",
77
- "text": "Patient Name",
78
- "type": "string",
79
- "required": true,
80
- "readOnly": true
81
- }
82
- ]
83
- },
84
- {
85
- "linkId": "first-observation-note",
86
- "text": "This questionnaire only uses the first Observation resource with LOINC code 8302-2 (Body height) of a referenced\npatient.",
87
- "_text": {
88
- "extension": [
89
- {
90
- "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
91
- "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"padding-bottom:\n8px;\">\r\n\n <b>This questionnaire only uses the first Observation resource with LOINC code 8302-2 (Body height) of a referenced\npatient.</b>\r\n</div>"
92
- }
93
- ]
94
- },
95
- "type": "display"
96
- },
97
- {
98
- "linkId": "observation-status",
99
- "text": "Observation Status",
100
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-status",
101
- "type": "choice",
102
- "extension": [
103
- {
104
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
105
- "valueExpression": {
106
- "language": "text/fhirpath",
107
- "expression": "%ObservationHeight.entry[0].resource.status"
108
- }
109
- }
110
- ]
111
- },
112
- {
113
- "linkId": "observation-category",
114
- "text": "Observation Category",
115
- "type": "choice",
116
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-category",
117
- "extension": [
118
- {
119
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
120
- "valueExpression": {
121
- "language": "text/fhirpath",
122
- "expression": "%ObservationHeight.entry[0].resource.category.coding"
123
- }
124
- }
125
- ]
126
- },
127
- {
128
- "linkId": "observation-category-vscat-boolean",
129
- "text": "Observation Category is VSCat?",
130
- "type": "boolean",
131
- "extension": [
132
- {
133
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
134
- "valueExpression": {
135
- "language": "text/fhirpath",
136
- "expression": "%ObservationHeight.entry[0].resource.category.coding.code = 'vital-signs'"
137
- }
138
- }
139
- ]
140
- },
141
- {
142
- "linkId": "observation-code-loinc",
143
- "text": "Observation Code (LOINC)",
144
- "type": "choice",
145
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult",
146
- "extension": [
147
- {
148
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
149
- "valueExpression": {
150
- "language": "text/fhirpath",
151
- "expression": "%ObservationHeight.entry[0].resource.code.coding.where(system='http://loinc.org' and code='8302-2')"
152
- }
153
- }
154
- ]
155
- },
156
- {
157
- "linkId": "Observation.effectivedateTime",
158
- "text": "Effective Date Time",
159
- "type": "dateTime",
160
- "extension": [
161
- {
162
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
163
- "valueExpression": {
164
- "language": "text/fhirpath",
165
- "expression": "%ObservationHeight.entry[0].resource.effectiveDateTime"
166
- }
167
- }
168
- ]
169
- },
170
- {
171
- "linkId": "observation-value",
172
- "text": "Observation Value",
173
- "type": "decimal",
174
- "extension": [
175
- {
176
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
177
- "valueExpression": {
178
- "language": "text/fhirpath",
179
- "expression": "%ObservationHeight.entry[0].resource.valueQuantity.value"
180
- }
181
- },
182
- {
183
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
184
- "valueCoding": {
185
- "system": "http://unitsofmeasure.org",
186
- "code": "cm",
187
- "display": "cm"
188
- }
189
- }
190
- ]
191
- }
192
- ]
193
- }
194
- ]
195
- }
@@ -1,195 +0,0 @@
1
- {
2
- "resourceType": "Questionnaire",
3
- "id": "BodyWeightObservation",
4
- "version": "0.1.0",
5
- "name": "BodyWeightObservation",
6
- "title": "Body Weight Observation",
7
- "status": "draft",
8
- "date": "2024-07-15",
9
- "extension": [
10
- {
11
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
12
- "extension": [
13
- {
14
- "url": "name",
15
- "valueCoding": {
16
- "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
17
- "code": "patient"
18
- }
19
- },
20
- {
21
- "url": "type",
22
- "valueCode": "Patient"
23
- },
24
- {
25
- "url": "description",
26
- "valueString": "The patient that is to be used to pre-populate the form"
27
- }
28
- ]
29
- },
30
- {
31
- "url": "http://hl7.org/fhir/StructureDefinition/variable",
32
- "valueExpression": {
33
- "name": "ObservationWeight",
34
- "language": "application/x-fhir-query",
35
- "expression": "Observation?code=29463-7&_count=1&_sort=-date&patient={{%patient.id}}"
36
- }
37
- }
38
- ],
39
- "item": [
40
- {
41
- "linkId": "observation",
42
- "text": "AU Core Observation - Body Weight",
43
- "type": "group",
44
- "item": [
45
- {
46
- "linkId": "patient-details",
47
- "text": "Patient Details",
48
- "type": "group",
49
- "item": [
50
- {
51
- "extension": [
52
- {
53
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
54
- "valueExpression": {
55
- "language": "text/fhirpath",
56
- "expression": "%patient.id"
57
- }
58
- }
59
- ],
60
- "linkId": "patient-id",
61
- "text": "Patient ID",
62
- "type": "string",
63
- "required": true,
64
- "readOnly": true
65
- },
66
- {
67
- "extension": [
68
- {
69
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
70
- "valueExpression": {
71
- "language": "text/fhirpath",
72
- "expression": "(%patient.name.where(use='official').select((family | (given | prefix).join(' ')).join(', ').where($this != '') | text)).first()"
73
- }
74
- }
75
- ],
76
- "linkId": "patient-name",
77
- "text": "Patient Name",
78
- "type": "string",
79
- "required": true,
80
- "readOnly": true
81
- }
82
- ]
83
- },
84
- {
85
- "linkId": "first-observation-note",
86
- "text": "This questionnaire only uses the first Observation resource with LOINC code 29463-7 (Body weight) of a referenced\npatient.",
87
- "_text": {
88
- "extension": [
89
- {
90
- "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
91
- "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"padding-bottom:\n8px;\">\r\n <b>This questionnaire only uses the first Observation resource with LOINC code 29463-7 (Body weight) of a referenced\npatient.</b>\r\n</div>"
92
- }
93
- ]
94
- },
95
- "type": "display"
96
- },
97
- {
98
- "linkId": "observation-status",
99
- "text": "Observation Status",
100
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-status",
101
- "type": "choice",
102
- "extension": [
103
- {
104
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
105
- "valueExpression": {
106
- "language": "text/fhirpath",
107
- "expression": "%ObservationWeight.entry[0].resource.status"
108
- }
109
- }
110
- ]
111
- },
112
- {
113
- "linkId": "observation-category",
114
- "text": "Observation Category",
115
- "type": "choice",
116
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-category",
117
- "extension": [
118
- {
119
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
120
- "valueExpression": {
121
- "language": "text/fhirpath",
122
- "expression": "%ObservationWeight.entry[0].resource.category.coding"
123
- }
124
- }
125
- ]
126
- },
127
- {
128
- "linkId": "observation-category-vscat-boolean",
129
- "text": "Observation Category is VSCat?",
130
- "type": "boolean",
131
- "extension": [
132
- {
133
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
134
- "valueExpression": {
135
- "language": "text/fhirpath",
136
- "expression": "%ObservationWeight.entry[0].resource.category.coding.code = 'vital-signs'"
137
- }
138
- }
139
- ]
140
- },
141
- {
142
- "linkId": "observation-code-loinc",
143
- "text": "Observation Code (LOINC)",
144
- "type": "choice",
145
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult",
146
- "extension": [
147
- {
148
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
149
- "valueExpression": {
150
- "language": "text/fhirpath",
151
- "expression": "%ObservationWeight.entry[0].resource.code.coding.where(system='http://loinc.org' and code='29463-7')"
152
- }
153
- }
154
- ]
155
- },
156
- {
157
- "linkId": "Observation.effectivedateTime",
158
- "text": "Effective Date Time",
159
- "type": "dateTime",
160
- "extension": [
161
- {
162
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
163
- "valueExpression": {
164
- "language": "text/fhirpath",
165
- "expression": "%ObservationWeight.entry[0].resource.effectiveDateTime"
166
- }
167
- }
168
- ]
169
- },
170
- {
171
- "linkId": "observation-value",
172
- "text": "Observation Value",
173
- "type": "decimal",
174
- "extension": [
175
- {
176
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
177
- "valueExpression": {
178
- "language": "text/fhirpath",
179
- "expression": "%ObservationWeight.entry[0].resource.valueQuantity.value"
180
- }
181
- },
182
- {
183
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
184
- "valueCoding": {
185
- "system": "http://unitsofmeasure.org",
186
- "code": "kg",
187
- "display": "kg"
188
- }
189
- }
190
- ]
191
- }
192
- ]
193
- }
194
- ]
195
- }
@@ -1,195 +0,0 @@
1
- {
2
- "resourceType": "Questionnaire",
3
- "id": "HeartRateObservation",
4
- "version": "0.1.0",
5
- "name": "HeartRateObservation",
6
- "title": "Heart Rate Observation",
7
- "status": "draft",
8
- "date": "2024-07-15",
9
- "extension": [
10
- {
11
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
12
- "extension": [
13
- {
14
- "url": "name",
15
- "valueCoding": {
16
- "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
17
- "code": "patient"
18
- }
19
- },
20
- {
21
- "url": "type",
22
- "valueCode": "Patient"
23
- },
24
- {
25
- "url": "description",
26
- "valueString": "The patient that is to be used to pre-populate the form"
27
- }
28
- ]
29
- },
30
- {
31
- "url": "http://hl7.org/fhir/StructureDefinition/variable",
32
- "valueExpression": {
33
- "name": "ObservationHeartRate",
34
- "language": "application/x-fhir-query",
35
- "expression": "Observation?code=8867-4&_count=1&_sort=-date&patient={{%patient.id}}"
36
- }
37
- }
38
- ],
39
- "item": [
40
- {
41
- "linkId": "observation",
42
- "text": "AU Core Observation - Heart Rate",
43
- "type": "group",
44
- "item": [
45
- {
46
- "linkId": "patient-details",
47
- "text": "Patient Details",
48
- "type": "group",
49
- "item": [
50
- {
51
- "extension": [
52
- {
53
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
54
- "valueExpression": {
55
- "language": "text/fhirpath",
56
- "expression": "%patient.id"
57
- }
58
- }
59
- ],
60
- "linkId": "patient-id",
61
- "text": "Patient ID",
62
- "type": "string",
63
- "required": true,
64
- "readOnly": true
65
- },
66
- {
67
- "extension": [
68
- {
69
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
70
- "valueExpression": {
71
- "language": "text/fhirpath",
72
- "expression": "(%patient.name.where(use='official').select((family | (given | prefix).join(' ')).join(', ').where($this != '') | text)).first()"
73
- }
74
- }
75
- ],
76
- "linkId": "patient-name",
77
- "text": "Patient Name",
78
- "type": "string",
79
- "required": true,
80
- "readOnly": true
81
- }
82
- ]
83
- },
84
- {
85
- "linkId": "first-observation-note",
86
- "text": "This questionnaire only uses the first Observation resource with LOINC code 8867-4 (Heart rate) of a referenced\npatient.",
87
- "_text": {
88
- "extension": [
89
- {
90
- "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
91
- "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"padding-bottom:\n8px;\">\r\n <b>This questionnaire only uses the first Observation resource with LOINC code 8867-4 (Heart rate) of a referenced\npatient.</b>\r\n</div>"
92
- }
93
- ]
94
- },
95
- "type": "display"
96
- },
97
- {
98
- "linkId": "observation-status",
99
- "text": "Observation Status",
100
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-status",
101
- "type": "choice",
102
- "extension": [
103
- {
104
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
105
- "valueExpression": {
106
- "language": "text/fhirpath",
107
- "expression": "%ObservationHeartRate.entry[0].resource.status"
108
- }
109
- }
110
- ]
111
- },
112
- {
113
- "linkId": "observation-category",
114
- "text": "Observation Category",
115
- "type": "choice",
116
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-category",
117
- "extension": [
118
- {
119
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
120
- "valueExpression": {
121
- "language": "text/fhirpath",
122
- "expression": "%ObservationHeartRate.entry[0].resource.category.coding"
123
- }
124
- }
125
- ]
126
- },
127
- {
128
- "linkId": "observation-category-vscat-boolean",
129
- "text": "Observation Category is VSCat?",
130
- "type": "boolean",
131
- "extension": [
132
- {
133
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
134
- "valueExpression": {
135
- "language": "text/fhirpath",
136
- "expression": "%ObservationHeartRate.entry[0].resource.category.coding.code = 'vital-signs'"
137
- }
138
- }
139
- ]
140
- },
141
- {
142
- "linkId": "observation-code-loinc",
143
- "text": "Observation Code (LOINC)",
144
- "type": "choice",
145
- "answerValueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult",
146
- "extension": [
147
- {
148
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
149
- "valueExpression": {
150
- "language": "text/fhirpath",
151
- "expression": "%ObservationHeartRate.entry[0].resource.code.coding.where(system='http://loinc.org' and code='8867-4')"
152
- }
153
- }
154
- ]
155
- },
156
- {
157
- "linkId": "Observation.effectiveDateTime",
158
- "text": "Effective Date Time",
159
- "type": "dateTime",
160
- "extension": [
161
- {
162
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
163
- "valueExpression": {
164
- "language": "text/fhirpath",
165
- "expression": "%ObservationHeartRate.entry[0].resource.effectiveDateTime"
166
- }
167
- }
168
- ]
169
- },
170
- {
171
- "linkId": "observation-value",
172
- "text": "Observation Value",
173
- "type": "decimal",
174
- "extension": [
175
- {
176
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
177
- "valueExpression": {
178
- "language": "text/fhirpath",
179
- "expression": "%ObservationHeartRate.entry[0].resource.valueQuantity.value"
180
- }
181
- },
182
- {
183
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
184
- "valueCoding": {
185
- "system": "http://unitsofmeasure.org",
186
- "code": "beats/min",
187
- "display": "beats/min"
188
- }
189
- }
190
- ]
191
- }
192
- ]
193
- }
194
- ]
195
- }