us_core_test_kit 0.6.3 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) 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/fhir_resource_navigation.rb +3 -3
  4. data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +10 -0
  5. data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +10 -0
  6. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +2 -1
  7. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +10 -0
  8. data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +10 -0
  9. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +2 -1
  10. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +21 -2
  11. data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +6 -2
  12. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/metadata.yml +155 -0
  13. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  14. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  15. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_read_test.rb +26 -0
  16. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  17. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  18. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_validation_test.rb +40 -0
  19. data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role_group.rb +89 -0
  20. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +4 -1
  21. data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +17 -2
  22. data/lib/us_core_test_kit/generated/v6.1.0/patient/metadata.yml +2 -2
  23. data/lib/us_core_test_kit/generated/v6.1.0/patient/patient_must_support_test.rb +0 -2
  24. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/metadata.yml +155 -0
  25. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  26. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
  27. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_read_test.rb +26 -0
  28. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  29. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
  30. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_validation_test.rb +40 -0
  31. data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role_group.rb +89 -0
  32. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +4 -1
  33. 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
  34. 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
  35. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_search_test.rb +52 -0
  36. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_state_search_test.rb +43 -0
  37. 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
  38. 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
  39. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_read_test.rb +26 -0
  40. 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
  41. 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
  42. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/metadata.yml +194 -0
  43. data/lib/us_core_test_kit/generated/v7.0.0-ballot/location_group.rb +93 -0
  44. data/lib/us_core_test_kit/generated/v7.0.0-ballot/metadata.yml +38 -273
  45. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/metadata.yml +2 -2
  46. data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/patient_must_support_test.rb +0 -2
  47. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/metadata.yml +160 -0
  48. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_must_support_test.rb +45 -0
  49. 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
  50. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_read_test.rb +26 -0
  51. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
  52. 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
  53. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_validation_test.rb +40 -0
  54. data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role_group.rb +89 -0
  55. data/lib/us_core_test_kit/generated/v7.0.0-ballot/us_core_test_suite.rb +6 -3
  56. data/lib/us_core_test_kit/generator/group_generator.rb +2 -2
  57. data/lib/us_core_test_kit/generator/group_metadata.rb +3 -1
  58. data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +8 -1
  59. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_3.rb +64 -18
  60. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +1 -18
  61. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +0 -15
  62. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +5 -2
  63. data/lib/us_core_test_kit/generator/special_cases.rb +17 -7
  64. data/lib/us_core_test_kit/granular_scope_checker.rb +1 -1
  65. data/lib/us_core_test_kit/version.rb +1 -1
  66. metadata +40 -94
  67. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  68. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  69. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
  70. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  71. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  72. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  73. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  74. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  75. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  76. data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
  77. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope1_group.rb +0 -38
  78. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope2_group.rb +0 -38
  79. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
  80. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  81. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
  82. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  83. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  84. data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  85. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  86. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  87. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  88. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  89. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  90. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  91. data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  92. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope1_group.rb +0 -39
  93. data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope2_group.rb +0 -39
  94. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  95. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  96. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  97. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  98. data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  99. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_id_granular_scope_test.rb +0 -41
  100. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  101. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  102. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  103. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  104. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_granular_scope_test.rb +0 -45
  105. data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  106. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope1_group.rb +0 -39
  107. data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope2_group.rb +0 -40
  108. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
  109. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
  110. 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
  111. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
  112. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
  113. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
  114. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
  115. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
  116. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
  117. data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_recorded_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_category_date_granular_scope_test.rb +0 -45
  119. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
  120. 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
  121. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
  122. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
  123. data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
  124. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_id_granular_scope_test.rb +0 -41
  125. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
  126. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
  127. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
  128. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
  129. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
  130. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
  131. data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference_granular_scope2_group.rb +0 -39
  132. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
  133. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
  134. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
  135. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
  136. data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
  137. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_id_granular_scope_test.rb +0 -41
  138. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
  139. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
  140. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
  141. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
  142. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_granular_scope_test.rb +0 -45
  143. data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
  144. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/metadata.yml +0 -273
  145. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_provenance_revinclude_search_test.rb +0 -53
  146. data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_read_test.rb +0 -26
  147. 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 USCoreV700_BALLOT
