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|4.0.0'}},
  '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|4.0.0'}}
}

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, #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 ]



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

def aggregation
  @aggregation
end

#codeObject

1-1 uri



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

def code
  @code
end

#extensionObject

0-* [ Extension ]



291
292
293
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 291

def extension
  @extension
end

#idObject

0-1 string



290
291
292
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 290

def id
  @id
end

#profileObject

0-* [ canonical ]



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

def profile
  @profile
end

#targetProfileObject

0-* [ canonical ]



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

def targetProfile
  @targetProfile
end

#versioningObject

0-1 code



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

def versioning
  @versioning
end