sdc-qrf 0.3.17 → 0.3.18

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 (60) hide show
  1. package/dist/converter/fceToFhir/questionnaire/processExtensions.d.ts.map +1 -1
  2. package/dist/converter/fceToFhir/questionnaire/processExtensions.js +7 -1
  3. package/dist/converter/fceToFhir/questionnaire/processExtensions.js.map +1 -1
  4. package/dist/converter/fhirToFce/questionnaire/processExtensions.d.ts +1 -0
  5. package/dist/converter/fhirToFce/questionnaire/processExtensions.d.ts.map +1 -1
  6. package/dist/converter/fhirToFce/questionnaire/processExtensions.js +12 -6
  7. package/dist/converter/fhirToFce/questionnaire/processExtensions.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/converter/__tests__/resources/questionnaire_fce/allergies.json +1 -0
  10. package/src/converter/__tests__/resources/questionnaire_fce/beverages.json +67 -66
  11. package/src/converter/__tests__/resources/questionnaire_fce/choice_answer_option.json +49 -48
  12. package/src/converter/__tests__/resources/questionnaire_fce/consent.json +1 -0
  13. package/src/converter/__tests__/resources/questionnaire_fce/constraint.json +2 -2
  14. package/src/converter/__tests__/resources/questionnaire_fce/cqf-examples.json +59 -63
  15. package/src/converter/__tests__/resources/questionnaire_fce/enable_when.json +1 -0
  16. package/src/converter/__tests__/resources/questionnaire_fce/encounter_create.json +1 -0
  17. package/src/converter/__tests__/resources/questionnaire_fce/gad_7.json +6 -14
  18. package/src/converter/__tests__/resources/questionnaire_fce/immunization.json +6 -14
  19. package/src/converter/__tests__/resources/questionnaire_fce/medication.json +165 -164
  20. package/src/converter/__tests__/resources/questionnaire_fce/multiple_type_launch_context.json +5 -12
  21. package/src/converter/__tests__/resources/questionnaire_fce/patient_create.json +78 -77
  22. package/src/converter/__tests__/resources/questionnaire_fce/patient_edit.json +1 -0
  23. package/src/converter/__tests__/resources/questionnaire_fce/phq_2_phq_9.json +1 -0
  24. package/src/converter/__tests__/resources/questionnaire_fce/physicalexam.json +381 -380
  25. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create.json +79 -78
  26. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create_structure_map.json +1 -0
  27. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_edit.json +127 -126
  28. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_role_create.json +35 -34
  29. package/src/converter/__tests__/resources/questionnaire_fce/public_appointment.json +3 -4
  30. package/src/converter/__tests__/resources/questionnaire_fce/review_of_systems.json +384 -383
  31. package/src/converter/__tests__/resources/questionnaire_fce/source_queries.json +31 -30
  32. package/src/converter/__tests__/resources/questionnaire_fce/unit-option.json +1 -0
  33. package/src/converter/__tests__/resources/questionnaire_fce/vitals.json +1 -0
  34. package/src/converter/__tests__/resources/questionnaire_fhir/allergies.json +7 -8
  35. package/src/converter/__tests__/resources/questionnaire_fhir/beverages.json +96 -90
  36. package/src/converter/__tests__/resources/questionnaire_fhir/choice_answer_option.json +49 -43
  37. package/src/converter/__tests__/resources/questionnaire_fhir/consent.json +4 -0
  38. package/src/converter/__tests__/resources/questionnaire_fhir/constraint.json +6 -0
  39. package/src/converter/__tests__/resources/questionnaire_fhir/cqf-examples.json +87 -86
  40. package/src/converter/__tests__/resources/questionnaire_fhir/enable_when.json +6 -0
  41. package/src/converter/__tests__/resources/questionnaire_fhir/encounter_create.json +4 -0
  42. package/src/converter/__tests__/resources/questionnaire_fhir/gad_7.json +7 -8
  43. package/src/converter/__tests__/resources/questionnaire_fhir/immunization.json +7 -8
  44. package/src/converter/__tests__/resources/questionnaire_fhir/medication.json +203 -199
  45. package/src/converter/__tests__/resources/questionnaire_fhir/multiple_type_launch_context.json +387 -383
  46. package/src/converter/__tests__/resources/questionnaire_fhir/patient_create.json +92 -88
  47. package/src/converter/__tests__/resources/questionnaire_fhir/patient_edit.json +6 -4
  48. package/src/converter/__tests__/resources/questionnaire_fhir/phq_2_phq_9.json +565 -561
  49. package/src/converter/__tests__/resources/questionnaire_fhir/physicalexam.json +540 -536
  50. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create.json +78 -74
  51. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create_structure_map.json +4 -0
  52. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_edit.json +176 -172
  53. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_role_create.json +45 -41
  54. package/src/converter/__tests__/resources/questionnaire_fhir/public_appointment.json +6 -4
  55. package/src/converter/__tests__/resources/questionnaire_fhir/review_of_systems.json +364 -358
  56. package/src/converter/__tests__/resources/questionnaire_fhir/source_queries.json +37 -33
  57. package/src/converter/__tests__/resources/questionnaire_fhir/unit-option.json +6 -0
  58. package/src/converter/__tests__/resources/questionnaire_fhir/vitals.json +4 -0
  59. package/src/converter/fceToFhir/questionnaire/processExtensions.ts +8 -1
  60. package/src/converter/fhirToFce/questionnaire/processExtensions.ts +21 -15
