Class: FHIR::SubstanceSpecification::Name

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

Defined Under Namespace

Classes: Official

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Name.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Name.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Name.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'name' => {'type'=>'string', 'path'=>'Name.name', 'min'=>1, 'max'=>1},
  'type' => {'type'=>'CodeableConcept', 'path'=>'Name.type', 'min'=>0, 'max'=>1},
  'status' => {'type'=>'CodeableConcept', 'path'=>'Name.status', 'min'=>0, 'max'=>1},
  'preferred' => {'type'=>'boolean', 'path'=>'Name.preferred', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'CodeableConcept', 'path'=>'Name.language', 'min'=>0, 'max'=>Float::INFINITY},
  'domain' => {'type'=>'CodeableConcept', 'path'=>'Name.domain', 'min'=>0, 'max'=>Float::INFINITY},
  'jurisdiction' => {'type'=>'CodeableConcept', 'path'=>'Name.jurisdiction', 'min'=>0, 'max'=>Float::INFINITY},
  'synonym' => {'type'=>'SubstanceSpecification::Name', 'path'=>'Name.synonym', 'min'=>0, 'max'=>Float::INFINITY},
  'translation' => {'type'=>'SubstanceSpecification::Name', 'path'=>'Name.translation', 'min'=>0, 'max'=>Float::INFINITY},
  'official' => {'type'=>'SubstanceSpecification::Name::Official', 'path'=>'Name.official', 'min'=>0, 'max'=>Float::INFINITY},
  'source' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DocumentReference'], 'type'=>'Reference', 'path'=>'Name.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

#domainObject

0-* [ CodeableConcept ]



287
288
289
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 287

def domain
  @domain
end

#extensionObject

0-* [ Extension ]



280
281
282
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 280

def extension
  @extension
end

#idObject

0-1 string



279
280
281
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 279

def id
  @id
end

#jurisdictionObject

0-* [ CodeableConcept ]



288
289
290
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 288

def jurisdiction
  @jurisdiction
end

#languageObject

0-* [ CodeableConcept ]



286
287
288
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 286

def language
  @language
end

#modifierExtensionObject

0-* [ Extension ]



281
282
283
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 281

def modifierExtension
  @modifierExtension
end

#nameObject

1-1 string



282
283
284
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 282

def name
  @name
end

#officialObject

0-* [ SubstanceSpecification::Name::Official ]



291
292
293
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 291

def official
  @official
end

#preferredObject

0-1 boolean



285
286
287
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 285

def preferred
  @preferred
end

#sourceObject

0-* [ Reference(DocumentReference) ]



292
293
294
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 292

def source
  @source
end

#statusObject

0-1 CodeableConcept



284
285
286
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 284

def status
  @status
end

#synonymObject

0-* [ SubstanceSpecification::Name ]



289
290
291
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 289

def synonym
  @synonym
end

#translationObject

0-* [ SubstanceSpecification::Name ]



290
291
292
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 290

def translation
  @translation
end

#typeObject

0-1 CodeableConcept



283
284
285
# File 'lib/fhir_models/fhir/resources/SubstanceSpecification.rb', line 283

def type
  @type
end