Class: HealthVault::WCData::Thing::Respiratoryprofile::Respiratoryprofile

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

#initializeRespiratoryprofile

Returns a new instance of Respiratoryprofile.



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/wc_data/generated/thing/respiratory_profile/respiratory_profile.rb', line 77

def initialize
  super
  self.tag_name = 'respiratory-profile'

  
  @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['expiratory-flow-red-zone-upper-boundary'] = {:name => 'expiratory-flow-red-zone-upper-boundary', :class => HealthVault::WCData::Thing::Types::Flowvalue, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

  
  @children['expiratory-flow-orange-zone-upper-boundary'] = {:name => 'expiratory-flow-orange-zone-upper-boundary', :class => HealthVault::WCData::Thing::Types::Flowvalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

  
  @children['expiratory-flow-yellow-zone-upper-boundary'] = {:name => 'expiratory-flow-yellow-zone-upper-boundary', :class => HealthVault::WCData::Thing::Types::Flowvalue, :value => nil, :min => 0, :max => 1, :order => 4, :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

#expiratory_flow_orange_zone_upper_boundaryObject

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



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

def expiratory_flow_orange_zone_upper_boundary
  return @children['expiratory-flow-orange-zone-upper-boundary'][:value]
end

#expiratory_flow_orange_zone_upper_boundary=(value) ⇒ Object

remarks: This zone covers flow between the red zone upper boundary and the specified value (measured in L/s). value is a HealthVault::WCData::Thing::Types::Flowvalue



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

def expiratory_flow_orange_zone_upper_boundary=(value)
  @children['expiratory-flow-orange-zone-upper-boundary'][:value] = value
end

#expiratory_flow_red_zone_upper_boundaryObject

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



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

def expiratory_flow_red_zone_upper_boundary
  return @children['expiratory-flow-red-zone-upper-boundary'][:value]
end

#expiratory_flow_red_zone_upper_boundary=(value) ⇒ Object

remarks: This zone covers flow between 0 and the specified value (measured in L/s). value is a HealthVault::WCData::Thing::Types::Flowvalue



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

def expiratory_flow_red_zone_upper_boundary=(value)
  @children['expiratory-flow-red-zone-upper-boundary'][:value] = value
end

#expiratory_flow_yellow_zone_upper_boundaryObject

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



71
72
73
# File 'lib/wc_data/generated/thing/respiratory_profile/respiratory_profile.rb', line 71

def expiratory_flow_yellow_zone_upper_boundary
  return @children['expiratory-flow-yellow-zone-upper-boundary'][:value]
end

#expiratory_flow_yellow_zone_upper_boundary=(value) ⇒ Object

remarks: This zone covers flow between the orange zone upper boundary and the specified value (measured in L/s). value is a HealthVault::WCData::Thing::Types::Flowvalue



66
67
68
# File 'lib/wc_data/generated/thing/respiratory_profile/respiratory_profile.rb', line 66

def expiratory_flow_yellow_zone_upper_boundary=(value)
  @children['expiratory-flow-yellow-zone-upper-boundary'][:value] = value
end

#whenObject

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



26
27
28
# File 'lib/wc_data/generated/thing/respiratory_profile/respiratory_profile.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/respiratory_profile/respiratory_profile.rb', line 21

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