Class: DaVinciPDexTestKit::PDexPayerServer::ExplanationOfBenefitPatientUseSearchTest

Inherits:
Inferno::Test
  • Object
show all
Includes:
USCoreTestKit::SearchTest
Defined in:
lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_use_search_test.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.metadataObject



55
56
57
# File 'lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_use_search_test.rb', line 55

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

.propertiesObject



41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_use_search_test.rb', line 41

def self.properties
  @properties ||= USCoreTestKit::SearchTestProperties.new(
    first_search: true,
    fixed_value_search: true,
    resource_type: 'ExplanationOfBenefit',
    search_param_names: ['patient', 'use'],
    saves_delayed_references: true,
    possible_status_search: true,
    token_search_params: ['use'],
    test_reference_variants: true,
    test_post_search: true
  )
end

Instance Method Details

#scratch_resourcesObject



59
60
61
# File 'lib/davinci_pdex_test_kit/pdex_payer_server/explanation_of_benefit/explanation_of_benefit_patient_use_search_test.rb', line 59

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