sdc-qrf 0.3.17 → 0.3.18

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 (60) hide show
  1. package/dist/converter/fceToFhir/questionnaire/processExtensions.d.ts.map +1 -1
  2. package/dist/converter/fceToFhir/questionnaire/processExtensions.js +7 -1
  3. package/dist/converter/fceToFhir/questionnaire/processExtensions.js.map +1 -1
  4. package/dist/converter/fhirToFce/questionnaire/processExtensions.d.ts +1 -0
  5. package/dist/converter/fhirToFce/questionnaire/processExtensions.d.ts.map +1 -1
  6. package/dist/converter/fhirToFce/questionnaire/processExtensions.js +12 -6
  7. package/dist/converter/fhirToFce/questionnaire/processExtensions.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/converter/__tests__/resources/questionnaire_fce/allergies.json +1 -0
  10. package/src/converter/__tests__/resources/questionnaire_fce/beverages.json +67 -66
  11. package/src/converter/__tests__/resources/questionnaire_fce/choice_answer_option.json +49 -48
  12. package/src/converter/__tests__/resources/questionnaire_fce/consent.json +1 -0
  13. package/src/converter/__tests__/resources/questionnaire_fce/constraint.json +2 -2
  14. package/src/converter/__tests__/resources/questionnaire_fce/cqf-examples.json +59 -63
  15. package/src/converter/__tests__/resources/questionnaire_fce/enable_when.json +1 -0
  16. package/src/converter/__tests__/resources/questionnaire_fce/encounter_create.json +1 -0
  17. package/src/converter/__tests__/resources/questionnaire_fce/gad_7.json +6 -14
  18. package/src/converter/__tests__/resources/questionnaire_fce/immunization.json +6 -14
  19. package/src/converter/__tests__/resources/questionnaire_fce/medication.json +165 -164
  20. package/src/converter/__tests__/resources/questionnaire_fce/multiple_type_launch_context.json +5 -12
  21. package/src/converter/__tests__/resources/questionnaire_fce/patient_create.json +78 -77
  22. package/src/converter/__tests__/resources/questionnaire_fce/patient_edit.json +1 -0
  23. package/src/converter/__tests__/resources/questionnaire_fce/phq_2_phq_9.json +1 -0
  24. package/src/converter/__tests__/resources/questionnaire_fce/physicalexam.json +381 -380
  25. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create.json +79 -78
  26. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_create_structure_map.json +1 -0
  27. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_edit.json +127 -126
  28. package/src/converter/__tests__/resources/questionnaire_fce/practitioner_role_create.json +35 -34
  29. package/src/converter/__tests__/resources/questionnaire_fce/public_appointment.json +3 -4
  30. package/src/converter/__tests__/resources/questionnaire_fce/review_of_systems.json +384 -383
  31. package/src/converter/__tests__/resources/questionnaire_fce/source_queries.json +31 -30
  32. package/src/converter/__tests__/resources/questionnaire_fce/unit-option.json +1 -0
  33. package/src/converter/__tests__/resources/questionnaire_fce/vitals.json +1 -0
  34. package/src/converter/__tests__/resources/questionnaire_fhir/allergies.json +7 -8
  35. package/src/converter/__tests__/resources/questionnaire_fhir/beverages.json +96 -90
  36. package/src/converter/__tests__/resources/questionnaire_fhir/choice_answer_option.json +49 -43
  37. package/src/converter/__tests__/resources/questionnaire_fhir/consent.json +4 -0
  38. package/src/converter/__tests__/resources/questionnaire_fhir/constraint.json +6 -0
  39. package/src/converter/__tests__/resources/questionnaire_fhir/cqf-examples.json +87 -86
  40. package/src/converter/__tests__/resources/questionnaire_fhir/enable_when.json +6 -0
  41. package/src/converter/__tests__/resources/questionnaire_fhir/encounter_create.json +4 -0
  42. package/src/converter/__tests__/resources/questionnaire_fhir/gad_7.json +7 -8
  43. package/src/converter/__tests__/resources/questionnaire_fhir/immunization.json +7 -8
  44. package/src/converter/__tests__/resources/questionnaire_fhir/medication.json +203 -199
  45. package/src/converter/__tests__/resources/questionnaire_fhir/multiple_type_launch_context.json +387 -383
  46. package/src/converter/__tests__/resources/questionnaire_fhir/patient_create.json +92 -88
  47. package/src/converter/__tests__/resources/questionnaire_fhir/patient_edit.json +6 -4
  48. package/src/converter/__tests__/resources/questionnaire_fhir/phq_2_phq_9.json +565 -561
  49. package/src/converter/__tests__/resources/questionnaire_fhir/physicalexam.json +540 -536
  50. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create.json +78 -74
  51. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_create_structure_map.json +4 -0
  52. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_edit.json +176 -172
  53. package/src/converter/__tests__/resources/questionnaire_fhir/practitioner_role_create.json +45 -41
  54. package/src/converter/__tests__/resources/questionnaire_fhir/public_appointment.json +6 -4
  55. package/src/converter/__tests__/resources/questionnaire_fhir/review_of_systems.json +364 -358
  56. package/src/converter/__tests__/resources/questionnaire_fhir/source_queries.json +37 -33
  57. package/src/converter/__tests__/resources/questionnaire_fhir/unit-option.json +6 -0
  58. package/src/converter/__tests__/resources/questionnaire_fhir/vitals.json +4 -0
  59. package/src/converter/fceToFhir/questionnaire/processExtensions.ts +8 -1
  60. package/src/converter/fhirToFce/questionnaire/processExtensions.ts +21 -15
