Class: ONCCertificationG10TestKit::SMARTGranularScopeSelectionTest

Inherits:
Inferno::Test
  • Object
show all
Defined in:
lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb

Instance Method Summary collapse

Instance Method Details

#granular_scope_regex(resource_type) ⇒ Object



25
26
27
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 25

def granular_scope_regex(resource_type)
  /#{resource_type}\.(\*|c?ru?d?s?)\?.+=.+/
end

#resource_level_scope_regex(resource_type) ⇒ Object



17
18
19
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 17

def resource_level_scope_regex(resource_type)
  /#{resource_type}\.(\*|read|c?ru?d?s?)\z/
end

#resources_with_granular_scopesObject



13
14
15
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 13

def resources_with_granular_scopes
  ['Condition', 'Observation']
end

#v2_resource_level_scope_regex(resource_type) ⇒ Object



21
22
23
# File 'lib/onc_certification_g10_test_kit/smart_granular_scope_selection_test.rb', line 21

def v2_resource_level_scope_regex(resource_type)
  /#{resource_type}\.(\*|c?ru?d?s?)\z/
end