Class: HealthVault::WCData::Thing::Condition::Condition

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

#initializeCondition

Returns a new instance of Condition.



90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 90

def initialize
  super
  self.tag_name = 'condition'

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

  
  @children['onset-date'] = {:name => 'onset-date', :class => HealthVault::WCData::Dates::Approxdatetime, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

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

  
  @children['stop-date'] = {:name => 'stop-date', :class => HealthVault::WCData::Dates::Approxdatetime, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

  
  @children['stop-reason'] = {:name => 'stop-reason', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :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

#nameObject

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



27
28
29
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 27

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

#name=(value) ⇒ Object

remarks: Codes for the condition may be found in zero or more of the Microsoft Health vocabularies. value is a HealthVault::WCData::Thing::Types::Codablevalue



22
23
24
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 22

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

#onset_dateObject

returns: a HealthVault::WCData::Dates::Approxdatetime



41
42
43
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 41

def onset_date
  return @children['onset-date'][:value]
end

#onset_date=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Approxdatetime



36
37
38
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 36

def onset_date=(value)
  @children['onset-date'][:value] = value
end

#statusObject

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



56
57
58
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 56

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

#status=(value) ⇒ Object

remarks: For example, ‘acute’ or ‘chronic’. value is a HealthVault::WCData::Thing::Types::Codablevalue



51
52
53
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 51

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

#stop_dateObject

returns: a HealthVault::WCData::Dates::Approxdatetime



70
71
72
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 70

def stop_date
  return @children['stop-date'][:value]
end

#stop_date=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Approxdatetime



65
66
67
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 65

def stop_date=(value)
  @children['stop-date'][:value] = value
end

#stop_reasonObject

returns: a String



84
85
86
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 84

def stop_reason
  return @children['stop-reason'][:value]
end

#stop_reason=(value) ⇒ Object

value is a String



79
80
81
# File 'lib/wc_data/generated/thing/condition/condition.rb', line 79

def stop_reason=(value)
  @children['stop-reason'][:value] = value
end