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.
- checksums.yaml +4 -4
- data/lib/us_core_test_kit/custom_groups/smart_app_launch_group.rb +2 -2
- data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +10 -0
- data/lib/us_core_test_kit/generated/v3.1.1/patient/metadata.yml +10 -0
- data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +10 -0
- data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +10 -0
- data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +21 -2
- data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +6 -2
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/metadata.yml +155 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_must_support_test.rb +45 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_read_test.rb +26 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role/practitioner_role_validation_test.rb +40 -0
- data/lib/us_core_test_kit/generated/v5.0.1/practitioner_role_group.rb +89 -0
- data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +2 -0
- data/lib/us_core_test_kit/generated/v6.1.0/metadata.yml +17 -2
- data/lib/us_core_test_kit/generated/v6.1.0/patient/metadata.yml +2 -2
- data/lib/us_core_test_kit/generated/v6.1.0/patient/patient_must_support_test.rb +0 -2
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/metadata.yml +155 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_must_support_test.rb +45 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_practitioner_search_test.rb +41 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_read_test.rb +26 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_specialty_search_test.rb +53 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role/practitioner_role_validation_test.rb +40 -0
- data/lib/us_core_test_kit/generated/v6.1.0/practitioner_role_group.rb +89 -0
- data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +2 -0
- 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
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_search_test.rb +52 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_address_state_search_test.rb +43 -0
- 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
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/location_read_test.rb +26 -0
- 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
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/location/metadata.yml +194 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/location_group.rb +93 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/metadata.yml +38 -273
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/metadata.yml +2 -2
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/patient/patient_must_support_test.rb +0 -2
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/metadata.yml +160 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_must_support_test.rb +45 -0
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_read_test.rb +26 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_reference_resolution_test.rb +43 -0
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role/practitioner_role_validation_test.rb +40 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/practitioner_role_group.rb +89 -0
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/us_core_test_suite.rb +4 -2
- data/lib/us_core_test_kit/generator/group_generator.rb +2 -2
- data/lib/us_core_test_kit/generator/group_metadata.rb +3 -1
- data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +8 -1
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_3.rb +64 -18
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_4.rb +1 -18
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_5.rb +0 -15
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +5 -2
- data/lib/us_core_test_kit/generator/special_cases.rb +17 -7
- data/lib/us_core_test_kit/granular_scope_checker.rb +1 -1
- data/lib/us_core_test_kit/version.rb +1 -1
- metadata +37 -91
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_clinical_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope1_group.rb +0 -38
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_granular_scope2_group.rb +0 -38
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_id_granular_scope_test.rb +0 -41
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope1_group.rb +0 -39
- data/lib/us_core_test_kit/generated/v6.1.0/document_reference_granular_scope2_group.rb +0 -39
- data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_id_granular_scope_test.rb +0 -41
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope1_group.rb +0 -39
- data/lib/us_core_test_kit/generated/v6.1.0/service_request_granular_scope2_group.rb +0 -40
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_abatement_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_asserted_date_granular_scope_test.rb +0 -45
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_encounter_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_clinical_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_onset_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/condition_encounter_diagnosis/condition_patient_recorded_date_granular_scope_test.rb +0 -45
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test.rb +0 -45
- 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
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_id_granular_scope_test.rb +0 -41
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference/document_reference_patient_type_period_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/document_reference_granular_scope2_group.rb +0 -39
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_category_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_date_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/observation_lab/observation_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_id_granular_scope_test.rb +0 -41
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_authored_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_category_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_authored_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_code_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/service_request/service_request_patient_status_granular_scope_test.rb +0 -45
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/metadata.yml +0 -273
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_provenance_revinclude_search_test.rb +0 -53
- data/lib/us_core_test_kit/generated/v7.0.0-ballot/vital_signs/vital_signs_read_test.rb +0 -26
- 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
|
data/lib/us_core_test_kit/generated/v6.1.0/service_request/service_request_id_granular_scope_test.rb
DELETED
@@ -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
|