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,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class DocumentReferencePatientStatusGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by patient + status based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference searches by
14
- patient + status and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_DocumentReference_patient_status_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'DocumentReference',
28
- search_param_names: ['patient', 'status']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:document_reference_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class DocumentReferencePatientTypeGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by patient + type based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference searches by
14
- patient + type and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_DocumentReference_patient_type_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'DocumentReference',
28
- search_param_names: ['patient', 'type']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:document_reference_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class DocumentReferencePatientTypePeriodGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by patient + type + period based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference searches by
14
- patient + type + period and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_DocumentReference_patient_type_period_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'DocumentReference',
28
- search_param_names: ['patient', 'type', 'period']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:document_reference_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,39 +0,0 @@
1
- require_relative 'document_reference/document_reference_patient_granular_scope_test'
2
- require_relative 'document_reference/document_reference_id_granular_scope_test'
3
- require_relative 'document_reference/document_reference_patient_type_granular_scope_test'
4
- require_relative 'document_reference/document_reference_patient_status_granular_scope_test'
5
- require_relative 'document_reference/document_reference_patient_type_period_granular_scope_test'
6
- require_relative 'document_reference/document_reference_patient_category_date_granular_scope_test'
7
- require_relative 'document_reference/document_reference_patient_category_granular_scope_test'
8
-
9
- module USCoreTestKit
10
- module USCoreV610
11
- class DocumentReferenceGranularScope1Group < Inferno::TestGroup
12
- title 'DocumentReference Granular Scope Tests Tests'
13
- short_description 'Verify support for the server capabilities required by the US Core DocumentReference Profile.'
14
- description %(
15
- The tests in this group repeat all of the searches from the US Core
16
- FHIR API tests, and verify that the resources returned are filtered
17
- based on the following granular scopes:
18
-
19
- * `DocumentReference.rs?category=http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category|clinical-note`
20
-
21
- )
22
-
23
- id :us_core_v610_document_reference_granular_scope_1_group
24
- run_as_group
25
-
26
- def self.metadata
27
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'document_reference', 'metadata.yml'), aliases: true))
28
- end
29
-
30
- test from: :us_core_v610_DocumentReference_patient_granular_scope_test
31
- test from: :us_core_v610_DocumentReference__id_granular_scope_test
32
- test from: :us_core_v610_DocumentReference_patient_type_granular_scope_test
33
- test from: :us_core_v610_DocumentReference_patient_status_granular_scope_test
34
- test from: :us_core_v610_DocumentReference_patient_type_period_granular_scope_test
35
- test from: :us_core_v610_DocumentReference_patient_category_date_granular_scope_test
36
- test from: :us_core_v610_DocumentReference_patient_category_granular_scope_test
37
- end
38
- end
39
- end
@@ -1,39 +0,0 @@
1
- require_relative 'document_reference/document_reference_patient_granular_scope_test'
2
- require_relative 'document_reference/document_reference_id_granular_scope_test'
3
- require_relative 'document_reference/document_reference_patient_type_granular_scope_test'
4
- require_relative 'document_reference/document_reference_patient_status_granular_scope_test'
5
- require_relative 'document_reference/document_reference_patient_type_period_granular_scope_test'
6
- require_relative 'document_reference/document_reference_patient_category_date_granular_scope_test'
7
- require_relative 'document_reference/document_reference_patient_category_granular_scope_test'
8
-
9
- module USCoreTestKit
10
- module USCoreV610
11
- class DocumentReferenceGranularScope2Group < Inferno::TestGroup
12
- title 'DocumentReference Granular Scope Tests Tests'
13
- short_description 'Verify support for the server capabilities required by the US Core DocumentReference Profile.'
14
- description %(
15
- The tests in this group repeat all of the searches from the US Core
16
- FHIR API tests, and verify that the resources returned are filtered
17
- based on the following granular scopes:
18
-
19
-
20
-
21
- )
22
-
23
- id :us_core_v610_document_reference_granular_scope_2_group
24
- run_as_group
25
-
26
- def self.metadata
27
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'document_reference', 'metadata.yml'), aliases: true))
28
- end
29
-
30
- test from: :us_core_v610_DocumentReference_patient_granular_scope_test
31
- test from: :us_core_v610_DocumentReference__id_granular_scope_test
32
- test from: :us_core_v610_DocumentReference_patient_type_granular_scope_test
33
- test from: :us_core_v610_DocumentReference_patient_status_granular_scope_test
34
- test from: :us_core_v610_DocumentReference_patient_type_period_granular_scope_test
35
- test from: :us_core_v610_DocumentReference_patient_category_date_granular_scope_test
36
- test from: :us_core_v610_DocumentReference_patient_category_granular_scope_test
37
- end
38
- end
39
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ObservationPatientCategoryDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Observation search by patient + category + date based on granular scopes'
12
- description %(
13
- This test repeats all Observation searches by
14
- patient + category + date and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_Observation_patient_category_date_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'Observation',
28
- search_param_names: ['patient', 'category', 'date']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:observation_lab_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ObservationPatientCategoryGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Observation search by patient + category based on granular scopes'
12
- description %(
13
- This test repeats all Observation searches by
14
- patient + category and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_Observation_patient_category_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'Observation',
28
- search_param_names: ['patient', 'category']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:observation_lab_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ObservationPatientCategoryStatusGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Observation search by patient + category + status based on granular scopes'
12
- description %(
13
- This test repeats all Observation searches by
14
- patient + category + status and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_Observation_patient_category_status_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'Observation',
28
- search_param_names: ['patient', 'category', 'status']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:observation_lab_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ObservationPatientCodeDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Observation search by patient + code + date based on granular scopes'
12
- description %(
13
- This test repeats all Observation searches by
14
- patient + code + date and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_Observation_patient_code_date_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'Observation',
28
- search_param_names: ['patient', 'code', 'date']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:observation_lab_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ObservationPatientCodeGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Observation search by patient + code based on granular scopes'
12
- description %(
13
- This test repeats all Observation searches by
14
- patient + code and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_Observation_patient_code_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'Observation',
28
- search_param_names: ['patient', 'code']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:observation_lab_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,41 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ServiceRequestIdGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for ServiceRequest search by _id based on granular scopes'
12
- description %(
13
- This test repeats all ServiceRequest searches by
14
- _id and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_ServiceRequest__id_granular_scope_test
20
-
21
- def self.properties
22
- @properties ||= SearchTestProperties.new(
23
- resource_type: 'ServiceRequest',
24
- search_param_names: ['_id']
25
- )
26
- end
27
-
28
- def self.metadata
29
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
30
- end
31
-
32
- def scratch_resources
33
- scratch[:service_request_resources] ||= {}
34
- end
35
-
36
- run do
37
- run_scope_check_test
38
- end
39
- end
40
- end
41
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ServiceRequestPatientCategoryAuthoredGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for ServiceRequest search by patient + category + authored based on granular scopes'
12
- description %(
13
- This test repeats all ServiceRequest searches by
14
- patient + category + authored and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_ServiceRequest_patient_category_authored_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'ServiceRequest',
28
- search_param_names: ['patient', 'category', 'authored']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:service_request_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ServiceRequestPatientCategoryGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for ServiceRequest search by patient + category based on granular scopes'
12
- description %(
13
- This test repeats all ServiceRequest searches by
14
- patient + category and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_ServiceRequest_patient_category_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'ServiceRequest',
28
- search_param_names: ['patient', 'category']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:service_request_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ServiceRequestPatientCodeAuthoredGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for ServiceRequest search by patient + code + authored based on granular scopes'
12
- description %(
13
- This test repeats all ServiceRequest searches by
14
- patient + code + authored and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_ServiceRequest_patient_code_authored_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'ServiceRequest',
28
- search_param_names: ['patient', 'code', 'authored']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:service_request_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end
@@ -1,45 +0,0 @@
1
- require_relative '../../../search_test'
2
- require_relative '../../../generator/group_metadata'
3
- require_relative '../../../granular_scope_checker'
4
-
5
- module USCoreTestKit
6
- module USCoreV610
7
- class ServiceRequestPatientCodeGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for ServiceRequest search by patient + code based on granular scopes'
12
- description %(
13
- This test repeats all ServiceRequest searches by
14
- patient + code and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v610_ServiceRequest_patient_code_granular_scope_test
20
-
21
- input :patient_ids,
22
- title: 'Patient IDs',
23
- description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'
24
-
25
- def self.properties
26
- @properties ||= SearchTestProperties.new(
27
- resource_type: 'ServiceRequest',
28
- search_param_names: ['patient', 'code']
29
- )
30
- end
31
-
32
- def self.metadata
33
- @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
34
- end
35
-
36
- def scratch_resources
37
- scratch[:service_request_resources] ||= {}
38
- end
39
-
40
- run do
41
- run_scope_check_test
42
- end
43
- end
44
- end
45
- end