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,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"authored": "2023-04-06T02:11:08Z",
|
|
3
|
+
"encounter": {
|
|
4
|
+
"id": "e133b999-9e91-4ebd-967e-450bad770682",
|
|
5
|
+
"resourceType": "Encounter"
|
|
6
|
+
},
|
|
7
|
+
"id": "d575fe05-9db2-4df8-b131-48bb5d27509d",
|
|
8
|
+
"item": [
|
|
9
|
+
{
|
|
10
|
+
"answer": [
|
|
11
|
+
{
|
|
12
|
+
"value": {
|
|
13
|
+
"boolean": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"linkId": "provider-viewed-confirmation"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"item": [
|
|
21
|
+
{
|
|
22
|
+
"answer": [],
|
|
23
|
+
"linkId": "general"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"answer": [
|
|
27
|
+
{
|
|
28
|
+
"value": {
|
|
29
|
+
"boolean": true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"linkId": "heent"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"answer": [
|
|
37
|
+
{
|
|
38
|
+
"value": {
|
|
39
|
+
"string": "heent"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"linkId": "heent-comment"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"answer": [],
|
|
47
|
+
"linkId": "cardiovascular"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"answer": [],
|
|
51
|
+
"linkId": "respiratory"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"answer": [
|
|
55
|
+
{
|
|
56
|
+
"value": {
|
|
57
|
+
"boolean": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"linkId": "gastrointestinal"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"answer": [
|
|
65
|
+
{
|
|
66
|
+
"value": {
|
|
67
|
+
"string": "gastrointestinal"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"linkId": "gastrointestinal-comment"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"answer": [],
|
|
75
|
+
"linkId": "genitourinary"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"answer": [],
|
|
79
|
+
"linkId": "musculoskeletal"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"answer": [],
|
|
83
|
+
"linkId": "neurologic"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"answer": [
|
|
87
|
+
{
|
|
88
|
+
"value": {
|
|
89
|
+
"boolean": true
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"linkId": "psychiatric"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"answer": [
|
|
97
|
+
{
|
|
98
|
+
"value": {
|
|
99
|
+
"string": "psychiatric"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"linkId": "psychiatric-comment"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"answer": [],
|
|
107
|
+
"linkId": "skin"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"answer": [],
|
|
111
|
+
"linkId": "other"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"linkId": "abnormal-systems-group"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"meta": {
|
|
118
|
+
"createdAt": "2023-04-06T02:10:37.718483Z",
|
|
119
|
+
"lastUpdated": "2023-04-06T02:11:09.776717Z",
|
|
120
|
+
"versionId": "20480"
|
|
121
|
+
},
|
|
122
|
+
"questionnaire": "review-of-systems",
|
|
123
|
+
"resourceType": "QuestionnaireResponse",
|
|
124
|
+
"source": {
|
|
125
|
+
"id": "683e382b-fed4-433e-9b6d-a847a7953bc0",
|
|
126
|
+
"resourceType": "Patient"
|
|
127
|
+
},
|
|
128
|
+
"status": "completed"
|
|
129
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"questionnaire": "vitals",
|
|
3
|
+
"meta": {
|
|
4
|
+
"lastUpdated": "2023-04-06T02:20:25.903562Z",
|
|
5
|
+
"createdAt": "2023-04-06T02:19:51.712237Z",
|
|
6
|
+
"versionId": "20492"
|
|
7
|
+
},
|
|
8
|
+
"encounter": {
|
|
9
|
+
"id": "e133b999-9e91-4ebd-967e-450bad770682",
|
|
10
|
+
"resourceType": "Encounter"
|
|
11
|
+
},
|
|
12
|
+
"item": [
|
|
13
|
+
{
|
|
14
|
+
"answer": [
|
|
15
|
+
{
|
|
16
|
+
"value": {
|
|
17
|
+
"string": "683e382b-fed4-433e-9b6d-a847a7953bc0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"linkId": "patientId"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"answer": [
|
|
25
|
+
{
|
|
26
|
+
"value": {
|
|
27
|
+
"string": "Emily Nguyen"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"linkId": "patientName"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"answer": [
|
|
35
|
+
{
|
|
36
|
+
"value": {
|
|
37
|
+
"integer": 180
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"linkId": "height"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"answer": [
|
|
45
|
+
{
|
|
46
|
+
"value": {
|
|
47
|
+
"integer": 80
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"linkId": "weight"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"answer": [
|
|
55
|
+
{
|
|
56
|
+
"value": {
|
|
57
|
+
"integer": 36
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"linkId": "temperature"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"answer": [
|
|
65
|
+
{
|
|
66
|
+
"value": {
|
|
67
|
+
"integer": 56
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"linkId": "oxygen-saturation"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"answer": [
|
|
75
|
+
{
|
|
76
|
+
"value": {
|
|
77
|
+
"integer": 100
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"linkId": "pulse-rate"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"answer": [
|
|
85
|
+
{
|
|
86
|
+
"value": {
|
|
87
|
+
"integer": 50
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"linkId": "respiratory-rate"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"item": [
|
|
95
|
+
{
|
|
96
|
+
"item": [
|
|
97
|
+
{
|
|
98
|
+
"answer": [
|
|
99
|
+
{
|
|
100
|
+
"value": {
|
|
101
|
+
"integer": 45
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"linkId": "blood-pressure-systolic"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"answer": [
|
|
109
|
+
{
|
|
110
|
+
"value": {
|
|
111
|
+
"integer": 67
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"linkId": "blood-pressure-diastolic"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"linkId": "blood-pressure-systolic-diastolic"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"answer": [
|
|
122
|
+
{
|
|
123
|
+
"value": {
|
|
124
|
+
"Coding": {
|
|
125
|
+
"code": "sitting",
|
|
126
|
+
"display": "Sitting"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"linkId": "blood-pressure-positions"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"answer": [
|
|
135
|
+
{
|
|
136
|
+
"value": {
|
|
137
|
+
"Coding": {
|
|
138
|
+
"code": "biceps-left",
|
|
139
|
+
"display": "Biceps left"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"linkId": "blood-pressure-arm"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"linkId": "blood-pressure"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"answer": [
|
|
151
|
+
{
|
|
152
|
+
"value": {
|
|
153
|
+
"integer": 24.69
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"linkId": "bmi"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"resourceType": "QuestionnaireResponse",
|
|
161
|
+
"source": {
|
|
162
|
+
"id": "683e382b-fed4-433e-9b6d-a847a7953bc0",
|
|
163
|
+
"resourceType": "Patient"
|
|
164
|
+
},
|
|
165
|
+
"status": "completed",
|
|
166
|
+
"id": "a583cc11-99c6-4719-acab-cb3fb72f5078",
|
|
167
|
+
"authored": "2023-04-06T02:20:25Z"
|
|
168
|
+
}
|
package/src/converter/__tests__/resources/questionnaire_response_fhir/allergies_inprogress.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"questionnaire": "allergies",
|
|
3
|
+
"meta": {
|
|
4
|
+
"lastUpdated": "2023-04-06T02:48:18.132716Z",
|
|
5
|
+
"versionId": "20530",
|
|
6
|
+
"extension": [
|
|
7
|
+
{
|
|
8
|
+
"url": "ex:createdAt",
|
|
9
|
+
"valueInstant": "2023-04-06T02:48:18.132716Z"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"encounter": {
|
|
14
|
+
"reference": "Encounter/e133b999-9e91-4ebd-967e-450bad770682"
|
|
15
|
+
},
|
|
16
|
+
"item": [
|
|
17
|
+
{
|
|
18
|
+
"answer": [
|
|
19
|
+
{
|
|
20
|
+
"valueDateTime": "2023-04-06T02:48:16+00:00"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"linkId": "dateTime"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"answer": [
|
|
27
|
+
{
|
|
28
|
+
"valueString": "683e382b-fed4-433e-9b6d-a847a7953bc0"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"linkId": "patientId"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"answer": [
|
|
35
|
+
{
|
|
36
|
+
"valueString": "Emily Nguyen"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"linkId": "patientName"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"answer": [
|
|
43
|
+
{
|
|
44
|
+
"valueCoding": {
|
|
45
|
+
"code": "active",
|
|
46
|
+
"system": "http://terminology.hl7.org/ValueSet/allergyintolerance-clinical",
|
|
47
|
+
"display": "Active"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"linkId": "status"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"answer": [],
|
|
55
|
+
"linkId": "type"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"answer": [],
|
|
59
|
+
"linkId": "reaction"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"answer": [],
|
|
63
|
+
"linkId": "notes"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"resourceType": "QuestionnaireResponse",
|
|
67
|
+
"source": {
|
|
68
|
+
"reference": "Patient/683e382b-fed4-433e-9b6d-a847a7953bc0"
|
|
69
|
+
},
|
|
70
|
+
"status": "in-progress",
|
|
71
|
+
"id": "f0a0b4cf-ff0e-47e2-814d-3327a138653e",
|
|
72
|
+
"authored": "2023-04-06T02:48:17.734Z"
|
|
73
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"questionnaire": "cardiology-example",
|
|
3
|
+
"meta": {
|
|
4
|
+
"lastUpdated": "2023-04-06T02:43:40.015349Z",
|
|
5
|
+
"versionId": "20529",
|
|
6
|
+
"extension": [
|
|
7
|
+
{
|
|
8
|
+
"url": "ex:createdAt",
|
|
9
|
+
"valueInstant": "2023-04-06T02:43:16.150751Z"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"encounter": {
|
|
14
|
+
"reference": "Encounter/e133b999-9e91-4ebd-967e-450bad770682"
|
|
15
|
+
},
|
|
16
|
+
"item": [
|
|
17
|
+
{
|
|
18
|
+
"answer": [
|
|
19
|
+
{
|
|
20
|
+
"valueString": "123"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"linkId": "complaints"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"answer": [
|
|
27
|
+
{
|
|
28
|
+
"valueString": "123"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"linkId": "examination-objective"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"answer": [
|
|
35
|
+
{
|
|
36
|
+
"valueString": "321"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"linkId": "observations-data"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"answer": [
|
|
43
|
+
{
|
|
44
|
+
"valueString": "321"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"linkId": "lab-data"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"item": [
|
|
51
|
+
{
|
|
52
|
+
"item": [
|
|
53
|
+
{
|
|
54
|
+
"answer": [
|
|
55
|
+
{
|
|
56
|
+
"valueCoding": {
|
|
57
|
+
"code": "BA40",
|
|
58
|
+
"system": "http://id.who.int/icd/release/11/mms",
|
|
59
|
+
"display": "BA40 Angina pectoris"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"linkId": "ds-icd-11"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"answer": [
|
|
67
|
+
{
|
|
68
|
+
"valueString": "desc 123"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"linkId": "ds-text"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"linkId": "ds-main"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"linkId": "group-ds"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"resourceType": "QuestionnaireResponse",
|
|
81
|
+
"source": {
|
|
82
|
+
"reference": "Patient/683e382b-fed4-433e-9b6d-a847a7953bc0"
|
|
83
|
+
},
|
|
84
|
+
"status": "completed",
|
|
85
|
+
"id": "16917bdf-309f-4cd7-9a8a-56a928dbedea",
|
|
86
|
+
"authored": "2023-04-06T02:43:39Z"
|
|
87
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"item": [
|
|
3
|
+
{
|
|
4
|
+
"answer": [
|
|
5
|
+
{
|
|
6
|
+
"valueCoding": {
|
|
7
|
+
"code": "39579001",
|
|
8
|
+
"system": "http://snomed.ct",
|
|
9
|
+
"display": "Anaphylaxis"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"valueCoding": {
|
|
14
|
+
"code": "247472004",
|
|
15
|
+
"system": "http://snomed.ct",
|
|
16
|
+
"display": "Hives (Wheal)"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"valueCoding": {
|
|
21
|
+
"code": "422587007",
|
|
22
|
+
"system": "http://snomed.ct",
|
|
23
|
+
"display": "Nausea"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"linkId": "reaction"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"source": {
|
|
31
|
+
"reference": "Patient/test-patient"
|
|
32
|
+
},
|
|
33
|
+
"status": "completed",
|
|
34
|
+
"authored": "2023-04-14T09:36:35Z",
|
|
35
|
+
"questionnaire": "allergies",
|
|
36
|
+
"id": "test",
|
|
37
|
+
"resourceType": "QuestionnaireResponse",
|
|
38
|
+
"meta": {
|
|
39
|
+
"extension": [
|
|
40
|
+
{
|
|
41
|
+
"url": "ex:createdAt",
|
|
42
|
+
"valueInstant": "2023-04-14T09:36:35.349085Z"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"questionnaire": "gad-7",
|
|
3
|
+
"meta": {
|
|
4
|
+
"lastUpdated": "2023-04-06T01:29:05.681893Z",
|
|
5
|
+
"versionId": "20442",
|
|
6
|
+
"extension": [
|
|
7
|
+
{
|
|
8
|
+
"url": "ex:createdAt",
|
|
9
|
+
"valueInstant": "2023-04-06T01:28:53.793848Z"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"encounter": {
|
|
14
|
+
"reference": "Encounter/e133b999-9e91-4ebd-967e-450bad770682"
|
|
15
|
+
},
|
|
16
|
+
"item": [
|
|
17
|
+
{
|
|
18
|
+
"answer": [
|
|
19
|
+
{
|
|
20
|
+
"valueDateTime": "2023-04-06T01:28:52+00:00"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"linkId": "dateTime"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"answer": [
|
|
27
|
+
{
|
|
28
|
+
"valueString": "683e382b-fed4-433e-9b6d-a847a7953bc0"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"linkId": "patientId"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"answer": [
|
|
35
|
+
{
|
|
36
|
+
"valueString": "Emily Nguyen"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"linkId": "patientName"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"item": [
|
|
43
|
+
{
|
|
44
|
+
"answer": [
|
|
45
|
+
{
|
|
46
|
+
"valueCoding": {
|
|
47
|
+
"code": "LA6569-3",
|
|
48
|
+
"system": "http://loinc.org",
|
|
49
|
+
"display": "Several days"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"linkId": "69725-0"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"answer": [
|
|
57
|
+
{
|
|
58
|
+
"valueCoding": {
|
|
59
|
+
"code": "LA6570-1",
|
|
60
|
+
"system": "http://loinc.org",
|
|
61
|
+
"display": "More than half the days"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"linkId": "68509-9"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"answer": [
|
|
69
|
+
{
|
|
70
|
+
"valueCoding": {
|
|
71
|
+
"code": "LA6568-5",
|
|
72
|
+
"system": "http://loinc.org",
|
|
73
|
+
"display": "Not at all"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"linkId": "69733-4"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"answer": [
|
|
81
|
+
{
|
|
82
|
+
"valueCoding": {
|
|
83
|
+
"code": "LA6571-9",
|
|
84
|
+
"system": "http://loinc.org",
|
|
85
|
+
"display": "Nearly every day"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"linkId": "69734-2"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"answer": [
|
|
93
|
+
{
|
|
94
|
+
"valueCoding": {
|
|
95
|
+
"code": "LA6570-1",
|
|
96
|
+
"system": "http://loinc.org",
|
|
97
|
+
"display": "More than half the days"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"linkId": "69735-9"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"answer": [
|
|
105
|
+
{
|
|
106
|
+
"valueCoding": {
|
|
107
|
+
"code": "LA6569-3",
|
|
108
|
+
"system": "http://loinc.org",
|
|
109
|
+
"display": "Several days"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"linkId": "69689-8"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"answer": [
|
|
117
|
+
{
|
|
118
|
+
"valueCoding": {
|
|
119
|
+
"code": "LA6568-5",
|
|
120
|
+
"system": "http://loinc.org",
|
|
121
|
+
"display": "Not at all"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"linkId": "69736-7"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"answer": [
|
|
129
|
+
{
|
|
130
|
+
"valueInteger": 9
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"linkId": "anxiety-score"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"linkId": "gad-7"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"resourceType": "QuestionnaireResponse",
|
|
140
|
+
"source": {
|
|
141
|
+
"reference": "Patient/683e382b-fed4-433e-9b6d-a847a7953bc0"
|
|
142
|
+
},
|
|
143
|
+
"status": "completed",
|
|
144
|
+
"id": "a00b8309-f74f-462c-a7e4-64852d5bf707",
|
|
145
|
+
"authored": "2023-04-06T01:29:05Z"
|
|
146
|
+
}
|