Module: Inferno::DSL::FHIRResourceValidation::ClassMethods
- Defined in:
- lib/inferno/dsl/fhir_resource_validation.rb
Instance Method Summary collapse
-
#fhir_resource_validator(name = :default, required_suite_options: nil) ⇒ Object
Define a validator.
Instance Method Details
#fhir_resource_validator(name = :default, required_suite_options: nil) ⇒ Object
Define a validator
403 404 405 406 407 408 409 410 411 412 |
# File 'lib/inferno/dsl/fhir_resource_validation.rb', line 403 def fhir_resource_validator(name = :default, required_suite_options: nil, &) current_validators = fhir_validators[name] || [] new_validator = Inferno::DSL::FHIRResourceValidation::Validator.new(name, id, , &) current_validators.reject! { |validator| validator.requirements == } current_validators << new_validator fhir_validators[name] = current_validators end |