@@ -1,90 +1,91 @@
1
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-create",
9
- "item": [
10
- {
11
- "text": "Last name",
12
- "type": "string",
13
- "linkId": "last-name",
14
- "required": true
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"
15
7
  },
16
- {
17
- "text": "First name",
18
- "type": "string",
19
- "linkId": "first-name"
20
- },
21
- {
22
- "text": "Middle name",
23
- "type": "string",
24
- "linkId": "middle-name"
25
- },
26
- {
27
- "text": "Specialty",
28
- "type": "choice",
29
- "linkId": "specialty",
30
- "answerOption": [
8
+ "name": "practitioner-create",
9
+ "item": [
31
10
  {
32
- "value": {
33
- "Coding": {
34
- "code": "394577000",
35
- "system": "http://snomed.info/sct",
36
- "display": "Anesthetics"
37
- }
38
- }
11
+ "text": "Last name",
12
+ "type": "string",
13
+ "linkId": "last-name",
14
+ "required": true
39
15
  },
40
16
  {
41
- "value": {
42
- "Coding": {
43
- "code": "394579002",
44
- "system": "http://snomed.info/sct",
45
- "display": "Cardiology"
46
- }
47
- }
17
+ "text": "First name",
18
+ "type": "string",
19
+ "linkId": "first-name"
48
20
  },
49
21
  {
50
- "value": {
51
- "Coding": {
52
- "code": "394582007",
53
- "system": "http://snomed.info/sct",
54
- "display": "Dermatology"
55
- }
56
- }
22
+ "text": "Middle name",
23
+ "type": "string",
24
+ "linkId": "middle-name"
57
25
  },
58
26
  {
59
- "value": {
60
- "Coding": {
61
- "code": "394583002",
62
- "system": "http://snomed.info/sct",
63
- "display": "Endocrinology"
64
- }
65
- }
66
- },
27
+ "text": "Specialty",
28
+ "type": "choice",
29
+ "linkId": "specialty",
30
+ "answerOption": [
31
+ {
32
+ "value": {
33
+ "Coding": {
34
+ "code": "394577000",
35
+ "system": "http://snomed.info/sct",
36
+ "display": "Anesthetics"
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "value": {
42
+ "Coding": {
43
+ "code": "394579002",
44
+ "system": "http://snomed.info/sct",
45
+ "display": "Cardiology"
46
+ }
47
+ }
48
+ },
49
+ {
50
+ "value": {
51
+ "Coding": {
52
+ "code": "394582007",
53
+ "system": "http://snomed.info/sct",
54
+ "display": "Dermatology"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "value": {
60
+ "Coding": {
61
+ "code": "394583002",
62
+ "system": "http://snomed.info/sct",
63
+ "display": "Endocrinology"
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "value": {
69
+ "Coding": {
70
+ "code": "419772000",
71
+ "system": "http://snomed.info/sct",
72
+ "display": "Family practice"
73
+ }
74
+ }
75
+ }
76
+ ]
77
+ }
78
+ ],
79
+ "mapping": [
67
80
  {
68
- "value": {
69
- "Coding": {
70
- "code": "419772000",
71
- "system": "http://snomed.info/sct",
72
- "display": "Family practice"
73
- }
74
- }
81
+ "id": "practitioner-create",
82
+ "resourceType": "Mapping"
75
83
  }
76
- ]
77
- }
78
- ],
79
- "mapping": [
80
- {
81
- "id": "practitioner-create",
82
- "resourceType": "Mapping"
83
- }
84
- ],
85
- "resourceType": "Questionnaire",
86
- "title": "Practitioner create",
87
- "status": "active",
88
- "id": "practitioner-create",
89
- "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-create"
84
+ ],
85
+ "resourceType": "Questionnaire",
86
+ "title": "Practitioner create",
87
+ "status": "active",
88
+ "assembledFrom": "practitioner-create",
89
+ "id": "practitioner-create",
90
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-create"
90
91
  }
@@ -86,6 +86,7 @@
86
86
  "title": "Practitioner create",
87
87
  "targetStructureMap": ["StructureMap/practitioner-create"],
88
88
  "status": "active",
89
+ "assembledFrom": "practitioner-create-structure-map",
89
90
  "id": "practitioner-create-fhir-testing",
90
91
  "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-create"
91
92
  }
@@ -1,144 +1,145 @@
1
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"]
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"
15
7
  },
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": [
8
+ "launchContext": [
9
+ {
10
+ "name": {
11
+ "code": "Practitioner",
12
+ "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"
13
+ },
14
+ "type": ["Practitioner"]
15
+ },
81
16
  {
82
- "value": {
83
- "Coding": {
84
- "code": "394577000",
85
- "system": "http://snomed.info/sct",
86
- "display": "Anesthetics"
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"
87
35
  }
88
- }
89
36
  },
90
37
  {
91
- "value": {
92
- "Coding": {
93
- "code": "394579002",
94
- "system": "http://snomed.info/sct",
95
- "display": "Cardiology"
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"
96
46
  }
97
- }
98
47
  },
99
48
  {
100
- "value": {
101
- "Coding": {
102
- "code": "394582007",
103
- "system": "http://snomed.info/sct",
104
- "display": "Dermatology"
49
+ "text": "First name",
50
+ "type": "string",
51
+ "linkId": "first-name",
52
+ "initialExpression": {
53
+ "language": "text/fhirpath",
54
+ "expression": "%Practitioner.name.given[0]"
105
55
  }
106
- }
107
56
  },
108
57
  {
109
- "value": {
110
- "Coding": {
111
- "code": "394583002",
112
- "system": "http://snomed.info/sct",
113
- "display": "Endocrinology"
58
+ "text": "Middle name",
59
+ "type": "string",
60
+ "linkId": "middle-name",
61
+ "initialExpression": {
62
+ "language": "text/fhirpath",
63
+ "expression": "%Practitioner.name.given[1]"
114
64
  }
115
- }
116
65
  },
117
66
  {
118
- "value": {
119
- "Coding": {
120
- "code": "419772000",
121
- "system": "http://snomed.info/sct",
122
- "display": "Family practice"
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"
123
74
  }
124
- }
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"
125
137
  }
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"
138
+ ],
139
+ "resourceType": "Questionnaire",
140
+ "title": "Practitioner edit",
141
+ "status": "active",
142
+ "assembledFrom": "practitioner-edit",
143
+ "id": "practitioner-edit",
144
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-edit"
144
145
  }
@@ -1,37 +1,38 @@
1
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"
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"
14
7
  },
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"
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
+ "assembledFrom": "practitioner-role-create",
36
+ "id": "practitioner-role-create",
37
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/practitioner-role-create"
37
38
  }
@@ -71,9 +71,7 @@
71
71
  }
72
72
  ],
73
73
  "meta": {
74
- "profile": [
75
- "https://beda.software/beda-emr-questionnaire"
76
- ],
74
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
77
75
  "lastUpdated": "2023-04-10T03:43:34.792167Z",
78
76
  "createdAt": "2023-04-05T05:22:35.752466Z",
79
77
  "versionId": "694"
@@ -86,6 +84,7 @@
86
84
  "resourceType": "Mapping"
87
85
  }
88
86
  ],
87
+ "assembledFrom": "public-appointment",
89
88
  "id": "public-appointment",
90
89
  "resourceType": "Questionnaire"
91
- }
90
+ }