Class: HealthVault::WCData::Thing::Familyhistory::Familyhistory

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/thing/family_history/family_history.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

#initializeFamilyhistory

Returns a new instance of Familyhistory.



146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 146

def initialize
  super
  self.tag_name = 'family-history'

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

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

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

  
  @children['date-of-birth'] = {:name => 'date-of-birth', :class => HealthVault::WCData::Dates::Approxdate, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

  
  @children['age-of-resolution'] = {:name => 'age-of-resolution', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 }
    
  

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

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

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

  
  @children['status'] = {:name => 'status', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 9, :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

#age_of_onsetObject

returns: a String



56
57
58
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 56

def age_of_onset
  return @children['age-of-onset'][:value]
end

#age_of_onset=(value) ⇒ Object

value is a String



51
52
53
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 51

def age_of_onset=(value)
  @children['age-of-onset'][:value] = value
end

#age_of_resolutionObject

returns: a String



84
85
86
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 84

def age_of_resolution
  return @children['age-of-resolution'][:value]
end

#age_of_resolution=(value) ⇒ Object

value is a String



79
80
81
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 79

def age_of_resolution=(value)
  @children['age-of-resolution'][:value] = value
end

#conditionObject

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



27
28
29
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 27

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

#condition=(value) ⇒ Object

preferred-vocabulary: icd9cm value is a HealthVault::WCData::Thing::Types::Codablevalue



22
23
24
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 22

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

#date_of_birthObject

returns: a HealthVault::WCData::Dates::Approxdate



70
71
72
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 70

def date_of_birth
  return @children['date-of-birth'][:value]
end

#date_of_birth=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Approxdate



65
66
67
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 65

def date_of_birth=(value)
  @children['date-of-birth'][:value] = value
end

#durationObject

returns: a HealthVault::WCData::Thing::Types::Durationvalue



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

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

#duration=(value) ⇒ Object

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



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

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

#is_recurringObject

returns: a String



126
127
128
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 126

def is_recurring
  return @children['is-recurring'][:value]
end

#is_recurring=(value) ⇒ Object

value is a String



121
122
123
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 121

def is_recurring=(value)
  @children['is-recurring'][:value] = value
end

#relationshipObject

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



42
43
44
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 42

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

#relationship=(value) ⇒ Object

preferred-vocabulary: personal-relationship value is a HealthVault::WCData::Thing::Types::Codablevalue



37
38
39
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 37

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

#severityObject

returns: a String



112
113
114
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 112

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

#severity=(value) ⇒ Object

value is a String



107
108
109
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 107

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

#statusObject

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



140
141
142
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 140

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

#status=(value) ⇒ Object

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



135
136
137
# File 'lib/wc_data/generated/thing/family_history/family_history.rb', line 135

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