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



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

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

#resource_level_scope_regex(resource_type) ⇒ Object



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

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

#resources_with_granular_scopesObject



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

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

#v2_resource_level_scope_regex(resource_type) ⇒ Object



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

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