Class: ONCCertificationG10TestKit::PatientScopeTest

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

Instance Method Summary collapse

Instance Method Details

#scope_regex_string(scope) ⇒ Object



45
46
47
# File 'lib/onc_certification_g10_test_kit/patient_scope_test.rb', line 45

def scope_regex_string(scope)
  "\\A#{Regexp.quote(scope)}\\z"
end

#scope_versionObject



19
20
21
# File 'lib/onc_certification_g10_test_kit/patient_scope_test.rb', line 19

def scope_version
  config.options[:scope_version]
end

#unmatched_scopes_string(unmatched_scopes) ⇒ Object



49
50
51
52
53
# File 'lib/onc_certification_g10_test_kit/patient_scope_test.rb', line 49

def unmatched_scopes_string(unmatched_scopes)
  unmatched_scopes
    .map { |scope| "`#{scope.source}`" }
    .join(', ')
end