Sha256: 9516afe1400d24bfb636a3bd07c3f7c868adea98ef3bc85a55147e889bd16713
Contents?: true
Size: 1.95 KB
Versions: 3
Compression:
Stored size: 1.95 KB
Contents
require_relative '../base_smart_granular_scopes_group' require_relative '../../generated/v6.1.0/granular_scopes1_group' require_relative '../../generated/v6.1.0/granular_scopes2_group' module USCoreTestKit module USCoreV610 class SmartGranularScopesGroup < BaseSmartGranularScopesGroup id :us_core_v610_smart_granular_scopes title 'US Core SMART Granular Scopes' def self.scopes_string(scopes) scopes .map { |scope| scope.delete_prefix 'patient/' } .map { |scope| "* `#{scope}`" } .join("\n") end groups .first .description %( These tests perform a SMART app launch to receive the following granular scopes: #{scopes_string(SMART_GRANULAR_SCOPES_GROUP1['v610'])} Then all of the searches which have been performed in the US Core FHIR API tests are repeated to verify that the results have been filtered according to the above scopes. ) groups .first .config( inputs: { requested_scopes: { name: :requested_scopes_group1, default: groups.first.default_group_scopes('v610') } } ) groups .first .group from: :us_core_v610_smart_granular_scopes_1 groups .last .description %( These tests perform a SMART app launch to receive the following granular scopes: #{scopes_string(SMART_GRANULAR_SCOPES_GROUP2['v610'])} Then all of the searches which have been performed in the US Core FHIR API tests are repeated to verify that the results have been filtered according to the above scopes. ) groups .last .config( inputs: { requested_scopes: { name: :requested_scopes_group2, default: groups.last.default_group_scopes('v610') } } ) groups .last .group from: :us_core_v610_smart_granular_scopes_2 end end end
Version data entries
3 entries across 3 versions & 1 rubygems