Class: FHIR::ElementDefinition::Binding

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'valueSet' => ['uri', 'Reference']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Binding.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Binding.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'strength' => {'valid_codes'=>{'http://hl7.org/fhir/binding-strength'=>['required', 'extensible', 'preferred', 'example']}, 'type'=>'code', 'path'=>'Binding.strength', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/binding-strength'}},
  'description' => {'type'=>'string', 'path'=>'Binding.description', 'min'=>0, 'max'=>1},
  'valueSetUri' => {'type'=>'uri', 'path'=>'Binding.valueSet[x]', 'min'=>0, 'max'=>1},
  'valueSetReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ValueSet'], 'type'=>'Reference', 'path'=>'Binding.valueSet[x]', 'min'=>0, 'max'=>1}
}

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

#descriptionObject

0-1 string



406
407
408
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 406

def description
  @description
end

#extensionObject

0-* [ Extension ]



404
405
406
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 404

def extension
  @extension
end

#idObject

0-1 string



403
404
405
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 403

def id
  @id
end

#strengthObject

1-1 code



405
406
407
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 405

def strength
  @strength
end

#valueSetReferenceObject

0-1 Reference(ValueSet)



408
409
410
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 408

def valueSetReference
  @valueSetReference
end

#valueSetUriObject

0-1 uri



407
408
409
# File 'lib/fhir_models/fhir/types/ElementDefinition.rb', line 407

def valueSetUri
  @valueSetUri
end