Class: HealthVault::WCData::Thing::Vitalsigns::Vitalsigns

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

#initializeVitalsigns

Returns a new instance of Vitalsigns.



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
104
# File 'lib/wc_data/generated/thing/vital_signs/vital_signs.rb', line 79

def initialize
  super
  self.tag_name = 'vital-signs'

  
  @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['vital-signs-results'] = {:name => 'vital-signs-results', :class => HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype, :value => Array.new, :min => 0, :max => 999999, :order => 2, :place => :element, :choice => 0 }
  

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

  
  @children['position'] = {:name => 'position', :class => String, :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

#add_vital_signs_results(value) ⇒ Object

value is a HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype



33
34
35
# File 'lib/wc_data/generated/thing/vital_signs/vital_signs.rb', line 33

def add_vital_signs_results(value)
  @children['vital-signs-results'][:value] << value
end

#positionObject

returns: a String



73
74
75
# File 'lib/wc_data/generated/thing/vital_signs/vital_signs.rb', line 73

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

#position=(value) ⇒ Object

value is a String



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

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

#remove_vital_signs_results(value) ⇒ Object

value is a #HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype



38
39
40
# File 'lib/wc_data/generated/thing/vital_signs/vital_signs.rb', line 38

def remove_vital_signs_results(value)
    @children['vital-signs-results'][:value].delete(value)
end

#siteObject

returns: a String



59
60
61
# File 'lib/wc_data/generated/thing/vital_signs/vital_signs.rb', line 59

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

#site=(value) ⇒ Object

value is a String



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

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

#vital_signs_resultsObject

returns: a HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype Array



45
46
47
# File 'lib/wc_data/generated/thing/vital_signs/vital_signs.rb', line 45

def vital_signs_results
  return @children['vital-signs-results'][:value]
end

#whenObject

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



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

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