Sha256: 88b0989f396aff125cf35f41e82e20e4b8313e31814ad92804011320c0f3ac77

Contents?: true

Size: 1.16 KB

Versions: 17

Compression:

Stored size: 1.16 KB

Contents

module ONCCertificationG10TestKit
  class PatientScopeTest < Inferno::Test
    title 'Patient-level scopes were granted'
    description %(
      Systems are required to support the `permission-patient` capability as
      part of the Clinician Access for EHR Launch Capability Set.

      This test verifies that systems are capable of granting patient-level
      scopes during an EHR Launch.

      * [Clinician Access for EHR Launch Capability Set STU
        1](http://hl7.org/fhir/smart-app-launch/1.0.0/conformance/index.html#clinician-access-for-ehr-launch)
      * [Clinician Access for EHR Launch Capability Set STU
        2](http://hl7.org/fhir/smart-app-launch/STU2/conformance.html#clinician-access-for-ehr-launch)
    )
    id :g10_patient_scope
    input :received_scopes

    run do
      expected_scope = if config.options[:scope_version] == :v2
                         'patient/Patient.rs'
                       else
                         'patient/Patient.read'
                       end
      assert received_scopes&.include?(expected_scope),
             "#{expected_scope} scope was requested, but not received. Received: `#{received_scopes}`"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
onc_certification_g10_test_kit-6.0.1 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-6.0.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-5.4.2 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-5.4.1 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-5.3.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-5.2.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-5.1.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-5.0.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-4.1.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-4.0.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.8.1 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.8.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.7.2 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.7.1 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.7.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.6.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb
onc_certification_g10_test_kit-3.5.0 lib/onc_certification_g10_test_kit/patient_scope_test.rb