Module: FHIR::CommonStructureDefinition::ClassMethods
- Defined in:
- lib/fhir_models/fhir_ext/common_structure_definition.rb
Instance Method Summary collapse
- #clear_all_validates_vs ⇒ Object
- #clear_validates_vs(valueset_uri) ⇒ Object
- #validates_vs(valueset_uri, &validator_fn) ⇒ Object
- #vs_validators ⇒ Object
Instance Method Details
#clear_all_validates_vs ⇒ Object
32 33 34 |
# File 'lib/fhir_models/fhir_ext/common_structure_definition.rb', line 32 def clear_all_validates_vs @vs_validators = {} end |
#clear_validates_vs(valueset_uri) ⇒ Object
28 29 30 |
# File 'lib/fhir_models/fhir_ext/common_structure_definition.rb', line 28 def clear_validates_vs(valueset_uri) vs_validators.delete valueset_uri end |
#validates_vs(valueset_uri, &validator_fn) ⇒ Object
24 25 26 |
# File 'lib/fhir_models/fhir_ext/common_structure_definition.rb', line 24 def validates_vs(valueset_uri, &validator_fn) vs_validators[valueset_uri] = validator_fn end |
#vs_validators ⇒ Object
20 21 22 |
# File 'lib/fhir_models/fhir_ext/common_structure_definition.rb', line 20 def vs_validators @vs_validators ||= {} end |