Sha256: 10aa21373944218e5f536235a2bb3091ce0837cb473e9ffb0e43ac35e452d17c

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

require_relative '../../search_test'
require_relative '../../generator/group_metadata'

module IpaTestKit
  class PractitionerRoleIdentifierSearchTest < Inferno::Test
    include IpaTestKit::SearchTest

    title 'Server returns valid results for PractitionerRole search by identifier'
    description %(
A server SHALL support searching by
identifier on the PractitionerRole resource. This test
will pass if resources are returned and match the search criteria. If
none are returned, the test is skipped.

[IPA Server CapabilityStatement](https://build.fhir.org/ig/HL7/fhir-ipa/CapabilityStatement-ipa-server.html)

    )

    id :ipa_010_practitioner_role_identifier_search_test
    def self.properties
      @properties ||= SearchTestProperties.new(
        resource_type: 'PractitionerRole',
        search_param_names: ['identifier'],
        token_search_params: ['identifier']
      )
    end

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

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

    run do
      run_search_test
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ipa_test_kit-0.2.0 lib/ipa_test_kit/generated/practitioner_role/practitioner_role_identifier_search_test.rb