Class: FHIR::ElementDefinition::Constraint

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/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', '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},
  'expression' => {'type'=>'string', 'path'=>'Constraint.expression', 'min'=>0, 'max'=>1},
  'xpath' => {'type'=>'string', 'path'=>'Constraint.xpath', 'min'=>1, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#expressionObject

0-1 string



304
305
306
# File 'lib/fhir/types/ElementDefinition.rb', line 304

def expression
  @expression
end

#extensionObject

0-* [ Extension ]



299
300
301
# File 'lib/fhir/types/ElementDefinition.rb', line 299

def extension
  @extension
end

#humanObject

1-1 string



303
304
305
# File 'lib/fhir/types/ElementDefinition.rb', line 303

def human
  @human
end

#idObject

0-1 string



298
299
300
# File 'lib/fhir/types/ElementDefinition.rb', line 298

def id
  @id
end

#keyObject

1-1 id



300
301
302
# File 'lib/fhir/types/ElementDefinition.rb', line 300

def key
  @key
end

#requirementsObject

0-1 string



301
302
303
# File 'lib/fhir/types/ElementDefinition.rb', line 301

def requirements
  @requirements
end

#severityObject

1-1 code



302
303
304
# File 'lib/fhir/types/ElementDefinition.rb', line 302

def severity
  @severity
end

#xpathObject

1-1 string



305
306
307
# File 'lib/fhir/types/ElementDefinition.rb', line 305

def xpath
  @xpath
end