sdc-qrf 0.1.3 → 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.
Files changed (176) hide show
  1. package/lib/components.d.ts +3 -3
  2. package/lib/components.js +12 -12
  3. package/lib/components.js.map +1 -1
  4. package/lib/context.d.ts +0 -1
  5. package/lib/converter/extensions.d.ts +35 -0
  6. package/lib/converter/extensions.js +128 -0
  7. package/lib/converter/extensions.js.map +1 -0
  8. package/lib/converter/fceToFhir/index.d.ts +4 -0
  9. package/lib/converter/fceToFhir/index.js +15 -0
  10. package/lib/converter/fceToFhir/index.js.map +1 -0
  11. package/lib/converter/fceToFhir/questionnaire/index.d.ts +3 -0
  12. package/lib/converter/fceToFhir/questionnaire/index.js +17 -0
  13. package/lib/converter/fceToFhir/questionnaire/index.js.map +1 -0
  14. package/lib/converter/fceToFhir/questionnaire/processExtensions.d.ts +3 -0
  15. package/lib/converter/fceToFhir/questionnaire/processExtensions.js +61 -0
  16. package/lib/converter/fceToFhir/questionnaire/processExtensions.js.map +1 -0
  17. package/lib/converter/fceToFhir/questionnaire/processItems.d.ts +3 -0
  18. package/lib/converter/fceToFhir/questionnaire/processItems.js +144 -0
  19. package/lib/converter/fceToFhir/questionnaire/processItems.js.map +1 -0
  20. package/lib/converter/fceToFhir/questionnaire/processMeta.d.ts +3 -0
  21. package/lib/converter/fceToFhir/questionnaire/processMeta.js +20 -0
  22. package/lib/converter/fceToFhir/questionnaire/processMeta.js.map +1 -0
  23. package/lib/converter/fceToFhir/questionnaireResponse/index.d.ts +3 -0
  24. package/lib/converter/fceToFhir/questionnaireResponse/index.js +20 -0
  25. package/lib/converter/fceToFhir/questionnaireResponse/index.js.map +1 -0
  26. package/lib/converter/fceToFhir/questionnaireResponse/processAnswers.d.ts +2 -0
  27. package/lib/converter/fceToFhir/questionnaireResponse/processAnswers.js +48 -0
  28. package/lib/converter/fceToFhir/questionnaireResponse/processAnswers.js.map +1 -0
  29. package/lib/converter/fceToFhir/questionnaireResponse/processMeta.d.ts +3 -0
  30. package/lib/converter/fceToFhir/questionnaireResponse/processMeta.js +18 -0
  31. package/lib/converter/fceToFhir/questionnaireResponse/processMeta.js.map +1 -0
  32. package/lib/converter/fceToFhir/questionnaireResponse/processReference.d.ts +3 -0
  33. package/lib/converter/fceToFhir/questionnaireResponse/processReference.js +19 -0
  34. package/lib/converter/fceToFhir/questionnaireResponse/processReference.js.map +1 -0
  35. package/lib/converter/fhirToFce/index.d.ts +4 -0
  36. package/lib/converter/fhirToFce/index.js +15 -0
  37. package/lib/converter/fhirToFce/index.js.map +1 -0
  38. package/lib/converter/fhirToFce/questionnaire/index.d.ts +3 -0
  39. package/lib/converter/fhirToFce/questionnaire/index.js +21 -0
  40. package/lib/converter/fhirToFce/questionnaire/index.js.map +1 -0
  41. package/lib/converter/fhirToFce/questionnaire/processExtensions.d.ts +8 -0
  42. package/lib/converter/fhirToFce/questionnaire/processExtensions.js +89 -0
  43. package/lib/converter/fhirToFce/questionnaire/processExtensions.js.map +1 -0
  44. package/lib/converter/fhirToFce/questionnaire/processItems.d.ts +3 -0
  45. package/lib/converter/fhirToFce/questionnaire/processItems.js +131 -0
  46. package/lib/converter/fhirToFce/questionnaire/processItems.js.map +1 -0
  47. package/lib/converter/fhirToFce/questionnaire/processMeta.d.ts +32 -0
  48. package/lib/converter/fhirToFce/questionnaire/processMeta.js +14 -0
  49. package/lib/converter/fhirToFce/questionnaire/processMeta.js.map +1 -0
  50. package/lib/converter/fhirToFce/questionnaireResponse/index.d.ts +3 -0
  51. package/lib/converter/fhirToFce/questionnaireResponse/index.js +20 -0
  52. package/lib/converter/fhirToFce/questionnaireResponse/index.js.map +1 -0
  53. package/lib/converter/fhirToFce/questionnaireResponse/processAnswers.d.ts +2 -0
  54. package/lib/converter/fhirToFce/questionnaireResponse/processAnswers.js +46 -0
  55. package/lib/converter/fhirToFce/questionnaireResponse/processAnswers.js.map +1 -0
  56. package/lib/converter/fhirToFce/questionnaireResponse/processMeta.d.ts +3 -0
  57. package/lib/converter/fhirToFce/questionnaireResponse/processMeta.js +15 -0
  58. package/lib/converter/fhirToFce/questionnaireResponse/processMeta.js.map +1 -0
  59. package/lib/converter/fhirToFce/questionnaireResponse/processReference.d.ts +3 -0
  60. package/lib/converter/fhirToFce/questionnaireResponse/processReference.js +18 -0
  61. package/lib/converter/fhirToFce/questionnaireResponse/processReference.js.map +1 -0
  62. package/lib/converter/fhirToFce/utils.d.ts +3 -0
  63. package/lib/converter/fhirToFce/utils.js +37 -0
  64. package/lib/converter/fhirToFce/utils.js.map +1 -0
  65. package/lib/converter/index.d.ts +12 -0
  66. package/lib/converter/index.js +84 -0
  67. package/lib/converter/index.js.map +1 -0
  68. package/lib/index.d.ts +1 -0
  69. package/lib/index.js +1 -0
  70. package/lib/index.js.map +1 -1
  71. package/lib/setupTests.d.ts +1 -0
  72. package/lib/setupTests.js +4 -0
  73. package/lib/setupTests.js.map +1 -0
  74. package/lib/types.d.ts +10 -10
  75. package/lib/utils.d.ts +4 -1
  76. package/lib/utils.js +9 -2
  77. package/lib/utils.js.map +1 -1
  78. package/package.json +4 -5
  79. package/src/components.tsx +12 -12
  80. package/src/converter/__tests__/fce.test.ts +224 -0
  81. package/src/converter/__tests__/resources/questionnaire_fce/allergies.json +405 -0
  82. package/src/converter/__tests__/resources/questionnaire_fce/beverages.json +72 -0
  83. package/src/converter/__tests__/resources/questionnaire_fce/choice_answer_option.json +53 -0
  84. package/src/converter/__tests__/resources/questionnaire_fce/consent.json +86 -0
  85. package/src/converter/__tests__/resources/questionnaire_fce/enable_when.json +103 -0
  86. package/src/converter/__tests__/resources/questionnaire_fce/encounter_create.json +126 -0
  87. package/src/converter/__tests__/resources/questionnaire_fce/gad_7.json +459 -0
  88. package/src/converter/__tests__/resources/questionnaire_fce/immunization.json +182 -0
  89. package/src/converter/__tests__/resources/questionnaire_fce/medication.json +189 -0
  90. package/src/converter/__tests__/resources/questionnaire_fce/multiple_type_launch_context.json +406 -0
  91. package/src/converter/__tests__/resources/questionnaire_fce/patient_create.json +84 -0
  92. package/src/converter/__tests__/resources/questionnaire_fce/patient_edit.json +125 -0
  93. package/src/converter/__tests__/resources/questionnaire_fce/phq_2_phq_9.json +552 -0
  94. package/src/converter/__tests__/resources/questionnaire_fce/physicalexam.json +385 -0
  95. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create.json +90 -0
  96. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create_structure_map.json +91 -0
  97. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_edit.json +144 -0
  98. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_role_create.json +37 -0
  99. package/src/converter/__tests__/resources/questionnaire_fce/public_appointment.json +91 -0
  100. package/src/converter/__tests__/resources/questionnaire_fce/review_of_systems.json +389 -0
  101. package/src/converter/__tests__/resources/questionnaire_fce/source_queries.json +34 -0
  102. package/src/converter/__tests__/resources/questionnaire_fce/vitals.json +234 -0
  103. package/src/converter/__tests__/resources/questionnaire_fhir/allergies.json +433 -0
  104. package/src/converter/__tests__/resources/questionnaire_fhir/beverages.json +99 -0
  105. package/src/converter/__tests__/resources/questionnaire_fhir/choice_answer_option.json +49 -0
  106. package/src/converter/__tests__/resources/questionnaire_fhir/consent.json +119 -0
  107. package/src/converter/__tests__/resources/questionnaire_fhir/enable_when.json +87 -0
  108. package/src/converter/__tests__/resources/questionnaire_fhir/encounter_create.json +171 -0
  109. package/src/converter/__tests__/resources/questionnaire_fhir/gad_7.json +489 -0
  110. package/src/converter/__tests__/resources/questionnaire_fhir/immunization.json +215 -0
  111. package/src/converter/__tests__/resources/questionnaire_fhir/medication.json +226 -0
  112. package/src/converter/__tests__/resources/questionnaire_fhir/multiple_type_launch_context.json +416 -0
  113. package/src/converter/__tests__/resources/questionnaire_fhir/patient_create.json +97 -0
  114. package/src/converter/__tests__/resources/questionnaire_fhir/patient_edit.json +183 -0
  115. package/src/converter/__tests__/resources/questionnaire_fhir/phq_2_phq_9.json +580 -0
  116. package/src/converter/__tests__/resources/questionnaire_fhir/physicalexam.json +544 -0
  117. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create.json +87 -0
  118. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create_structure_map.json +91 -0
  119. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_edit.json +193 -0
  120. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_role_create.json +44 -0
  121. package/src/converter/__tests__/resources/questionnaire_fhir/public_appointment.json +116 -0
  122. package/src/converter/__tests__/resources/questionnaire_fhir/review_of_systems.json +368 -0
  123. package/src/converter/__tests__/resources/questionnaire_fhir/source_queries.json +37 -0
  124. package/src/converter/__tests__/resources/questionnaire_fhir/vitals.json +317 -0
  125. package/src/converter/__tests__/resources/questionnaire_response_fce/allergies_inprogress.json +78 -0
  126. package/src/converter/__tests__/resources/questionnaire_response_fce/cardiology.json +96 -0
  127. package/src/converter/__tests__/resources/questionnaire_response_fce/few_answers.json +48 -0
  128. package/src/converter/__tests__/resources/questionnaire_response_fce/gad_7.json +165 -0
  129. package/src/converter/__tests__/resources/questionnaire_response_fce/immunization.json +86 -0
  130. package/src/converter/__tests__/resources/questionnaire_response_fce/medication.json +116 -0
  131. package/src/converter/__tests__/resources/questionnaire_response_fce/new_appointment.json +96 -0
  132. package/src/converter/__tests__/resources/questionnaire_response_fce/patient.json +87 -0
  133. package/src/converter/__tests__/resources/questionnaire_response_fce/phq_2_phq_9.json +193 -0
  134. package/src/converter/__tests__/resources/questionnaire_response_fce/physicalexam.json +187 -0
  135. package/src/converter/__tests__/resources/questionnaire_response_fce/practitioner.json +57 -0
  136. package/src/converter/__tests__/resources/questionnaire_response_fce/reference_answer_with_assoc.json +147 -0
  137. package/src/converter/__tests__/resources/questionnaire_response_fce/review_of_systems.json +129 -0
  138. package/src/converter/__tests__/resources/questionnaire_response_fce/vitals.json +168 -0
  139. package/src/converter/__tests__/resources/questionnaire_response_fhir/allergies_inprogress.json +73 -0
  140. package/src/converter/__tests__/resources/questionnaire_response_fhir/cardiology.json +87 -0
  141. package/src/converter/__tests__/resources/questionnaire_response_fhir/few_answers.json +46 -0
  142. package/src/converter/__tests__/resources/questionnaire_response_fhir/gad_7.json +146 -0
  143. package/src/converter/__tests__/resources/questionnaire_response_fhir/immunization.json +77 -0
  144. package/src/converter/__tests__/resources/questionnaire_response_fhir/medication.json +101 -0
  145. package/src/converter/__tests__/resources/questionnaire_response_fhir/new_appointment.json +86 -0
  146. package/src/converter/__tests__/resources/questionnaire_response_fhir/patient.json +78 -0
  147. package/src/converter/__tests__/resources/questionnaire_response_fhir/phq_2_phq_9.json +170 -0
  148. package/src/converter/__tests__/resources/questionnaire_response_fhir/physicalexam.json +158 -0
  149. package/src/converter/__tests__/resources/questionnaire_response_fhir/practitioner.json +54 -0
  150. package/src/converter/__tests__/resources/questionnaire_response_fhir/reference_answer_with_assoc.json +86 -0
  151. package/src/converter/__tests__/resources/questionnaire_response_fhir/review_of_systems.json +118 -0
  152. package/src/converter/__tests__/resources/questionnaire_response_fhir/vitals.json +145 -0
  153. package/src/converter/extensions.ts +149 -0
  154. package/src/converter/fceToFhir/index.ts +27 -0
  155. package/src/converter/fceToFhir/questionnaire/index.ts +15 -0
  156. package/src/converter/fceToFhir/questionnaire/processExtensions.ts +75 -0
  157. package/src/converter/fceToFhir/questionnaire/processItems.ts +194 -0
  158. package/src/converter/fceToFhir/questionnaire/processMeta.ts +19 -0
  159. package/src/converter/fceToFhir/questionnaireResponse/index.ts +21 -0
  160. package/src/converter/fceToFhir/questionnaireResponse/processAnswers.ts +53 -0
  161. package/src/converter/fceToFhir/questionnaireResponse/processMeta.ts +16 -0
  162. package/src/converter/fceToFhir/questionnaireResponse/processReference.ts +24 -0
  163. package/src/converter/fhirToFce/index.ts +27 -0
  164. package/src/converter/fhirToFce/questionnaire/index.ts +25 -0
  165. package/src/converter/fhirToFce/questionnaire/processExtensions.ts +113 -0
  166. package/src/converter/fhirToFce/questionnaire/processItems.ts +159 -0
  167. package/src/converter/fhirToFce/questionnaire/processMeta.ts +17 -0
  168. package/src/converter/fhirToFce/questionnaireResponse/index.ts +21 -0
  169. package/src/converter/fhirToFce/questionnaireResponse/processAnswers.ts +53 -0
  170. package/src/converter/fhirToFce/questionnaireResponse/processMeta.ts +14 -0
  171. package/src/converter/fhirToFce/questionnaireResponse/processReference.ts +20 -0
  172. package/src/converter/fhirToFce/utils.ts +36 -0
  173. package/src/converter/index.ts +106 -0
  174. package/src/index.ts +1 -0
  175. package/src/setupTests.ts +1 -0
  176. package/src/utils.ts +13 -2
