Class: AUCoreTestKit::AUCoreV200::BodyweightPatientCodeDateSearchTest

Inherits:
Inferno::Test
  • Object
show all
Includes:
InfernoSuiteGenerator::SearchTest
Defined in:
lib/au_core_test_kit/generated/v2.0.0/bodyweight/bodyweight_patient_code_date_search_test.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.demodataObject



31
32
33
34
35
# File 'lib/au_core_test_kit/generated/v2.0.0/bodyweight/bodyweight_patient_code_date_search_test.rb', line 31

def self.demodata
  @demodata ||= InfernoSuiteGenerator::Generator::IGDemodata.new(
    YAML.load_file(File.join(File.dirname(__dir__), 'demodata.yml'), aliases: true)
  )
end

.metadataObject



48
49
50
# File 'lib/au_core_test_kit/generated/v2.0.0/bodyweight/bodyweight_patient_code_date_search_test.rb', line 48

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

.propertiesObject



37
38
39
40
41
42
43
44
45
46
# File 'lib/au_core_test_kit/generated/v2.0.0/bodyweight/bodyweight_patient_code_date_search_test.rb', line 37

def self.properties
  @properties ||= InfernoSuiteGenerator::SearchTestProperties.new(
    fixed_value_search: true,
    resource_type: 'Observation',
    search_param_names: %w[patient code date],
    possible_status_search: true,
    token_search_params: ['code'],
    params_with_comparators: ['date']
  )
end

Instance Method Details

#keep_all_search_results?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/au_core_test_kit/generated/v2.0.0/bodyweight/bodyweight_patient_code_date_search_test.rb', line 56

def keep_all_search_results?
  false
end

#scratch_resourcesObject



52
53
54
# File 'lib/au_core_test_kit/generated/v2.0.0/bodyweight/bodyweight_patient_code_date_search_test.rb', line 52

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