Class: HealthVault::WCData::Thing::Microbiology::Microbiologylabresults
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Microbiology::Microbiologylabresults
- Defined in:
- lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_lab_tests(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Labtesttype.
-
#initialize ⇒ Microbiologylabresults
constructor
A new instance of Microbiologylabresults.
-
#lab_tests ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Labtesttype Array.
-
#organism_comment ⇒ Object
returns: a String.
-
#organism_comment=(value) ⇒ Object
value is a String.
-
#organism_name ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#organism_name=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#remove_lab_tests(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Types::Labtesttype.
-
#sensitivity_agent ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#sensitivity_agent=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#sensitivity_interpretation ⇒ Object
returns: a String.
-
#sensitivity_interpretation=(value) ⇒ Object
value is a String.
-
#sensitivity_value ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#sensitivity_value=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#specimen_type ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#specimen_type=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#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 ⇒ Microbiologylabresults
Returns a new instance of Microbiologylabresults.
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 135 def initialize super self.tag_name = 'microbiology-lab-results' @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['lab-tests'] = {:name => 'lab-tests', :class => HealthVault::WCData::Thing::Types::Labtesttype, :value => Array.new, :min => 0, :max => 999999, :order => 2, :place => :element, :choice => 0 } @children['sensitivity-agent'] = {:name => 'sensitivity-agent', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['sensitivity-value'] = {:name => 'sensitivity-value', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['sensitivity-interpretation'] = {:name => 'sensitivity-interpretation', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['specimen-type'] = {:name => 'specimen-type', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 } @children['organism-name'] = {:name => 'organism-name', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 7, :place => :element, :choice => 0 } @children['organism-comment'] = {:name => 'organism-comment', :class => String, :value => nil, :min => 0, :max => 1, :order => 8, :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_lab_tests(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Labtesttype
33 34 35 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 33 def add_lab_tests(value) @children['lab-tests'][:value] << value end |
#lab_tests ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Labtesttype Array
45 46 47 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 45 def lab_tests return @children['lab-tests'][:value] end |
#organism_comment ⇒ Object
returns: a String
129 130 131 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 129 def organism_comment return @children['organism-comment'][:value] end |
#organism_comment=(value) ⇒ Object
value is a String
124 125 126 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 124 def organism_comment=(value) @children['organism-comment'][:value] = value end |
#organism_name ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
115 116 117 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 115 def organism_name return @children['organism-name'][:value] end |
#organism_name=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
110 111 112 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 110 def organism_name=(value) @children['organism-name'][:value] = value end |
#remove_lab_tests(value) ⇒ Object
value is a #HealthVault::WCData::Thing::Types::Labtesttype
38 39 40 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 38 def remove_lab_tests(value) @children['lab-tests'][:value].delete(value) end |
#sensitivity_agent ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
59 60 61 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 59 def sensitivity_agent return @children['sensitivity-agent'][:value] end |
#sensitivity_agent=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
54 55 56 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 54 def sensitivity_agent=(value) @children['sensitivity-agent'][:value] = value end |
#sensitivity_interpretation ⇒ Object
returns: a String
87 88 89 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 87 def sensitivity_interpretation return @children['sensitivity-interpretation'][:value] end |
#sensitivity_interpretation=(value) ⇒ Object
value is a String
82 83 84 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 82 def sensitivity_interpretation=(value) @children['sensitivity-interpretation'][:value] = value end |
#sensitivity_value ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
73 74 75 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 73 def sensitivity_value return @children['sensitivity-value'][:value] end |
#sensitivity_value=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
68 69 70 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 68 def sensitivity_value=(value) @children['sensitivity-value'][:value] = value end |
#specimen_type ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
101 102 103 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 101 def specimen_type return @children['specimen-type'][:value] end |
#specimen_type=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
96 97 98 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.rb', line 96 def specimen_type=(value) @children['specimen-type'][:value] = value end |
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime
26 27 28 |
# File 'lib/wc_data/generated/thing/microbiology/microbiology_lab_results.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/microbiology/microbiology_lab_results.rb', line 21 def when=(value) @children['when'][:value] = value end |