Class: FHIR::DSTU2::ElementDefinition::Constraint
- Defined in:
- lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb
Constant Summary collapse
- METADATA =
{ 'id' => { 'type' => 'id', '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' } }, 'human' => { 'type' => 'string', 'path' => 'Constraint.human', 'min' => 1, 'max' => 1 }, 'xpath' => { 'type' => 'string', 'path' => 'Constraint.xpath', 'min' => 1, 'max' => 1 } }
Instance Attribute Summary collapse
-
#extension ⇒ Object
0-* [ Extension ].
-
#human ⇒ Object
1-1 string.
-
#id ⇒ Object
0-1 id.
-
#key ⇒ Object
1-1 id.
-
#requirements ⇒ Object
0-1 string.
-
#severity ⇒ Object
1-1 code.
-
#xpath ⇒ Object
1-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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile
Constructor Details
This class inherits a constructor from FHIR::DSTU2::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model
Instance Attribute Details
#extension ⇒ Object
0-* [ Extension ]
323 324 325 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 323 def extension @extension end |
#human ⇒ Object
1-1 string
327 328 329 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 327 def human @human end |
#id ⇒ Object
0-1 id
322 323 324 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 322 def id @id end |
#key ⇒ Object
1-1 id
324 325 326 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 324 def key @key end |
#requirements ⇒ Object
0-1 string
325 326 327 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 325 def requirements @requirements end |
#severity ⇒ Object
1-1 code
326 327 328 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 326 def severity @severity end |
#xpath ⇒ Object
1-1 string
328 329 330 |
# File 'lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb', line 328 def xpath @xpath end |