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,385 +1,386 @@
1
1
  {
2
- "subjectType": ["Encounter"],
3
- "meta": {
4
- "profile": ["https://beda.software/beda-emr-questionnaire"],
5
- "lastUpdated": "2023-04-10T03:43:34.792167Z",
6
- "createdAt": "2023-04-05T05:22:35.752466Z",
7
- "versionId": "694"
8
- },
9
- "launchContext": [
10
- {
11
- "name": {
12
- "code": "Patient",
13
- "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
14
- },
15
- "type": ["Patient"],
16
- "description": "Patient is answering the questionnaire"
17
- }
18
- ],
19
- "name": "Physical exam",
20
- "item": [
21
- {
22
- "item": [
2
+ "subjectType": ["Encounter"],
3
+ "meta": {
4
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
5
+ "lastUpdated": "2023-04-10T03:43:34.792167Z",
6
+ "createdAt": "2023-04-05T05:22:35.752466Z",
7
+ "versionId": "694"
8
+ },
9
+ "launchContext": [
23
10
  {
24
- "code": [
25
- {
26
- "code": "71389-1",
27
- "system": "http://loinc.org",
28
- "display": "CMS - constitutional exam panel"
29
- }
30
- ],
31
- "text": "General",
32
- "type": "text",
33
- "macro": "Well nourished, well developed, awake and alert, resting comfortably in no acute distress, cooperative on exam",
34
- "linkId": "general",
35
- "itemControl": {
36
- "coding": [
37
- {
38
- "code": "text-with-macro"
39
- }
40
- ]
41
- }
42
- },
43
- {
44
- "code": [
45
- {
46
- "code": "71392-5",
47
- "system": "http://loinc.org",
48
- "display": "CMS - ear-nose-mouth-throat exam panel"
49
- }
50
- ],
51
- "text": "HEENT",
52
- "type": "text",
53
- "macro": "NCAT, PERRL, normal conjunctivae, nonicteric sclerae, bilateral EAC/TM clear, no nasal discharge, OP clear, moist mucous membranes",
54
- "linkId": "heent",
55
- "itemControl": {
56
- "coding": [
57
- {
58
- "code": "text-with-macro"
59
- }
60
- ]
61
- }
62
- },
63
- {
64
- "code": [
65
- {
66
- "code": "71393-3",
67
- "system": "http://loinc.org",
68
- "display": "CMS - neck exam panel"
69
- }
70
- ],
71
- "text": "Neck",
72
- "type": "text",
73
- "macro": "Supple, normal ROM, no lymphadenopathy/masses, nontender",
74
- "linkId": "neck",
75
- "itemControl": {
76
- "coding": [
77
- {
78
- "code": "text-with-macro"
79
- }
80
- ]
81
- }
82
- },
83
- {
84
- "code": [
85
- {
86
- "code": "71395-8",
87
- "system": "http://loinc.org",
88
- "display": "CMS - cardiovascular exam panel"
89
- }
90
- ],
91
- "text": "Cardiovascular",
92
- "type": "text",
93
- "macro": "RRR, normal S1/S2, no murmurs/gallops/rub",
94
- "linkId": "cardiovascular",
95
- "itemControl": {
96
- "coding": [
97
- {
98
- "code": "text-with-macro"
99
- }
100
- ]
101
- }
102
- },
103
- {
104
- "code": [
105
- {
106
- "code": "71394-1",
107
- "system": "http://loinc.org",
108
- "display": "CMS - respiratory exam panel"
109
- }
110
- ],
111
- "text": "Pulmonary",
112
- "type": "text",
113
- "macro": "No respiratory distress, lungs CTAB: no rales, rhonchi, or wheeze",
114
- "linkId": "pulmonary",
115
- "itemControl": {
116
- "coding": [
117
- {
118
- "code": "text-with-macro"
119
- }
120
- ]
121
- }
122
- },
123
- {
124
- "code": [
125
- {
126
- "code": "71397-4",
127
- "system": "http://loinc.org",
128
- "display": "CMS - gastrointestinal - abdomen exam panel"
129
- }
130
- ],
131
- "text": "Abdominal",
132
- "type": "text",
133
- "macro": "Soft and non-tender with no guarding or rebound; +BS normoactive, no tympany on auscultation",
134
- "linkId": "abdominal",
135
- "itemControl": {
136
- "coding": [
137
- {
138
- "code": "text-with-macro"
139
- }
140
- ]
141
- }
142
- },
143
- {
144
- "code": [
145
- {
146
- "code": "71402-2",
147
- "system": "http://loinc.org",
148
- "display": "CMS - musculoskeletal exam panel"
149
- }
150
- ],
151
- "text": "Musculoskeletal",
152
- "type": "text",
153
- "macro": "Normal ROM of UE and LE, normal bulk and tone,",
154
- "linkId": "musculoskeletal",
155
- "itemControl": {
156
- "coding": [
157
- {
158
- "code": "text-with-macro"
159
- }
160
- ]
161
- }
162
- },
163
- {
164
- "code": [
165
- {
166
- "code": "71401-4",
167
- "system": "http://loinc.org",
168
- "display": "CMS - extremities exam panel"
169
- }
170
- ],
171
- "text": "Extremities",
172
- "type": "text",
173
- "macro": "Pulses intact with normal cap refill, no LE pitting edema or calf tenderness",
174
- "linkId": "extremities",
175
- "itemControl": {
176
- "coding": [
177
- {
178
- "code": "text-with-macro"
179
- }
180
- ]
181
- }
182
- },
183
- {
184
- "code": [
185
- {
186
- "code": "71404-8",
187
- "system": "http://loinc.org",
188
- "display": "CMS - neurologic exam panel"
189
- }
190
- ],
191
- "text": "Neurologic",
192
- "type": "text",
193
- "macro": "AAOx3, converses normally. CN II - XII grossly intact. Gait and coordination intact. 5+ BL UE/LE strength, no gross motor or sensory defects",
194
- "linkId": "neurologic",
195
- "itemControl": {
196
- "coding": [
197
- {
198
- "code": "text-with-macro"
199
- }
200
- ]
201
- }
202
- },
203
- {
204
- "code": [
205
- {
206
- "code": "71405-5",
207
- "system": "http://loinc.org",
208
- "display": "CMS - psychiatric exam panel"
209
- }
210
- ],
211
- "text": "Psychiatric",
212
- "type": "text",
213
- "macro": "Normal mood and affect. Judgement/competence is appropriate",
214
- "linkId": "psychiatric",
215
- "itemControl": {
216
- "coding": [
217
- {
218
- "code": "text-with-macro"
219
- }
220
- ]
221
- }
222
- },
223
- {
224
- "code": [
225
- {
226
- "code": "71403-0",
227
- "system": "http://loinc.org",
228
- "display": "CMS - skin exam panel"
229
- }
230
- ],
231
- "text": "Skin",
232
- "type": "text",
233
- "macro": "Warm, dry, and intact. No rashes, dermatoses, petechiae, or lesions",
234
- "linkId": "skin",
235
- "itemControl": {
236
- "coding": [
237
- {
238
- "code": "text-with-macro"
239
- }
240
- ]
241
- }
242
- },
243
- {
244
- "code": [
245
- {
246
- "code": "32473-1",
247
- "system": "http://loinc.org",
248
- "display": "Physical findings.sensation"
249
- }
250
- ],
251
- "text": "Monofilament",
252
- "type": "text",
253
- "macro": "Normal sensation bilaterally on soles of feet with 10g monofilament",
254
- "linkId": "monofilament",
255
- "itemControl": {
256
- "coding": [
257
- {
258
- "code": "text-with-macro"
259
- }
260
- ]
261
- }
262
- },
263
- {
264
- "text": "Other Systems (optional)",
265
- "type": "display",
266
- "linkId": "other-systems-optional"
267
- },
268
- {
269
- "code": [
270
- {
271
- "code": "71396-6",
272
- "system": "http://loinc.org",
273
- "display": "CMS - breast exam panel"
274
- }
275
- ],
276
- "text": "Chest",
277
- "type": "text",
278
- "macro": "The chest wall is symmetric, without deformity, and is atraumatic in appearance",
279
- "linkId": "chest",
280
- "itemControl": {
281
- "coding": [
282
- {
283
- "code": "text-with-macro"
284
- }
285
- ]
286
- }
287
- },
288
- {
289
- "code": [
290
- {
291
- "code": "71399-0",
292
- "system": "http://loinc.org",
293
- "display": "CMS - genitourinary exam - female panel"
294
- }
295
- ],
296
- "text": "Genitourinary",
297
- "type": "text",
298
- "macro": "External genitalia without erythema, exudate or discharge",
299
- "linkId": "genitourinary-female",
300
- "itemControl": {
301
- "coding": [
302
- {
303
- "code": "text-with-macro"
304
- }
305
- ]
306
- },
307
- "enableWhenExpression": {
308
- "language": "text/fhirpath",
309
- "expression": "%Patient.gender = 'female'"
310
- }
311
- },
312
- {
313
- "code": [
314
- {
315
- "code": "71398-2",
316
- "system": "http://loinc.org",
317
- "display": "CMS - genitourinary exam - male panel"
318
- }
319
- ],
320
- "text": "Genitourinary",
321
- "type": "text",
322
- "macro": "Penis without lesions. No urethral discharge. Testes normal size without masses or tenderness. No scrotal masses. No hernia",
323
- "linkId": "genitourinary-male",
324
- "itemControl": {
325
- "coding": [
326
- {
327
- "code": "text-with-macro"
328
- }
329
- ]
330
- },
331
- "enableWhenExpression": {
332
- "language": "text/fhirpath",
333
- "expression": "%Patient.gender = 'male'"
334
- }
335
- },
336
- {
337
- "code": [
338
- {
339
- "code": "8708-0",
340
- "system": "http://loinc.org",
341
- "display": "Phys find Rectum"
342
- }
343
- ],
344
- "text": "Rectal",
345
- "type": "text",
346
- "macro": "Normal external anus and normal tone. No palpable masses, normal mucosa, brown stool. Hemoccult negative",
347
- "linkId": "rectal",
348
- "itemControl": {
349
- "coding": [
350
- {
351
- "code": "text-with-macro"
352
- }
353
- ]
354
- }
355
- },
11
+ "name": {
12
+ "code": "Patient",
13
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
14
+ },
15
+ "type": ["Patient"],
16
+ "description": "Patient is answering the questionnaire"
17
+ }
18
+ ],
19
+ "name": "Physical exam",
20
+ "item": [
356
21
  {
357
- "code": [
358
- {
359
- "code": "71400-6",
360
- "system": "http://loinc.org",
361
- "display": "CMS - lymphatic exam panel"
362
- }
363
- ],
364
- "text": "Lymphatic",
365
- "type": "text",
366
- "macro": "No enlarged lymph nodes of occipital, pre- and postauricular, submandibular, anterior or posterior cervical, or supraclavicular identified",
367
- "linkId": "lymphatic",
368
- "itemControl": {
369
- "coding": [
370
- {
371
- "code": "text-with-macro"
372
- }
373
- ]
374
- }
22
+ "item": [
23
+ {
24
+ "code": [
25
+ {
26
+ "code": "71389-1",
27
+ "system": "http://loinc.org",
28
+ "display": "CMS - constitutional exam panel"
29
+ }
30
+ ],
31
+ "text": "General",
32
+ "type": "text",
33
+ "macro": "Well nourished, well developed, awake and alert, resting comfortably in no acute distress, cooperative on exam",
34
+ "linkId": "general",
35
+ "itemControl": {
36
+ "coding": [
37
+ {
38
+ "code": "text-with-macro"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "code": [
45
+ {
46
+ "code": "71392-5",
47
+ "system": "http://loinc.org",
48
+ "display": "CMS - ear-nose-mouth-throat exam panel"
49
+ }
50
+ ],
51
+ "text": "HEENT",
52
+ "type": "text",
53
+ "macro": "NCAT, PERRL, normal conjunctivae, nonicteric sclerae, bilateral EAC/TM clear, no nasal discharge, OP clear, moist mucous membranes",
54
+ "linkId": "heent",
55
+ "itemControl": {
56
+ "coding": [
57
+ {
58
+ "code": "text-with-macro"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ {
64
+ "code": [
65
+ {
66
+ "code": "71393-3",
67
+ "system": "http://loinc.org",
68
+ "display": "CMS - neck exam panel"
69
+ }
70
+ ],
71
+ "text": "Neck",
72
+ "type": "text",
73
+ "macro": "Supple, normal ROM, no lymphadenopathy/masses, nontender",
74
+ "linkId": "neck",
75
+ "itemControl": {
76
+ "coding": [
77
+ {
78
+ "code": "text-with-macro"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ {
84
+ "code": [
85
+ {
86
+ "code": "71395-8",
87
+ "system": "http://loinc.org",
88
+ "display": "CMS - cardiovascular exam panel"
89
+ }
90
+ ],
91
+ "text": "Cardiovascular",
92
+ "type": "text",
93
+ "macro": "RRR, normal S1/S2, no murmurs/gallops/rub",
94
+ "linkId": "cardiovascular",
95
+ "itemControl": {
96
+ "coding": [
97
+ {
98
+ "code": "text-with-macro"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ {
104
+ "code": [
105
+ {
106
+ "code": "71394-1",
107
+ "system": "http://loinc.org",
108
+ "display": "CMS - respiratory exam panel"
109
+ }
110
+ ],
111
+ "text": "Pulmonary",
112
+ "type": "text",
113
+ "macro": "No respiratory distress, lungs CTAB: no rales, rhonchi, or wheeze",
114
+ "linkId": "pulmonary",
115
+ "itemControl": {
116
+ "coding": [
117
+ {
118
+ "code": "text-with-macro"
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "code": [
125
+ {
126
+ "code": "71397-4",
127
+ "system": "http://loinc.org",
128
+ "display": "CMS - gastrointestinal - abdomen exam panel"
129
+ }
130
+ ],
131
+ "text": "Abdominal",
132
+ "type": "text",
133
+ "macro": "Soft and non-tender with no guarding or rebound; +BS normoactive, no tympany on auscultation",
134
+ "linkId": "abdominal",
135
+ "itemControl": {
136
+ "coding": [
137
+ {
138
+ "code": "text-with-macro"
139
+ }
140
+ ]
141
+ }
142
+ },
143
+ {
144
+ "code": [
145
+ {
146
+ "code": "71402-2",
147
+ "system": "http://loinc.org",
148
+ "display": "CMS - musculoskeletal exam panel"
149
+ }
150
+ ],
151
+ "text": "Musculoskeletal",
152
+ "type": "text",
153
+ "macro": "Normal ROM of UE and LE, normal bulk and tone,",
154
+ "linkId": "musculoskeletal",
155
+ "itemControl": {
156
+ "coding": [
157
+ {
158
+ "code": "text-with-macro"
159
+ }
160
+ ]
161
+ }
162
+ },
163
+ {
164
+ "code": [
165
+ {
166
+ "code": "71401-4",
167
+ "system": "http://loinc.org",
168
+ "display": "CMS - extremities exam panel"
169
+ }
170
+ ],
171
+ "text": "Extremities",
172
+ "type": "text",
173
+ "macro": "Pulses intact with normal cap refill, no LE pitting edema or calf tenderness",
174
+ "linkId": "extremities",
175
+ "itemControl": {
176
+ "coding": [
177
+ {
178
+ "code": "text-with-macro"
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ {
184
+ "code": [
185
+ {
186
+ "code": "71404-8",
187
+ "system": "http://loinc.org",
188
+ "display": "CMS - neurologic exam panel"
189
+ }
190
+ ],
191
+ "text": "Neurologic",
192
+ "type": "text",
193
+ "macro": "AAOx3, converses normally. CN II - XII grossly intact. Gait and coordination intact. 5+ BL UE/LE strength, no gross motor or sensory defects",
194
+ "linkId": "neurologic",
195
+ "itemControl": {
196
+ "coding": [
197
+ {
198
+ "code": "text-with-macro"
199
+ }
200
+ ]
201
+ }
202
+ },
203
+ {
204
+ "code": [
205
+ {
206
+ "code": "71405-5",
207
+ "system": "http://loinc.org",
208
+ "display": "CMS - psychiatric exam panel"
209
+ }
210
+ ],
211
+ "text": "Psychiatric",
212
+ "type": "text",
213
+ "macro": "Normal mood and affect. Judgement/competence is appropriate",
214
+ "linkId": "psychiatric",
215
+ "itemControl": {
216
+ "coding": [
217
+ {
218
+ "code": "text-with-macro"
219
+ }
220
+ ]
221
+ }
222
+ },
223
+ {
224
+ "code": [
225
+ {
226
+ "code": "71403-0",
227
+ "system": "http://loinc.org",
228
+ "display": "CMS - skin exam panel"
229
+ }
230
+ ],
231
+ "text": "Skin",
232
+ "type": "text",
233
+ "macro": "Warm, dry, and intact. No rashes, dermatoses, petechiae, or lesions",
234
+ "linkId": "skin",
235
+ "itemControl": {
236
+ "coding": [
237
+ {
238
+ "code": "text-with-macro"
239
+ }
240
+ ]
241
+ }
242
+ },
243
+ {
244
+ "code": [
245
+ {
246
+ "code": "32473-1",
247
+ "system": "http://loinc.org",
248
+ "display": "Physical findings.sensation"
249
+ }
250
+ ],
251
+ "text": "Monofilament",
252
+ "type": "text",
253
+ "macro": "Normal sensation bilaterally on soles of feet with 10g monofilament",
254
+ "linkId": "monofilament",
255
+ "itemControl": {
256
+ "coding": [
257
+ {
258
+ "code": "text-with-macro"
259
+ }
260
+ ]
261
+ }
262
+ },
263
+ {
264
+ "text": "Other Systems (optional)",
265
+ "type": "display",
266
+ "linkId": "other-systems-optional"
267
+ },
268
+ {
269
+ "code": [
270
+ {
271
+ "code": "71396-6",
272
+ "system": "http://loinc.org",
273
+ "display": "CMS - breast exam panel"
274
+ }
275
+ ],
276
+ "text": "Chest",
277
+ "type": "text",
278
+ "macro": "The chest wall is symmetric, without deformity, and is atraumatic in appearance",
279
+ "linkId": "chest",
280
+ "itemControl": {
281
+ "coding": [
282
+ {
283
+ "code": "text-with-macro"
284
+ }
285
+ ]
286
+ }
287
+ },
288
+ {
289
+ "code": [
290
+ {
291
+ "code": "71399-0",
292
+ "system": "http://loinc.org",
293
+ "display": "CMS - genitourinary exam - female panel"
294
+ }
295
+ ],
296
+ "text": "Genitourinary",
297
+ "type": "text",
298
+ "macro": "External genitalia without erythema, exudate or discharge",
299
+ "linkId": "genitourinary-female",
300
+ "itemControl": {
301
+ "coding": [
302
+ {
303
+ "code": "text-with-macro"
304
+ }
305
+ ]
306
+ },
307
+ "enableWhenExpression": {
308
+ "language": "text/fhirpath",
309
+ "expression": "%Patient.gender = 'female'"
310
+ }
311
+ },
312
+ {
313
+ "code": [
314
+ {
315
+ "code": "71398-2",
316
+ "system": "http://loinc.org",
317
+ "display": "CMS - genitourinary exam - male panel"
318
+ }
319
+ ],
320
+ "text": "Genitourinary",
321
+ "type": "text",
322
+ "macro": "Penis without lesions. No urethral discharge. Testes normal size without masses or tenderness. No scrotal masses. No hernia",
323
+ "linkId": "genitourinary-male",
324
+ "itemControl": {
325
+ "coding": [
326
+ {
327
+ "code": "text-with-macro"
328
+ }
329
+ ]
330
+ },
331
+ "enableWhenExpression": {
332
+ "language": "text/fhirpath",
333
+ "expression": "%Patient.gender = 'male'"
334
+ }
335
+ },
336
+ {
337
+ "code": [
338
+ {
339
+ "code": "8708-0",
340
+ "system": "http://loinc.org",
341
+ "display": "Phys find Rectum"
342
+ }
343
+ ],
344
+ "text": "Rectal",
345
+ "type": "text",
346
+ "macro": "Normal external anus and normal tone. No palpable masses, normal mucosa, brown stool. Hemoccult negative",
347
+ "linkId": "rectal",
348
+ "itemControl": {
349
+ "coding": [
350
+ {
351
+ "code": "text-with-macro"
352
+ }
353
+ ]
354
+ }
355
+ },
356
+ {
357
+ "code": [
358
+ {
359
+ "code": "71400-6",
360
+ "system": "http://loinc.org",
361
+ "display": "CMS - lymphatic exam panel"
362
+ }
363
+ ],
364
+ "text": "Lymphatic",
365
+ "type": "text",
366
+ "macro": "No enlarged lymph nodes of occipital, pre- and postauricular, submandibular, anterior or posterior cervical, or supraclavicular identified",
367
+ "linkId": "lymphatic",
368
+ "itemControl": {
369
+ "coding": [
370
+ {
371
+ "code": "text-with-macro"
372
+ }
373
+ ]
374
+ }
375
+ }
376
+ ],
377
+ "type": "group",
378
+ "linkId": "physical-exam-group"
375
379
  }
376
- ],
377
- "type": "group",
378
- "linkId": "physical-exam-group"
379
- }
380
- ],
381
- "resourceType": "Questionnaire",
382
- "status": "active",
383
- "id": "physical-exam",
384
- "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/physical-exam"
380
+ ],
381
+ "resourceType": "Questionnaire",
382
+ "status": "active",
383
+ "assembledFrom": "physical-exam",
384
+ "id": "physical-exam",
385
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/physical-exam"
385
386
  }