Sha256: 1e701e4d421a62677dfe1105cd1f584877584ea290d1e444024685c6cdbb3e7d

Contents?: true

Size: 1.33 KB

Versions: 7

Compression:

Stored size: 1.33 KB

Contents

require_relative '../../../must_support_test'

module IpaTestKit
  module IpaV100
    class ConditionMustSupportTest < Inferno::Test
      include IpaTestKit::MustSupportTest

      title 'All must support elements are provided in the Condition resources returned'
      description %(
        Responders conforming to a profile in IPA SHALL return a Must Support
        element if that element is available. This test will look through the
        Condition resources found previously for the following must
        support elements:

        * Condition.category
        * Condition.clinicalStatus
        * Condition.code
        * Condition.subject
        * Condition.verificationStatus

        Note: Responders who cannot store or return a data element tagged as
        Supported in IPA profiles can still claim conformance to the IPA
        profiles per the IPA conformance resources.
      )

      id :ipa_v100_condition_must_support_test

      optional

      def resource_type
        'Condition'
      end

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

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

      run do
        perform_must_support_test(all_scratch_resources)
      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/condition/condition_must_support_test.rb
ipa_test_kit-0.4.0 lib/ipa_test_kit/generated/v1.0.0/condition/condition_must_support_test.rb
ipa_test_kit-0.3.4 lib/ipa_test_kit/generated/v1.0.0/condition/condition_must_support_test.rb
ipa_test_kit-0.3.3 lib/ipa_test_kit/generated/v1.0.0/condition/condition_must_support_test.rb
ipa_test_kit-0.3.2 lib/ipa_test_kit/generated/v1.0.0/condition/condition_must_support_test.rb
ipa_test_kit-0.3.1 lib/ipa_test_kit/generated/v1.0.0/condition/condition_must_support_test.rb
ipa_test_kit-0.3.0 lib/ipa_test_kit/generated/v1.0.0/condition/condition_must_support_test.rb