Class: FHIR::SubstanceSpecification::Code

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Code.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Code.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Code.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'code' => {'type'=>'CodeableConcept', 'path'=>'Code.code', 'min'=>0, 'max'=>1},
  'status' => {'type'=>'CodeableConcept', 'path'=>'Code.status', 'min'=>0, 'max'=>1},
  'statusDate' => {'type'=>'dateTime', 'path'=>'Code.statusDate', 'min'=>0, 'max'=>1},
  'comment' => {'type'=>'string', 'path'=>'Code.comment', 'min'=>0, 'max'=>1},
  'source' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DocumentReference'], 'type'=>'Reference', 'path'=>'Code.source', 'min'=>0, 'max'=>Float::INFINITY}
}

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

#codeObject

0-1 CodeableConcept



228
229
230
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 228

def code
  @code
end

#commentObject

0-1 string



231
232
233
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 231

def comment
  @comment
end

#extensionObject

0-* [ Extension ]



226
227
228
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 226

def extension
  @extension
end

#idObject

0-1 string



225
226
227
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 225

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



227
228
229
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 227

def modifierExtension
  @modifierExtension
end

#sourceObject

0-* [ Reference(DocumentReference) ]



232
233
234
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 232

def source
  @source
end

#statusObject

0-1 CodeableConcept



229
230
231
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 229

def status
  @status
end

#statusDateObject

0-1 dateTime



230
231
232
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 230

def statusDate
  @statusDate
end