Sha256: 4c879b98289bf7836d257f8b05ded493b99155f7bf1e9f6382aee8c4e370d01a

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

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

module USCoreTestKit
  module USCoreV400
    class EncounterReferenceResolutionTest < Inferno::Test
      include USCoreTestKit::ReferenceResolutionTest
      include ResourceList

      title 'MustSupport references within Encounter 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 US Core profile.

        Elements which may provide external references include:

        * Encounter.location.location
        * Encounter.participant.individual
        * Encounter.reasonReference
        * Encounter.serviceProvider
        * Encounter.subject
      )

      id :us_core_v400_encounter_reference_resolution_test

      def resource_type
        'Encounter'
      end

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
us_core_test_kit-0.6.0 lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb
us_core_test_kit-0.5.0 lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb
us_core_test_kit-0.4.7 lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb
us_core_test_kit-0.4.6 lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb
us_core_test_kit-0.4.5 lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb
us_core_test_kit-0.4.4 lib/us_core_test_kit/generated/v4.0.0/encounter/encounter_reference_resolution_test.rb