sdc-qrf 0.2.0 → 0.3.1
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 +12 -12
- package/lib/components.js.map +1 -1
- package/lib/context.d.ts +0 -1
- package/lib/converter/extensions.d.ts +35 -0
- package/lib/converter/extensions.js +128 -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 +9 -2
- package/lib/utils.js.map +1 -1
- package/package.json +4 -5
- package/src/components.tsx +12 -12
- 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 +149 -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 +13 -2
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
"versionId": "694",
|
|
12
|
+
"extension": [
|
|
13
|
+
{
|
|
14
|
+
"url": "ex:createdAt",
|
|
15
|
+
"valueInstant": "2023-04-05T05:22:35.752466Z"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"name": "Immunization",
|
|
20
|
+
"item": [
|
|
21
|
+
{
|
|
22
|
+
"text": "DateTime",
|
|
23
|
+
"type": "dateTime",
|
|
24
|
+
"extension": [
|
|
25
|
+
{
|
|
26
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
27
|
+
"valueBoolean": true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
31
|
+
"valueExpression": {
|
|
32
|
+
"language": "text/fhirpath",
|
|
33
|
+
"expression": "now()"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"linkId": "dateTime"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"text": "EncounterId",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"extension": [
|
|
43
|
+
{
|
|
44
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
45
|
+
"valueBoolean": true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
49
|
+
"valueExpression": {
|
|
50
|
+
"language": "text/fhirpath",
|
|
51
|
+
"expression": "%Encounter.id"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"linkId": "encounterId"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"text": "PatientId",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"extension": [
|
|
61
|
+
{
|
|
62
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
63
|
+
"valueBoolean": true
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
67
|
+
"valueExpression": {
|
|
68
|
+
"language": "text/fhirpath",
|
|
69
|
+
"expression": "%Patient.id"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"linkId": "patientId",
|
|
74
|
+
"required": true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"text": "PatientName",
|
|
78
|
+
"type": "string",
|
|
79
|
+
"extension": [
|
|
80
|
+
{
|
|
81
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
82
|
+
"valueBoolean": true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
86
|
+
"valueExpression": {
|
|
87
|
+
"language": "text/fhirpath",
|
|
88
|
+
"expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"linkId": "patientName"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"text": "Vaccine",
|
|
96
|
+
"type": "choice",
|
|
97
|
+
"linkId": "vaccine-code",
|
|
98
|
+
"required": true,
|
|
99
|
+
"answerOption": [
|
|
100
|
+
{
|
|
101
|
+
"valueCoding": {
|
|
102
|
+
"code": "143",
|
|
103
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
104
|
+
"display": "Adenovirus types 4 and 7"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"valueCoding": {
|
|
109
|
+
"code": "24",
|
|
110
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
111
|
+
"display": "anthrax"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"valueCoding": {
|
|
116
|
+
"code": "173",
|
|
117
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
118
|
+
"display": "cholera, BivWC"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"valueCoding": {
|
|
123
|
+
"code": "56",
|
|
124
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
125
|
+
"display": "dengue fever"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"valueCoding": {
|
|
130
|
+
"code": "12",
|
|
131
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
132
|
+
"display": "diphtheria antitoxin"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"valueCoding": {
|
|
137
|
+
"code": "52",
|
|
138
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
139
|
+
"display": "Hep A, adult"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"valueCoding": {
|
|
144
|
+
"code": "58",
|
|
145
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
146
|
+
"display": "Hep C"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"valueCoding": {
|
|
151
|
+
"code": "60",
|
|
152
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
153
|
+
"display": "herpes simplex 2"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"valueCoding": {
|
|
158
|
+
"code": "61",
|
|
159
|
+
"system": "http://hl7.org/fhir/sid/cvx",
|
|
160
|
+
"display": "HIV"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"text": "Date of injection",
|
|
167
|
+
"type": "date",
|
|
168
|
+
"linkId": "date-of-injection"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"resourceType": "Questionnaire",
|
|
172
|
+
"extension": [
|
|
173
|
+
{
|
|
174
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
|
|
175
|
+
"extension": [
|
|
176
|
+
{
|
|
177
|
+
"url": "name",
|
|
178
|
+
"valueCoding": {
|
|
179
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
|
|
180
|
+
"code": "Patient"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"url": "type",
|
|
185
|
+
"valueCode": "Patient"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
|
|
191
|
+
"extension": [
|
|
192
|
+
{
|
|
193
|
+
"url": "name",
|
|
194
|
+
"valueCoding": {
|
|
195
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
|
|
196
|
+
"code": "Author"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"url": "type",
|
|
201
|
+
"valueCode": "Resource"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"url": "http://beda.software/fhir-extensions/questionnaire-mapper",
|
|
207
|
+
"valueReference": {
|
|
208
|
+
"reference": "Mapping/immunization-extract"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"status": "active",
|
|
213
|
+
"id": "immunization",
|
|
214
|
+
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/immunization"
|
|
215
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"subjectType": ["Encounter", "Patient"],
|
|
3
|
+
"meta": {
|
|
4
|
+
"profile": ["https://beda.software/beda-emr-questionnaire"],
|
|
5
|
+
"lastUpdated": "2023-04-10T03:43:34.792167Z",
|
|
6
|
+
"versionId": "694",
|
|
7
|
+
"extension": [
|
|
8
|
+
{
|
|
9
|
+
"url": "ex:createdAt",
|
|
10
|
+
"valueInstant": "2023-04-05T05:22:35.752466Z"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"name": "Medication",
|
|
15
|
+
"item": [
|
|
16
|
+
{
|
|
17
|
+
"text": "DateTime",
|
|
18
|
+
"type": "dateTime",
|
|
19
|
+
"extension": [
|
|
20
|
+
{
|
|
21
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
22
|
+
"valueBoolean": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
26
|
+
"valueExpression": {
|
|
27
|
+
"language": "text/fhirpath",
|
|
28
|
+
"expression": "now()"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"linkId": "dateTime"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"text": "EncounterId",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"extension": [
|
|
38
|
+
{
|
|
39
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
40
|
+
"valueBoolean": true
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
44
|
+
"valueExpression": {
|
|
45
|
+
"language": "text/fhirpath",
|
|
46
|
+
"expression": "%Encounter.id"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"linkId": "encounterId"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"text": "PatientId",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"extension": [
|
|
56
|
+
{
|
|
57
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
58
|
+
"valueBoolean": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
62
|
+
"valueExpression": {
|
|
63
|
+
"language": "text/fhirpath",
|
|
64
|
+
"expression": "%Patient.id"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"linkId": "patientId",
|
|
69
|
+
"required": true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"text": "PatientName",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"extension": [
|
|
75
|
+
{
|
|
76
|
+
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
|
|
77
|
+
"valueBoolean": true
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
|
|
81
|
+
"valueExpression": {
|
|
82
|
+
"language": "text/fhirpath",
|
|
83
|
+
"expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"linkId": "patientName"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"text": "Medication name",
|
|
91
|
+
"type": "choice",
|
|
92
|
+
"linkId": "medication",
|
|
93
|
+
"required": true,
|
|
94
|
+
"answerOption": [
|
|
95
|
+
{
|
|
96
|
+
"valueCoding": {
|
|
97
|
+
"code": "261000",
|
|
98
|
+
"system": "http://snomed.info/sct",
|
|
99
|
+
"display": "Codeine phosphate"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"valueCoding": {
|
|
104
|
+
"code": "2336001",
|
|
105
|
+
"system": "http://snomed.info/sct",
|
|
106
|
+
"display": "Fibrinogen Tokyo II"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"valueCoding": {
|
|
111
|
+
"code": "363000",
|
|
112
|
+
"system": "http://snomed.info/sct",
|
|
113
|
+
"display": "Fibrinogen San Juan"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"valueCoding": {
|
|
118
|
+
"code": "519005",
|
|
119
|
+
"system": "http://snomed.info/sct",
|
|
120
|
+
"display": "Free protein S"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"valueCoding": {
|
|
125
|
+
"code": "585007",
|
|
126
|
+
"system": "http://snomed.info/sct",
|
|
127
|
+
"display": "SP - Substance P"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"valueCoding": {
|
|
132
|
+
"code": "693002",
|
|
133
|
+
"system": "http://snomed.info/sct",
|
|
134
|
+
"display": "Trichothecene"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"valueCoding": {
|
|
139
|
+
"code": "698006",
|
|
140
|
+
"system": "http://snomed.info/sct",
|
|
141
|
+
"display": "Erythromycin lactobionate"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"valueCoding": {
|
|
146
|
+
"code": "699003",
|
|
147
|
+
"system": "http://snomed.info/sct",
|
|
148
|
+
"display": "Coal tar extract"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"valueCoding": {
|
|
153
|
+
"code": "747006",
|
|
154
|
+
"system": "http://snomed.info/sct",
|
|
155
|
+
"display": "Oxamniquine"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"text": "Dosage",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"linkId": "dosage",
|
|
164
|
+
"required": true
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"text": "Start Date",
|
|
168
|
+
"type": "date",
|
|
169
|
+
"linkId": "start-date"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"text": "Stop Date",
|
|
173
|
+
"type": "date",
|
|
174
|
+
"linkId": "stop-date"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"text": "Notes",
|
|
178
|
+
"type": "string",
|
|
179
|
+
"linkId": "notes"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"resourceType": "Questionnaire",
|
|
183
|
+
"extension": [
|
|
184
|
+
{
|
|
185
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
|
|
186
|
+
"extension": [
|
|
187
|
+
{
|
|
188
|
+
"url": "name",
|
|
189
|
+
"valueCoding": {
|
|
190
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
|
|
191
|
+
"code": "Patient"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"url": "type",
|
|
196
|
+
"valueCode": "Patient"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
|
|
202
|
+
"extension": [
|
|
203
|
+
{
|
|
204
|
+
"url": "name",
|
|
205
|
+
"valueCoding": {
|
|
206
|
+
"system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
|
|
207
|
+
"code": "Author"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"url": "type",
|
|
212
|
+
"valueCode": "Resource"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"url": "http://beda.software/fhir-extensions/questionnaire-mapper",
|
|
218
|
+
"valueReference": {
|
|
219
|
+
"reference": "Mapping/medication-statement-extract"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"status": "active",
|
|
224
|
+
"id": "medication",
|
|
225
|
+
"url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/medication"
|
|
226
|
+
}
|