Sha256: 6944b3789f258236b08127e62316c4761a946c56f363fb4009c5a49bf0f90048
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
require_relative '../../../search_test' require_relative '../../../generator/group_metadata' module USCoreTestKit module USCoreV610 class MedicationDispensePatientStatusTypeSearchTest < Inferno::Test include USCoreTestKit::SearchTest title 'Server returns valid results for MedicationDispense search by patient + status + type' description %( A server SHOULD support searching by patient + status + type on the MedicationDispense resource. This test will pass if resources are returned and match the search criteria. If none are returned, the test is skipped. If any MedicationRequest resources use external references to Medications, the search will be repeated with `_include=MedicationRequest:medication`. [US Core Server CapabilityStatement](http://hl7.org/fhir/us/core//CapabilityStatement-us-core-server.html) ) id :us_core_v610_medication_dispense_patient_status_type_search_test optional input :patient_ids, title: 'Patient IDs', description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements' def self.properties @properties ||= SearchTestProperties.new( resource_type: 'MedicationDispense', search_param_names: ['patient', 'status', 'type'], test_medication_inclusion: true, token_search_params: ['type'], multiple_or_search_params: ['status', 'type'] ) end def self.metadata @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true)) end def scratch_resources scratch[:medication_dispense_resources] ||= {} end run do run_search_test end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
us_core_test_kit-0.6.0 | lib/us_core_test_kit/generated/v6.1.0/medication_dispense/medication_dispense_patient_status_type_search_test.rb |