Class: DaVinciDTRTestKit::QuestionnaireResponsePatientSearchTest

Inherits:
Inferno::Test
  • Object
show all
Includes:
USCoreTestKit::SearchTest
Defined in:
lib/davinci_dtr_test_kit/profiles/questionnaire_response/questionnaire_response_patient_search.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.metadataObject



44
45
46
47
# File 'lib/davinci_dtr_test_kit/profiles/questionnaire_response/questionnaire_response_patient_search.rb', line 44

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

.propertiesObject



33
34
35
36
37
38
39
40
41
42
# File 'lib/davinci_dtr_test_kit/profiles/questionnaire_response/questionnaire_response_patient_search.rb', line 33

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

Instance Method Details

#scratch_resourcesObject



49
50
51
# File 'lib/davinci_dtr_test_kit/profiles/questionnaire_response/questionnaire_response_patient_search.rb', line 49

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