Class: FHIR::SubstanceSpecification::Structure

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

Defined Under Namespace

Classes: Isotope, Representation

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Structure.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Structure.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Structure.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'stereochemistry' => {'type'=>'CodeableConcept', 'path'=>'Structure.stereochemistry', 'min'=>0, 'max'=>1},
  'opticalActivity' => {'type'=>'CodeableConcept', 'path'=>'Structure.opticalActivity', 'min'=>0, 'max'=>1},
  'molecularFormula' => {'type'=>'string', 'path'=>'Structure.molecularFormula', 'min'=>0, 'max'=>1},
  'molecularFormulaByMoiety' => {'type'=>'string', 'path'=>'Structure.molecularFormulaByMoiety', 'min'=>0, 'max'=>1},
  'isotope' => {'type'=>'SubstanceSpecification::Structure::Isotope', 'path'=>'Structure.isotope', 'min'=>0, 'max'=>Float::INFINITY},
  'molecularWeight' => {'type'=>'SubstanceSpecification::Structure::Isotope::MolecularWeight', 'path'=>'Structure.molecularWeight', 'min'=>0, 'max'=>1},
  'source' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DocumentReference'], 'type'=>'Reference', 'path'=>'Structure.source', 'min'=>0, 'max'=>Float::INFINITY},
  'representation' => {'type'=>'SubstanceSpecification::Structure::Representation', 'path'=>'Structure.representation', '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

#extensionObject

0-* [ Extension ]



197
198
199
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 197

def extension
  @extension
end

#idObject

0-1 string



196
197
198
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 196

def id
  @id
end

#isotopeObject

0-* [ SubstanceSpecification::Structure::Isotope ]



203
204
205
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 203

def isotope
  @isotope
end

#modifierExtensionObject

0-* [ Extension ]



198
199
200
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 198

def modifierExtension
  @modifierExtension
end

#molecularFormulaObject

0-1 string



201
202
203
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 201

def molecularFormula
  @molecularFormula
end

#molecularFormulaByMoietyObject

0-1 string



202
203
204
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 202

def molecularFormulaByMoiety
  @molecularFormulaByMoiety
end

#molecularWeightObject

0-1 SubstanceSpecification::Structure::Isotope::MolecularWeight



204
205
206
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 204

def molecularWeight
  @molecularWeight
end

#opticalActivityObject

0-1 CodeableConcept



200
201
202
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 200

def opticalActivity
  @opticalActivity
end

#representationObject

0-* [ SubstanceSpecification::Structure::Representation ]



206
207
208
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 206

def representation
  @representation
end

#sourceObject

0-* [ Reference(DocumentReference) ]



205
206
207
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 205

def source
  @source
end

#stereochemistryObject

0-1 CodeableConcept



199
200
201
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 199

def stereochemistry
  @stereochemistry
end