Module: Inferno::DSL::FHIRResourceValidation
- Included in:
- Entities::TestSuite
- Defined in:
- lib/inferno/dsl/fhir_resource_validation.rb
Overview
This module contains the methods needed to configure a validator to perform validation of FHIR resources. The actual validation is performed by an external FHIR validation service. Tests will typically rely on ‘assert_valid_resource` for validation rather than directly calling methods on a validator.
Defined Under Namespace
Modules: ClassMethods Classes: ValidationContext, Validator
Class Method Summary collapse
Instance Method Summary collapse
-
#find_ig_and_profile(profile_url, validator_name) ⇒ Object
Find a particular profile StructureDefinition and the IG it belongs to.
Class Method Details
.included(klass) ⇒ Object
30 31 32 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 30 def self.included(klass) klass.extend ClassMethods end |
Instance Method Details
#find_ig_and_profile(profile_url, validator_name) ⇒ Object
Find a particular profile StructureDefinition and the IG it belongs to. Looks through a runnable’s parents up to the suite to find a validator with a particular name, then finds the profile by looking through its defined igs.
37 38 39 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 37 def find_ig_and_profile(profile_url, validator_name) self.class.find_ig_and_profile(profile_url, validator_name) end |