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: Validator
Instance Method Summary collapse
-
#find_ig_and_profile(profile_url, validator_name) ⇒ Object
Find a particular profile StructureDefinition and the IG it belongs to.
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.
36 37 38 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 36 def find_ig_and_profile(profile_url, validator_name) self.class.find_ig_and_profile(profile_url, validator_name) end |