Class: DaVinciCRDTestKit::V221::ClientFHIRPathCollectionAsCommaDelimitedStringTest
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- DaVinciCRDTestKit::V221::ClientFHIRPathCollectionAsCommaDelimitedStringTest
- Defined in:
- lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_fhirpath_collection_as_comma_delimited_string_test.rb
Instance Method Summary collapse
- #completeness_tests_demonstrate_collection_token_substitution?(prefetch_completeness_tests) ⇒ Boolean
- #find_completeness_tests ⇒ Object
Instance Method Details
#completeness_tests_demonstrate_collection_token_substitution?(prefetch_completeness_tests) ⇒ Boolean
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_fhirpath_collection_as_comma_delimited_string_test.rb', line 46 def completeness_tests_demonstrate_collection_token_substitution?(prefetch_completeness_tests) results_repo = Inferno::Repositories::Results.new results = results_repo.current_results_for_test_session_and_runnables(test_session_id, prefetch_completeness_tests) results.any? do |result| result.outputs.any? do |output| output['name'] == 'demonstrates_fhirpath_collection_as_comma_delimited_string' && output['value'] == 'true' end end end |
#find_completeness_tests ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/davinci_crd_test_kit/client/v2.2.1/cross_hook/client_fhirpath_collection_as_comma_delimited_string_test.rb', line 35 def find_completeness_tests hooks_group = self.class.parent.parent.groups.find do |group| group.id.to_s.include?('crd_v221_client_hooks') end hooks_group.groups.map do |group| group.groups.flat_map(&:tests).find do |test| test.id.to_s.include?('crd_v221_hook_request_prefetch_complete') end end.compact end |