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,97 +1,101 @@
1
1
  {
2
- "meta": {
3
- "profile": ["https://beda.software/beda-emr-questionnaire"],
4
- "lastUpdated": "2023-04-10T03:43:34.792167Z",
5
- "versionId": "694",
6
- "extension": [
7
- {
8
- "url": "ex:createdAt",
9
- "valueInstant": "2023-04-05T05:22:35.752466Z"
10
- }
11
- ]
12
- },
13
- "name": "patient-create",
14
- "item": [
15
- {
16
- "text": "patientId",
17
- "type": "string",
18
- "linkId": "patient-id",
19
- "extension": [
20
- {
21
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
22
- "valueBoolean": true
23
- }
24
- ]
25
- },
26
- {
27
- "text": "Last name",
28
- "type": "string",
29
- "linkId": "last-name",
30
- "required": true
31
- },
32
- {
33
- "text": "First name",
34
- "type": "string",
35
- "linkId": "first-name",
36
- "required": true
37
- },
38
- {
39
- "text": "Middle name",
40
- "type": "string",
41
- "linkId": "middle-name"
42
- },
43
- {
44
- "text": "Birth date",
45
- "type": "date",
46
- "linkId": "birth-date"
2
+ "meta": {
3
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
4
+ "lastUpdated": "2023-04-10T03:43:34.792167Z",
5
+ "versionId": "694",
6
+ "extension": [
7
+ {
8
+ "url": "ex:createdAt",
9
+ "valueInstant": "2023-04-05T05:22:35.752466Z"
10
+ }
11
+ ]
47
12
  },
48
- {
49
- "text": "Gender",
50
- "type": "choice",
51
- "linkId": "gender",
52
- "answerOption": [
13
+ "name": "patient-create",
14
+ "item": [
53
15
  {
54
- "valueString": "male"
16
+ "text": "patientId",
17
+ "type": "string",
18
+ "linkId": "patient-id",
19
+ "extension": [
20
+ {
21
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
22
+ "valueBoolean": true
23
+ }
24
+ ]
55
25
  },
56
26
  {
57
- "valueString": "female"
58
- }
59
- ]
60
- },
61
- {
62
- "text": "SSN",
63
- "type": "string",
64
- "linkId": "ssn"
65
- },
66
- {
67
- "text": "Phone number",
68
- "type": "string",
69
- "linkId": "mobile",
70
- "extension": [
27
+ "text": "Last name",
28
+ "type": "string",
29
+ "linkId": "last-name",
30
+ "required": true
31
+ },
32
+ {
33
+ "text": "First name",
34
+ "type": "string",
35
+ "linkId": "first-name",
36
+ "required": true
37
+ },
71
38
  {
72
- "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
73
- "valueCodeableConcept": {
74
- "coding": [
75
- {
76
- "code": "phoneWidget"
77
- }
39
+ "text": "Middle name",
40
+ "type": "string",
41
+ "linkId": "middle-name"
42
+ },
43
+ {
44
+ "text": "Birth date",
45
+ "type": "date",
46
+ "linkId": "birth-date"
47
+ },
48
+ {
49
+ "text": "Gender",
50
+ "type": "choice",
51
+ "linkId": "gender",
52
+ "answerOption": [
53
+ {
54
+ "valueString": "male"
55
+ },
56
+ {
57
+ "valueString": "female"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "text": "SSN",
63
+ "type": "string",
64
+ "linkId": "ssn"
65
+ },
66
+ {
67
+ "text": "Phone number",
68
+ "type": "string",
69
+ "linkId": "mobile",
70
+ "extension": [
71
+ {
72
+ "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
73
+ "valueCodeableConcept": {
74
+ "coding": [
75
+ {
76
+ "code": "phoneWidget"
77
+ }
78
+ ]
79
+ }
80
+ }
78
81
  ]
79
- }
80
82
  }
81
- ]
82
- }
83
- ],
84
- "resourceType": "Questionnaire",
85
- "title": "Patient create",
86
- "extension": [
87
- {
88
- "url": "http://beda.software/fhir-extensions/questionnaire-mapper",
89
- "valueReference": {
90
- "reference": "Mapping/patient-create"
91
- }
92
- }
93
- ],
94
- "status": "active",
95
- "id": "patient-create",
96
- "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/patient-create"
83
+ ],
84
+ "resourceType": "Questionnaire",
85
+ "title": "Patient create",
86
+ "extension": [
87
+ {
88
+ "url": "http://beda.software/fhir-extensions/questionnaire-mapper",
89
+ "valueReference": {
90
+ "reference": "Mapping/patient-create"
91
+ }
92
+ },
93
+ {
94
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
95
+ "valueCanonical": "patient-create"
96
+ }
97
+ ],
98
+ "status": "active",
99
+ "id": "patient-create",
100
+ "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/patient-create"
97
101
  }
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "profile": [
4
- "https://beda.software/beda-emr-questionnaire"
5
- ],
3
+ "profile": ["https://beda.software/beda-emr-questionnaire"],
6
4
  "lastUpdated": "2023-04-10T03:43:34.792167Z",
7
5
  "versionId": "694",
8
6
  "extension": [
@@ -175,9 +173,13 @@
175
173
  "valueReference": {
176
174
  "reference": "Mapping/patient-create"
177
175
  }
176
+ },
177
+ {
178
+ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",
179
+ "valueCanonical": "patient-edit"
178
180
  }
179
181
  ],
180
182
  "status": "active",
181
183
  "id": "patient-edit",
182
184
  "url": "https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/patient-edit"
183
- }
185
+ }