@@ -0,0 +1,189 @@
1
+ {
2
+ "subjectType": ["Encounter", "Patient"],
3
+ "meta": {
4
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
5
+ "lastUpdated": "2023-04-10T03:43:34.792167Z",
6
+ "createdAt": "2023-04-05T05:22:35.752466Z",
7
+ "versionId": "694"
8
+ },
9
+ "launchContext": [
10
+ {
11
+ "name": {
12
+ "code": "Patient",
13
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
14
+ },
15
+ "type": ["Patient"]
16
+ },
17
+ {
18
+ "name": {
19
+ "code": "Author",
20
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
21
+ },
22
+ "type": ["Resource"]
23
+ }
24
+ ],
25
+ "name": "Medication",
26
+ "item": [
27
+ {
28
+ "text": "DateTime",
29
+ "type": "dateTime",
30
+ "hidden": true,
31
+ "linkId": "dateTime",
32
+ "initialExpression": {
33
+ "language": "text/fhirpath",
34
+ "expression": "now()"
35
+ }
36
+ },
37
+ {
38
+ "text": "EncounterId",
39
+ "type": "string",
40
+ "hidden": true,
41
+ "linkId": "encounterId",
42
+ "initialExpression": {
43
+ "language": "text/fhirpath",
44
+ "expression": "%Encounter.id"
45
+ }
46
+ },
47
+ {
48
+ "text": "PatientId",
49
+ "type": "string",
50
+ "hidden": true,
51
+ "linkId": "patientId",
52
+ "required": true,
53
+ "initialExpression": {
54
+ "language": "text/fhirpath",
55
+ "expression": "%Patient.id"
56
+ }
57
+ },
58
+ {
59
+ "text": "PatientName",
60
+ "type": "string",
61
+ "hidden": true,
62
+ "linkId": "patientName",
63
+ "initialExpression": {
64
+ "language": "text/fhirpath",
65
+ "expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
66
+ }
67
+ },
68
+ {
69
+ "text": "Medication name",
70
+ "type": "choice",
71
+ "linkId": "medication",
72
+ "required": true,
73
+ "answerOption": [
74
+ {
75
+ "value": {
76
+ "Coding": {
77
+ "code": "261000",
78
+ "system": "http://snomed.info/sct",
79
+ "display": "Codeine phosphate"
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "value": {
85
+ "Coding": {
86
+ "code": "2336001",
87
+ "system": "http://snomed.info/sct",
88
+ "display": "Fibrinogen Tokyo II"
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "value": {
94
+ "Coding": {
95
+ "code": "363000",
96
+ "system": "http://snomed.info/sct",
97
+ "display": "Fibrinogen San Juan"
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "value": {
103
+ "Coding": {
104
+ "code": "519005",
105
+ "system": "http://snomed.info/sct",
106
+ "display": "Free protein S"
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "value": {
112
+ "Coding": {
113
+ "code": "585007",
114
+ "system": "http://snomed.info/sct",
115
+ "display": "SP - Substance P"
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "value": {
121
+ "Coding": {
122
+ "code": "693002",
123
+ "system": "http://snomed.info/sct",
124
+ "display": "Trichothecene"
125
+ }
126
+ }
127
+ },
128
+ {
129
+ "value": {
130
+ "Coding": {
131
+ "code": "698006",
132
+ "system": "http://snomed.info/sct",
133
+ "display": "Erythromycin lactobionate"
134
+ }
135
+ }
136
+ },
137
+ {
138
+ "value": {
139
+ "Coding": {
140
+ "code": "699003",
141
+ "system": "http://snomed.info/sct",
142
+ "display": "Coal tar extract"
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "value": {
148
+ "Coding": {
149
+ "code": "747006",
150
+ "system": "http://snomed.info/sct",
151
+ "display": "Oxamniquine"
152
+ }
153
+ }
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "text": "Dosage",
159
+ "type": "string",
160
+ "linkId": "dosage",
161
+ "required": true
162
+ },
163
+ {
164
+ "text": "Start Date",
165
+ "type": "date",
166
+ "linkId": "start-date"
167
+ },
168
+ {
169
+ "text": "Stop Date",
170
+ "type": "date",
171
+ "linkId": "stop-date"
172
+ },
173
+ {
174
+ "text": "Notes",
175
+ "type": "string",
176
+ "linkId": "notes"
177
+ }
178
+ ],
179
+ "mapping": [
180
+ {
181
+ "id": "medication-statement-extract",
182
+ "resourceType": "Mapping"
183
+ }
184
+ ],
185
+ "resourceType": "Questionnaire",
186
+ "status": "active",
187
+ "id": "medication",
188
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/medication"
189
+ }
@@ -0,0 +1,406 @@
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": "LaunchPatient",
18
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
19
+ },
20
+ "type": [
21
+ "Patient",
22
+ "Resource"
23
+ ]
24
+ }
25
+ ],
26
+ "name": "Allergies",
27
+ "item": [
28
+ {
29
+ "text": "DateTime",
30
+ "type": "dateTime",
31
+ "hidden": true,
32
+ "linkId": "dateTime",
33
+ "initialExpression": {
34
+ "language": "text/fhirpath",
35
+ "expression": "now()"
36
+ }
37
+ },
38
+ {
39
+ "text": "PatientId",
40
+ "type": "string",
41
+ "hidden": true,
42
+ "linkId": "patientId",
43
+ "initialExpression": {
44
+ "language": "text/fhirpath",
45
+ "expression": "%Patient.id"
46
+ }
47
+ },
48
+ {
49
+ "text": "PatientName",
50
+ "type": "string",
51
+ "hidden": true,
52
+ "linkId": "patientName",
53
+ "initialExpression": {
54
+ "language": "text/fhirpath",
55
+ "expression": "%Patient.name.given[0] + ' ' + %Patient.name.family"
56
+ }
57
+ },
58
+ {
59
+ "text": "Type",
60
+ "type": "choice",
61
+ "linkId": "type",
62
+ "required": true,
63
+ "itemControl": {
64
+ "coding": [
65
+ {
66
+ "code": "inline-choice"
67
+ }
68
+ ]
69
+ },
70
+ "answerOption": [
71
+ {
72
+ "value": {
73
+ "Coding": {
74
+ "code": "418634005",
75
+ "system": "http://hl7.org/fhir/allergy-intolerance-category",
76
+ "display": "Drug"
77
+ }
78
+ }
79
+ },
80
+ {
81
+ "value": {
82
+ "Coding": {
83
+ "code": "414285001",
84
+ "system": "http://hl7.org/fhir/allergy-intolerance-category",
85
+ "display": "Food"
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "value": {
91
+ "Coding": {
92
+ "code": "426232007",
93
+ "system": "http://hl7.org/fhir/allergy-intolerance-category",
94
+ "display": "Environmental"
95
+ }
96
+ }
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "text": "Reaction",
102
+ "type": "choice",
103
+ "linkId": "reaction",
104
+ "repeats": true,
105
+ "itemControl": {
106
+ "coding": [
107
+ {
108
+ "code": "inline-choice"
109
+ }
110
+ ]
111
+ },
112
+ "answerOption": [
113
+ {
114
+ "value": {
115
+ "Coding": {
116
+ "code": "39579001",
117
+ "system": "http://snomed.ct",
118
+ "display": "Anaphylaxis"
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "value": {
124
+ "Coding": {
125
+ "code": "25064002",
126
+ "system": "http://snomed.ct",
127
+ "display": "Headache"
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "value": {
133
+ "Coding": {
134
+ "code": "247472004",
135
+ "system": "http://snomed.ct",
136
+ "display": "Hives (Wheal)"
137
+ }
138
+ }
139
+ },
140
+ {
141
+ "value": {
142
+ "Coding": {
143
+ "code": "422587007",
144
+ "system": "http://snomed.ct",
145
+ "display": "Nausea"
146
+ }
147
+ }
148
+ },
149
+ {
150
+ "value": {
151
+ "Coding": {
152
+ "code": "422400008",
153
+ "system": "http://snomed.ct",
154
+ "display": "Vomiting"
155
+ }
156
+ }
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "text": "Substance",
162
+ "type": "choice",
163
+ "linkId": "substance-drug",
164
+ "enableWhen": [
165
+ {
166
+ "answer": {
167
+ "Coding": {
168
+ "code": "418634005",
169
+ "system": "http://snomed.ct"
170
+ }
171
+ },
172
+ "operator": "=",
173
+ "question": "type"
174
+ }
175
+ ],
176
+ "itemControl": {
177
+ "coding": [
178
+ {
179
+ "code": "inline-choice"
180
+ }
181
+ ]
182
+ },
183
+ "answerOption": [
184
+ {
185
+ "value": {
186
+ "Coding": {
187
+ "code": "LA26702-3",
188
+ "system": "http://loinc.org",
189
+ "display": "Aspirin"
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "value": {
195
+ "Coding": {
196
+ "code": "LA30119-4",
197
+ "system": "http://loinc.org",
198
+ "display": "Iodine"
199
+ }
200
+ }
201
+ },
202
+ {
203
+ "value": {
204
+ "Coding": {
205
+ "code": "LA14348-9",
206
+ "system": "http://loinc.org",
207
+ "display": "Naproxen, ketoprofen or other non-steroidal"
208
+ }
209
+ }
210
+ },
211
+ {
212
+ "value": {
213
+ "Coding": {
214
+ "code": "LA28487-9",
215
+ "system": "http://loinc.org",
216
+ "display": "Penicillin"
217
+ }
218
+ }
219
+ },
220
+ {
221
+ "value": {
222
+ "Coding": {
223
+ "code": "LA30118-6",
224
+ "system": "http://loinc.org",
225
+ "display": "Sulfa drugs"
226
+ }
227
+ }
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "text": "Substance",
233
+ "type": "choice",
234
+ "linkId": "substance-food",
235
+ "enableWhen": [
236
+ {
237
+ "answer": {
238
+ "Coding": {
239
+ "code": "414285001",
240
+ "system": "http://snomed.ct"
241
+ }
242
+ },
243
+ "operator": "=",
244
+ "question": "type"
245
+ }
246
+ ],
247
+ "itemControl": {
248
+ "coding": [
249
+ {
250
+ "code": "inline-choice"
251
+ }
252
+ ]
253
+ },
254
+ "answerOption": [
255
+ {
256
+ "value": {
257
+ "Coding": {
258
+ "code": "102259006",
259
+ "system": "http://snomed.ct",
260
+ "display": "Citrus fruit"
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "value": {
266
+ "Coding": {
267
+ "code": "102260001",
268
+ "system": "http://snomed.ct",
269
+ "display": "Peanut butter"
270
+ }
271
+ }
272
+ },
273
+ {
274
+ "value": {
275
+ "Coding": {
276
+ "code": "102261002",
277
+ "system": "http://snomed.ct",
278
+ "display": "Strawberry"
279
+ }
280
+ }
281
+ },
282
+ {
283
+ "value": {
284
+ "Coding": {
285
+ "code": "102262009",
286
+ "system": "http://snomed.ct",
287
+ "display": "Chocolate"
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "value": {
293
+ "Coding": {
294
+ "code": "102263004",
295
+ "system": "http://snomed.ct",
296
+ "display": "Eggs"
297
+ }
298
+ }
299
+ },
300
+ {
301
+ "value": {
302
+ "Coding": {
303
+ "code": "102264005",
304
+ "system": "http://snomed.ct",
305
+ "display": "Cheese"
306
+ }
307
+ }
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "text": "Substance",
313
+ "type": "choice",
314
+ "linkId": "substance-environmental",
315
+ "enableWhen": [
316
+ {
317
+ "answer": {
318
+ "Coding": {
319
+ "code": "426232007",
320
+ "system": "http://snomed.ct"
321
+ }
322
+ },
323
+ "operator": "=",
324
+ "question": "type"
325
+ }
326
+ ],
327
+ "itemControl": {
328
+ "coding": [
329
+ {
330
+ "code": "inline-choice"
331
+ }
332
+ ]
333
+ },
334
+ "answerOption": [
335
+ {
336
+ "value": {
337
+ "Coding": {
338
+ "code": "111088007",
339
+ "system": "http://snomed.ct",
340
+ "display": "Latex"
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "value": {
346
+ "Coding": {
347
+ "code": "256259004",
348
+ "system": "http://snomed.ct",
349
+ "display": "Pollen"
350
+ }
351
+ }
352
+ },
353
+ {
354
+ "value": {
355
+ "Coding": {
356
+ "code": "256277009",
357
+ "system": "http://snomed.ct",
358
+ "display": "Grass pollen"
359
+ }
360
+ }
361
+ },
362
+ {
363
+ "value": {
364
+ "Coding": {
365
+ "code": "256417003",
366
+ "system": "http://snomed.ct",
367
+ "display": "Horse dander"
368
+ }
369
+ }
370
+ }
371
+ ]
372
+ },
373
+ {
374
+ "text": "Notes",
375
+ "type": "string",
376
+ "linkId": "notes"
377
+ },
378
+ {
379
+ "text": "Active",
380
+ "type": "string",
381
+ "hidden": true,
382
+ "linkId": "status",
383
+ "initial": [
384
+ {
385
+ "value": {
386
+ "Coding": {
387
+ "code": "active",
388
+ "system": "http://terminology.hl7.org/ValueSet/allergyintolerance-clinical",
389
+ "display": "Active"
390
+ }
391
+ }
392
+ }
393
+ ]
394
+ }
395
+ ],
396
+ "mapping": [
397
+ {
398
+ "id": "allergy-extract",
399
+ "resourceType": "Mapping"
400
+ }
401
+ ],
402
+ "resourceType": "Questionnaire",
403
+ "status": "active",
404
+ "id": "allergies",
405
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/allergies"
406
+ }
@@ -0,0 +1,84 @@
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
+ "name": "patient-create",
9
+ "item": [
10
+ {
11
+ "text": "patientId",
12
+ "type": "string",
13
+ "hidden": true,
14
+ "linkId": "patient-id"
15
+ },
16
+ {
17
+ "text": "Last name",
18
+ "type": "string",
19
+ "linkId": "last-name",
20
+ "required": true
21
+ },
22
+ {
23
+ "text": "First name",
24
+ "type": "string",
25
+ "linkId": "first-name",
26
+ "required": true
27
+ },
28
+ {
29
+ "text": "Middle name",
30
+ "type": "string",
31
+ "linkId": "middle-name"
32
+ },
33
+ {
34
+ "text": "Birth date",
35
+ "type": "date",
36
+ "linkId": "birth-date"
37
+ },
38
+ {
39
+ "text": "Gender",
40
+ "type": "choice",
41
+ "linkId": "gender",
42
+ "answerOption": [
43
+ {
44
+ "value": {
45
+ "string": "male"
46
+ }
47
+ },
48
+ {
49
+ "value": {
50
+ "string": "female"
51
+ }
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "text": "SSN",
57
+ "type": "string",
58
+ "linkId": "ssn"
59
+ },
60
+ {
61
+ "text": "Phone number",
62
+ "type": "string",
63
+ "linkId": "mobile",
64
+ "itemControl": {
65
+ "coding": [
66
+ {
67
+ "code": "phoneWidget"
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ ],
73
+ "mapping": [
74
+ {
75
+ "id": "patient-create",
76
+ "resourceType": "Mapping"
77
+ }
78
+ ],
79
+ "resourceType": "Questionnaire",
80
+ "title": "Patient create",
81
+ "status": "active",
82
+ "id": "patient-create",
83
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/patient-create"
84
+ }