Class: HealthVault::WCData::Thing::Radiologylabresults::Radiologylabresults

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

#initializeRadiologylabresults

Returns a new instance of Radiologylabresults.



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/wc_data/generated/thing/radiology_lab_results/radiology_lab_results.rb', line 74

def initialize
  super
  self.tag_name = 'radiology-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['title'] = {:name => 'title', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

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

  
  @children['result-text'] = {:name => 'result-text', :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

#anatomic_siteObject

returns: a String



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

def anatomic_site
  return @children['anatomic-site'][:value]
end

#anatomic_site=(value) ⇒ Object

value is a String



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

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

#result_textObject

returns: a String



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

def result_text
  return @children['result-text'][:value]
end

#result_text=(value) ⇒ Object

value is a String



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

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

#titleObject

returns: a String



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

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

#title=(value) ⇒ Object

value is a String



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

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

#whenObject

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



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

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