Class: HealthVault::WCData::Thing::Encounter::Encounter
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Encounter::Encounter
- Defined in:
- lib/wc_data/generated/thing/encounter/encounter.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#consent_granted ⇒ Object
returns: a String.
-
#consent_granted=(value) ⇒ Object
value is a String.
-
#duration ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Durationvalue.
-
#duration=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Durationvalue.
-
#facility ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Organization.
-
#facility=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Organization.
-
#initialize ⇒ Encounter
constructor
A new instance of Encounter.
-
#reason ⇒ Object
returns: a String.
-
#reason=(value) ⇒ Object
remarks: Examples include heart failure, broken leg, or annual physical.
-
#type ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#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 ⇒ Encounter
Returns a new instance of Encounter.
103 104 105 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 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 103 def initialize super self.tag_name = 'encounter' @children['when'] = {:name => 'when', :class => HealthVault::WCData::Dates::Datetime, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['type'] = {:name => 'type', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['reason'] = {:name => 'reason', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['duration'] = {:name => 'duration', :class => HealthVault::WCData::Thing::Types::Durationvalue, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['consent-granted'] = {:name => 'consent-granted', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['facility'] = {:name => 'facility', :class => HealthVault::WCData::Thing::Types::Organization, :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
#consent_granted ⇒ Object
returns: a String
83 84 85 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 83 def return @children['consent-granted'][:value] end |
#consent_granted=(value) ⇒ Object
value is a String
78 79 80 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 78 def (value) @children['consent-granted'][:value] = value end |
#duration ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Durationvalue
69 70 71 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 69 def duration return @children['duration'][:value] end |
#duration=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Durationvalue
64 65 66 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 64 def duration=(value) @children['duration'][:value] = value end |
#facility ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Organization
97 98 99 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 97 def facility return @children['facility'][:value] end |
#facility=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Organization
92 93 94 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 92 def facility=(value) @children['facility'][:value] = value end |
#reason ⇒ Object
returns: a String
55 56 57 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 55 def reason return @children['reason'][:value] end |
#reason=(value) ⇒ Object
remarks: Examples include heart failure, broken leg, or annual physical. value is a String
50 51 52 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 50 def reason=(value) @children['reason'][:value] = value end |
#type ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
40 41 42 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 40 def type return @children['type'][:value] end |
#type=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
35 36 37 |
# File 'lib/wc_data/generated/thing/encounter/encounter.rb', line 35 def type=(value) @children['type'][:value] = value end |
#when ⇒ Object
returns: a HealthVault::WCData::Dates::Datetime
26 27 28 |
# File 'lib/wc_data/generated/thing/encounter/encounter.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/encounter/encounter.rb', line 21 def when=(value) @children['when'][:value] = value end |