Sha256: eabf516b71a2b9696e3c48e2120240edb9adf47dc3da4837403b74a889081470

Contents?: true

Size: 1.49 KB

Versions: 10

Compression:

Stored size: 1.49 KB

Contents

require_relative '../../../must_support_test'
require_relative './read_test'
require_relative '../../../generator/group_metadata'

module CarinForBlueButtonTestKit
  module CARIN4BBV200
    class RelatedPersonMustSupportTest < Inferno::Test
      include CarinForBlueButtonTestKit::MustSupportTest
      include CarinForBlueButtonTestKit::CARIN4BBV200

      title 'All must support elements are provided in the RelatedPerson resources returned'
      description %(
        CARIN for Blue Button Responders SHALL be capable of populating all data elements as
        part of the query results as specified by the CARIN for Blue Button Capability
        Statement. This test will look through the RelatedPerson resources
        found previously for the following must support elements:

                * RelatedPerson.active
        * RelatedPerson.address
        * RelatedPerson.meta
        * RelatedPerson.meta.lastUpdated
        * RelatedPerson.name
        * RelatedPerson.patient
        * RelatedPerson.relationship
        * RelatedPerson.telecom
      )

      id :c4bb_v200_related_person_must_support_test

      def resource_type
        'RelatedPerson'
      end

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

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

      run do
        perform_must_support_test(all_scratch_resources)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
carin_for_blue_button_test_kit-0.13.3 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.13.2 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.13.1 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.13.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.12.1 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.12.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.11.2 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.11.1 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.11.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb
carin_for_blue_button_test_kit-0.10.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0/related_person/must_support_test.rb