us_core_test_kit 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/custom_groups/smart_app_launch_group.rb +2 -2
  3. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +10 -0
  4. data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +10 -0
  5. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +10 -0
  6. data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +10 -0
  7. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +21 -2
  8. data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +6 -2
  9. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/metadata.yml +155 -0
  10. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  11. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  12. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_read_test.rb +26 -0
  13. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  14. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  15. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_validation_test.rb +40 -0
  16. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role_group.rb +89 -0
  17. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +2 -0
  18. data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +17 -2
  19. data/lib/us_core_test_kit/generated/v6.1.0/patient/metadata.yml +2 -2
  20. data/lib/us_core_test_kit/generated/v6.1.0/patient/patient_must_support_test.rb +0 -2
  21. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/metadata.yml +155 -0
  22. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  23. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  24. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_read_test.rb +26 -0
  25. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  26. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  27. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_validation_test.rb +40 -0
  28. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role_group.rb +89 -0
  29. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +2 -0
  30. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_category_status_search_test.rb → location/location_address_city_search_test.rb} +7 -13
  31. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_code_date_search_test.rb → location/location_address_postalcode_search_test.rb} +7 -14
  32. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_search_test.rb +52 -0
  33. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_state_search_test.rb +43 -0
  34. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_must_support_test.rb → location/location_must_support_test.rb} +17 -16
  35. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_category_search_test.rb → location/location_name_search_test.rb} +7 -13
  36. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_read_test.rb +26 -0
  37. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_reference_resolution_test.rb → location/location_reference_resolution_test.rb} +6 -6
  38. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_validation_test.rb → location/location_validation_test.rb} +7 -7
  39. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/metadata.yml +194 -0
  40. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location_group.rb +93 -0
  41. data/lib/us_core_test_kit/generated/v7.0.0-ballot/metadata.yml +38 -273
  42. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/metadata.yml +2 -2
  43. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/patient_must_support_test.rb +0 -2
  44. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/metadata.yml +160 -0
  45. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  46. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_code_search_test.rb → practitioner_role/practitioner_role_practitioner_search_test.rb} +8 -20
  47. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_read_test.rb +26 -0
  48. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  49. data/lib/us_core_test_kit/generated/v7.0.0-ballot/{vital_signs/vital_signs_patient_category_date_search_test.rb → practitioner_role/practitioner_role_specialty_search_test.rb} +8 -14
  50. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_validation_test.rb +40 -0
  51. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role_group.rb +89 -0
  52. data/lib/us_core_test_kit/generated/v7.0.0-ballot/us_core_test_suite.rb +4 -2
  53. data/lib/us_core_test_kit/generator/group_generator.rb +2 -2
  54. data/lib/us_core_test_kit/generator/group_metadata.rb +3 -1
  55. data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +8 -1
  56. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_3.rb +64 -18
  57. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +1 -18
  58. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +0 -15
  59. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +5 -2
  60. data/lib/us_core_test_kit/generator/special_cases.rb +17 -7
  61. data/lib/us_core_test_kit/granular_scope_checker.rb +1 -1
  62. data/lib/us_core_test_kit/version.rb +1 -1
  63. metadata +37 -91
  64. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  65. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  66. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
  67. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  68. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  69. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  70. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  71. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  72. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  73. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  74. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope1_group.rb +0 -38
  75. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope2_group.rb +0 -38
  76. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
  77. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  78. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
  79. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  80. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  81. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  82. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  83. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  84. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  85. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  86. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  87. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  88. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  89. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope1_group.rb +0 -39
  90. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope2_group.rb +0 -39
  91. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  92. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  93. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  94. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  95. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  96. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_id_granular_scope_test.rb +0 -41
  97. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  98. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  99. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  100. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  101. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_granular_scope_test.rb +0 -45
  102. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  103. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope1_group.rb +0 -39
  104. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope2_group.rb +0 -40
  105. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  106. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  107. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
  108. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  109. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  110. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  111. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  112. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  113. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  114. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  115. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
  116. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  117. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
  118. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  119. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  120. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  121. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  122. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  123. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  124. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  125. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  126. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  127. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  128. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference_granular_scope2_group.rb +0 -39
  129. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  130. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  131. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  132. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  133. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  134. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_id_granular_scope_test.rb +0 -41
  135. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  136. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  137. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  138. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  139. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_granular_scope_test.rb +0 -45
  140. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  141. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/metadata.yml +0 -273
  142. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_provenance_revinclude_search_test.rb +0 -53
  143. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_read_test.rb +0 -26
  144. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs_group.rb +0 -96
