Class: HealthVault::WCData::Thing::Types::Labtesttype

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

#initializeLabtesttype

Returns a new instance of Labtesttype.



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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 153

def initialize
  super
  self.tag_name = 'lab-test-type'

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

  
  @children['substance'] = {:name => 'substance', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

  
  @children['collection-method'] = {:name => 'collection-method', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

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

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

  
  @children['code'] = {:name => 'code', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => Array.new, :min => 0, :max => 999999, :order => 7, :place => :element, :choice => 0 }
  

  
  @children['result'] = {:name => 'result', :class => HealthVault::WCData::Thing::Types::Labresulttype, :value => nil, :min => 0, :max => 1, :order => 8, :place => :element, :choice => 0 }
    
  

  
  @children['status'] = {:name => 'status', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 9, :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

#abbreviationObject

returns: a String



82
83
84
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 82

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

#abbreviation=(value) ⇒ Object

value is a String



77
78
79
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 77

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

#add_code(value) ⇒ Object

value is a HealthVault::WCData::Thing::Types::Codablevalue



103
104
105
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 103

def add_code(value)
  @children['code'][:value] << value
end

#codeObject

preferred-vocabulary: LOINC returns: a HealthVault::WCData::Thing::Types::Codablevalue Array



116
117
118
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 116

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

#collection_methodObject

returns: a HealthVault::WCData::Thing::Types::Codablevalue



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

def collection_method
  return @children['collection-method'][:value]
end

#collection_method=(value) ⇒ Object

value is a HealthVault::WCData::Thing::Types::Codablevalue



63
64
65
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 63

def collection_method=(value)
  @children['collection-method'][:value] = value
end

#descriptionObject

returns: a String



96
97
98
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 96

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

#description=(value) ⇒ Object

value is a String



91
92
93
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 91

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

#nameObject

returns: a String



40
41
42
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 40

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

#name=(value) ⇒ Object

value is a String



35
36
37
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 35

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

#remove_code(value) ⇒ Object

value is a #HealthVault::WCData::Thing::Types::Codablevalue



108
109
110
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 108

def remove_code(value)
    @children['code'][:value].delete(value)
end

#resultObject

returns: a HealthVault::WCData::Thing::Types::Labresulttype



131
132
133
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 131

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

#result=(value) ⇒ Object

remarks: This type is define a clinical value within a laboratory result, including value, unit, reference and toxic ranges. value is a HealthVault::WCData::Thing::Types::Labresulttype



126
127
128
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 126

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

#statusObject

returns: a HealthVault::WCData::Thing::Types::Codablevalue



147
148
149
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 147

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

#status=(value) ⇒ Object

remarks: Examples of status include complete and pending. preferred-vocabulary: lab-results-status value is a HealthVault::WCData::Thing::Types::Codablevalue



142
143
144
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 142

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

#substanceObject

returns: a HealthVault::WCData::Thing::Types::Codablevalue



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

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

#substance=(value) ⇒ Object

value is a HealthVault::WCData::Thing::Types::Codablevalue



49
50
51
# File 'lib/wc_data/generated/thing/types/lab_test_type.rb', line 49

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

#whenObject

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



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

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