Class: HealthVault::WCData::Thing::Types::Labresulttype
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Types::Labresulttype
- Defined in:
- lib/wc_data/generated/thing/types/lab_result_type.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_flag(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#flag ⇒ Object
remarks: Example values are normal, critical, high and low.
-
#initialize ⇒ Labresulttype
constructor
A new instance of Labresulttype.
-
#reference_range ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Doublerange.
-
#reference_range=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Doublerange.
-
#remove_flag(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Types::Codablevalue.
-
#text_value ⇒ Object
returns: a String.
-
#text_value=(value) ⇒ Object
value is a String.
-
#toxic_range ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Doublerange.
-
#toxic_range=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Doublerange.
-
#unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#unit=(value) ⇒ Object
preferred-vocabulary: lab-results-units value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#value ⇒ Object
returns: a String.
-
#value=(value) ⇒ Object
value is a String.
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 ⇒ Labresulttype
Returns a new instance of Labresulttype.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 110 def initialize super self.tag_name = 'lab-result-type' @children['value'] = {:name => 'value', :class => String, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['unit'] = {:name => 'unit', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['reference-range'] = {:name => 'reference-range', :class => HealthVault::WCData::Thing::Types::Doublerange, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['toxic-range'] = {:name => 'toxic-range', :class => HealthVault::WCData::Thing::Types::Doublerange, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['text-value'] = {:name => 'text-value', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['flag'] = {:name => 'flag', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => Array.new, :min => 0, :max => 999999, :order => 6, :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_flag(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
90 91 92 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 90 def add_flag(value) @children['flag'][:value] << value end |
#flag ⇒ Object
remarks: Example values are normal, critical, high and low. preferred-vocabulary: lab-results-flag returns: a HealthVault::WCData::Thing::Types::Codablevalue Array
104 105 106 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 104 def flag return @children['flag'][:value] end |
#reference_range ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Doublerange
55 56 57 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 55 def reference_range return @children['reference-range'][:value] end |
#reference_range=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Doublerange
50 51 52 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 50 def reference_range=(value) @children['reference-range'][:value] = value end |
#remove_flag(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Types::Codablevalue
95 96 97 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 95 def remove_flag(value) @children['flag'][:value].delete(value) end |
#text_value ⇒ Object
returns: a String
83 84 85 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 83 def text_value return @children['text-value'][:value] end |
#text_value=(value) ⇒ Object
value is a String
78 79 80 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 78 def text_value=(value) @children['text-value'][:value] = value end |
#toxic_range ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Doublerange
69 70 71 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 69 def toxic_range return @children['toxic-range'][:value] end |
#toxic_range=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Doublerange
64 65 66 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 64 def toxic_range=(value) @children['toxic-range'][:value] = value end |
#unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
41 42 43 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 41 def unit return @children['unit'][:value] end |
#unit=(value) ⇒ Object
preferred-vocabulary: lab-results-units value is a HealthVault::WCData::Thing::Types::Codablevalue
36 37 38 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 36 def unit=(value) @children['unit'][:value] = value end |
#value ⇒ Object
returns: a String
26 27 28 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 26 def value return @children['value'][:value] end |
#value=(value) ⇒ Object
value is a String
21 22 23 |
# File 'lib/wc_data/generated/thing/types/lab_result_type.rb', line 21 def value=(value) @children['value'][:value] = value end |