Class: HealthVault::WCData::Types::Record
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Types::Record
- Defined in:
- lib/wc_data/generated/types/record.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#auth_expired ⇒ Object
returns: a String.
-
#auth_expired=(value) ⇒ Object
value is a String.
-
#auth_expires ⇒ Object
returns: a String.
-
#auth_expires=(value) ⇒ Object
remarks: Once authorization expires to the record, a record custodian must extend the expiration period for the person to be able to access data in the record.
-
#data ⇒ Object
returns: a HealthVault::WCData::Types::String255.
-
#data=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Types::String255.
-
#date_created ⇒ Object
returns: a String.
-
#date_created=(value) ⇒ Object
value is a String.
-
#display_name ⇒ Object
returns: a HealthVault::WCData::Types::String255.
-
#display_name=(value) ⇒ Object
remarks: It may be possible for a person to provide an alternate name for a record rather than the person’s name.
-
#id ⇒ Object
returns: a HealthVault::WCData::Types::Guid.
-
#id=(value) ⇒ Object
value is a HealthVault::WCData::Types::Guid.
-
#initialize ⇒ Record
constructor
A new instance of Record.
-
#max_size_bytes ⇒ Object
returns: a HealthVault::WCData::Types::PositiveLong.
-
#max_size_bytes=(value) ⇒ Object
value is a HealthVault::WCData::Types::PositiveLong.
-
#record_custodian ⇒ Object
returns: a String.
-
#record_custodian=(value) ⇒ Object
remarks: If true, the authenticated person has rights to perform special operations on the record like sharing it with other people or modifying the permissions someone has on the record.
-
#rel_name ⇒ Object
returns: a HealthVault::WCData::Types::String255.
-
#rel_name=(value) ⇒ Object
remarks: This value is localized using the language and country specified in the request.
-
#rel_type ⇒ Object
returns: a String.
-
#rel_type=(value) ⇒ Object
value is a String.
-
#size_bytes ⇒ Object
returns: a HealthVault::WCData::Types::PositiveLong.
-
#size_bytes=(value) ⇒ Object
value is a HealthVault::WCData::Types::PositiveLong.
-
#state ⇒ Object
returns: a HealthVault::WCData::Types::RecordState.
-
#state=(value) ⇒ Object
remarks: Authorization to a record may be suspended or revoked if there is suspicion of fraud.
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 ⇒ Record
Returns a new instance of Record.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/wc_data/generated/types/record.rb', line 189 def initialize super self.tag_name = 'record' @children['data'] = {:name => 'data', :class => HealthVault::WCData::Types::String255, :value => nil, :min => 1, :max => 1, :order => 0, :place => :extension, :choice => 0 } @children['data'][:value] = HealthVault::WCData::Types::String255.new @children['id'] = {:name => 'id', :class => HealthVault::WCData::Types::Guid, :value => nil, :min => 1, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['id'][:value] = HealthVault::WCData::Types::Guid.new @children['record-custodian'] = {:name => 'record-custodian', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['rel-type'] = {:name => 'rel-type', :class => String, :value => nil, :min => 1, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['rel-type'][:value] = String.new @children['rel-name'] = {:name => 'rel-name', :class => HealthVault::WCData::Types::String255, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['auth-expires'] = {:name => 'auth-expires', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['auth-expired'] = {:name => 'auth-expired', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['display-name'] = {:name => 'display-name', :class => HealthVault::WCData::Types::String255, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['state'] = {:name => 'state', :class => HealthVault::WCData::Types::RecordState, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['date-created'] = {:name => 'date-created', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['max-size-bytes'] = {:name => 'max-size-bytes', :class => HealthVault::WCData::Types::PositiveLong, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['size-bytes'] = {:name => 'size-bytes', :class => HealthVault::WCData::Types::PositiveLong, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :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
#auth_expired ⇒ Object
returns: a String
111 112 113 |
# File 'lib/wc_data/generated/types/record.rb', line 111 def auth_expired return @children['auth-expired'][:value] end |
#auth_expired=(value) ⇒ Object
value is a String
106 107 108 |
# File 'lib/wc_data/generated/types/record.rb', line 106 def auth_expired=(value) @children['auth-expired'][:value] = value end |
#auth_expires ⇒ Object
returns: a String
97 98 99 |
# File 'lib/wc_data/generated/types/record.rb', line 97 def auth_expires return @children['auth-expires'][:value] end |
#auth_expires=(value) ⇒ Object
remarks: Once authorization expires to the record, a record custodian must extend the expiration period for the person to be able to access data in the record. value is a String
92 93 94 |
# File 'lib/wc_data/generated/types/record.rb', line 92 def auth_expires=(value) @children['auth-expires'][:value] = value end |
#data ⇒ Object
returns: a HealthVault::WCData::Types::String255
24 25 26 |
# File 'lib/wc_data/generated/types/record.rb', line 24 def data return @children['data'][:value] end |
#data=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Types::String255
19 20 21 |
# File 'lib/wc_data/generated/types/record.rb', line 19 def data=(value) @children['data'][:value] = value end |
#date_created ⇒ Object
returns: a String
155 156 157 |
# File 'lib/wc_data/generated/types/record.rb', line 155 def date_created return @children['date-created'][:value] end |
#date_created=(value) ⇒ Object
value is a String
150 151 152 |
# File 'lib/wc_data/generated/types/record.rb', line 150 def date_created=(value) @children['date-created'][:value] = value end |
#display_name ⇒ Object
returns: a HealthVault::WCData::Types::String255
126 127 128 |
# File 'lib/wc_data/generated/types/record.rb', line 126 def display_name return @children['display-name'][:value] end |
#display_name=(value) ⇒ Object
remarks: It may be possible for a person to provide an alternate name for a record rather than the person’s name. For instance, a child authorized to a parent’s health record may change the display name to “Mom” rather than the parent’s name. value is a HealthVault::WCData::Types::String255
121 122 123 |
# File 'lib/wc_data/generated/types/record.rb', line 121 def display_name=(value) @children['display-name'][:value] = value end |
#id ⇒ Object
returns: a HealthVault::WCData::Types::Guid
38 39 40 |
# File 'lib/wc_data/generated/types/record.rb', line 38 def id return @children['id'][:value] end |
#id=(value) ⇒ Object
value is a HealthVault::WCData::Types::Guid
33 34 35 |
# File 'lib/wc_data/generated/types/record.rb', line 33 def id=(value) @children['id'][:value] = value end |
#max_size_bytes ⇒ Object
returns: a HealthVault::WCData::Types::PositiveLong
169 170 171 |
# File 'lib/wc_data/generated/types/record.rb', line 169 def max_size_bytes return @children['max-size-bytes'][:value] end |
#max_size_bytes=(value) ⇒ Object
value is a HealthVault::WCData::Types::PositiveLong
164 165 166 |
# File 'lib/wc_data/generated/types/record.rb', line 164 def max_size_bytes=(value) @children['max-size-bytes'][:value] = value end |
#record_custodian ⇒ Object
returns: a String
53 54 55 |
# File 'lib/wc_data/generated/types/record.rb', line 53 def record_custodian return @children['record-custodian'][:value] end |
#record_custodian=(value) ⇒ Object
remarks: If true, the authenticated person has rights to perform special operations on the record like sharing it with other people or modifying the permissions someone has on the record. Other than the owner of the record, custodianship is usually granted to a person that has the legal right to make medical decisions on behalf of the person. For example, a parent would likely be a custodian of a child’s record until that child reaches a legally mature age, or if someone has power of attorney over the individual. value is a String
48 49 50 |
# File 'lib/wc_data/generated/types/record.rb', line 48 def record_custodian=(value) @children['record-custodian'][:value] = value end |
#rel_name ⇒ Object
returns: a HealthVault::WCData::Types::String255
82 83 84 |
# File 'lib/wc_data/generated/types/record.rb', line 82 def rel_name return @children['rel-name'][:value] end |
#rel_name=(value) ⇒ Object
remarks: This value is localized using the language and country specified in the request. value is a HealthVault::WCData::Types::String255
77 78 79 |
# File 'lib/wc_data/generated/types/record.rb', line 77 def rel_name=(value) @children['rel-name'][:value] = value end |
#rel_type ⇒ Object
returns: a String
67 68 69 |
# File 'lib/wc_data/generated/types/record.rb', line 67 def rel_type return @children['rel-type'][:value] end |
#rel_type=(value) ⇒ Object
value is a String
62 63 64 |
# File 'lib/wc_data/generated/types/record.rb', line 62 def rel_type=(value) @children['rel-type'][:value] = value end |
#size_bytes ⇒ Object
returns: a HealthVault::WCData::Types::PositiveLong
183 184 185 |
# File 'lib/wc_data/generated/types/record.rb', line 183 def size_bytes return @children['size-bytes'][:value] end |
#size_bytes=(value) ⇒ Object
value is a HealthVault::WCData::Types::PositiveLong
178 179 180 |
# File 'lib/wc_data/generated/types/record.rb', line 178 def size_bytes=(value) @children['size-bytes'][:value] = value end |
#state ⇒ Object
returns: a HealthVault::WCData::Types::RecordState
141 142 143 |
# File 'lib/wc_data/generated/types/record.rb', line 141 def state return @children['state'][:value] end |
#state=(value) ⇒ Object
remarks: Authorization to a record may be suspended or revoked if there is suspicion of fraud. In most cases the state will be Active. value is a HealthVault::WCData::Types::RecordState
136 137 138 |
# File 'lib/wc_data/generated/types/record.rb', line 136 def state=(value) @children['state'][:value] = value end |