Class: HealthVault::WCData::Thing::BloodPressure::Bloodpressure

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

#initializeBloodpressure

Returns a new instance of Bloodpressure.



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/wc_data/generated/thing/blood_pressure/blood_pressure.rb', line 92

def initialize
  super
  self.tag_name = 'blood-pressure'

  
  @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['systolic'] = {:name => 'systolic', :class => String, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  @children['systolic'][:value] = String.new
    
  

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

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

  
  @children['irregular-heartbeat'] = {:name => 'irregular-heartbeat', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :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

#diastolicObject

returns: a String



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

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

#diastolic=(value) ⇒ Object

remarks: The diastolic pressure is the lowest pressure in the arteries during a cardiac cycle. It is measured in millimeters of mercury (mmHg). value is a String



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

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

#irregular_heartbeatObject

returns: a String



86
87
88
# File 'lib/wc_data/generated/thing/blood_pressure/blood_pressure.rb', line 86

def irregular_heartbeat
  return @children['irregular-heartbeat'][:value]
end

#irregular_heartbeat=(value) ⇒ Object

remarks: The irregular heartbeat is a boolean indicator. value is a String



81
82
83
# File 'lib/wc_data/generated/thing/blood_pressure/blood_pressure.rb', line 81

def irregular_heartbeat=(value)
  @children['irregular-heartbeat'][:value] = value
end

#pulseObject

returns: a String



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

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

#pulse=(value) ⇒ Object

remarks: The pulse is measured in beats per minute. value is a String



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

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

#systolicObject

returns: a String



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

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

#systolic=(value) ⇒ Object

remarks: The systolic pressure is the peak pressure in the arteries during a cardiac cycle. It is measured in millimeters of mercury (mmHg). value is a String



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

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

#whenObject

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



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

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