Sha256: 9e50bba667ce34c0793cd3a1cb63d47edfde680cd290eeb81e2a048a96f02267

Contents?: true

Size: 1.72 KB

Versions: 10

Compression:

Stored size: 1.72 KB

Contents

require_relative '../../../carin_search_test'
require_relative '../../../generator/group_metadata'

module CarinForBlueButtonTestKit
  module CARIN4BBV200DEVNONFINANCIAL
    class PatientIdSearchTest < Inferno::Test
      include CarinForBlueButtonTestKit::CarinSearchTest

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

Because this is the first search of the sequence, resources in the
response will be used for subsequent tests.

Additionally, this test will check that GET and POST search methods
return the same number of results. Search by POST is required by the
FHIR R4 specification, and these tests interpret search by GET as a
requirement of CARIN IG for Blue ButtonĀ® v2.0.0-dev-nonfinancial.


      )

      id :c4bb_v200devnonfinancial_patient__id_search_test
      
      input :patient_ids,
        title: 'Patient IDs',
        type: 'text',
        description: 'Comma separated list of patient IDs that in sum
                          contain all MUST SUPPORT elements'
      
      def self.properties
        @properties ||= SearchTestProperties.new(
          first_search: true,
          resource_type: 'Patient',
          search_param_names: ['_id'],
          test_post_search: true
        )
      end

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

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

      run do
        run_search_test
      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-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.13.2 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.13.1 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.13.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.12.1 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.12.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.11.2 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.11.1 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.11.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb
carin_for_blue_button_test_kit-0.10.0 lib/carin_for_blue_button_test_kit/generated/v2.0.0-dev-nonfinancial/patient/id_search_test.rb