Class: FHIR::HumanName

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

Constant Summary collapse

SEARCH_PARAMS =
[]
METADATA =
{
  'id' => {'type'=>'string', '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|4.0.0'}},
  'text' => {'type'=>'string', 'path'=>'HumanName.text', 'min'=>0, 'max'=>1},
  'family' => {'type'=>'string', 'path'=>'HumanName.family', 'min'=>0, 'max'=>1},
  '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, #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 ]



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

def extension
  @extension
end

#familyObject

0-1 string



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

def family
  @family
end

#givenObject

0-* [ string ]



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

def given
  @given
end

#idObject

0-1 string



20
21
22
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 20

def id
  @id
end

#periodObject

0-1 Period



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

def period
  @period
end

#prefixObject

0-* [ string ]



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

def prefix
  @prefix
end

#suffixObject

0-* [ string ]



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

def suffix
  @suffix
end

#textObject

0-1 string



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

def text
  @text
end

#useObject

0-1 code



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

def use
  @use
end