From 66525b0492b53b7e5be5765e4e3901c54369e6f0 Mon Sep 17 00:00:00 2001 From: Yunwei Wang <> Date: Wed, 24 Jan 2024 12:19:03 -0600 Subject: [PATCH] change from delayed? to exclude_search_tests? --- lib/onc_certification_g10_test_kit/single_patient_api_group.rb | 2 +- .../single_patient_us_core_4_api_group.rb | 2 +- .../single_patient_us_core_5_api_group.rb | 2 +- .../single_patient_us_core_6_api_group.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/onc_certification_g10_test_kit/single_patient_api_group.rb b/lib/onc_certification_g10_test_kit/single_patient_api_group.rb index 05884f3e..cff70598 100644 --- a/lib/onc_certification_g10_test_kit/single_patient_api_group.rb +++ b/lib/onc_certification_g10_test_kit/single_patient_api_group.rb @@ -112,7 +112,7 @@ class SinglePatientAPIGroup < Inferno::TestGroup id = test_group.id group_config = {} - if test_group.respond_to?(:metadata) && test_group.metadata.delayed? + if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests? test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest } group_config[:options] = { read_all_resources: true } end diff --git a/lib/onc_certification_g10_test_kit/single_patient_us_core_4_api_group.rb b/lib/onc_certification_g10_test_kit/single_patient_us_core_4_api_group.rb index 32ec4c0a..e65d6e88 100644 --- a/lib/onc_certification_g10_test_kit/single_patient_us_core_4_api_group.rb +++ b/lib/onc_certification_g10_test_kit/single_patient_us_core_4_api_group.rb @@ -126,7 +126,7 @@ class SinglePatientUSCore4APIGroup < Inferno::TestGroup id = test_group.id group_config = {} - if test_group.respond_to?(:metadata) && test_group.metadata.delayed? + if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests? test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest } group_config[:options] = { read_all_resources: true } end diff --git a/lib/onc_certification_g10_test_kit/single_patient_us_core_5_api_group.rb b/lib/onc_certification_g10_test_kit/single_patient_us_core_5_api_group.rb index a0462b0b..ac70adcf 100644 --- a/lib/onc_certification_g10_test_kit/single_patient_us_core_5_api_group.rb +++ b/lib/onc_certification_g10_test_kit/single_patient_us_core_5_api_group.rb @@ -145,7 +145,7 @@ def self.user_runnable? id = test_group.id group_config = {} - if test_group.respond_to?(:metadata) && test_group.metadata.delayed? + if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests? test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest } group_config[:options] = { read_all_resources: true } end diff --git a/lib/onc_certification_g10_test_kit/single_patient_us_core_6_api_group.rb b/lib/onc_certification_g10_test_kit/single_patient_us_core_6_api_group.rb index bb5a9346..41ee6abc 100644 --- a/lib/onc_certification_g10_test_kit/single_patient_us_core_6_api_group.rb +++ b/lib/onc_certification_g10_test_kit/single_patient_us_core_6_api_group.rb @@ -168,7 +168,7 @@ class SinglePatientUSCore6APIGroup < Inferno::TestGroup id = test_group.id group_config = {} - if test_group.respond_to?(:metadata) && test_group.metadata.resource != 'Specimen' && test_group.metadata.delayed? + if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests? test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest } group_config[:options] = { read_all_resources: true } end