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.
Files changed (176) hide show
  1. package/lib/components.d.ts +3 -3
  2. package/lib/components.js +40 -22
  3. package/lib/components.js.map +1 -1
  4. package/lib/context.d.ts +0 -1
  5. package/lib/converter/extensions.d.ts +36 -0
  6. package/lib/converter/extensions.js +132 -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 +24 -11
  77. package/lib/utils.js.map +1 -1
  78. package/package.json +4 -5
  79. package/src/components.tsx +67 -29
  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 +153 -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 +50 -25
@@ -0,0 +1,144 @@
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": "Practitioner",
12
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
13
+ },
14
+ "type": ["Practitioner"]
15
+ },
16
+ {
17
+ "name": {
18
+ "code": "PractitionerRole",
19
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
20
+ },
21
+ "type": ["PractitionerRole"]
22
+ }
23
+ ],
24
+ "name": "practitioner edit",
25
+ "item": [
26
+ {
27
+ "text": "practitionerId",
28
+ "type": "string",
29
+ "hidden": true,
30
+ "linkId": "practitioner-id",
31
+ "readOnly": true,
32
+ "initialExpression": {
33
+ "language": "text/fhirpath",
34
+ "expression": "%Practitioner.id"
35
+ }
36
+ },
37
+ {
38
+ "text": "practitionerRoleId",
39
+ "type": "string",
40
+ "hidden": true,
41
+ "linkId": "practitioner-role-id",
42
+ "readOnly": true,
43
+ "initialExpression": {
44
+ "language": "text/fhirpath",
45
+ "expression": "%PractitionerRole.id"
46
+ }
47
+ },
48
+ {
49
+ "text": "First name",
50
+ "type": "string",
51
+ "linkId": "first-name",
52
+ "initialExpression": {
53
+ "language": "text/fhirpath",
54
+ "expression": "%Practitioner.name.given[0]"
55
+ }
56
+ },
57
+ {
58
+ "text": "Middle name",
59
+ "type": "string",
60
+ "linkId": "middle-name",
61
+ "initialExpression": {
62
+ "language": "text/fhirpath",
63
+ "expression": "%Practitioner.name.given[1]"
64
+ }
65
+ },
66
+ {
67
+ "text": "Last name",
68
+ "type": "string",
69
+ "linkId": "last-name",
70
+ "required": true,
71
+ "initialExpression": {
72
+ "language": "text/fhirpath",
73
+ "expression": "%Practitioner.name.family"
74
+ }
75
+ },
76
+ {
77
+ "text": "Specialty",
78
+ "type": "choice",
79
+ "linkId": "specialty",
80
+ "answerOption": [
81
+ {
82
+ "value": {
83
+ "Coding": {
84
+ "code": "394577000",
85
+ "system": "http://snomed.info/sct",
86
+ "display": "Anesthetics"
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "value": {
92
+ "Coding": {
93
+ "code": "394579002",
94
+ "system": "http://snomed.info/sct",
95
+ "display": "Cardiology"
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "value": {
101
+ "Coding": {
102
+ "code": "394582007",
103
+ "system": "http://snomed.info/sct",
104
+ "display": "Dermatology"
105
+ }
106
+ }
107
+ },
108
+ {
109
+ "value": {
110
+ "Coding": {
111
+ "code": "394583002",
112
+ "system": "http://snomed.info/sct",
113
+ "display": "Endocrinology"
114
+ }
115
+ }
116
+ },
117
+ {
118
+ "value": {
119
+ "Coding": {
120
+ "code": "419772000",
121
+ "system": "http://snomed.info/sct",
122
+ "display": "Family practice"
123
+ }
124
+ }
125
+ }
126
+ ],
127
+ "initialExpression": {
128
+ "language": "text/fhirpath",
129
+ "expression": "%PractitionerRole.specialty[0].coding"
130
+ }
131
+ }
132
+ ],
133
+ "mapping": [
134
+ {
135
+ "id": "practitioner-edit",
136
+ "resourceType": "Mapping"
137
+ }
138
+ ],
139
+ "resourceType": "Questionnaire",
140
+ "title": "Practitioner edit",
141
+ "status": "active",
142
+ "id": "practitioner-edit",
143
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-edit"
144
+ }
@@ -0,0 +1,37 @@
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": "practitioner-role-create",
9
+ "item": [
10
+ {
11
+ "text": "Organization",
12
+ "type": "string",
13
+ "linkId": "organization"
14
+ },
15
+ {
16
+ "text": "Practitioner",
17
+ "type": "string",
18
+ "linkId": "practitioner"
19
+ },
20
+ {
21
+ "text": "Speciality",
22
+ "type": "string",
23
+ "linkId": "specialty"
24
+ }
25
+ ],
26
+ "mapping": [
27
+ {
28
+ "id": "practitioner-role-create",
29
+ "resourceType": "Mapping"
30
+ }
31
+ ],
32
+ "resourceType": "Questionnaire",
33
+ "title": "Create practitioner role",
34
+ "status": "active",
35
+ "id": "practitioner-role-create",
36
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-role-create"
37
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/",
3
+ "item": [
4
+ {
5
+ "text": "First name",
6
+ "type": "string",
7
+ "linkId": "first-name",
8
+ "required": true
9
+ },
10
+ {
11
+ "text": "Last name",
12
+ "type": "string",
13
+ "linkId": "last-name",
14
+ "required": true
15
+ },
16
+ {
17
+ "text": "Phone number",
18
+ "type": "string",
19
+ "linkId": "mobile",
20
+ "itemControl": {
21
+ "coding": [
22
+ {
23
+ "code": "phoneWidget"
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ {
29
+ "text": "Practitioner",
30
+ "type": "choice",
31
+ "linkId": "practitioner-role",
32
+ "required": true,
33
+ "itemControl": {
34
+ "coding": [
35
+ {
36
+ "code": "practitioner-role"
37
+ }
38
+ ]
39
+ }
40
+ },
41
+ {
42
+ "text": "Type",
43
+ "type": "choice",
44
+ "hidden": true,
45
+ "linkId": "service-type",
46
+ "initial": [
47
+ {
48
+ "value": {
49
+ "Coding": {
50
+ "code": "consultation",
51
+ "system": "http://fhir.org/guides/argonaut-scheduling/CodeSystem/visit-type",
52
+ "display": "The first appointment"
53
+ }
54
+ }
55
+ }
56
+ ],
57
+ "required": true
58
+ },
59
+ {
60
+ "text": "Date and Time",
61
+ "type": "dateTime",
62
+ "linkId": "date-time-slot",
63
+ "required": true,
64
+ "itemControl": {
65
+ "coding": [
66
+ {
67
+ "code": "date-time-slot"
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ ],
73
+ "meta": {
74
+ "profile": [
75
+ "https://beda.software/beda-emr-questionnaire"
76
+ ],
77
+ "lastUpdated": "2023-04-10T03:43:34.792167Z",
78
+ "createdAt": "2023-04-05T05:22:35.752466Z",
79
+ "versionId": "694"
80
+ },
81
+ "name": "Appointment",
82
+ "status": "active",
83
+ "mapping": [
84
+ {
85
+ "id": "public-appointment-extract",
86
+ "resourceType": "Mapping"
87
+ }
88
+ ],
89
+ "id": "public-appointment",
90
+ "resourceType": "Questionnaire"
91
+ }
@@ -0,0 +1,389 @@
1
+ {
2
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/review-of-systems",
3
+ "item": [
4
+ {
5
+ "code": [
6
+ {
7
+ "code": "71406-3",
8
+ "system": "http://loinc.org",
9
+ "display": "CMS - review of systems panel"
10
+ }
11
+ ],
12
+ "text": "Provider reviewed all systems and state that all are WNL except as noted below\n",
13
+ "type": "boolean",
14
+ "linkId": "provider-viewed-confirmation",
15
+ "initial": [
16
+ {
17
+ "value": {
18
+ "boolean": false
19
+ }
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "item": [
25
+ {
26
+ "code": [
27
+ {
28
+ "code": "71407-1",
29
+ "system": "http://loinc.org",
30
+ "display": "CMS - constitutional symptoms panel"
31
+ }
32
+ ],
33
+ "text": "General",
34
+ "type": "boolean",
35
+ "linkId": "general"
36
+ },
37
+ {
38
+ "code": [
39
+ {
40
+ "code": "71407-1-comment",
41
+ "system": "http://loinc.org",
42
+ "display": "CMS - constitutional symptoms panel - comment"
43
+ }
44
+ ],
45
+ "type": "text",
46
+ "linkId": "general-comment",
47
+ "enableWhen": [
48
+ {
49
+ "answer": {
50
+ "boolean": true
51
+ },
52
+ "operator": "=",
53
+ "question": "general"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "code": [
59
+ {
60
+ "code": "71409-7",
61
+ "system": "http://loinc.org",
62
+ "display": "CMS - ear-nose-mouth-throat panel"
63
+ }
64
+ ],
65
+ "text": "HEENT",
66
+ "type": "boolean",
67
+ "linkId": "heent"
68
+ },
69
+ {
70
+ "code": [
71
+ {
72
+ "code": "71409-7-comment",
73
+ "system": "http://loinc.org",
74
+ "display": "CMS - ear-nose-mouth-throat panel - comment"
75
+ }
76
+ ],
77
+ "type": "text",
78
+ "linkId": "heent-comment",
79
+ "enableWhen": [
80
+ {
81
+ "answer": {
82
+ "boolean": true
83
+ },
84
+ "operator": "=",
85
+ "question": "heent"
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ "code": [
91
+ {
92
+ "code": "71410-5",
93
+ "system": "http://loinc.org",
94
+ "display": "CMS - cardiovascular panel"
95
+ }
96
+ ],
97
+ "text": "Cardiovascular",
98
+ "type": "boolean",
99
+ "linkId": "cardiovascular"
100
+ },
101
+ {
102
+ "code": [
103
+ {
104
+ "code": "71410-5-comment",
105
+ "system": "http://loinc.org",
106
+ "display": "CMS - cardiovascular panel - comment"
107
+ }
108
+ ],
109
+ "type": "text",
110
+ "linkId": "cardiovascular-comment",
111
+ "enableWhen": [
112
+ {
113
+ "answer": {
114
+ "boolean": true
115
+ },
116
+ "operator": "=",
117
+ "question": "cardiovascular"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "code": [
123
+ {
124
+ "code": "71411-3",
125
+ "system": "http://loinc.org",
126
+ "display": "CMS - respiratory panel"
127
+ }
128
+ ],
129
+ "text": "Respiratory",
130
+ "type": "boolean",
131
+ "linkId": "respiratory"
132
+ },
133
+ {
134
+ "code": [
135
+ {
136
+ "code": "71411-3-comment",
137
+ "system": "http://loinc.org",
138
+ "display": "CMS - respiratory panel - comment"
139
+ }
140
+ ],
141
+ "type": "text",
142
+ "linkId": "respiratory-comment",
143
+ "enableWhen": [
144
+ {
145
+ "answer": {
146
+ "boolean": true
147
+ },
148
+ "operator": "=",
149
+ "question": "respiratory"
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "code": [
155
+ {
156
+ "code": "71412-1",
157
+ "system": "http://loinc.org",
158
+ "display": "CMS - gastrointestinal panel"
159
+ }
160
+ ],
161
+ "text": "Gastrointestinal",
162
+ "type": "boolean",
163
+ "linkId": "gastrointestinal"
164
+ },
165
+ {
166
+ "code": [
167
+ {
168
+ "code": "71412-1-comment",
169
+ "system": "http://loinc.org",
170
+ "display": "CMS - gastrointestinal panel - comment"
171
+ }
172
+ ],
173
+ "type": "text",
174
+ "linkId": "gastrointestinal-comment",
175
+ "enableWhen": [
176
+ {
177
+ "answer": {
178
+ "boolean": true
179
+ },
180
+ "operator": "=",
181
+ "question": "gastrointestinal"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "code": [
187
+ {
188
+ "code": "71413-9",
189
+ "system": "http://loinc.org",
190
+ "display": "CMS - genitourinary panel"
191
+ }
192
+ ],
193
+ "text": "Genitourinary",
194
+ "type": "boolean",
195
+ "linkId": "genitourinary"
196
+ },
197
+ {
198
+ "code": [
199
+ {
200
+ "code": "71413-9-comment",
201
+ "system": "http://loinc.org",
202
+ "display": "CMS - genitourinary panel - comment"
203
+ }
204
+ ],
205
+ "type": "text",
206
+ "linkId": "genitourinary-comment",
207
+ "enableWhen": [
208
+ {
209
+ "answer": {
210
+ "boolean": true
211
+ },
212
+ "operator": "=",
213
+ "question": "genitourinary"
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "code": [
219
+ {
220
+ "code": "71414-7",
221
+ "system": "http://loinc.org",
222
+ "display": "CMS - musculoskeletal panel"
223
+ }
224
+ ],
225
+ "text": "Musculoskeletal",
226
+ "type": "boolean",
227
+ "linkId": "musculoskeletal"
228
+ },
229
+ {
230
+ "code": [
231
+ {
232
+ "code": "71414-7-comment",
233
+ "system": "http://loinc.org",
234
+ "display": "CMS - musculoskeletal panel - comment"
235
+ }
236
+ ],
237
+ "type": "text",
238
+ "linkId": "musculoskeletal-comment",
239
+ "enableWhen": [
240
+ {
241
+ "answer": {
242
+ "boolean": true
243
+ },
244
+ "operator": "=",
245
+ "question": "musculoskeletal"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "code": [
251
+ {
252
+ "code": "71416-2",
253
+ "system": "http://loinc.org",
254
+ "display": "CMS - neurological panel"
255
+ }
256
+ ],
257
+ "text": "Neurologic",
258
+ "type": "boolean",
259
+ "linkId": "neurologic"
260
+ },
261
+ {
262
+ "code": [
263
+ {
264
+ "code": "71416-2-comment",
265
+ "system": "http://loinc.org",
266
+ "display": "CMS - neurological panel - comment"
267
+ }
268
+ ],
269
+ "type": "text",
270
+ "linkId": "neurologic-comment",
271
+ "enableWhen": [
272
+ {
273
+ "answer": {
274
+ "boolean": true
275
+ },
276
+ "operator": "=",
277
+ "question": "neurologic"
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "code": [
283
+ {
284
+ "code": "71417-0",
285
+ "system": "http://loinc.org",
286
+ "display": "CMS - psychiatric panel"
287
+ }
288
+ ],
289
+ "text": "Psychiatric",
290
+ "type": "boolean",
291
+ "linkId": "psychiatric"
292
+ },
293
+ {
294
+ "code": [
295
+ {
296
+ "code": "71417-0-comment",
297
+ "system": "http://loinc.org",
298
+ "display": "CMS - psychiatric panel - comment"
299
+ }
300
+ ],
301
+ "type": "text",
302
+ "linkId": "psychiatric-comment",
303
+ "enableWhen": [
304
+ {
305
+ "answer": {
306
+ "boolean": true
307
+ },
308
+ "operator": "=",
309
+ "question": "psychiatric"
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "code": [
315
+ {
316
+ "code": "71415-4",
317
+ "system": "http://loinc.org",
318
+ "display": "CMS - integumentary panel"
319
+ }
320
+ ],
321
+ "text": "Skin",
322
+ "type": "boolean",
323
+ "linkId": "skin"
324
+ },
325
+ {
326
+ "code": [
327
+ {
328
+ "code": "71415-4-comment",
329
+ "system": "http://loinc.org",
330
+ "display": "CMS - integumentary panel - comment"
331
+ }
332
+ ],
333
+ "type": "text",
334
+ "linkId": "skin-comment",
335
+ "enableWhen": [
336
+ {
337
+ "answer": {
338
+ "boolean": true
339
+ },
340
+ "operator": "=",
341
+ "question": "skin"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "text": "Other",
347
+ "type": "boolean",
348
+ "linkId": "other"
349
+ },
350
+ {
351
+ "type": "text",
352
+ "linkId": "other-comment",
353
+ "enableWhen": [
354
+ {
355
+ "answer": {
356
+ "boolean": true
357
+ },
358
+ "operator": "=",
359
+ "question": "other"
360
+ }
361
+ ]
362
+ }
363
+ ],
364
+ "text": "Select abnormal systems",
365
+ "type": "group",
366
+ "linkId": "abnormal-systems-group",
367
+ "enableWhen": [
368
+ {
369
+ "answer": {
370
+ "boolean": true
371
+ },
372
+ "operator": "=",
373
+ "question": "provider-viewed-confirmation"
374
+ }
375
+ ]
376
+ }
377
+ ],
378
+ "meta": {
379
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
380
+ "lastUpdated": "2023-04-10T03:43:34.792167Z",
381
+ "createdAt": "2023-04-05T05:22:35.752466Z",
382
+ "versionId": "694"
383
+ },
384
+ "name": "Review of Systems",
385
+ "status": "active",
386
+ "subjectType": ["Encounter"],
387
+ "id": "review-of-systems",
388
+ "resourceType": "Questionnaire"
389
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "meta": {
3
+ "profile": ["https://beda.software/beda-emr-questionnaire"]
4
+ },
5
+ "item": [
6
+ {
7
+ "linkId": "question-1",
8
+ "type": "string",
9
+ "text": "Question"
10
+ }
11
+ ],
12
+ "status": "active",
13
+ "resourceType": "Questionnaire",
14
+ "contained": [
15
+ {
16
+ "id": "PrePopQuery",
17
+ "type": "batch",
18
+ "entry": [
19
+ {
20
+ "request": {
21
+ "url": "Patient?_id={{%LaunchPatient.id}}",
22
+ "method": "GET"
23
+ }
24
+ }
25
+ ],
26
+ "resourceType": "Bundle"
27
+ }
28
+ ],
29
+ "sourceQueries": [
30
+ {
31
+ "localRef": "Bundle#PrePopQuery"
32
+ }
33
+ ]
34
+ }