Class: FHIR::HumanName
- 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
-
#extension ⇒ Object
0-* [ Extension ].
-
#family ⇒ Object
0-1 string.
-
#given ⇒ Object
0-* [ string ].
-
#id ⇒ Object
0-1 string.
-
#period ⇒ Object
0-1 Period.
-
#prefix ⇒ Object
0-* [ string ].
-
#suffix ⇒ Object
0-* [ string ].
-
#text ⇒ Object
0-1 string.
-
#use ⇒ Object
0-1 code.
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#extension ⇒ Object
0-* [ Extension ]
21 22 23 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 21 def extension @extension end |
#family ⇒ Object
0-1 string
24 25 26 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 24 def family @family end |
#given ⇒ Object
0-* [ string ]
25 26 27 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 25 def given @given end |
#id ⇒ Object
0-1 string
20 21 22 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 20 def id @id end |
#period ⇒ Object
0-1 Period
28 29 30 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 28 def period @period end |
#prefix ⇒ Object
0-* [ string ]
26 27 28 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 26 def prefix @prefix end |
#suffix ⇒ Object
0-* [ string ]
27 28 29 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 27 def suffix @suffix end |
#text ⇒ Object
0-1 string
23 24 25 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 23 def text @text end |
#use ⇒ Object
0-1 code
22 23 24 |
# File 'lib/fhir_models/fhir/types/HumanName.rb', line 22 def use @use end |