sdc-qrf 0.2.0 → 0.3.2
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/lib/components.d.ts +3 -3
- package/lib/components.js +40 -22
- package/lib/components.js.map +1 -1
- package/lib/context.d.ts +0 -1
- package/lib/converter/extensions.d.ts +36 -0
- package/lib/converter/extensions.js +132 -0
- package/lib/converter/extensions.js.map +1 -0
- package/lib/converter/fceToFhir/index.d.ts +4 -0
- package/lib/converter/fceToFhir/index.js +15 -0
- package/lib/converter/fceToFhir/index.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaire/index.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaire/index.js +17 -0
- package/lib/converter/fceToFhir/questionnaire/index.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaire/processExtensions.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaire/processExtensions.js +61 -0
- package/lib/converter/fceToFhir/questionnaire/processExtensions.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaire/processItems.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaire/processItems.js +144 -0
- package/lib/converter/fceToFhir/questionnaire/processItems.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaire/processMeta.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaire/processMeta.js +20 -0
- package/lib/converter/fceToFhir/questionnaire/processMeta.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaireResponse/index.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaireResponse/index.js +20 -0
- package/lib/converter/fceToFhir/questionnaireResponse/index.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processAnswers.d.ts +2 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processAnswers.js +48 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processAnswers.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processMeta.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processMeta.js +18 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processMeta.js.map +1 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processReference.d.ts +3 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processReference.js +19 -0
- package/lib/converter/fceToFhir/questionnaireResponse/processReference.js.map +1 -0
- package/lib/converter/fhirToFce/index.d.ts +4 -0
- package/lib/converter/fhirToFce/index.js +15 -0
- package/lib/converter/fhirToFce/index.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaire/index.d.ts +3 -0
- package/lib/converter/fhirToFce/questionnaire/index.js +21 -0
- package/lib/converter/fhirToFce/questionnaire/index.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaire/processExtensions.d.ts +8 -0
- package/lib/converter/fhirToFce/questionnaire/processExtensions.js +89 -0
- package/lib/converter/fhirToFce/questionnaire/processExtensions.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaire/processItems.d.ts +3 -0
- package/lib/converter/fhirToFce/questionnaire/processItems.js +131 -0
- package/lib/converter/fhirToFce/questionnaire/processItems.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaire/processMeta.d.ts +32 -0
- package/lib/converter/fhirToFce/questionnaire/processMeta.js +14 -0
- package/lib/converter/fhirToFce/questionnaire/processMeta.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaireResponse/index.d.ts +3 -0
- package/lib/converter/fhirToFce/questionnaireResponse/index.js +20 -0
- package/lib/converter/fhirToFce/questionnaireResponse/index.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processAnswers.d.ts +2 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processAnswers.js +46 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processAnswers.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processMeta.d.ts +3 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processMeta.js +15 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processMeta.js.map +1 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processReference.d.ts +3 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processReference.js +18 -0
- package/lib/converter/fhirToFce/questionnaireResponse/processReference.js.map +1 -0
- package/lib/converter/fhirToFce/utils.d.ts +3 -0
- package/lib/converter/fhirToFce/utils.js +37 -0
- package/lib/converter/fhirToFce/utils.js.map +1 -0
- package/lib/converter/index.d.ts +12 -0
- package/lib/converter/index.js +84 -0
- package/lib/converter/index.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/setupTests.d.ts +1 -0
- package/lib/setupTests.js +4 -0
- package/lib/setupTests.js.map +1 -0
- package/lib/types.d.ts +10 -10
- package/lib/utils.d.ts +4 -1
- package/lib/utils.js +24 -11
- package/lib/utils.js.map +1 -1
- package/package.json +4 -5
- package/src/components.tsx +67 -29
- package/src/converter/__tests__/fce.test.ts +224 -0
- package/src/converter/__tests__/resources/questionnaire_fce/allergies.json +405 -0
- package/src/converter/__tests__/resources/questionnaire_fce/beverages.json +72 -0
- package/src/converter/__tests__/resources/questionnaire_fce/choice_answer_option.json +53 -0
- package/src/converter/__tests__/resources/questionnaire_fce/consent.json +86 -0
- package/src/converter/__tests__/resources/questionnaire_fce/enable_when.json +103 -0
- package/src/converter/__tests__/resources/questionnaire_fce/encounter_create.json +126 -0
- package/src/converter/__tests__/resources/questionnaire_fce/gad_7.json +459 -0
- package/src/converter/__tests__/resources/questionnaire_fce/immunization.json +182 -0
- package/src/converter/__tests__/resources/questionnaire_fce/medication.json +189 -0
- package/src/converter/__tests__/resources/questionnaire_fce/multiple_type_launch_context.json +406 -0
- package/src/converter/__tests__/resources/questionnaire_fce/patient_create.json +84 -0
- package/src/converter/__tests__/resources/questionnaire_fce/patient_edit.json +125 -0
- package/src/converter/__tests__/resources/questionnaire_fce/phq_2_phq_9.json +552 -0
- package/src/converter/__tests__/resources/questionnaire_fce/physicalexam.json +385 -0
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create.json +90 -0
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create_structure_map.json +91 -0
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_edit.json +144 -0
- package/src/converter/__tests__/resources/questionnaire_fce/practitioner_role_create.json +37 -0
- package/src/converter/__tests__/resources/questionnaire_fce/public_appointment.json +91 -0
- package/src/converter/__tests__/resources/questionnaire_fce/review_of_systems.json +389 -0
- package/src/converter/__tests__/resources/questionnaire_fce/source_queries.json +34 -0
- package/src/converter/__tests__/resources/questionnaire_fce/vitals.json +234 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/allergies.json +433 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/beverages.json +99 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/choice_answer_option.json +49 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/consent.json +119 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/enable_when.json +87 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/encounter_create.json +171 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/gad_7.json +489 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/immunization.json +215 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/medication.json +226 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/multiple_type_launch_context.json +416 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/patient_create.json +97 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/patient_edit.json +183 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/phq_2_phq_9.json +580 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/physicalexam.json +544 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create.json +87 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create_structure_map.json +91 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_edit.json +193 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_role_create.json +44 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/public_appointment.json +116 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/review_of_systems.json +368 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/source_queries.json +37 -0
- package/src/converter/__tests__/resources/questionnaire_fhir/vitals.json +317 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/allergies_inprogress.json +78 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/cardiology.json +96 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/few_answers.json +48 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/gad_7.json +165 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/immunization.json +86 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/medication.json +116 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/new_appointment.json +96 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/patient.json +87 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/phq_2_phq_9.json +193 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/physicalexam.json +187 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/practitioner.json +57 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/reference_answer_with_assoc.json +147 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/review_of_systems.json +129 -0
- package/src/converter/__tests__/resources/questionnaire_response_fce/vitals.json +168 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/allergies_inprogress.json +73 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/cardiology.json +87 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/few_answers.json +46 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/gad_7.json +146 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/immunization.json +77 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/medication.json +101 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/new_appointment.json +86 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/patient.json +78 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/phq_2_phq_9.json +170 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/physicalexam.json +158 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/practitioner.json +54 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/reference_answer_with_assoc.json +86 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/review_of_systems.json +118 -0
- package/src/converter/__tests__/resources/questionnaire_response_fhir/vitals.json +145 -0
- package/src/converter/extensions.ts +153 -0
- package/src/converter/fceToFhir/index.ts +27 -0
- package/src/converter/fceToFhir/questionnaire/index.ts +15 -0
- package/src/converter/fceToFhir/questionnaire/processExtensions.ts +75 -0
- package/src/converter/fceToFhir/questionnaire/processItems.ts +194 -0
- package/src/converter/fceToFhir/questionnaire/processMeta.ts +19 -0
- package/src/converter/fceToFhir/questionnaireResponse/index.ts +21 -0
- package/src/converter/fceToFhir/questionnaireResponse/processAnswers.ts +53 -0
- package/src/converter/fceToFhir/questionnaireResponse/processMeta.ts +16 -0
- package/src/converter/fceToFhir/questionnaireResponse/processReference.ts +24 -0
- package/src/converter/fhirToFce/index.ts +27 -0
- package/src/converter/fhirToFce/questionnaire/index.ts +25 -0
- package/src/converter/fhirToFce/questionnaire/processExtensions.ts +113 -0
- package/src/converter/fhirToFce/questionnaire/processItems.ts +159 -0
- package/src/converter/fhirToFce/questionnaire/processMeta.ts +17 -0
- package/src/converter/fhirToFce/questionnaireResponse/index.ts +21 -0
- package/src/converter/fhirToFce/questionnaireResponse/processAnswers.ts +53 -0
- package/src/converter/fhirToFce/questionnaireResponse/processMeta.ts +14 -0
- package/src/converter/fhirToFce/questionnaireResponse/processReference.ts +20 -0
- package/src/converter/fhirToFce/utils.ts +36 -0
- package/src/converter/index.ts +106 -0
- package/src/index.ts +1 -0
- package/src/setupTests.ts +1 -0
- package/src/utils.ts +50 -25
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"item": [
|
|
3
|
+
{
|
|
4
|
+
"text": "Do you smoke?",
|
|
5
|
+
"type": "choice",
|
|
6
|
+
"linkId": "1",
|
|
7
|
+
"enableWhen": [
|
|
8
|
+
{
|
|
9
|
+
"answer": {
|
|
10
|
+
"boolean": true
|
|
11
|
+
},
|
|
12
|
+
"operator": "exists",
|
|
13
|
+
"question": "2"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"answer": {
|
|
17
|
+
"decimal": 10
|
|
18
|
+
},
|
|
19
|
+
"operator": "=",
|
|
20
|
+
"question": "3"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"answer": {
|
|
24
|
+
"integer": 5
|
|
25
|
+
},
|
|
26
|
+
"operator": "=",
|
|
27
|
+
"question": "4"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"answer": {
|
|
31
|
+
"date": "2023-05-07"
|
|
32
|
+
},
|
|
33
|
+
"operator": "=",
|
|
34
|
+
"question": "5"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"answer": {
|
|
38
|
+
"dateTime": "2023-04-06T02:48:16+00:00"
|
|
39
|
+
},
|
|
40
|
+
"operator": "=",
|
|
41
|
+
"question": "6"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"answer": {
|
|
45
|
+
"time": "10:30:00"
|
|
46
|
+
},
|
|
47
|
+
"operator": "=",
|
|
48
|
+
"question": "7"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"answer": {
|
|
52
|
+
"string": "example"
|
|
53
|
+
},
|
|
54
|
+
"operator": "=",
|
|
55
|
+
"question": "8"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"answer": {
|
|
59
|
+
"Coding": {
|
|
60
|
+
"code": "123456",
|
|
61
|
+
"system": "http://snomed.info/sct"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"operator": "=",
|
|
65
|
+
"question": "9"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"answer": {
|
|
69
|
+
"Quantity": {
|
|
70
|
+
"code": "mg",
|
|
71
|
+
"unit": "mg",
|
|
72
|
+
"value": 5,
|
|
73
|
+
"system": "http://unitsofmeasure.org"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"operator": "=",
|
|
77
|
+
"question": "10"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"answer": {
|
|
81
|
+
"Reference": {
|
|
82
|
+
"id": "example",
|
|
83
|
+
"display": "example patient",
|
|
84
|
+
"resourceType": "Patient"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"operator": "=",
|
|
88
|
+
"question": "11"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"status": "active",
|
|
94
|
+
"subjectType": ["Patient"],
|
|
95
|
+
"id": "example",
|
|
96
|
+
"resourceType": "Questionnaire",
|
|
97
|
+
"meta": {
|
|
98
|
+
"profile": ["https://beda.software/beda-emr-questionnaire"],
|
|
99
|
+
"lastUpdated": "2023-05-07T09:04:40.566686Z",
|
|
100
|
+
"createdAt": "2023-05-07T09:04:40.566686Z",
|
|
101
|
+
"versionId": "459"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"profile": ["https://beda.software/beda-emr-questionnaire"],
|
|
4
|
+
"lastUpdated": "2023-04-10T03:43:34.792167Z",
|
|
5
|
+
"createdAt": "2023-04-05T05:22:35.752466Z",
|
|
6
|
+
"versionId": "694"
|
|
7
|
+
},
|
|
8
|
+
"launchContext": [
|
|
9
|
+
{
|
|
10
|
+
"name": {
|
|
11
|
+
"code": "Patient",
|
|
12
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
13
|
+
},
|
|
14
|
+
"type": ["Patient"]
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"name": "encounter-create",
|
|
18
|
+
"item": [
|
|
19
|
+
{
|
|
20
|
+
"text": "PatientId",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"hidden": true,
|
|
23
|
+
"linkId": "patientId",
|
|
24
|
+
"initialExpression": {
|
|
25
|
+
"language": "text/fhirpath",
|
|
26
|
+
"expression": "%Patient.id"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"text": "PatientName",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"linkId": "patientName",
|
|
33
|
+
"readOnly": true,
|
|
34
|
+
"initialExpression": {
|
|
35
|
+
"language": "text/fhirpath",
|
|
36
|
+
"expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"text": "Practitioner",
|
|
41
|
+
"type": "reference",
|
|
42
|
+
"linkId": "practitioner-role",
|
|
43
|
+
"required": true,
|
|
44
|
+
"choiceColumn": [
|
|
45
|
+
{
|
|
46
|
+
"path": "practitioner.resource.name.given.first() + ' ' + practitioner.resource.name.family + ' - ' + specialty.first().coding.display",
|
|
47
|
+
"forDisplay": true
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"answerExpression": {
|
|
51
|
+
"language": "application/x-fhir-query",
|
|
52
|
+
"expression": "PractitionerRole?_assoc=practitioner"
|
|
53
|
+
},
|
|
54
|
+
"referenceResource": ["PractitionerRole"]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"text": "Service",
|
|
58
|
+
"type": "choice",
|
|
59
|
+
"linkId": "service",
|
|
60
|
+
"repeats": false,
|
|
61
|
+
"required": true,
|
|
62
|
+
"answerOption": [
|
|
63
|
+
{
|
|
64
|
+
"value": {
|
|
65
|
+
"Coding": {
|
|
66
|
+
"code": "consultation",
|
|
67
|
+
"system": "http://fhir.org/guides/argonaut-scheduling/CodeSystem/visit-type",
|
|
68
|
+
"display": "The first appointment"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"value": {
|
|
74
|
+
"Coding": {
|
|
75
|
+
"code": "follow-up",
|
|
76
|
+
"system": "http://fhir.org/guides/argonaut-scheduling/CodeSystem/visit-type",
|
|
77
|
+
"display": "A follow up visit"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"text": "Date",
|
|
85
|
+
"type": "date",
|
|
86
|
+
"linkId": "date"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"item": [
|
|
90
|
+
{
|
|
91
|
+
"type": "time",
|
|
92
|
+
"linkId": "start-time"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "time",
|
|
96
|
+
"linkId": "end-time"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"text": "Time",
|
|
100
|
+
"type": "group",
|
|
101
|
+
"linkId": "Time period",
|
|
102
|
+
"itemControl": {
|
|
103
|
+
"coding": [
|
|
104
|
+
{
|
|
105
|
+
"code": "time-range-picker"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"mapping": [
|
|
112
|
+
{
|
|
113
|
+
"id": "encounter-create-extract",
|
|
114
|
+
"resourceType": "Mapping"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "test-mapper",
|
|
118
|
+
"resourceType": "Mapping"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"resourceType": "Questionnaire",
|
|
122
|
+
"title": "Encounter create",
|
|
123
|
+
"status": "active",
|
|
124
|
+
"id": "encounter-create",
|
|
125
|
+
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/encounter-create"
|
|
126
|
+
}
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
{
|
|
2
|
+
"subjectType": [
|
|
3
|
+
"Encounter",
|
|
4
|
+
"Patient"
|
|
5
|
+
],
|
|
6
|
+
"meta": {
|
|
7
|
+
"profile": [
|
|
8
|
+
"https://beda.software/beda-emr-questionnaire"
|
|
9
|
+
],
|
|
10
|
+
"lastUpdated": "2023-04-10T03:43:34.792167Z",
|
|
11
|
+
"createdAt": "2023-04-05T05:22:35.752466Z",
|
|
12
|
+
"versionId": "694"
|
|
13
|
+
},
|
|
14
|
+
"launchContext": [
|
|
15
|
+
{
|
|
16
|
+
"name": {
|
|
17
|
+
"code": "Patient",
|
|
18
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
19
|
+
},
|
|
20
|
+
"type": [
|
|
21
|
+
"Patient"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": {
|
|
26
|
+
"code": "Author",
|
|
27
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
|
|
28
|
+
},
|
|
29
|
+
"type": [
|
|
30
|
+
"Resource"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "GAD-7",
|
|
35
|
+
"item": [
|
|
36
|
+
{
|
|
37
|
+
"text": "DateTime",
|
|
38
|
+
"type": "dateTime",
|
|
39
|
+
"hidden": true,
|
|
40
|
+
"linkId": "dateTime",
|
|
41
|
+
"initialExpression": {
|
|
42
|
+
"language": "text/fhirpath",
|
|
43
|
+
"expression": "now()"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"text": "PatientId",
|
|
48
|
+
"type": "string",
|
|
49
|
+
"hidden": true,
|
|
50
|
+
"linkId": "patientId",
|
|
51
|
+
"initialExpression": {
|
|
52
|
+
"language": "text/fhirpath",
|
|
53
|
+
"expression": "%Patient.id"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"text": "PatientName",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"hidden": true,
|
|
60
|
+
"linkId": "patientName",
|
|
61
|
+
"initialExpression": {
|
|
62
|
+
"language": "text/fhirpath",
|
|
63
|
+
"expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"item": [
|
|
68
|
+
{
|
|
69
|
+
"text": "Feeling nervous, anxious, or on edge",
|
|
70
|
+
"type": "choice",
|
|
71
|
+
"linkId": "69725-0",
|
|
72
|
+
"required": true,
|
|
73
|
+
"itemControl": {
|
|
74
|
+
"coding": [
|
|
75
|
+
{
|
|
76
|
+
"code": "inline-choice"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"answerOption": [
|
|
81
|
+
{
|
|
82
|
+
"value": {
|
|
83
|
+
"Coding": {
|
|
84
|
+
"code": "LA6568-5",
|
|
85
|
+
"system": "http://loinc.org",
|
|
86
|
+
"display": "Not at all"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": {
|
|
92
|
+
"Coding": {
|
|
93
|
+
"code": "LA6569-3",
|
|
94
|
+
"system": "http://loinc.org",
|
|
95
|
+
"display": "Several days"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"value": {
|
|
101
|
+
"Coding": {
|
|
102
|
+
"code": "LA6570-1",
|
|
103
|
+
"system": "http://loinc.org",
|
|
104
|
+
"display": "More than half the days"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": {
|
|
110
|
+
"Coding": {
|
|
111
|
+
"code": "LA6571-9",
|
|
112
|
+
"system": "http://loinc.org",
|
|
113
|
+
"display": "Nearly every day"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"text": "Not being able to stop or control worrying",
|
|
121
|
+
"type": "choice",
|
|
122
|
+
"linkId": "68509-9",
|
|
123
|
+
"required": true,
|
|
124
|
+
"itemControl": {
|
|
125
|
+
"coding": [
|
|
126
|
+
{
|
|
127
|
+
"code": "inline-choice"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"answerOption": [
|
|
132
|
+
{
|
|
133
|
+
"value": {
|
|
134
|
+
"Coding": {
|
|
135
|
+
"code": "LA6568-5",
|
|
136
|
+
"system": "http://loinc.org",
|
|
137
|
+
"display": "Not at all"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": {
|
|
143
|
+
"Coding": {
|
|
144
|
+
"code": "LA6569-3",
|
|
145
|
+
"system": "http://loinc.org",
|
|
146
|
+
"display": "Several days"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"value": {
|
|
152
|
+
"Coding": {
|
|
153
|
+
"code": "LA6570-1",
|
|
154
|
+
"system": "http://loinc.org",
|
|
155
|
+
"display": "More than half the days"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"value": {
|
|
161
|
+
"Coding": {
|
|
162
|
+
"code": "LA6571-9",
|
|
163
|
+
"system": "http://loinc.org",
|
|
164
|
+
"display": "Nearly every day"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"text": "Worrying too much about different things",
|
|
172
|
+
"type": "choice",
|
|
173
|
+
"linkId": "69733-4",
|
|
174
|
+
"required": true,
|
|
175
|
+
"itemControl": {
|
|
176
|
+
"coding": [
|
|
177
|
+
{
|
|
178
|
+
"code": "inline-choice"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"answerOption": [
|
|
183
|
+
{
|
|
184
|
+
"value": {
|
|
185
|
+
"Coding": {
|
|
186
|
+
"code": "LA6568-5",
|
|
187
|
+
"system": "http://loinc.org",
|
|
188
|
+
"display": "Not at all"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"value": {
|
|
194
|
+
"Coding": {
|
|
195
|
+
"code": "LA6569-3",
|
|
196
|
+
"system": "http://loinc.org",
|
|
197
|
+
"display": "Several days"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"value": {
|
|
203
|
+
"Coding": {
|
|
204
|
+
"code": "LA6570-1",
|
|
205
|
+
"system": "http://loinc.org",
|
|
206
|
+
"display": "More than half the days"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"value": {
|
|
212
|
+
"Coding": {
|
|
213
|
+
"code": "LA6571-9",
|
|
214
|
+
"system": "http://loinc.org",
|
|
215
|
+
"display": "Nearly every day"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"text": "Trouble relaxing",
|
|
223
|
+
"type": "choice",
|
|
224
|
+
"linkId": "69734-2",
|
|
225
|
+
"required": true,
|
|
226
|
+
"itemControl": {
|
|
227
|
+
"coding": [
|
|
228
|
+
{
|
|
229
|
+
"code": "inline-choice"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"answerOption": [
|
|
234
|
+
{
|
|
235
|
+
"value": {
|
|
236
|
+
"Coding": {
|
|
237
|
+
"code": "LA6568-5",
|
|
238
|
+
"system": "http://loinc.org",
|
|
239
|
+
"display": "Not at all"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"value": {
|
|
245
|
+
"Coding": {
|
|
246
|
+
"code": "LA6569-3",
|
|
247
|
+
"system": "http://loinc.org",
|
|
248
|
+
"display": "Several days"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"value": {
|
|
254
|
+
"Coding": {
|
|
255
|
+
"code": "LA6570-1",
|
|
256
|
+
"system": "http://loinc.org",
|
|
257
|
+
"display": "More than half the days"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"value": {
|
|
263
|
+
"Coding": {
|
|
264
|
+
"code": "LA6571-9",
|
|
265
|
+
"system": "http://loinc.org",
|
|
266
|
+
"display": "Nearly every day"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"text": "Being so restless that it is hard to sit still",
|
|
274
|
+
"type": "choice",
|
|
275
|
+
"linkId": "69735-9",
|
|
276
|
+
"required": true,
|
|
277
|
+
"itemControl": {
|
|
278
|
+
"coding": [
|
|
279
|
+
{
|
|
280
|
+
"code": "inline-choice"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
"answerOption": [
|
|
285
|
+
{
|
|
286
|
+
"value": {
|
|
287
|
+
"Coding": {
|
|
288
|
+
"code": "LA6568-5",
|
|
289
|
+
"system": "http://loinc.org",
|
|
290
|
+
"display": "Not at all"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"value": {
|
|
296
|
+
"Coding": {
|
|
297
|
+
"code": "LA6569-3",
|
|
298
|
+
"system": "http://loinc.org",
|
|
299
|
+
"display": "Several days"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"value": {
|
|
305
|
+
"Coding": {
|
|
306
|
+
"code": "LA6570-1",
|
|
307
|
+
"system": "http://loinc.org",
|
|
308
|
+
"display": "More than half the days"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"value": {
|
|
314
|
+
"Coding": {
|
|
315
|
+
"code": "LA6571-9",
|
|
316
|
+
"system": "http://loinc.org",
|
|
317
|
+
"display": "Nearly every day"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"text": "Becoming easily annoyed or irritable",
|
|
325
|
+
"type": "choice",
|
|
326
|
+
"linkId": "69689-8",
|
|
327
|
+
"required": true,
|
|
328
|
+
"itemControl": {
|
|
329
|
+
"coding": [
|
|
330
|
+
{
|
|
331
|
+
"code": "inline-choice"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"answerOption": [
|
|
336
|
+
{
|
|
337
|
+
"value": {
|
|
338
|
+
"Coding": {
|
|
339
|
+
"code": "LA6568-5",
|
|
340
|
+
"system": "http://loinc.org",
|
|
341
|
+
"display": "Not at all"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"value": {
|
|
347
|
+
"Coding": {
|
|
348
|
+
"code": "LA6569-3",
|
|
349
|
+
"system": "http://loinc.org",
|
|
350
|
+
"display": "Several days"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"value": {
|
|
356
|
+
"Coding": {
|
|
357
|
+
"code": "LA6570-1",
|
|
358
|
+
"system": "http://loinc.org",
|
|
359
|
+
"display": "More than half the days"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"value": {
|
|
365
|
+
"Coding": {
|
|
366
|
+
"code": "LA6571-9",
|
|
367
|
+
"system": "http://loinc.org",
|
|
368
|
+
"display": "Nearly every day"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"text": "Feeling afraid, as if something awful might happen",
|
|
376
|
+
"type": "choice",
|
|
377
|
+
"linkId": "69736-7",
|
|
378
|
+
"required": true,
|
|
379
|
+
"itemControl": {
|
|
380
|
+
"coding": [
|
|
381
|
+
{
|
|
382
|
+
"code": "inline-choice"
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
"answerOption": [
|
|
387
|
+
{
|
|
388
|
+
"value": {
|
|
389
|
+
"Coding": {
|
|
390
|
+
"code": "LA6568-5",
|
|
391
|
+
"system": "http://loinc.org",
|
|
392
|
+
"display": "Not at all"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"value": {
|
|
398
|
+
"Coding": {
|
|
399
|
+
"code": "LA6569-3",
|
|
400
|
+
"system": "http://loinc.org",
|
|
401
|
+
"display": "Several days"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"value": {
|
|
407
|
+
"Coding": {
|
|
408
|
+
"code": "LA6570-1",
|
|
409
|
+
"system": "http://loinc.org",
|
|
410
|
+
"display": "More than half the days"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"value": {
|
|
416
|
+
"Coding": {
|
|
417
|
+
"code": "LA6571-9",
|
|
418
|
+
"system": "http://loinc.org",
|
|
419
|
+
"display": "Nearly every day"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"text": "GAD-7 Anxiety Severity Score",
|
|
427
|
+
"type": "integer",
|
|
428
|
+
"linkId": "anxiety-score",
|
|
429
|
+
"readOnly": true,
|
|
430
|
+
"required": true,
|
|
431
|
+
"itemControl": {
|
|
432
|
+
"coding": [
|
|
433
|
+
{
|
|
434
|
+
"code": "anxiety-score"
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
"calculatedExpression": {
|
|
439
|
+
"language": "text/fhirpath",
|
|
440
|
+
"expression": "%QuestionnaireResponse.item.item.answer.children().children().where(code='LA6569-3').count() + %QuestionnaireResponse.item.item.answer.children().children().where(code='LA6570-1').count() * 2 + %QuestionnaireResponse.item.item.answer.children().children().where(code='LA6571-9').count() * 3"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"text": "Over the last two weeks, how often have you been bothered by the following problems?",
|
|
445
|
+
"type": "group",
|
|
446
|
+
"linkId": "gad-7"
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
"mapping": [
|
|
450
|
+
{
|
|
451
|
+
"id": "gad-7-extract",
|
|
452
|
+
"resourceType": "Mapping"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"resourceType": "Questionnaire",
|
|
456
|
+
"status": "active",
|
|
457
|
+
"id": "gad-7",
|
|
458
|
+
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/gad7"
|
|
459
|
+
}
|