Class: HealthVault::WCData::Thing::Types::Person

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/thing/types/person.rb

Instance Attribute Summary

Attributes inherited from ComplexType

#tag_name

Instance Method Summary collapse

Methods inherited from ComplexType

#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?

Constructor Details

#initializePerson

Returns a new instance of Person.



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/wc_data/generated/thing/types/person.rb', line 104

def initialize
  super
  self.tag_name = 'person'

  
  @children['name'] = {:name => 'name', :class => HealthVault::WCData::Thing::Types::Name, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
    
  @children['name'][:value] = HealthVault::WCData::Thing::Types::Name.new
    
  

  
  @children['organization'] = {:name => 'organization', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

  
  @children['professional-training'] = {:name => 'professional-training', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

  
  @children['id'] = {:name => 'id', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

  
  @children['contact'] = {:name => 'contact', :class => HealthVault::WCData::Thing::Types::Contact, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 }
    
  

  
  @children['type'] = {:name => 'type', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 }
    
  

end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType

Instance Method Details

#contactObject

returns: a HealthVault::WCData::Thing::Types::Contact



82
83
84
# File 'lib/wc_data/generated/thing/types/person.rb', line 82

def contact
  return @children['contact'][:value]
end

#contact=(value) ⇒ Object

value is a HealthVault::WCData::Thing::Types::Contact



77
78
79
# File 'lib/wc_data/generated/thing/types/person.rb', line 77

def contact=(value)
  @children['contact'][:value] = value
end

#idObject

returns: a String



68
69
70
# File 'lib/wc_data/generated/thing/types/person.rb', line 68

def id
  return @children['id'][:value]
end

#id=(value) ⇒ Object

value is a String



63
64
65
# File 'lib/wc_data/generated/thing/types/person.rb', line 63

def id=(value)
  @children['id'][:value] = value
end

#nameObject

returns: a HealthVault::WCData::Thing::Types::Name



26
27
28
# File 'lib/wc_data/generated/thing/types/person.rb', line 26

def name
  return @children['name'][:value]
end

#name=(value) ⇒ Object

value is a HealthVault::WCData::Thing::Types::Name



21
22
23
# File 'lib/wc_data/generated/thing/types/person.rb', line 21

def name=(value)
  @children['name'][:value] = value
end

#organizationObject

returns: a String



40
41
42
# File 'lib/wc_data/generated/thing/types/person.rb', line 40

def organization
  return @children['organization'][:value]
end

#organization=(value) ⇒ Object

value is a String



35
36
37
# File 'lib/wc_data/generated/thing/types/person.rb', line 35

def organization=(value)
  @children['organization'][:value] = value
end

#professional_trainingObject

returns: a String



54
55
56
# File 'lib/wc_data/generated/thing/types/person.rb', line 54

def professional_training
  return @children['professional-training'][:value]
end

#professional_training=(value) ⇒ Object

value is a String



49
50
51
# File 'lib/wc_data/generated/thing/types/person.rb', line 49

def professional_training=(value)
  @children['professional-training'][:value] = value
end

#typeObject

returns: a HealthVault::WCData::Thing::Types::Codablevalue



98
99
100
# File 'lib/wc_data/generated/thing/types/person.rb', line 98

def type
  return @children['type'][:value]
end

#type=(value) ⇒ Object

remarks: A person may be an emergency contact, a health care provider, etc. The values should be taken from the Microsoft Health Lexicon vocabulary ‘person-types’. preferred-vocabulary: person-types value is a HealthVault::WCData::Thing::Types::Codablevalue



93
94
95
# File 'lib/wc_data/generated/thing/types/person.rb', line 93

def type=(value)
  @children['type'][:value] = value
end