Class: FHIR::CodeSystem::Concept::Property

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir/resources/CodeSystem.rb

Constant Summary collapse

MULTIPLE_TYPES =
{
  'value' => ['code', 'Coding', 'string', 'integer', 'boolean', 'dateTime']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Property.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Property.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Property.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'code' => {'type'=>'code', 'path'=>'Property.code', 'min'=>1, 'max'=>1},
  'valueCode' => {'type'=>'code', 'path'=>'Property.value[x]', 'min'=>1, 'max'=>1},
  'valueCoding' => {'type'=>'Coding', 'path'=>'Property.value[x]', 'min'=>1, 'max'=>1},
  'valueString' => {'type'=>'string', 'path'=>'Property.value[x]', 'min'=>1, 'max'=>1},
  'valueInteger' => {'type'=>'integer', 'path'=>'Property.value[x]', 'min'=>1, 'max'=>1},
  'valueBoolean' => {'type'=>'boolean', 'path'=>'Property.value[x]', 'min'=>1, 'max'=>1},
  'valueDateTime' => {'type'=>'dateTime', 'path'=>'Property.value[x]', '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

#codeObject

1-1 code



173
174
175
# File 'lib/fhir/resources/CodeSystem.rb', line 173

def code
  @code
end

#extensionObject

0-* [ Extension ]



171
172
173
# File 'lib/fhir/resources/CodeSystem.rb', line 171

def extension
  @extension
end

#idObject

0-1 string



170
171
172
# File 'lib/fhir/resources/CodeSystem.rb', line 170

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



172
173
174
# File 'lib/fhir/resources/CodeSystem.rb', line 172

def modifierExtension
  @modifierExtension
end

#valueBooleanObject

1-1 boolean



178
179
180
# File 'lib/fhir/resources/CodeSystem.rb', line 178

def valueBoolean
  @valueBoolean
end

#valueCodeObject

1-1 code



174
175
176
# File 'lib/fhir/resources/CodeSystem.rb', line 174

def valueCode
  @valueCode
end

#valueCodingObject

1-1 Coding



175
176
177
# File 'lib/fhir/resources/CodeSystem.rb', line 175

def valueCoding
  @valueCoding
end

#valueDateTimeObject

1-1 dateTime



179
180
181
# File 'lib/fhir/resources/CodeSystem.rb', line 179

def valueDateTime
  @valueDateTime
end

#valueIntegerObject

1-1 integer



177
178
179
# File 'lib/fhir/resources/CodeSystem.rb', line 177

def valueInteger
  @valueInteger
end

#valueStringObject

1-1 string



176
177
178
# File 'lib/fhir/resources/CodeSystem.rb', line 176

def valueString
  @valueString
end