Class: FHIR::SubstanceSpecification::Structure::Isotope::MolecularWeight

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'=>'MolecularWeight.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'MolecularWeight.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'MolecularWeight.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'method' => {'local_name'=>'local_method', 'type'=>'CodeableConcept', 'path'=>'MolecularWeight.method', 'min'=>0, 'max'=>1},
  'type' => {'type'=>'CodeableConcept', 'path'=>'MolecularWeight.type', 'min'=>0, 'max'=>1},
  'amount' => {'type'=>'Quantity', 'path'=>'MolecularWeight.amount', '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

#amountObject

0-1 Quantity



161
162
163
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 161

def amount
  @amount
end

#extensionObject

0-* [ Extension ]



157
158
159
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 157

def extension
  @extension
end

#idObject

0-1 string



156
157
158
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 156

def id
  @id
end

#local_methodObject

0-1 CodeableConcept



159
160
161
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 159

def local_method
  @local_method
end

#modifierExtensionObject

0-* [ Extension ]



158
159
160
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 158

def modifierExtension
  @modifierExtension
end

#typeObject

0-1 CodeableConcept



160
161
162
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 160

def type
  @type
end