Class: HealthVault::WCData::Thing::Vitalsigns::Vitalsigns
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Vitalsigns::Vitalsigns
- Defined in:
- lib/wc_data/generated/thing/vital_signs/vital_signs.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_vital_signs_results(value) ⇒ Object
value is a HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype.
-
#initialize ⇒ Vitalsigns
constructor
A new instance of Vitalsigns.
-
#position ⇒ Object
returns: a String.
-
#position=(value) ⇒ Object
value is a String.
-
#remove_vital_signs_results(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype.
-
#site ⇒ Object
returns: a String.
-
#site=(value) ⇒ Object
value is a String.
-
#vital_signs_results ⇒ Object
returns: a HealthVault::WCData::Thing::Vitalsigns::Vitalsignresulttype Array.
-
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime.
-
#when=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Datetime.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ Vitalsigns
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 |
#position ⇒ Object
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 |
#site ⇒ Object
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_results ⇒ Object
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 |
#when ⇒ Object
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 |