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,34 +1,35 @@
1
1
  {
2
- "meta": {
3
- "profile": ["https://beda.software/beda-emr-questionnaire"]
4
- },
5
- "item": [
6
- {
7
- "linkId": "question-1",
8
- "type": "string",
9
- "text": "Question"
10
- }
11
- ],
12
- "status": "active",
13
- "resourceType": "Questionnaire",
14
- "contained": [
15
- {
16
- "id": "PrePopQuery",
17
- "type": "batch",
18
- "entry": [
2
+ "meta": {
3
+ "profile": ["https://beda.software/beda-emr-questionnaire"]
4
+ },
5
+ "item": [
19
6
  {
20
- "request": {
21
- "url": "Patient?_id={{%LaunchPatient.id}}",
22
- "method": "GET"
23
- }
7
+ "linkId": "question-1",
8
+ "type": "string",
9
+ "text": "Question"
24
10
  }
25
- ],
26
- "resourceType": "Bundle"
27
- }
28
- ],
29
- "sourceQueries": [
30
- {
31
- "localRef": "Bundle#PrePopQuery"
32
- }
33
- ]
11
+ ],
12
+ "status": "active",
13
+ "resourceType": "Questionnaire",
14
+ "assembledFrom": "source-queries",
15
+ "contained": [
16
+ {
17
+ "id": "PrePopQuery",
18
+ "type": "batch",
19
+ "entry": [
20
+ {
21
+ "request": {
22
+ "url": "Patient?_id={{%LaunchPatient.id}}",
23
+ "method": "GET"
24
+ }
25
+ }
26
+ ],
27
+ "resourceType": "Bundle"
28
+ }
29
+ ],
30
+ "sourceQueries": [
31
+ {
32
+ "localRef": "Bundle#PrePopQuery"
33
+ }
34
+ ]
34
35
  }
@@ -5,6 +5,7 @@
5
5
  "profile": ["https://beda.software/beda-emr-questionnaire"]
6
6
  },
7
7
  "status": "active",
8
+ "assembledFrom": "unit-option",
8
9
  "item": [
9
10
  {
10
11
  "type": "quantity",
@@ -229,6 +229,7 @@
229
229
  ],
230
230
  "resourceType": "Questionnaire",
231
231
  "status": "active",
232
+ "assembledFrom": "vitals",
232
233
  "id": "vitals",
233
234
  "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/vitals"
234
235
  }
