sdc-qrf 0.3.17 → 0.3.19
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/components.js +20 -64
- package/dist/components.js.map +1 -1
- package/dist/converter/extensions.js +8 -6
- package/dist/converter/extensions.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaire/index.js +4 -5
- package/dist/converter/fceToFhir/questionnaire/index.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaire/processExtensions.d.ts.map +1 -1
- package/dist/converter/fceToFhir/questionnaire/processExtensions.js +11 -3
- package/dist/converter/fceToFhir/questionnaire/processExtensions.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaire/processItems.js +9 -13
- package/dist/converter/fceToFhir/questionnaire/processItems.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaire/processMeta.js +4 -2
- package/dist/converter/fceToFhir/questionnaire/processMeta.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaireResponse/index.js +2 -4
- package/dist/converter/fceToFhir/questionnaireResponse/index.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaireResponse/processAnswers.js +3 -5
- package/dist/converter/fceToFhir/questionnaireResponse/processAnswers.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaireResponse/processMeta.js +2 -1
- package/dist/converter/fceToFhir/questionnaireResponse/processMeta.js.map +1 -1
- package/dist/converter/fceToFhir/questionnaireResponse/processReference.js +8 -16
- package/dist/converter/fceToFhir/questionnaireResponse/processReference.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaire/index.js +4 -11
- package/dist/converter/fhirToFce/questionnaire/index.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 +45 -28
- package/dist/converter/fhirToFce/questionnaire/processExtensions.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaire/processItems.js +15 -20
- package/dist/converter/fhirToFce/questionnaire/processItems.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaire/processMeta.js +3 -6
- package/dist/converter/fhirToFce/questionnaire/processMeta.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaireResponse/index.js +2 -4
- package/dist/converter/fhirToFce/questionnaireResponse/index.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaireResponse/processAnswers.js +5 -6
- package/dist/converter/fhirToFce/questionnaireResponse/processAnswers.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaireResponse/processMeta.js +4 -3
- package/dist/converter/fhirToFce/questionnaireResponse/processMeta.js.map +1 -1
- package/dist/converter/fhirToFce/questionnaireResponse/processReference.js +5 -4
- package/dist/converter/fhirToFce/questionnaireResponse/processReference.js.map +1 -1
- package/dist/converter/fhirToFce/utils.js +4 -3
- package/dist/converter/fhirToFce/utils.js.map +1 -1
- package/dist/converter/index.js +11 -33
- package/dist/converter/index.js.map +1 -1
- package/dist/converter/utils.js +2 -4
- package/dist/converter/utils.js.map +1 -1
- package/dist/index.js +6 -19
- package/dist/index.js.map +1 -1
- package/dist/utils.js +74 -103
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
- 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,53 +1,54 @@
|
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
4
|
+
"text": "What is your favorite color?",
|
|
5
|
+
"type": "choice",
|
|
6
|
+
"linkId": "1",
|
|
7
|
+
"answerOption": [
|
|
8
|
+
{
|
|
9
|
+
"value": {
|
|
10
|
+
"Coding": {
|
|
11
|
+
"code": "red",
|
|
12
|
+
"system": "http://example.org/colors",
|
|
13
|
+
"display": "Red"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"value": {
|
|
19
|
+
"Coding": {
|
|
20
|
+
"code": "blue",
|
|
21
|
+
"system": "http://example.org/colors",
|
|
22
|
+
"display": "Blue"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"value": {
|
|
28
|
+
"Reference": {
|
|
29
|
+
"id": "123",
|
|
30
|
+
"resourceType": "Color",
|
|
31
|
+
"display": "Other"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": {
|
|
37
|
+
"string": "I don't have a favorite color"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
39
41
|
}
|
|
40
|
-
|
|
42
|
+
],
|
|
43
|
+
"status": "draft",
|
|
44
|
+
"subjectType": ["Patient"],
|
|
45
|
+
"assembledFrom": "choice-answer-option",
|
|
46
|
+
"id": "example",
|
|
47
|
+
"resourceType": "Questionnaire",
|
|
48
|
+
"meta": {
|
|
49
|
+
"profile": ["https://beda.software/beda-emr-questionnaire"],
|
|
50
|
+
"lastUpdated": "2023-04-24T00:09:09.518780Z",
|
|
51
|
+
"createdAt": "2023-04-24T00:09:09.518780Z",
|
|
52
|
+
"versionId": "205"
|
|
41
53
|
}
|
|
42
|
-
],
|
|
43
|
-
"status": "draft",
|
|
44
|
-
"subjectType": ["Patient"],
|
|
45
|
-
"id": "example",
|
|
46
|
-
"resourceType": "Questionnaire",
|
|
47
|
-
"meta": {
|
|
48
|
-
"profile": ["https://beda.software/beda-emr-questionnaire"],
|
|
49
|
-
"lastUpdated": "2023-04-24T00:09:09.518780Z",
|
|
50
|
-
"createdAt": "2023-04-24T00:09:09.518780Z",
|
|
51
|
-
"versionId": "205"
|
|
52
|
-
}
|
|
53
54
|
}
|
|
@@ -1,75 +1,71 @@
|
|
|
1
1
|
{
|
|
2
|
-
"subjectType": [
|
|
3
|
-
"Encounter",
|
|
4
|
-
"Patient"
|
|
5
|
-
],
|
|
2
|
+
"subjectType": ["Encounter", "Patient"],
|
|
6
3
|
"meta": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"createdAt": "2024-11-15T17:04:52.598486Z",
|
|
12
|
-
"versionId": "11968"
|
|
4
|
+
"profile": ["https://beda.software/beda-emr-questionnaire"],
|
|
5
|
+
"lastUpdated": "2024-11-18T13:35:34.455065Z",
|
|
6
|
+
"createdAt": "2024-11-15T17:04:52.598486Z",
|
|
7
|
+
"versionId": "11968"
|
|
13
8
|
},
|
|
14
9
|
"name": "CQF Examples",
|
|
15
10
|
"item": [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
11
|
+
{
|
|
12
|
+
"text": "Click on this checkbox to see result",
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"linkId": "input-1"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"text": "This is default input label",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"_text": {
|
|
20
|
+
"cqfExpression": {
|
|
21
|
+
"language": "text/fhirpath",
|
|
22
|
+
"expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the input label changed', null)"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"linkId": "input-2"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"item": [
|
|
29
|
+
{
|
|
30
|
+
"text": "This input is disabled if the checkbox is unchecked",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"linkId": "input-5",
|
|
33
|
+
"readOnly": true,
|
|
34
|
+
"_readOnly": {
|
|
35
|
+
"cqfExpression": {
|
|
36
|
+
"language": "text/fhirpath",
|
|
37
|
+
"expression": "%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = false"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"text": "This input is required if the checkbox is checked",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"linkId": "input-6",
|
|
45
|
+
"required": false,
|
|
46
|
+
"_required": {
|
|
47
|
+
"cqfExpression": {
|
|
48
|
+
"language": "text/fhirpath",
|
|
49
|
+
"expression": "%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"text": "This is default group label",
|
|
55
|
+
"type": "group",
|
|
56
|
+
"_text": {
|
|
57
|
+
"cqfExpression": {
|
|
58
|
+
"language": "text/fhirpath",
|
|
59
|
+
"expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the group label changed', null)"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"linkId": "input-3"
|
|
56
63
|
}
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"text": "This is default group label",
|
|
60
|
-
"type": "group",
|
|
61
|
-
"_text": {
|
|
62
|
-
"cqfExpression": {
|
|
63
|
-
"language": "text/fhirpath",
|
|
64
|
-
"expression": "iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean = true, 'Now the group label changed', null)"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"linkId": "input-3"
|
|
68
|
-
}
|
|
69
64
|
],
|
|
70
65
|
"resourceType": "Questionnaire",
|
|
71
66
|
"title": "CQF Examples",
|
|
72
67
|
"status": "active",
|
|
68
|
+
"assembledFrom": "cqf-examples",
|
|
73
69
|
"id": "cqf-examples",
|
|
74
70
|
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/cqf-examples"
|
|
75
|
-
|
|
71
|
+
}
|
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
"resourceType": "Questionnaire",
|
|
122
122
|
"title": "Encounter create",
|
|
123
123
|
"status": "active",
|
|
124
|
+
"assembledFrom": "encounter-create",
|
|
124
125
|
"id": "encounter-create",
|
|
125
126
|
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/encounter-create"
|
|
126
127
|
}
|
|
@@ -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
|
"createdAt": "2023-04-05T05:22:35.752466Z",
|
|
12
7
|
"versionId": "694"
|
|
@@ -17,18 +12,14 @@
|
|
|
17
12
|
"code": "Patient",
|
|
18
13
|
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
19
14
|
},
|
|
20
|
-
"type": [
|
|
21
|
-
"Patient"
|
|
22
|
-
]
|
|
15
|
+
"type": ["Patient"]
|
|
23
16
|
},
|
|
24
17
|
{
|
|
25
18
|
"name": {
|
|
26
19
|
"code": "Author",
|
|
27
20
|
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
28
21
|
},
|
|
29
|
-
"type": [
|
|
30
|
-
"Resource"
|
|
31
|
-
]
|
|
22
|
+
"type": ["Resource"]
|
|
32
23
|
}
|
|
33
24
|
],
|
|
34
25
|
"name": "GAD-7",
|
|
@@ -454,6 +445,7 @@
|
|
|
454
445
|
],
|
|
455
446
|
"resourceType": "Questionnaire",
|
|
456
447
|
"status": "active",
|
|
448
|
+
"assembledFrom": "gad-7",
|
|
457
449
|
"id": "gad-7",
|
|
458
450
|
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/gad7"
|
|
459
|
-
}
|
|
451
|
+
}
|
|
@@ -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
|
"createdAt": "2023-04-05T05:22:35.752466Z",
|
|
12
7
|
"versionId": "694"
|
|
@@ -17,18 +12,14 @@
|
|
|
17
12
|
"code": "Patient",
|
|
18
13
|
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
19
14
|
},
|
|
20
|
-
"type": [
|
|
21
|
-
"Patient"
|
|
22
|
-
]
|
|
15
|
+
"type": ["Patient"]
|
|
23
16
|
},
|
|
24
17
|
{
|
|
25
18
|
"name": {
|
|
26
19
|
"code": "Author",
|
|
27
20
|
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
28
21
|
},
|
|
29
|
-
"type": [
|
|
30
|
-
"Resource"
|
|
31
|
-
]
|
|
22
|
+
"type": ["Resource"]
|
|
32
23
|
}
|
|
33
24
|
],
|
|
34
25
|
"name": "Immunization",
|
|
@@ -177,6 +168,7 @@
|
|
|
177
168
|
],
|
|
178
169
|
"resourceType": "Questionnaire",
|
|
179
170
|
"status": "active",
|
|
171
|
+
"assembledFrom": "immunization",
|
|
180
172
|
"id": "immunization",
|
|
181
173
|
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/immunization"
|
|
182
|
-
}
|
|
174
|
+
}
|