@@ -1,416 +1,420 @@
1
1
  {
2
- "subjectType": ["Encounter", "Patient"],
3
- "meta": {
4
- "profile": ["https://beda.software/beda-emr-questionnaire"],
5
- "lastUpdated": "2023-04-10T03:43:34.792167Z",
6
- "versionId": "694",
7
- "extension": [
8
- {
9
- "url": "ex:createdAt",
10
- "valueInstant": "2023-04-05T05:22:35.752466Z"
11
- }
12
- ]
13
- },
14
- "name": "Allergies",
15
- "item": [
16
- {
17
- "text": "DateTime",
18
- "type": "dateTime",
19
- "extension": [
20
- {
21
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
22
- "valueBoolean": true
23
- },
24
- {
25
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
26
- "valueExpression": {
27
- "language": "text/fhirpath",
28
- "expression": "now()"
29
- }
30
- }
31
- ],
32
- "linkId": "dateTime"
33
- },
34
- {
35
- "text": "PatientId",
36
- "type": "string",
37
- "extension": [
38
- {
39
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
40
- "valueBoolean": true
41
- },
42
- {
43
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
44
- "valueExpression": {
45
- "language": "text/fhirpath",
46
- "expression": "%Patient.id"
47
- }
48
- }
49
- ],
50
- "linkId": "patientId"
2
+ "subjectType": ["Encounter", "Patient"],
3
+ "meta": {
4
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
5
+ "lastUpdated": "2023-04-10T03:43:34.792167Z",
6
+ "versionId": "694",
7
+ "extension": [
8
+ {
9
+ "url": "ex:createdAt",
10
+ "valueInstant": "2023-04-05T05:22:35.752466Z"
11
+ }
12
+ ]
51
13
  },
52
- {
53
- "text": "PatientName",
54
- "type": "string",
55
- "extension": [
56
- {
57
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
58
- "valueBoolean": true
14
+ "name": "Allergies",
15
+ "item": [
16
+ {
17
+ "text": "DateTime",
18
+ "type": "dateTime",
19
+ "extension": [
20
+ {
21
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
22
+ "valueBoolean": true
23
+ },
24
+ {
25
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
26
+ "valueExpression": {
27
+ "language": "text/fhirpath",
28
+ "expression": "now()"
29
+ }
30
+ }
31
+ ],
32
+ "linkId": "dateTime"
59
33
  },
60
34
  {
61
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
62
- "valueExpression": {
63
- "language": "text/fhirpath",
64
- "expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
65
- }
66
- }
67
- ],
68
- "linkId": "patientName"
69
- },
70
- {
71
- "text": "Type",
72
- "type": "choice",
73
- "linkId": "type",
74
- "required": true,
75
- "answerOption": [
76
- {
77
- "valueCoding": {
78
- "code": "418634005",
79
- "system": "http://hl7.org/fhir/allergy-intolerance-category",
80
- "display": "Drug"
81
- }
35
+ "text": "PatientId",
36
+ "type": "string",
37
+ "extension": [
38
+ {
39
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
40
+ "valueBoolean": true
41
+ },
42
+ {
43
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
44
+ "valueExpression": {
45
+ "language": "text/fhirpath",
46
+ "expression": "%Patient.id"
47
+ }
48
+ }
49
+ ],
50
+ "linkId": "patientId"
82
51
  },
83
52
  {
84
- "valueCoding": {
85
- "code": "414285001",
86
- "system": "http://hl7.org/fhir/allergy-intolerance-category",
87
- "display": "Food"
88
- }
53
+ "text": "PatientName",
54
+ "type": "string",
55
+ "extension": [
56
+ {
57
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
58
+ "valueBoolean": true
59
+ },
60
+ {
61
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
62
+ "valueExpression": {
63
+ "language": "text/fhirpath",
64
+ "expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
65
+ }
66
+ }
67
+ ],
68
+ "linkId": "patientName"
89
69
  },
90
70
  {
91
- "valueCoding": {
92
- "code": "426232007",
93
- "system": "http://hl7.org/fhir/allergy-intolerance-category",
94
- "display": "Environmental"
95
- }
96
- }
97
- ],
98
- "extension": [
99
- {
100
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
101
- "valueCodeableConcept": {
102
- "coding": [
103
- {
104
- "code": "inline-choice"
105
- }
71
+ "text": "Type",
72
+ "type": "choice",
73
+ "linkId": "type",
74
+ "required": true,
75
+ "answerOption": [
76
+ {
77
+ "valueCoding": {
78
+ "code": "418634005",
79
+ "system": "http://hl7.org/fhir/allergy-intolerance-category",
80
+ "display": "Drug"
81
+ }
82
+ },
83
+ {
84
+ "valueCoding": {
85
+ "code": "414285001",
86
+ "system": "http://hl7.org/fhir/allergy-intolerance-category",
87
+ "display": "Food"
88
+ }
89
+ },
90
+ {
91
+ "valueCoding": {
92
+ "code": "426232007",
93
+ "system": "http://hl7.org/fhir/allergy-intolerance-category",
94
+ "display": "Environmental"
95
+ }
96
+ }
97
+ ],
98
+ "extension": [
99
+ {
100
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
101
+ "valueCodeableConcept": {
102
+ "coding": [
103
+ {
104
+ "code": "inline-choice"
105
+ }
106
+ ]
107
+ }
108
+ }
106
109
  ]
107
- }
108
- }
109
- ]
110
- },
111
- {
112
- "text": "Reaction",
113
- "type": "choice",
114
- "linkId": "reaction",
115
- "repeats": true,
116
- "answerOption": [
117
- {
118
- "valueCoding": {
119
- "code": "39579001",
120
- "system": "http://snomed.ct",
121
- "display": "Anaphylaxis"
122
- }
123
- },
124
- {
125
- "valueCoding": {
126
- "code": "25064002",
127
- "system": "http://snomed.ct",
128
- "display": "Headache"
129
- }
130
- },
131
- {
132
- "valueCoding": {
133
- "code": "247472004",
134
- "system": "http://snomed.ct",
135
- "display": "Hives (Wheal)"
136
- }
137
110
  },
138
111
  {
139
- "valueCoding": {
140
- "code": "422587007",
141
- "system": "http://snomed.ct",
142
- "display": "Nausea"
143
- }
144
- },
145
- {
146
- "valueCoding": {
147
- "code": "422400008",
148
- "system": "http://snomed.ct",
149
- "display": "Vomiting"
150
- }
151
- }
152
- ],
153
- "extension": [
154
- {
155
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
156
- "valueCodeableConcept": {
157
- "coding": [
158
- {
159
- "code": "inline-choice"
160
- }
112
+ "text": "Reaction",
113
+ "type": "choice",
114
+ "linkId": "reaction",
115
+ "repeats": true,
116
+ "answerOption": [
117
+ {
118
+ "valueCoding": {
119
+ "code": "39579001",
120
+ "system": "http://snomed.ct",
121
+ "display": "Anaphylaxis"
122
+ }
123
+ },
124
+ {
125
+ "valueCoding": {
126
+ "code": "25064002",
127
+ "system": "http://snomed.ct",
128
+ "display": "Headache"
129
+ }
130
+ },
131
+ {
132
+ "valueCoding": {
133
+ "code": "247472004",
134
+ "system": "http://snomed.ct",
135
+ "display": "Hives (Wheal)"
136
+ }
137
+ },
138
+ {
139
+ "valueCoding": {
140
+ "code": "422587007",
141
+ "system": "http://snomed.ct",
142
+ "display": "Nausea"
143
+ }
144
+ },
145
+ {
146
+ "valueCoding": {
147
+ "code": "422400008",
148
+ "system": "http://snomed.ct",
149
+ "display": "Vomiting"
150
+ }
151
+ }
152
+ ],
153
+ "extension": [
154
+ {
155
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
156
+ "valueCodeableConcept": {
157
+ "coding": [
158
+ {
159
+ "code": "inline-choice"
160
+ }
161
+ ]
162
+ }
163
+ }
161
164
  ]
162
- }
163
- }
164
- ]
165
- },
166
- {
167
- "text": "Substance",
168
- "type": "choice",
169
- "linkId": "substance-drug",
170
- "enableWhen": [
171
- {
172
- "question": "type",
173
- "operator": "=",
174
- "answerCoding": {
175
- "code": "418634005",
176
- "system": "http://snomed.ct"
177
- }
178
- }
179
- ],
180
- "answerOption": [
181
- {
182
- "valueCoding": {
183
- "code": "LA26702-3",
184
- "system": "http://loinc.org",
185
- "display": "Aspirin"
186
- }
187
- },
188
- {
189
- "valueCoding": {
190
- "code": "LA30119-4",
191
- "system": "http://loinc.org",
192
- "display": "Iodine"
193
- }
194
- },
195
- {
196
- "valueCoding": {
197
- "code": "LA14348-9",
198
- "system": "http://loinc.org",
199
- "display": "Naproxen, ketoprofen or other non-steroidal"
200
- }
201
165
  },
202
166
  {
203
- "valueCoding": {
204
- "code": "LA28487-9",
205
- "system": "http://loinc.org",
206
- "display": "Penicillin"
207
- }
208
- },
209
- {
210
- "valueCoding": {
211
- "code": "LA30118-6",
212
- "system": "http://loinc.org",
213
- "display": "Sulfa drugs"
214
- }
215
- }
216
- ],
217
- "extension": [
218
- {
219
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
220
- "valueCodeableConcept": {
221
- "coding": [
222
- {
223
- "code": "inline-choice"
224
- }
167
+ "text": "Substance",
168
+ "type": "choice",
169
+ "linkId": "substance-drug",
170
+ "enableWhen": [
171
+ {
172
+ "question": "type",
173
+ "operator": "=",
174
+ "answerCoding": {
175
+ "code": "418634005",
176
+ "system": "http://snomed.ct"
177
+ }
178
+ }
179
+ ],
180
+ "answerOption": [
181
+ {
182
+ "valueCoding": {
183
+ "code": "LA26702-3",
184
+ "system": "http://loinc.org",
185
+ "display": "Aspirin"
186
+ }
187
+ },
188
+ {
189
+ "valueCoding": {
190
+ "code": "LA30119-4",
191
+ "system": "http://loinc.org",
192
+ "display": "Iodine"
193
+ }
194
+ },
195
+ {
196
+ "valueCoding": {
197
+ "code": "LA14348-9",
198
+ "system": "http://loinc.org",
199
+ "display": "Naproxen, ketoprofen or other non-steroidal"
200
+ }
201
+ },
202
+ {
203
+ "valueCoding": {
204
+ "code": "LA28487-9",
205
+ "system": "http://loinc.org",
206
+ "display": "Penicillin"
207
+ }
208
+ },
209
+ {
210
+ "valueCoding": {
211
+ "code": "LA30118-6",
212
+ "system": "http://loinc.org",
213
+ "display": "Sulfa drugs"
214
+ }
215
+ }
216
+ ],
217
+ "extension": [
218
+ {
219
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
220
+ "valueCodeableConcept": {
221
+ "coding": [
222
+ {
223
+ "code": "inline-choice"
224
+ }
225
+ ]
226
+ }
227
+ }
225
228
  ]
226
- }
227
- }
228
- ]
229
- },
230
- {
231
- "text": "Substance",
232
- "type": "choice",
233
- "linkId": "substance-food",
234
- "enableWhen": [
235
- {
236
- "question": "type",
237
- "operator": "=",
238
- "answerCoding": {
239
- "code": "414285001",
240
- "system": "http://snomed.ct"
241
- }
242
- }
243
- ],
244
- "answerOption": [
245
- {
246
- "valueCoding": {
247
- "code": "102259006",
248
- "system": "http://snomed.ct",
249
- "display": "Citrus fruit"
250
- }
251
229
  },
252
230
  {
253
- "valueCoding": {
254
- "code": "102260001",
255
- "system": "http://snomed.ct",
256
- "display": "Peanut butter"
257
- }
258
- },
259
- {
260
- "valueCoding": {
261
- "code": "102261002",
262
- "system": "http://snomed.ct",
263
- "display": "Strawberry"
264
- }
265
- },
266
- {
267
- "valueCoding": {
268
- "code": "102262009",
269
- "system": "http://snomed.ct",
270
- "display": "Chocolate"
271
- }
272
- },
273
- {
274
- "valueCoding": {
275
- "code": "102263004",
276
- "system": "http://snomed.ct",
277
- "display": "Eggs"
278
- }
279
- },
280
- {
281
- "valueCoding": {
282
- "code": "102264005",
283
- "system": "http://snomed.ct",
284
- "display": "Cheese"
285
- }
286
- }
287
- ],
288
- "extension": [
289
- {
290
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
291
- "valueCodeableConcept": {
292
- "coding": [
293
- {
294
- "code": "inline-choice"
295
- }
231
+ "text": "Substance",
232
+ "type": "choice",
233
+ "linkId": "substance-food",
234
+ "enableWhen": [
235
+ {
236
+ "question": "type",
237
+ "operator": "=",
238
+ "answerCoding": {
239
+ "code": "414285001",
240
+ "system": "http://snomed.ct"
241
+ }
242
+ }
243
+ ],
244
+ "answerOption": [
245
+ {
246
+ "valueCoding": {
247
+ "code": "102259006",
248
+ "system": "http://snomed.ct",
249
+ "display": "Citrus fruit"
250
+ }
251
+ },
252
+ {
253
+ "valueCoding": {
254
+ "code": "102260001",
255
+ "system": "http://snomed.ct",
256
+ "display": "Peanut butter"
257
+ }
258
+ },
259
+ {
260
+ "valueCoding": {
261
+ "code": "102261002",
262
+ "system": "http://snomed.ct",
263
+ "display": "Strawberry"
264
+ }
265
+ },
266
+ {
267
+ "valueCoding": {
268
+ "code": "102262009",
269
+ "system": "http://snomed.ct",
270
+ "display": "Chocolate"
271
+ }
272
+ },
273
+ {
274
+ "valueCoding": {
275
+ "code": "102263004",
276
+ "system": "http://snomed.ct",
277
+ "display": "Eggs"
278
+ }
279
+ },
280
+ {
281
+ "valueCoding": {
282
+ "code": "102264005",
283
+ "system": "http://snomed.ct",
284
+ "display": "Cheese"
285
+ }
286
+ }
287
+ ],
288
+ "extension": [
289
+ {
290
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
291
+ "valueCodeableConcept": {
292
+ "coding": [
293
+ {
294
+ "code": "inline-choice"
295
+ }
296
+ ]
297
+ }
298
+ }
296
299
  ]
297
- }
298
- }
299
- ]
300
- },
301
- {
302
- "text": "Substance",
303
- "type": "choice",
304
- "linkId": "substance-environmental",
305
- "enableWhen": [
306
- {
307
- "question": "type",
308
- "operator": "=",
309
- "answerCoding": {
310
- "code": "426232007",
311
- "system": "http://snomed.ct"
312
- }
313
- }
314
- ],
315
- "answerOption": [
316
- {
317
- "valueCoding": {
318
- "code": "111088007",
319
- "system": "http://snomed.ct",
320
- "display": "Latex"
321
- }
322
300
  },
323
301
  {
324
- "valueCoding": {
325
- "code": "256259004",
326
- "system": "http://snomed.ct",
327
- "display": "Pollen"
328
- }
302
+ "text": "Substance",
303
+ "type": "choice",
304
+ "linkId": "substance-environmental",
305
+ "enableWhen": [
306
+ {
307
+ "question": "type",
308
+ "operator": "=",
309
+ "answerCoding": {
310
+ "code": "426232007",
311
+ "system": "http://snomed.ct"
312
+ }
313
+ }
314
+ ],
315
+ "answerOption": [
316
+ {
317
+ "valueCoding": {
318
+ "code": "111088007",
319
+ "system": "http://snomed.ct",
320
+ "display": "Latex"
321
+ }
322
+ },
323
+ {
324
+ "valueCoding": {
325
+ "code": "256259004",
326
+ "system": "http://snomed.ct",
327
+ "display": "Pollen"
328
+ }
329
+ },
330
+ {
331
+ "valueCoding": {
332
+ "code": "256277009",
333
+ "system": "http://snomed.ct",
334
+ "display": "Grass pollen"
335
+ }
336
+ },
337
+ {
338
+ "valueCoding": {
339
+ "code": "256417003",
340
+ "system": "http://snomed.ct",
341
+ "display": "Horse dander"
342
+ }
343
+ }
344
+ ],
345
+ "extension": [
346
+ {
347
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
348
+ "valueCodeableConcept": {
349
+ "coding": [
350
+ {
351
+ "code": "inline-choice"
352
+ }
353
+ ]
354
+ }
355
+ }
356
+ ]
329
357
  },
330
358
  {
331
- "valueCoding": {
332
- "code": "256277009",
333
- "system": "http://snomed.ct",
334
- "display": "Grass pollen"
335
- }
359
+ "text": "Notes",
360
+ "type": "string",
361
+ "linkId": "notes"
336
362
  },
337
363
  {
338
- "valueCoding": {
339
- "code": "256417003",
340
- "system": "http://snomed.ct",
341
- "display": "Horse dander"
342
- }
343
- }
344
- ],
345
- "extension": [
346
- {
347
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
348
- "valueCodeableConcept": {
349
- "coding": [
350
- {
351
- "code": "inline-choice"
352
- }
364
+ "text": "Active",
365
+ "type": "string",
366
+ "initial": [
367
+ {
368
+ "valueCoding": {
369
+ "code": "active",
370
+ "system": "http://terminology.hl7.org/ValueSet/allergyintolerance-clinical",
371
+ "display": "Active"
372
+ }
373
+ }
374
+ ],
375
+ "linkId": "status",
376
+ "extension": [
377
+ {
378
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
379
+ "valueBoolean": true
380
+ }
353
381
  ]
354
- }
355
382
  }
356
- ]
357
- },
358
- {
359
- "text": "Notes",
360
- "type": "string",
361
- "linkId": "notes"
362
- },
363
- {
364
- "text": "Active",
365
- "type": "string",
366
- "initial": [
367
- {
368
- "valueCoding": {
369
- "code": "active",
370
- "system": "http://terminology.hl7.org/ValueSet/allergyintolerance-clinical",
371
- "display": "Active"
372
- }
373
- }
374
- ],
375
- "linkId": "status",
376
- "extension": [
377
- {
378
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
379
- "valueBoolean": true
380
- }
381
- ]
382
- }
383
- ],
384
- "resourceType": "Questionnaire",
385
- "extension": [
386
- {
387
- "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
388
- "extension": [
383
+ ],
384
+ "resourceType": "Questionnaire",
385
+ "extension": [
389
386
  {
390
- "url": "name",
391
- "valueCoding": {
392
- "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
393
- "code": "LaunchPatient"
394
- }
387
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
388
+ "extension": [
389
+ {
390
+ "url": "name",
391
+ "valueCoding": {
392
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
393
+ "code": "LaunchPatient"
394
+ }
395
+ },
396
+ {
397
+ "url": "type",
398
+ "valueCode": "Patient"
399
+ },
400
+ {
401
+ "url": "type",
402
+ "valueCode": "Resource"
403
+ }
404
+ ]
395
405
  },
396
406
  {
397
- "url": "type",
398
- "valueCode": "Patient"
407
+ "url": "http://beda.software/fhir-extensions/questionnaire-mapper",
408
+ "valueReference": {
409
+ "reference": "Mapping/allergy-extract"
410
+ }
399
411
  },
400
412
  {
401
- "url": "type",
402
- "valueCode": "Resource"
413
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
414
+ "valueCanonical": "multiple-type-launch-context"
403
415
  }
404
- ]
405
- },
406
- {
407
- "url": "http://beda.software/fhir-extensions/questionnaire-mapper",
408
- "valueReference": {
409
- "reference": "Mapping/allergy-extract"
410
- }
411
- }
412
- ],
413
- "status": "active",
414
- "id": "allergies",
415
- "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/allergies"
416
+ ],
417
+ "status": "active",
418
+ "id": "allergies",
419
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/allergies"
416
420
  }