Class: FHIR::DSTU2::HumanName

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_dstu2_models/fhir/types/HumanName.rb

Constant Summary collapse

SEARCH_PARAMS =
METADATA = {
  'id' => { 'type' => 'id', 'path' => 'HumanName.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'HumanName.extension', 'min' => 0, 'max' => Float::INFINITY },
  'use' => { 'valid_codes' => { 'http://hl7.org/fhir/name-use' => ['usual', 'official', 'temp', 'nickname', 'anonymous', 'old', 'maiden'] }, 'type' => 'code', 'path' => 'HumanName.use', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/name-use' } },
  'text' => { 'type' => 'string', 'path' => 'HumanName.text', 'min' => 0, 'max' => 1 },
  'family' => { 'type' => 'string', 'path' => 'HumanName.family', 'min' => 0, 'max' => Float::INFINITY },
  'given' => { 'type' => 'string', 'path' => 'HumanName.given', 'min' => 0, 'max' => Float::INFINITY },
  'prefix' => { 'type' => 'string', 'path' => 'HumanName.prefix', 'min' => 0, 'max' => Float::INFINITY },
  'suffix' => { 'type' => 'string', 'path' => 'HumanName.suffix', 'min' => 0, 'max' => Float::INFINITY },
  'period' => { 'type' => 'Period', 'path' => 'HumanName.period', '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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::DSTU2::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model

Instance Attribute Details

#extensionObject

0-* [ Extension ]



22
23
24
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 22

def extension
  @extension
end

#familyObject

0-* [ string ]



25
26
27
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 25

def family
  @family
end

#givenObject

0-* [ string ]



26
27
28
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 26

def given
  @given
end

#idObject

0-1 id



21
22
23
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 21

def id
  @id
end

#periodObject

0-1 Period



29
30
31
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 29

def period
  @period
end

#prefixObject

0-* [ string ]



27
28
29
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 27

def prefix
  @prefix
end

#suffixObject

0-* [ string ]



28
29
30
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 28

def suffix
  @suffix
end

#textObject

0-1 string



24
25
26
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 24

def text
  @text
end

#useObject

0-1 code



23
24
25
# File 'lib/fhir_dstu2_models/fhir/types/HumanName.rb', line 23

def use
  @use
end