@@ -1,12 +1,7 @@
1
1
  {
2
- "subjectType": [
3
- "Encounter",
4
- "Patient"
5
- ],
2
+ "subjectType": ["Encounter", "Patient"],
6
3
  "meta": {
7
- "profile": [
8
- "https://beda.software/beda-emr-questionnaire"
9
- ],
4
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
10
5
  "lastUpdated": "2023-04-10T03:43:34.792167Z",
11
6
  "versionId": "694",
12
7
  "extension": [
@@ -425,9 +420,13 @@
425
420
  "valueReference": {
426
421
  "reference": "Mapping/allergy-extract"
427
422
  }
423
+ },
424
+ {
425
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
426
+ "valueCanonical": "allergies"
428
427
  }
429
428
  ],
430
429
  "status": "active",
431
430
  "id": "allergies",
432
431
  "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/allergies"
433
- }
432
+ }
@@ -1,99 +1,105 @@
1
1
  {
2
- "subjectType": ["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": "Beverages",
15
- "item": [
16
- {
17
- "linkId": "slider",
18
- "type": "decimal",
19
- "extension": [
20
- {
21
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
22
- "valueCodeableConcept": {
23
- "coding": [
24
- {
25
- "code": "slider"
26
- }
27
- ]
28
- }
29
- },
30
- {
31
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-sliderStepValue",
32
- "valueInteger": 2
33
- },
34
- {
35
- "url": "https://beda.software/fhir-emr-questionnaire/slider-start",
36
- "valueInteger": 1
37
- },
38
- {
39
- "url": "https://beda.software/fhir-emr-questionnaire/slider-stop",
40
- "valueInteger": 20
41
- },
42
- {
43
- "url": "https://beda.software/fhir-emr-questionnaire/help-text",
44
- "valueString": "How many beverages you are consuming per day?"
45
- },
46
- {
47
- "url": "https://beda.software/fhir-emr-questionnaire/slider-stop-label",
48
- "valueString": "20+"
49
- }
50
- ],
51
- "text": "Frequency per week"
2
+ "subjectType": ["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
+ ]
52
13
  },
53
- {
54
- "text": "Beverage",
55
- "type": "choice",
56
- "linkId": "beverage-type",
57
- "extension": [
14
+ "name": "Beverages",
15
+ "item": [
58
16
  {
59
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
60
- "valueCodeableConcept": {
61
- "coding": [
62
- {
63
- "code": "solid-radio-button"
64
- }
65
- ]
66
- }
17
+ "linkId": "slider",
18
+ "type": "decimal",
19
+ "extension": [
20
+ {
21
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
22
+ "valueCodeableConcept": {
23
+ "coding": [
24
+ {
25
+ "code": "slider"
26
+ }
27
+ ]
28
+ }
29
+ },
30
+ {
31
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-sliderStepValue",
32
+ "valueInteger": 2
33
+ },
34
+ {
35
+ "url": "https://beda.software/fhir-emr-questionnaire/slider-start",
36
+ "valueInteger": 1
37
+ },
38
+ {
39
+ "url": "https://beda.software/fhir-emr-questionnaire/slider-stop",
40
+ "valueInteger": 20
41
+ },
42
+ {
43
+ "url": "https://beda.software/fhir-emr-questionnaire/help-text",
44
+ "valueString": "How many beverages you are consuming per day?"
45
+ },
46
+ {
47
+ "url": "https://beda.software/fhir-emr-questionnaire/slider-stop-label",
48
+ "valueString": "20+"
49
+ }
50
+ ],
51
+ "text": "Frequency per week"
67
52
  },
68
53
  {
69
- "url": "https://beda.software/fhir-emr-questionnaire/adjust-last-to-right",
70
- "valueBoolean": true
54
+ "text": "Beverage",
55
+ "type": "choice",
56
+ "linkId": "beverage-type",
57
+ "extension": [
58
+ {
59
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
60
+ "valueCodeableConcept": {
61
+ "coding": [
62
+ {
63
+ "code": "solid-radio-button"
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ {
69
+ "url": "https://beda.software/fhir-emr-questionnaire/adjust-last-to-right",
70
+ "valueBoolean": true
71
+ }
72
+ ],
73
+ "answerOption": [
74
+ {
75
+ "valueCoding": {
76
+ "code": "beer",
77
+ "display": "Beer"
78
+ }
79
+ },
80
+ {
81
+ "valueCoding": {
82
+ "code": "wine",
83
+ "display": "Wine"
84
+ }
85
+ },
86
+ {
87
+ "valueCoding": {
88
+ "code": "none",
89
+ "display": "None"
90
+ }
91
+ }
92
+ ]
71
93
  }
72
- ],
73
- "answerOption": [
74
- {
75
- "valueCoding": {
76
- "code": "beer",
77
- "display": "Beer"
78
- }
79
- },
80
- {
81
- "valueCoding": {
82
- "code": "wine",
83
- "display": "Wine"
84
- }
85
- },
94
+ ],
95
+ "extension": [
86
96
  {
87
- "valueCoding": {
88
- "code": "none",
89
- "display": "None"
90
- }
97
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
98
+ "valueCanonical": "beverages"
91
99
  }
92
- ]
93
- }
94
- ],
95
- "resourceType": "Questionnaire",
96
- "status": "draft",
97
- "id": "beverages",
98
- "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/baverages"
100
+ ],
101
+ "resourceType": "Questionnaire",
102
+ "status": "draft",
103
+ "id": "beverages",
104
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/baverages"
99
105
  }
@@ -1,49 +1,55 @@
1
1
  {
2
- "item": [
3
- {
4
- "text": "What is your favorite color?",
5
- "type": "choice",
6
- "linkId": "1",
7
- "answerOption": [
2
+ "item": [
8
3
  {
9
- "valueCoding": {
10
- "code": "red",
11
- "system": "http://example.org/colors",
12
- "display": "Red"
13
- }
14
- },
15
- {
16
- "valueCoding": {
17
- "code": "blue",
18
- "system": "http://example.org/colors",
19
- "display": "Blue"
20
- }
21
- },
22
- {
23
- "valueReference": {
24
- "display": "Other",
25
- "reference": "Color/123"
26
- }
27
- },
4
+ "text": "What is your favorite color?",
5
+ "type": "choice",
6
+ "linkId": "1",
7
+ "answerOption": [
8
+ {
9
+ "valueCoding": {
10
+ "code": "red",
11
+ "system": "http://example.org/colors",
12
+ "display": "Red"
13
+ }
14
+ },
15
+ {
16
+ "valueCoding": {
17
+ "code": "blue",
18
+ "system": "http://example.org/colors",
19
+ "display": "Blue"
20
+ }
21
+ },
22
+ {
23
+ "valueReference": {
24
+ "display": "Other",
25
+ "reference": "Color/123"
26
+ }
27
+ },
28
+ {
29
+ "valueString": "I don't have a favorite color"
30
+ }
31
+ ]
32
+ }
33
+ ],
34
+ "status": "draft",
35
+ "subjectType": ["Patient"],
36
+ "id": "example",
37
+ "resourceType": "Questionnaire",
38
+ "extension": [
28
39
  {
29
- "valueString": "I don't have a favorite color"
40
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
41
+ "valueCanonical": "choice-answer-option"
30
42
  }
31
- ]
43
+ ],
44
+ "meta": {
45
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
46
+ "lastUpdated": "2023-04-24T00:09:09.518780Z",
47
+ "versionId": "205",
48
+ "extension": [
49
+ {
50
+ "url": "ex:createdAt",
51
+ "valueInstant": "2023-04-24T00:09:09.518780Z"
52
+ }
53
+ ]
32
54
  }
33
- ],
34
- "status": "draft",
35
- "subjectType": ["Patient"],
36
- "id": "example",
37
- "resourceType": "Questionnaire",
38
- "meta": {
39
- "profile": ["https://beda.software/beda-emr-questionnaire"],
40
- "lastUpdated": "2023-04-24T00:09:09.518780Z",
41
- "versionId": "205",
42
- "extension": [
43
- {
44
- "url": "ex:createdAt",
45
- "valueInstant": "2023-04-24T00:09:09.518780Z"
46
- }
47
- ]
48
- }
49
55
  }
@@ -111,6 +111,10 @@
111
111
  "valueReference": {
112
112
  "reference": "Mapping/consent-extract"
113
113
  }
114
+ },
115
+ {
116
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
117
+ "valueCanonical": "consent"
114
118
  }
115
119
  ],
116
120
  "status": "active",
@@ -61,6 +61,12 @@
61
61
  "profile": ["https://beda.software/beda-emr-questionnaire"]
62
62
  },
63
63
  "status": "active",
64
+ "extension": [
65
+ {
66
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
67
+ "valueCanonical": "constraint"
68
+ }
69
+ ],
64
70
  "resourceType": "Questionnaire",
65
71
  "id": "constraint"
66
72
  }
@@ -1,100 +1,101 @@
1
1
  {
2
- "subjectType": [
3
- "Encounter",
4
- "Patient"
5
- ],
2
+ "subjectType": ["Encounter", "Patient"],
6
3
  "meta": {
7
- "profile": [
8
- "https://beda.software/beda-emr-questionnaire"
9
- ],
10
- "lastUpdated": "2024-11-18T13:35:34.455065Z",
11
- "versionId": "11968",
12
- "extension": [
13
- {
14
- "url": "ex:createdAt",
15
- "valueInstant": "2024-11-15T17:04:52.598486Z"
16
- }
17
- ]
4
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
5
+ "lastUpdated": "2024-11-18T13:35:34.455065Z",
6
+ "versionId": "11968",
7
+ "extension": [
8
+ {
9
+ "url": "ex:createdAt",
10
+ "valueInstant": "2024-11-15T17:04:52.598486Z"
11
+ }
12
+ ]
18
13
  },
19
14
  "name": "CQF Examples",
20
15
  "item": [
21
- {
22
- "text": "Click on this checkbox to see result",
23
- "type": "boolean",
24
- "linkId": "input-1"
25
- },
26
- {
27
- "text": "This is default input label",
28
- "type": "string",
29
- "_text": {
30
- "extension": [
31
16
  {
32
- "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
33
- "valueExpression": {
34
- "language": "text/fhirpath",
35
- "expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the input label changed', null)"
36
- }
37
- }
38
- ]
39
- },
40
- "linkId": "input-2"
41
- },
42
- {
43
- "item": [
44
- {
45
- "text": "This input is disabled if the checkbox is unchecked",
46
- "type": "string",
47
- "linkId": "input-5",
48
- "readOnly": true,
49
- "_readOnly": {
50
- "extension": [
51
- {
52
- "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
53
- "valueExpression": {
54
- "language": "text/fhirpath",
55
- "expression": "%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = false"
56
- }
57
- }
58
- ]
59
- }
60
- },
61
- {
62
- "text": "This input is required if the checkbox is checked",
63
- "type": "string",
64
- "linkId": "input-6",
65
- "required": false,
66
- "_required": {
67
- "extension": [
68
- {
69
- "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
70
- "valueExpression": {
71
- "language": "text/fhirpath",
72
- "expression": "%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true"
73
- }
74
- }
75
- ]
76
- }
77
- }
78
- ],
79
- "text": "This is default group label",
80
- "type": "group",
81
- "_text": {
82
- "extension": [
17
+ "text": "Click on this checkbox to see result",
18
+ "type": "boolean",
19
+ "linkId": "input-1"
20
+ },
83
21
  {
84
- "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
85
- "valueExpression": {
86
- "language": "text/fhirpath",
87
- "expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the group label changed', null)"
88
- }
22
+ "text": "This is default input label",
23
+ "type": "string",
24
+ "_text": {
25
+ "extension": [
26
+ {
27
+ "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
28
+ "valueExpression": {
29
+ "language": "text/fhirpath",
30
+ "expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the input label changed', null)"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ "linkId": "input-2"
36
+ },
37
+ {
38
+ "item": [
39
+ {
40
+ "text": "This input is disabled if the checkbox is unchecked",
41
+ "type": "string",
42
+ "linkId": "input-5",
43
+ "readOnly": true,
44
+ "_readOnly": {
45
+ "extension": [
46
+ {
47
+ "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
48
+ "valueExpression": {
49
+ "language": "text/fhirpath",
50
+ "expression": "%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = false"
51
+ }
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "text": "This input is required if the checkbox is checked",
58
+ "type": "string",
59
+ "linkId": "input-6",
60
+ "required": false,
61
+ "_required": {
62
+ "extension": [
63
+ {
64
+ "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
65
+ "valueExpression": {
66
+ "language": "text/fhirpath",
67
+ "expression": "%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true"
68
+ }
69
+ }
70
+ ]
71
+ }
72
+ }
73
+ ],
74
+ "text": "This is default group label",
75
+ "type": "group",
76
+ "_text": {
77
+ "extension": [
78
+ {
79
+ "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
80
+ "valueExpression": {
81
+ "language": "text/fhirpath",
82
+ "expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the group label changed', null)"
83
+ }
84
+ }
85
+ ]
86
+ },
87
+ "linkId": "input-3"
89
88
  }
90
- ]
91
- },
92
- "linkId": "input-3"
93
- }
94
89
  ],
95
90
  "resourceType": "Questionnaire",
96
91
  "title": "CQF Examples",
97
92
  "status": "active",
93
+ "extension": [
94
+ {
95
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
96
+ "valueCanonical": "cqf-examples"
97
+ }
98
+ ],
98
99
  "id": "cqf-examples",
99
100
  "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/cqf-examples"
100
- }
101
+ }
@@ -73,6 +73,12 @@
73
73
  "subjectType": ["Patient"],
74
74
  "id": "example",
75
75
  "resourceType": "Questionnaire",
76
+ "extension": [
77
+ {
78
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
79
+ "valueCanonical": "enable-when"
80
+ }
81
+ ],
76
82
  "meta": {
77
83
  "profile": ["https://beda.software/beda-emr-questionnaire"],
78
84
  "lastUpdated": "2023-05-07T09:04:40.566686Z",
@@ -163,6 +163,10 @@
163
163
  "valueReference": {
164
164
  "reference": "Mapping/test-mapper"
165
165
  }
166
+ },
167
+ {
168
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
169
+ "valueCanonical": "encounter-create"
166
170
  }
167
171
  ],
168
172
  "status": "active",