@@ -1,273 +0,0 @@
1
- ---
2
- :name: us_core_vital_signs
3
- :class_name: USCorev700_ballotVitalSignsSequence
4
- :version: v7.0.0-ballot
5
- :reformatted_version: v700_ballot
6
- :resource: Observation
7
- :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs
8
- :profile_name: US Core Vital Signs Profile
9
- :profile_version: 7.0.0-ballot
10
- :title: Observation Vital Signs
11
- :short_description: Verify support for the server capabilities required by the US
12
- Core Vital Signs Profile.
13
- :is_delayed: false
14
- :interactions:
15
- - :code: create
16
- :expectation: MAY
17
- - :code: search-type
18
- :expectation: SHALL
19
- - :code: read
20
- :expectation: SHALL
21
- - :code: vread
22
- :expectation: SHOULD
23
- - :code: update
24
- :expectation: MAY
25
- - :code: patch
26
- :expectation: MAY
27
- - :code: delete
28
- :expectation: MAY
29
- - :code: history-instance
30
- :expectation: SHOULD
31
- - :code: history-type
32
- :expectation: MAY
33
- :operations: []
34
- :searches:
35
- - :expectation: SHALL
36
- :names:
37
- - patient
38
- - code
39
- :names_not_must_support_or_mandatory: []
40
- :must_support_or_mandatory: true
41
- - :expectation: SHALL
42
- :names:
43
- - patient
44
- - category
45
- :names_not_must_support_or_mandatory: []
46
- :must_support_or_mandatory: true
47
- - :expectation: SHALL
48
- :names:
49
- - patient
50
- - category
51
- - date
52
- :names_not_must_support_or_mandatory: []
53
- :must_support_or_mandatory: true
54
- - :expectation: SHOULD
55
- :names:
56
- - patient
57
- - category
58
- - status
59
- :names_not_must_support_or_mandatory: []
60
- :must_support_or_mandatory: true
61
- - :expectation: SHOULD
62
- :names:
63
- - patient
64
- - code
65
- - date
66
- :names_not_must_support_or_mandatory: []
67
- :must_support_or_mandatory: true
68
- :search_definitions:
69
- :patient:
70
- :paths:
71
- - subject
72
- :full_paths:
73
- - Observation.subject
74
- :comparators: {}
75
- :values: []
76
- :type: Reference
77
- :contains_multiple: false
78
- :multiple_or: MAY
79
- :category:
80
- :paths:
81
- - category
82
- :full_paths:
83
- - Observation.category
84
- :comparators: {}
85
- :values:
86
- - vital-signs
87
- :type: CodeableConcept
88
- :contains_multiple: true
89
- :multiple_or: MAY
90
- :date:
91
- :paths:
92
- - effective
93
- :full_paths:
94
- - Observation.effective
95
- :comparators:
96
- :eq: MAY
97
- :ne: MAY
98
- :gt: SHALL
99
- :ge: SHALL
100
- :lt: SHALL
101
- :le: SHALL
102
- :sa: MAY
103
- :eb: MAY
104
- :ap: MAY
105
- :values: []
106
- :type: date
107
- :contains_multiple: false
108
- :multiple_or: MAY
109
- :code:
110
- :paths:
111
- - code
112
- :full_paths:
113
- - Observation.code
114
- :comparators: {}
115
- :values:
116
- - 59576-9
117
- - 8289-1
118
- - 77606-2
119
- - 59408-5
120
- - 3150-0
121
- - 3151-8
122
- - 96607-7
123
- - 96608-5
124
- - 96609-3
125
- :type: CodeableConcept
126
- :contains_multiple: false
127
- :multiple_or: SHOULD
128
- :status:
129
- :paths:
130
- - status
131
- :full_paths:
132
- - Observation.status
133
- :comparators: {}
134
- :values:
135
- - registered
136
- - preliminary
137
- - final
138
- - amended
139
- - corrected
140
- - cancelled
141
- - entered-in-error
142
- - unknown
143
- :type: code
144
- :contains_multiple: false
145
- :multiple_or: SHALL
146
- :include_params: []
147
- :revincludes:
148
- - Provenance:target
149
- :required_concepts: []
150
- :must_supports:
151
- :extensions: []
152
- :slices:
153
- - :slice_id: Observation.category:VSCat
154
- :slice_name: VSCat
155
- :path: category
156
- :discriminator:
157
- :type: value
158
- :values:
159
- - :path: coding.code
160
- :value: vital-signs
161
- - :path: coding.system
162
- :value: http://terminology.hl7.org/CodeSystem/observation-category
163
- :elements:
164
- - :path: status
165
- - :path: category
166
- - :path: category:VSCat.coding
167
- - :path: category:VSCat.coding.system
168
- :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
169
- - :path: category:VSCat.coding.code
170
- :fixed_value: vital-signs
171
- - :path: code
172
- - :path: subject
173
- :types:
174
- - Reference
175
- :target_profiles:
176
- - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
177
- - :path: effectiveDateTime
178
- :original_path: effective[x]
179
- - :path: valueQuantity
180
- :original_path: value[x]
181
- :mandatory_elements:
182
- - Observation.status
183
- - Observation.category
184
- - Observation.category.coding
185
- - Observation.category.coding.system
186
- - Observation.category.coding.code
187
- - Observation.code
188
- - Observation.subject
189
- - Observation.effective[x]
190
- - Observation.component.code
191
- :bindings:
192
- - :type: code
193
- :strength: required
194
- :system: http://hl7.org/fhir/ValueSet/observation-status
195
- :path: status
196
- :references:
197
- - :path: Observation.basedOn
198
- :profiles:
199
- - http://hl7.org/fhir/StructureDefinition/CarePlan
200
- - http://hl7.org/fhir/StructureDefinition/DeviceRequest
201
- - http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
202
- - http://hl7.org/fhir/StructureDefinition/MedicationRequest
203
- - http://hl7.org/fhir/StructureDefinition/NutritionOrder
204
- - http://hl7.org/fhir/StructureDefinition/ServiceRequest
205
- - :path: Observation.partOf
206
- :profiles:
207
- - http://hl7.org/fhir/StructureDefinition/MedicationAdministration
208
- - http://hl7.org/fhir/StructureDefinition/MedicationDispense
209
- - http://hl7.org/fhir/StructureDefinition/MedicationStatement
210
- - http://hl7.org/fhir/StructureDefinition/Procedure
211
- - http://hl7.org/fhir/StructureDefinition/Immunization
212
- - http://hl7.org/fhir/StructureDefinition/ImagingStudy
213
- - :path: Observation.subject
214
- :profiles:
215
- - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
216
- - :path: Observation.focus
217
- :profiles:
218
- - http://hl7.org/fhir/StructureDefinition/Resource
219
- - :path: Observation.encounter
220
- :profiles:
221
- - http://hl7.org/fhir/StructureDefinition/Encounter
222
- - :path: Observation.performer
223
- :profiles:
224
- - http://hl7.org/fhir/StructureDefinition/Practitioner
225
- - http://hl7.org/fhir/StructureDefinition/PractitionerRole
226
- - http://hl7.org/fhir/StructureDefinition/Organization
227
- - http://hl7.org/fhir/StructureDefinition/CareTeam
228
- - http://hl7.org/fhir/StructureDefinition/Patient
229
- - http://hl7.org/fhir/StructureDefinition/RelatedPerson
230
- - :path: Observation.specimen
231
- :profiles:
232
- - http://hl7.org/fhir/StructureDefinition/Specimen
233
- - :path: Observation.device
234
- :profiles:
235
- - http://hl7.org/fhir/StructureDefinition/Device
236
- - http://hl7.org/fhir/StructureDefinition/DeviceMetric
237
- - :path: Observation.hasMember
238
- :profiles:
239
- - http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
240
- - http://hl7.org/fhir/StructureDefinition/MolecularSequence
241
- - http://hl7.org/fhir/StructureDefinition/vitalsigns
242
- - :path: Observation.derivedFrom
243
- :profiles:
244
- - http://hl7.org/fhir/StructureDefinition/DocumentReference
245
- - http://hl7.org/fhir/StructureDefinition/ImagingStudy
246
- - http://hl7.org/fhir/StructureDefinition/Media
247
- - http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
248
- - http://hl7.org/fhir/StructureDefinition/MolecularSequence
249
- - http://hl7.org/fhir/StructureDefinition/vitalsigns
250
- :tests:
251
- - :id: us_core_v700_ballot_vital_signs_patient_code_search_test
252
- :file_name: vital_signs_patient_code_search_test.rb
253
- - :id: us_core_v700_ballot_vital_signs_patient_category_search_test
254
- :file_name: vital_signs_patient_category_search_test.rb
255
- - :id: us_core_v700_ballot_vital_signs_patient_category_date_search_test
256
- :file_name: vital_signs_patient_category_date_search_test.rb
257
- - :id: us_core_v700_ballot_vital_signs_patient_category_status_search_test
258
- :file_name: vital_signs_patient_category_status_search_test.rb
259
- - :id: us_core_v700_ballot_vital_signs_patient_code_date_search_test
260
- :file_name: vital_signs_patient_code_date_search_test.rb
261
- - :id: us_core_v700_ballot_vital_signs_read_test
262
- :file_name: vital_signs_read_test.rb
263
- - :id: us_core_v700_ballot_vital_signs_provenance_revinclude_search_test
264
- :file_name: vital_signs_provenance_revinclude_search_test.rb
265
- - :id: us_core_v700_ballot_vital_signs_validation_test
266
- :file_name: vital_signs_validation_test.rb
267
- - :id: us_core_v700_ballot_vital_signs_must_support_test
268
- :file_name: vital_signs_must_support_test.rb
269
- - :id: us_core_v700_ballot_vital_signs_reference_resolution_test
270
- :file_name: vital_signs_reference_resolution_test.rb
271
- :id: us_core_v700_ballot_vital_signs
272
- :file_name: vital_signs_group.rb
273
- :delayed_references: []
@@ -1,53 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
-
4
- module USCoreTestKit
5
- module USCoreV700_BALLOT
6
- class VitalSignsProvenanceRevincludeSearchTest < Inferno::Test
7
- include USCoreTestKit::SearchTest
8
-
9
- title 'Server returns Provenance resources from Observation search by patient + code + revInclude:Provenance:target'
10
- description %(
11
- A server SHALL be capable of supporting _revIncludes:Provenance:target.
12
-
13
- This test will perform a search by patient + code + revInclude:Provenance:target and
14
- will pass if a Provenance resource is found in the response.
15
- %)
16
-
17
- id :us_core_v700_ballot_vital_signs_provenance_revinclude_search_test
18
-
19
- input :patient_ids,
20
- title: 'Patient IDs',
21
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
22
-
23
- def properties
24
- @properties ||= SearchTestProperties.new(
25
- fixed_value_search: true,
26
- resource_type: 'Observation',
27
- search_param_names: ['patient', 'code'],
28
- possible_status_search: true
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml')))
34
- end
35
-
36
- def self.provenance_metadata
37
- @provenance_metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, '..', 'provenance', 'metadata.yml'), aliases: true))
38
- end
39
-
40
- def scratch_resources
41
- scratch[:vital_signs_resources] ||= {}
42
- end
43
-
44
- def scratch_provenance_resources
45
- scratch[:provenance_resources] ||= {}
46
- end
47
-
48
- run do
49
- run_provenance_revinclude_search_test
50
- end
51
- end
52
- end
53
- end
@@ -1,26 +0,0 @@
1
- require_relative '../../../read_test'
2
-
3
- module USCoreTestKit
4
- module USCoreV700_BALLOT
5
- class VitalSignsReadTest < Inferno::Test
6
- include USCoreTestKit::ReadTest
7
-
8
- title 'Server returns correct Observation resource from Observation read interaction'
9
- description 'A server SHALL support the Observation read interaction.'
10
-
11
- id :us_core_v700_ballot_vital_signs_read_test
12
-
13
- def resource_type
14
- 'Observation'
15
- end
16
-
17
- def scratch_resources
18
- scratch[:vital_signs_resources] ||= {}
19
- end
20
-
21
- run do
22
- perform_read_test(all_scratch_resources)
23
- end
24
- end
25
- end
26
- end
@@ -1,96 +0,0 @@
1
- require_relative 'vital_signs/vital_signs_patient_code_search_test'
2
- require_relative 'vital_signs/vital_signs_patient_category_search_test'
3
- require_relative 'vital_signs/vital_signs_patient_category_date_search_test'
4
- require_relative 'vital_signs/vital_signs_patient_category_status_search_test'
5
- require_relative 'vital_signs/vital_signs_patient_code_date_search_test'
6
- require_relative 'vital_signs/vital_signs_read_test'
7
- require_relative 'vital_signs/vital_signs_provenance_revinclude_search_test'
8
- require_relative 'vital_signs/vital_signs_validation_test'
9
- require_relative 'vital_signs/vital_signs_must_support_test'
10
- require_relative 'vital_signs/vital_signs_reference_resolution_test'
11
-
12
- module USCoreTestKit
13
- module USCoreV700_BALLOT
14
- class VitalSignsGroup < Inferno::TestGroup
15
- title 'Observation Vital Signs Tests'
16
- short_description 'Verify support for the server capabilities required by the US Core Vital Signs Profile.'
17
- description %(
18
- # Background
19
-
20
- The US Core Observation Vital Signs sequence verifies that the system under test is
21
- able to provide correct responses for Observation queries. These queries
22
- must contain resources conforming to the US Core Vital Signs Profile as
23
- specified in the US Core v7.0.0-ballot Implementation Guide.
24
-
25
- # Testing Methodology
26
- ## Searching
27
- This test sequence will first perform each required search associated
28
- with this resource. This sequence will perform searches with the
29
- following parameters:
30
-
31
- * patient + code
32
- * patient + category
33
- * patient + category + date
34
-
35
- ### Search Parameters
36
- The first search uses the selected patient(s) from the prior launch
37
- sequence. Any subsequent searches will look for its parameter values
38
- from the results of the first search. For example, the `identifier`
39
- search in the patient sequence is performed by looking for an existing
40
- `Patient.identifier` from any of the resources returned in the `_id`
41
- search. If a value cannot be found this way, the search is skipped.
42
-
43
- ### Search Validation
44
- Inferno will retrieve up to the first 20 bundle pages of the reply for
45
- Observation resources and save them for subsequent tests. Each of
46
- these resources is then checked to see if it matches the searched
47
- parameters in accordance with [FHIR search
48
- guidelines](https://www.hl7.org/fhir/search.html). The test will fail,
49
- for example, if a Patient search for `gender=male` returns a `female`
50
- patient.
51
-
52
-
53
- ## Must Support
54
- Each profile contains elements marked as "must support". This test
55
- sequence expects to see each of these elements at least once. If at
56
- least one cannot be found, the test will fail. The test will look
57
- through the Observation resources found in the first test for these
58
- elements.
59
-
60
- ## Profile Validation
61
- Each resource returned from the first search is expected to conform to
62
- the [US Core Vital Signs Profile](http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs). Each element is checked against
63
- teminology binding and cardinality requirements.
64
-
65
- Elements with a required binding are validated against their bound
66
- ValueSet. If the code/system in the element is not part of the ValueSet,
67
- then the test will fail.
68
-
69
- ## Reference Validation
70
- At least one instance of each external reference in elements marked as
71
- "must support" within the resources provided by the system must resolve.
72
- The test will attempt to read each reference found and will fail if no
73
- read succeeds.
74
-
75
- )
76
-
77
- id :us_core_v700_ballot_vital_signs
78
- run_as_group
79
-
80
- def self.metadata
81
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'vital_signs', 'metadata.yml'), aliases: true))
82
- end
83
-
84
- test from: :us_core_v700_ballot_vital_signs_patient_code_search_test
85
- test from: :us_core_v700_ballot_vital_signs_patient_category_search_test
86
- test from: :us_core_v700_ballot_vital_signs_patient_category_date_search_test
87
- test from: :us_core_v700_ballot_vital_signs_patient_category_status_search_test
88
- test from: :us_core_v700_ballot_vital_signs_patient_code_date_search_test
89
- test from: :us_core_v700_ballot_vital_signs_read_test
90
- test from: :us_core_v700_ballot_vital_signs_provenance_revinclude_search_test
91
- test from: :us_core_v700_ballot_vital_signs_validation_test
92
- test from: :us_core_v700_ballot_vital_signs_must_support_test
93
- test from: :us_core_v700_ballot_vital_signs_reference_resolution_test
94
- end
95
- end
96
- end