Class: FHIR::ElementDefinition::Type

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/types/ElementDefinition.rb

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Type.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Type.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'code' => {'type'=>'uri', 'path'=>'Type.code', 'min'=>1, 'max'=>1},
  'profile' => {'type'=>'canonical', 'path'=>'Type.profile', 'min'=>0, 'max'=>Float::INFINITY},
  'targetProfile' => {'type'=>'canonical', 'path'=>'Type.targetProfile', 'min'=>0, 'max'=>Float::INFINITY},
  'aggregation' => {'valid_codes'=>{'http://hl7.org/fhir/resource-aggregation-mode'=>['contained', 'referenced', 'bundled']}, 'type'=>'code', 'path'=>'Type.aggregation', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/resource-aggregation-mode'}},
  'versioning' => {'valid_codes'=>{'http://hl7.org/fhir/reference-version-rules'=>['either', 'independent', 'specific']}, 'type'=>'code', 'path'=>'Type.versioning', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/reference-version-rules'}}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #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

#aggregationObject

0-* [ code ]



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

def aggregation
  @aggregation
end

#codeObject

1-1 uri



295
296
297
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 295

def code
  @code
end

#extensionObject

0-* [ Extension ]



294
295
296
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 294

def extension
  @extension
end

#idObject

0-1 string



293
294
295
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 293

def id
  @id
end

#profileObject

0-* [ canonical ]



296
297
298
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 296

def profile
  @profile
end

#targetProfileObject

0-* [ canonical ]



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

def targetProfile
  @targetProfile
end

#versioningObject

0-1 code



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

def versioning
  @versioning
end