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.
- package/dist/converter/fceToFhir/questionnaire/processExtensions.d.ts.map +1 -1
- package/dist/converter/fceToFhir/questionnaire/processExtensions.js +7 -1
- package/dist/converter/fceToFhir/questionnaire/processExtensions.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaire/processExtensions.d.ts +1 -0
- package/dist/converter/fhirToFce/questionnaire/processExtensions.d.ts.map +1 -1
- package/dist/converter/fhirToFce/questionnaire/processExtensions.js +12 -6
- package/dist/converter/fhirToFce/questionnaire/processExtensions.js.map +1 -1
- package/package.json +1 -1
- package/src/converter/__tests__/resources/questionnaire_fce/allergies.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/beverages.json +67 -66
- package/src/converter/__tests__/resources/questionnaire_fce/choice_answer_option.json +49 -48
- package/src/converter/__tests__/resources/questionnaire_fce/consent.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/constraint.json +2 -2
- package/src/converter/__tests__/resources/questionnaire_fce/cqf-examples.json +59 -63
- package/src/converter/__tests__/resources/questionnaire_fce/enable_when.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/encounter_create.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/gad_7.json +6 -14
- package/src/converter/__tests__/resources/questionnaire_fce/immunization.json +6 -14
- package/src/converter/__tests__/resources/questionnaire_fce/medication.json +165 -164
- package/src/converter/__tests__/resources/questionnaire_fce/multiple_type_launch_context.json +5 -12
- package/src/converter/__tests__/resources/questionnaire_fce/patient_create.json +78 -77
- package/src/converter/__tests__/resources/questionnaire_fce/patient_edit.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/phq_2_phq_9.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/physicalexam.json +381 -380
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create.json +79 -78
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create_structure_map.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_edit.json +127 -126
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_role_create.json +35 -34
- package/src/converter/__tests__/resources/questionnaire_fce/public_appointment.json +3 -4
- package/src/converter/__tests__/resources/questionnaire_fce/review_of_systems.json +384 -383
- package/src/converter/__tests__/resources/questionnaire_fce/source_queries.json +31 -30
- package/src/converter/__tests__/resources/questionnaire_fce/unit-option.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fce/vitals.json +1 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/allergies.json +7 -8
- package/src/converter/__tests__/resources/questionnaire_fhir/beverages.json +96 -90
- package/src/converter/__tests__/resources/questionnaire_fhir/choice_answer_option.json +49 -43
- package/src/converter/__tests__/resources/questionnaire_fhir/consent.json +4 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/constraint.json +6 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/cqf-examples.json +87 -86
- package/src/converter/__tests__/resources/questionnaire_fhir/enable_when.json +6 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/encounter_create.json +4 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/gad_7.json +7 -8
- package/src/converter/__tests__/resources/questionnaire_fhir/immunization.json +7 -8
- package/src/converter/__tests__/resources/questionnaire_fhir/medication.json +203 -199
- package/src/converter/__tests__/resources/questionnaire_fhir/multiple_type_launch_context.json +387 -383
- package/src/converter/__tests__/resources/questionnaire_fhir/patient_create.json +92 -88
- package/src/converter/__tests__/resources/questionnaire_fhir/patient_edit.json +6 -4
- package/src/converter/__tests__/resources/questionnaire_fhir/phq_2_phq_9.json +565 -561
- package/src/converter/__tests__/resources/questionnaire_fhir/physicalexam.json +540 -536
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create.json +78 -74
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create_structure_map.json +4 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_edit.json +176 -172
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_role_create.json +45 -41
- package/src/converter/__tests__/resources/questionnaire_fhir/public_appointment.json +6 -4
- package/src/converter/__tests__/resources/questionnaire_fhir/review_of_systems.json +364 -358
- package/src/converter/__tests__/resources/questionnaire_fhir/source_queries.json +37 -33
- package/src/converter/__tests__/resources/questionnaire_fhir/unit-option.json +6 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/vitals.json +4 -0
- package/src/converter/fceToFhir/questionnaire/processExtensions.ts +8 -1
- package/src/converter/fhirToFce/questionnaire/processExtensions.ts +21 -15
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
}
|
|
7
|
+
"linkId": "question-1",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"text": "Question"
|
|
24
10
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
55
|
-
"type": "choice",
|
|
56
|
-
"linkId": "beverage-type",
|
|
57
|
-
"extension": [
|
|
14
|
+
"name": "Beverages",
|
|
15
|
+
"item": [
|
|
58
16
|
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
70
|
-
|
|
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
|
-
|
|
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
|
-
|
|
88
|
-
"
|
|
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
|
-
|
|
96
|
-
|
|
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
|
-
|
|
3
|
-
{
|
|
4
|
-
"text": "What is your favorite color?",
|
|
5
|
-
"type": "choice",
|
|
6
|
-
"linkId": "1",
|
|
7
|
-
"answerOption": [
|
|
2
|
+
"item": [
|
|
8
3
|
{
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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",
|