Sha256: 80e3d94d110a15891ec73b087f7b1423d5fbc8c7af7c86a7ea97c0322ac37aaf

Contents?: true

Size: 1.22 KB

Versions: 7

Compression:

Stored size: 1.22 KB

Contents

require_relative '../../../reference_resolution_test'
require_relative '../resource_list'

module IpaTestKit
  module IpaV100
    class ObservationReferenceResolutionTest < Inferno::Test
      include IpaTestKit::ReferenceResolutionTest
      include ResourceList

      title 'MustSupport references within Observation resources are valid'
      description %(
        This test will attempt to read external references provided within elements
        marked as 'MustSupport', if any are available.

        It verifies that at least one external reference for each MustSupport Reference element
        can be accessed by the test client, and conforms to corresponding IPA profile.

        Elements which may provide external references include:

        * Observation.subject
      )

      id :ipa_v100_observation_reference_resolution_test

      def resource_type
        'Observation'
      end

      def self.metadata
        @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
      end

      def scratch_resources
        scratch[:observation_resources] ||= {}
      end

      run do
        perform_reference_resolution_test(scratch_resources[:all])
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ipa_test_kit-0.4.1 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb
ipa_test_kit-0.4.0 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb
ipa_test_kit-0.3.4 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb
ipa_test_kit-0.3.3 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb
ipa_test_kit-0.3.2 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb
ipa_test_kit-0.3.1 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb
ipa_test_kit-0.3.0 lib/ipa_test_kit/generated/v1.0.0/observation/observation_reference_resolution_test.rb