Class: HealthVault::WCData::Thing::Spirometer::Spirometer

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

#initializeSpirometer

Returns a new instance of Spirometer.



237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 237

def initialize
  super
  self.tag_name = 'spirometer'

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

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

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

  
  @children['warning'] = {:name => 'warning', :class => String, :value => Array.new, :min => 0, :max => 999999, :order => 4, :place => :element, :choice => 0 }
  

  
  @children['problem'] = {:name => 'problem', :class => String, :value => Array.new, :min => 0, :max => 999999, :order => 5, :place => :element, :choice => 0 }
  

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

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

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

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

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

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

  
  @children['SVC'] = {:name => 'SVC', :class => HealthVault::WCData::Thing::Spirometer::Volumevalue, :value => nil, :min => 0, :max => 1, :order => 12, :place => :element, :choice => 0 }
    
  

  
  @children['TV'] = {:name => 'TV', :class => HealthVault::WCData::Thing::Spirometer::Volumevalue, :value => nil, :min => 0, :max => 1, :order => 13, :place => :element, :choice => 0 }
    
  

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

#add_problem(value) ⇒ Object

value is a String



83
84
85
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 83

def add_problem(value)
  @children['problem'][:value] << value
end

#add_warning(value) ⇒ Object

value is a String



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

def add_warning(value)
  @children['warning'][:value] << value
end

#fe_vover_fvcObject

returns: a HealthVault::WCData::Thing::Types::Percentage



111
112
113
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 111

def fe_vover_fvc
  return @children['FEVoverFVC'][:value]
end

#fe_vover_fvc=(value) ⇒ Object

remarks: In healthy adults this should be approximately 75 - 80%. value is a HealthVault::WCData::Thing::Types::Percentage



106
107
108
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 106

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

#fef25to50Object

returns: a HealthVault::WCData::Thing::Types::Percentage



141
142
143
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 141

def fef25to50
  return @children['FEF25to50'][:value]
end

#fef25to50=(value) ⇒ Object

remarks: This is the average flow (or speed) of air coming out of the lung during the middle portion of the expiration. value is a HealthVault::WCData::Thing::Types::Percentage



136
137
138
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 136

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

#fef25to75Object

returns: a HealthVault::WCData::Thing::Types::Percentage



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

def fef25to75
  return @children['FEF25to75'][:value]
end

#fef25to75=(value) ⇒ Object

remarks: This is the average flow (or speed) of air coming out of the lung during the middle portion of the expiration. value is a HealthVault::WCData::Thing::Types::Percentage



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

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

#fetObject

returns: a HealthVault::WCData::Thing::Types::PositiveDouble



186
187
188
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 186

def fet
  return @children['FET'][:value]
end

#fet=(value) ⇒ Object

remarks: This is the length of the expiration in seconds. value is a HealthVault::WCData::Thing::Types::PositiveDouble



181
182
183
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 181

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

#fev1Object

returns: a HealthVault::WCData::Thing::Types::Flowvalue



41
42
43
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 41

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

#fev1=(value) ⇒ Object

remarks: FEV1 is the forced expiratory volume in one measured in liters/second. value is a HealthVault::WCData::Thing::Types::Flowvalue



36
37
38
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 36

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

#fif25to50Object

returns: a HealthVault::WCData::Thing::Types::Percentage



171
172
173
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 171

def fif25to50
  return @children['FIF25to50'][:value]
end

#fif25to50=(value) ⇒ Object

remarks: This is the average flow (or speed) of air coming into the lung during the middle portion of the inspiration. value is a HealthVault::WCData::Thing::Types::Percentage



166
167
168
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 166

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

#fif25to75Object

returns: a HealthVault::WCData::Thing::Types::Percentage



156
157
158
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 156

def fif25to75
  return @children['FIF25to75'][:value]
end

#fif25to75=(value) ⇒ Object

remarks: This is the average flow (or speed) of air coming into the lung during the middle portion of the inspiration. value is a HealthVault::WCData::Thing::Types::Percentage



151
152
153
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 151

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

#mvvObject

returns: a HealthVault::WCData::Thing::Types::Flowvalue



231
232
233
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 231

def mvv
  return @children['MVV'][:value]
end

#mvv=(value) ⇒ Object

remarks: For this test the patient inspires and expires in the spirometer over and over again as fast as he can, during at least 12 seconds. value is a HealthVault::WCData::Thing::Types::Flowvalue



226
227
228
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 226

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

#pefObject

returns: a HealthVault::WCData::Thing::Types::Flowvalue



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

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

#pef=(value) ⇒ Object

remarks: PEF is the peak expiratory flow measured in liters/second. value is a HealthVault::WCData::Thing::Types::Flowvalue



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

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

#problemObject

remarks: The presence of one or more of these elements indicates that the reading was not normal and that action should be taken. The element value should contain text describing the concern. returns: a String Array



96
97
98
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 96

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

#remove_problem(value) ⇒ Object

value is a #String



88
89
90
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 88

def remove_problem(value)
    @children['problem'][:value].delete(value)
end

#remove_warning(value) ⇒ Object

value is a #String



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

def remove_warning(value)
    @children['warning'][:value].delete(value)
end

#svcObject

returns: a HealthVault::WCData::Thing::Spirometer::Volumevalue



201
202
203
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 201

def svc
  return @children['SVC'][:value]
end

#svc=(value) ⇒ Object

remarks: The patient inspires fully and than slowly expires all the air in his lungs or the other way around: the patient expires fully and inspires slowly to a maximum. value is a HealthVault::WCData::Thing::Spirometer::Volumevalue



196
197
198
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 196

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

#tvObject

returns: a HealthVault::WCData::Thing::Spirometer::Volumevalue



216
217
218
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 216

def tv
  return @children['TV'][:value]
end

#tv=(value) ⇒ Object

remarks: This is the specific volume of air is drawn into and then expired out of the lungs. Average flow (or speed) of air coming into the lung during the middle portion of the inspiration during the respiratory cycle. value is a HealthVault::WCData::Thing::Spirometer::Volumevalue



211
212
213
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 211

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

#warningObject

remarks: The presence of one or more of these elements indicates that the reading was not normal. The element value should contain text describing the concern. returns: a String Array



76
77
78
# File 'lib/wc_data/generated/thing/spirometer/spirometer.rb', line 76

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

#whenObject

returns: a HealthVault::WCData::Dates::Datetime



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

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

#when=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Datetime



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

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