Class: DaVinciPASTestKit::DaVinciPASV201::PasServerMustSupportRequirementTest
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- DaVinciPASTestKit::DaVinciPASV201::PasServerMustSupportRequirementTest
show all
- Includes:
- MustSupportTest
- Defined in:
- lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb
Constant Summary
FHIRResourceNavigation::DAR_EXTENSION_URL
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
#all_must_support_errors, #perform_must_support_test, #reset_variables, #tagged_resources, #validate_must_support
#find_a_value_at, #get_next_value, #resolve_path
Instance Attribute Details
#resource_type ⇒ Object
Returns the value of attribute resource_type.
9
10
11
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 9
def resource_type
@resource_type
end
|
Class Method Details
84
85
86
87
88
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 84
def self.metadata
metadata_file_name = "#{@@resource_type.underscore}_metadata.yml"
Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, metadata_file_name),
aliases: true))
end
|
Instance Method Details
#all_scratch_resources ⇒ Object
94
95
96
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 94
def all_scratch_resources
scratch_resources[:all] ||= []
end
|
#grouped_resources ⇒ Object
102
103
104
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 102
def grouped_resources
resources_of_interest.group_by(&:resourceType)
end
|
#resource_types ⇒ Object
80
81
82
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 80
def resource_types
['DeviceRequest', 'MedicationRequest', 'NutritionOrder', 'ServiceRequest']
end
|
#resources_of_interest ⇒ Object
98
99
100
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 98
def resources_of_interest
all_scratch_resources.select { |resource| resource_types.include?(resource.resourceType) }
end
|
#scratch_resources ⇒ Object
90
91
92
|
# File 'lib/davinci_pas_test_kit/custom_groups/v2.0.1/must_support/pas_server_must_support_requirement_test.rb', line 90
def scratch_resources
scratch[:submit_request_resources] ||= {}
end
|