Class: HealthVault::WCData::Thing::Types::Condition
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Types::Condition
- Defined in:
- lib/wc_data/generated/thing/types/condition.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#initialize ⇒ Condition
constructor
A new instance of Condition.
-
#name ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#name=(value) ⇒ Object
preferred-vocabulary: Contact the HealthVault team to help define this vocabulary.
-
#occurrence ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#occurrence=(value) ⇒ Object
remarks: Examples: acute, chronic.
-
#onset_date ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdate.
-
#onset_date=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdate.
-
#resolution ⇒ Object
returns: a String.
-
#resolution=(value) ⇒ Object
value is a String.
-
#resolution_date ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdate.
-
#resolution_date=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdate.
-
#severity ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#severity=(value) ⇒ Object
preferred-vocabulary: condition-severity value is a HealthVault::WCData::Thing::Types::Codablevalue.
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 ⇒ Condition
Returns a new instance of Condition.
106 107 108 109 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 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 106 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::Approxdate, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['resolution-date'] = {:name => 'resolution-date', :class => HealthVault::WCData::Dates::Approxdate, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['resolution'] = {:name => 'resolution', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['occurrence'] = {:name => 'occurrence', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['severity'] = {:name => 'severity', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :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
#name ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
27 28 29 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 27 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
preferred-vocabulary: Contact the HealthVault team to help define this vocabulary. value is a HealthVault::WCData::Thing::Types::Codablevalue
22 23 24 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 22 def name=(value) @children['name'][:value] = value end |
#occurrence ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
85 86 87 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 85 def occurrence return @children['occurrence'][:value] end |
#occurrence=(value) ⇒ Object
remarks: Examples: acute, chronic. preferred-vocabulary: Contact the HealthVault team to help define this vocabulary. value is a HealthVault::WCData::Thing::Types::Codablevalue
80 81 82 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 80 def occurrence=(value) @children['occurrence'][:value] = value end |
#onset_date ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdate
41 42 43 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 41 def onset_date return @children['onset-date'][:value] end |
#onset_date=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdate
36 37 38 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 36 def onset_date=(value) @children['onset-date'][:value] = value end |
#resolution ⇒ Object
returns: a String
69 70 71 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 69 def resolution return @children['resolution'][:value] end |
#resolution=(value) ⇒ Object
value is a String
64 65 66 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 64 def resolution=(value) @children['resolution'][:value] = value end |
#resolution_date ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdate
55 56 57 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 55 def resolution_date return @children['resolution-date'][:value] end |
#resolution_date=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdate
50 51 52 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 50 def resolution_date=(value) @children['resolution-date'][:value] = value end |
#severity ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
100 101 102 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 100 def severity return @children['severity'][:value] end |
#severity=(value) ⇒ Object
preferred-vocabulary: condition-severity value is a HealthVault::WCData::Thing::Types::Codablevalue
95 96 97 |
# File 'lib/wc_data/generated/thing/types/condition.rb', line 95 def severity=(value) @children['severity'][:value] = value end |