Class: FHIR::ElementDefinition::Constraint
- Defined in:
- lib/fhir_models/fhir/types/ElementDefinition.rb
Constant Summary collapse
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'Constraint.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'Constraint.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'key' => {'type'=>'id', 'path'=>'Constraint.key', 'min'=>1, 'max'=>1}, 'requirements' => {'type'=>'string', 'path'=>'Constraint.requirements', 'min'=>0, 'max'=>1}, 'severity' => {'valid_codes'=>{'http://hl7.org/fhir/constraint-severity'=>['error', 'warning']}, 'type'=>'code', 'path'=>'Constraint.severity', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/constraint-severity|4.0.0'}}, 'human' => {'type'=>'string', 'path'=>'Constraint.human', 'min'=>1, 'max'=>1}, 'expression' => {'type'=>'string', 'path'=>'Constraint.expression', 'min'=>0, 'max'=>1}, 'xpath' => {'type'=>'string', 'path'=>'Constraint.xpath', 'min'=>0, 'max'=>1}, 'source' => {'type'=>'canonical', 'path'=>'Constraint.source', 'min'=>0, 'max'=>1} }
Instance Attribute Summary collapse
-
#expression ⇒ Object
0-1 string.
-
#extension ⇒ Object
0-* [ Extension ].
-
#human ⇒ Object
1-1 string.
-
#id ⇒ Object
0-1 string.
-
#key ⇒ Object
1-1 id.
-
#requirements ⇒ Object
0-1 string.
-
#severity ⇒ Object
1-1 code.
-
#source ⇒ Object
0-1 canonical.
-
#xpath ⇒ Object
0-1 string.
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
Methods inherited from Model
#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile
Constructor Details
This class inherits a constructor from FHIR::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::Model
Instance Attribute Details
#expression ⇒ Object
0-1 string
439 440 441 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 439 def expression @expression end |
#extension ⇒ Object
0-* [ Extension ]
434 435 436 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 434 def extension @extension end |
#human ⇒ Object
1-1 string
438 439 440 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 438 def human @human end |
#id ⇒ Object
0-1 string
433 434 435 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 433 def id @id end |
#key ⇒ Object
1-1 id
435 436 437 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 435 def key @key end |
#requirements ⇒ Object
0-1 string
436 437 438 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 436 def requirements @requirements end |
#severity ⇒ Object
1-1 code
437 438 439 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 437 def severity @severity end |
#source ⇒ Object
0-1 canonical
441 442 443 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 441 def source @source end |
#xpath ⇒ Object
0-1 string
440 441 442 |
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 440 def xpath @xpath end |