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.
- 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/fhir_resource_navigation.rb +3 -3
- 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/v3.1.1/us_core_test_suite.rb +2 -1
- 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/v4.0.0/us_core_test_suite.rb +2 -1
- 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 +4 -1
- 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 +4 -1
- 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 +6 -3
- 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 +40 -94
- 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 ConditionPatientAssertedDateGranularScopeTest < Inferno::Test
|
8
|
-
include USCoreTestKit::SearchTest
|
9
|
-
include USCoreTestKit::GranularScopeChecker
|
10
|
-
|
11
|
-
title 'Server filters results for Condition search by patient + asserted-date based on granular scopes'
|
12
|
-
description %(
|
13
|
-
This test repeats all Condition searches by
|
14
|
-
patient + asserted-date and verifies that the results have been
|
15
|
-
filtered based on the granted granular scopes.
|
16
|
-
|
17
|
-
)
|
18
|
-
|
19
|
-
id :us_core_v610_Condition_patient_asserted_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', 'asserted-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 USCoreV610
|
7
|
-
class ConditionPatientCategoryClinicalStatusGranularScopeTest < Inferno::Test
|
8
|
-
include USCoreTestKit::SearchTest
|
9
|
-
include USCoreTestKit::GranularScopeChecker
|
10
|
-
|
11
|
-
title 'Server filters results for Condition search by patient + category + clinical-status based on granular scopes'
|
12
|
-
description %(
|
13
|
-
This test repeats all Condition searches by
|
14
|
-
patient + category + clinical-status and verifies that the results have been
|
15
|
-
filtered based on the granted granular scopes.
|
16
|
-
|
17
|
-
)
|
18
|
-
|
19
|
-
id :us_core_v610_Condition_patient_category_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', 'category', '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 USCoreV610
|
7
|
-
class ConditionPatientCategoryEncounterGranularScopeTest < Inferno::Test
|
8
|
-
include USCoreTestKit::SearchTest
|
9
|
-
include USCoreTestKit::GranularScopeChecker
|
10
|
-
|
11
|
-
title 'Server filters results for Condition search by patient + category + encounter based on granular scopes'
|
12
|
-
description %(
|
13
|
-
This test repeats all Condition searches by
|
14
|
-
patient + category + encounter and verifies that the results have been
|
15
|
-
filtered based on the granted granular scopes.
|
16
|
-
|
17
|
-
)
|
18
|
-
|
19
|
-
id :us_core_v610_Condition_patient_category_encounter_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', 'category', 'encounter']
|
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 USCoreV610
|
7
|
-
class ConditionPatientCategoryGranularScopeTest < Inferno::Test
|
8
|
-
include USCoreTestKit::SearchTest
|
9
|
-
include USCoreTestKit::GranularScopeChecker
|
10
|
-
|
11
|
-
title 'Server filters results for Condition search by patient + category based on granular scopes'
|
12
|
-
description %(
|
13
|
-
This test repeats all Condition 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_Condition_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: 'Condition',
|
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[: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 USCoreV610
|
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_v610_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 USCoreV610
|
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_v610_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 USCoreV610
|
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_v610_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 USCoreV610
|
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_v610_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 USCoreV610
|
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_v610_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,38 +0,0 @@
|
|
1
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test'
|
2
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_granular_scope_test'
|
3
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test'
|
4
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test'
|
5
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test'
|
6
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test'
|
7
|
-
|
8
|
-
module USCoreTestKit
|
9
|
-
module USCoreV610
|
10
|
-
class DiagnosticReportGranularScope1Group < Inferno::TestGroup
|
11
|
-
title 'DiagnosticReport Granular Scope Tests Tests'
|
12
|
-
short_description 'Verify support for the server capabilities required by the US Core DiagnosticReport Profile for Report and Note Exchange.'
|
13
|
-
description %(
|
14
|
-
The tests in this group repeat all of the searches from the US Core
|
15
|
-
FHIR API tests, and verify that the resources returned are filtered
|
16
|
-
based on the following granular scopes:
|
17
|
-
|
18
|
-
* `DiagnosticReport.rs?category=http://loinc.org|LP29684-5`
|
19
|
-
* `DiagnosticReport.rs?category=http://loinc.org|LP29708-2`
|
20
|
-
|
21
|
-
)
|
22
|
-
|
23
|
-
id :us_core_v610_diagnostic_report_granular_scope_1_group
|
24
|
-
run_as_group
|
25
|
-
|
26
|
-
def self.metadata
|
27
|
-
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'diagnostic_report_note', 'metadata.yml'), aliases: true))
|
28
|
-
end
|
29
|
-
|
30
|
-
test from: :us_core_v610_DiagnosticReport_patient_category_granular_scope_test
|
31
|
-
test from: :us_core_v610_DiagnosticReport_patient_granular_scope_test
|
32
|
-
test from: :us_core_v610_DiagnosticReport_patient_code_date_granular_scope_test
|
33
|
-
test from: :us_core_v610_DiagnosticReport_patient_status_granular_scope_test
|
34
|
-
test from: :us_core_v610_DiagnosticReport_patient_category_date_granular_scope_test
|
35
|
-
test from: :us_core_v610_DiagnosticReport_patient_code_granular_scope_test
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_category_granular_scope_test'
|
2
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_granular_scope_test'
|
3
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_code_date_granular_scope_test'
|
4
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_status_granular_scope_test'
|
5
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_category_date_granular_scope_test'
|
6
|
-
require_relative 'diagnostic_report_note/diagnostic_report_patient_code_granular_scope_test'
|
7
|
-
|
8
|
-
module USCoreTestKit
|
9
|
-
module USCoreV610
|
10
|
-
class DiagnosticReportGranularScope2Group < Inferno::TestGroup
|
11
|
-
title 'DiagnosticReport Granular Scope Tests Tests'
|
12
|
-
short_description 'Verify support for the server capabilities required by the US Core DiagnosticReport Profile for Report and Note Exchange.'
|
13
|
-
description %(
|
14
|
-
The tests in this group repeat all of the searches from the US Core
|
15
|
-
FHIR API tests, and verify that the resources returned are filtered
|
16
|
-
based on the following granular scopes:
|
17
|
-
|
18
|
-
* `DiagnosticReport.rs?category=http://loinc.org|LP7839-6`
|
19
|
-
* `DiagnosticReport.rs?category=http://terminology.hl7.org/CodeSystem/v2-0074|LAB`
|
20
|
-
|
21
|
-
)
|
22
|
-
|
23
|
-
id :us_core_v610_diagnostic_report_granular_scope_2_group
|
24
|
-
run_as_group
|
25
|
-
|
26
|
-
def self.metadata
|
27
|
-
@metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'diagnostic_report_note', 'metadata.yml'), aliases: true))
|
28
|
-
end
|
29
|
-
|
30
|
-
test from: :us_core_v610_DiagnosticReport_patient_category_granular_scope_test
|
31
|
-
test from: :us_core_v610_DiagnosticReport_patient_granular_scope_test
|
32
|
-
test from: :us_core_v610_DiagnosticReport_patient_code_date_granular_scope_test
|
33
|
-
test from: :us_core_v610_DiagnosticReport_patient_status_granular_scope_test
|
34
|
-
test from: :us_core_v610_DiagnosticReport_patient_category_date_granular_scope_test
|
35
|
-
test from: :us_core_v610_DiagnosticReport_patient_code_granular_scope_test
|
36
|
-
end
|
37
|
-
end
|
38
|
-
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 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_v610_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 USCoreV610
|
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_v610_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 USCoreV610
|
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_v610_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 USCoreV610
|
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_v610_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
|