7
- class ConditionPatientClinicalStatusGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Condition search by patient + clinical-status based on granular scopes'
12
- description %(
13
- This test repeats all Condition searches by
14
- patient + clinical-status and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v700_ballot_Condition_patient_clinical_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: 'Condition',
28
- search_param_names: ['patient', 'clinical-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[:condition_encounter_diagnosis_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 USCoreV700_BALLOT
7
- class ConditionPatientCodeGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Condition search by patient + code based on granular scopes'
12
- description %(
13
- This test repeats all Condition 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_v700_ballot_Condition_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: 'Condition',
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[:condition_encounter_diagnosis_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 USCoreV700_BALLOT
7
- class ConditionPatientGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Condition search by patient based on granular scopes'
12
- description %(
13
- This test repeats all Condition searches by
14
- patient and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v700_ballot_Condition_patient_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: 'Condition',
28
- search_param_names: ['patient']
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[:condition_encounter_diagnosis_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 USCoreV700_BALLOT
7
- class ConditionPatientOnsetDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Condition search by patient + onset-date based on granular scopes'
12
- description %(
13
- This test repeats all Condition searches by
14
- patient + onset-date and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v700_ballot_Condition_patient_onset_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: 'Condition',
28
- search_param_names: ['patient', 'onset-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[:condition_encounter_diagnosis_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 USCoreV700_BALLOT
7
- class ConditionPatientRecordedDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for Condition search by patient + recorded-date based on granular scopes'
12
- description %(
13
- This test repeats all Condition searches by
14
- patient + recorded-date and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v700_ballot_Condition_patient_recorded_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: 'Condition',
28
- search_param_names: ['patient', 'recorded-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[:condition_encounter_diagnosis_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 USCoreV700_BALLOT
7
- class DiagnosticReportPatientCategoryDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DiagnosticReport search by patient + category + date based on granular scopes'
12
- description %(
13
- This test repeats all DiagnosticReport 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_v700_ballot_DiagnosticReport_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: 'DiagnosticReport',
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[:diagnostic_report_note_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 USCoreV700_BALLOT
7
- class DiagnosticReportPatientCategoryGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DiagnosticReport search by patient + category based on granular scopes'
12
- description %(
13
- This test repeats all DiagnosticReport 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_v700_ballot_DiagnosticReport_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: 'DiagnosticReport',
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[:diagnostic_report_note_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 USCoreV700_BALLOT
7
- class DiagnosticReportPatientCodeDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DiagnosticReport search by patient + code + date based on granular scopes'
12
- description %(
13
- This test repeats all DiagnosticReport 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_v700_ballot_DiagnosticReport_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: 'DiagnosticReport',
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[:diagnostic_report_note_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 USCoreV700_BALLOT
7
- class DiagnosticReportPatientCodeGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DiagnosticReport search by patient + code based on granular scopes'
12
- description %(
13
- This test repeats all DiagnosticReport 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_v700_ballot_DiagnosticReport_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: 'DiagnosticReport',
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[:diagnostic_report_note_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 USCoreV700_BALLOT
7
- class DiagnosticReportPatientGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DiagnosticReport search by patient based on granular scopes'
12
- description %(
13
- This test repeats all DiagnosticReport searches by
14
- patient and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v700_ballot_DiagnosticReport_patient_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: 'DiagnosticReport',
28
- search_param_names: ['patient']
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[:diagnostic_report_note_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 USCoreV700_BALLOT
7
- class DiagnosticReportPatientStatusGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DiagnosticReport search by patient + status based on granular scopes'
12
- description %(
13
- This test repeats all DiagnosticReport 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_v700_ballot_DiagnosticReport_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: 'DiagnosticReport',
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[:diagnostic_report_note_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 USCoreV700_BALLOT
7
- class DocumentReferenceIdGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by _id based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference 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_v700_ballot_DocumentReference__id_granular_scope_test
20
-
21
- def self.properties
22
- @properties ||= SearchTestProperties.new(
23
- resource_type: 'DocumentReference',
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[:document_reference_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 USCoreV700_BALLOT
7
- class DocumentReferencePatientCategoryDateGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by patient + category + date based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference 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_v700_ballot_DocumentReference_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: 'DocumentReference',
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[: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 USCoreV700_BALLOT
7
- class DocumentReferencePatientCategoryGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by patient + category based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference 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_v700_ballot_DocumentReference_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: 'DocumentReference',
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[: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 USCoreV700_BALLOT
7
- class DocumentReferencePatientGranularScopeTest < Inferno::Test
8
- include USCoreTestKit::SearchTest
9
- include USCoreTestKit::GranularScopeChecker
10
-
11
- title 'Server filters results for DocumentReference search by patient based on granular scopes'
12
- description %(
13
- This test repeats all DocumentReference searches by
14
- patient and verifies that the results have been
15
- filtered based on the granted granular scopes.
16
-
17
- )
18
-
19
- id :us_core_v700_ballot_DocumentReference_patient_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']
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