Class: HealthVault::WCData::Thing::Medication::Medication
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::Medication::Medication
- Defined in:
- lib/wc_data/generated/thing/medication/medication.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_code(value) ⇒ Object
value is a String.
-
#amount_prescribed ⇒ Object
returns: a String.
-
#amount_prescribed=(value) ⇒ Object
value is a String.
-
#code ⇒ Object
returns: a String Array.
-
#date_discontinued ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdatetime.
-
#date_discontinued=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdatetime.
-
#date_filled ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdatetime.
-
#date_filled=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdatetime.
-
#date_prescribed ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdatetime.
-
#date_prescribed=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdatetime.
-
#days_supply ⇒ Object
returns: a String.
-
#days_supply=(value) ⇒ Object
value is a String.
-
#dose_unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#dose_unit=(value) ⇒ Object
preferred-vocabulary: x12-de-1330 value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#dose_value ⇒ Object
returns: a HealthVault::WCData::Thing::Medication::DoseValue.
-
#dose_value=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Medication::DoseValue.
-
#duration ⇒ Object
returns: a String.
-
#duration=(value) ⇒ Object
value is a String.
-
#duration_unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#duration_unit=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#frequency ⇒ Object
returns: a String.
-
#frequency=(value) ⇒ Object
value is a String.
-
#indication ⇒ Object
returns: a String.
-
#indication=(value) ⇒ Object
value is a String.
-
#initialize ⇒ Medication
constructor
A new instance of Medication.
-
#instructions ⇒ Object
returns: a String.
-
#instructions=(value) ⇒ Object
value is a String.
-
#is_prescribed ⇒ Object
returns: a String.
-
#is_prescribed=(value) ⇒ Object
value is a String.
-
#name ⇒ Object
returns: a String.
-
#name=(value) ⇒ Object
value is a String.
-
#pharmacy ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Contact.
-
#pharmacy=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Contact.
-
#prescription_duration ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Durationvalue.
-
#prescription_duration=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Durationvalue.
-
#prescription_number ⇒ Object
returns: a String.
-
#prescription_number=(value) ⇒ Object
value is a String.
-
#refills ⇒ Object
returns: a String.
-
#refills=(value) ⇒ Object
value is a String.
-
#refills_left ⇒ Object
returns: a String.
-
#refills_left=(value) ⇒ Object
value is a String.
-
#remove_code(value) ⇒ Object
value is a #String.
-
#route ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#route=(value) ⇒ Object
preferred-vocabulary: medication-routes value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#strength_unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#strength_unit=(value) ⇒ Object
preferred-vocabulary: x12-de-355 value is a HealthVault::WCData::Thing::Types::Codablevalue.
-
#strength_value ⇒ Object
returns: a String.
-
#strength_value=(value) ⇒ Object
value is a String.
-
#substitution_permitted ⇒ Object
returns: a String.
-
#substitution_permitted=(value) ⇒ Object
value is a String.
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 ⇒ Medication
Returns a new instance of Medication.
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 362 def initialize super self.tag_name = 'medication' @children['name'] = {:name => 'name', :class => String, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['code'] = {:name => 'code', :class => String, :value => Array.new, :min => 0, :max => 999999, :order => 2, :place => :element, :choice => 0 } @children['date-discontinued'] = {:name => 'date-discontinued', :class => HealthVault::WCData::Dates::Approxdatetime, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 } @children['date-filled'] = {:name => 'date-filled', :class => HealthVault::WCData::Dates::Approxdatetime, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 } @children['date-prescribed'] = {:name => 'date-prescribed', :class => HealthVault::WCData::Dates::Approxdatetime, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 } @children['is-prescribed'] = {:name => 'is-prescribed', :class => String, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 } @children['indication'] = {:name => 'indication', :class => String, :value => nil, :min => 0, :max => 1, :order => 7, :place => :element, :choice => 0 } @children['amount-prescribed'] = {:name => 'amount-prescribed', :class => String, :value => nil, :min => 0, :max => 1, :order => 8, :place => :element, :choice => 0 } @children['dose-value'] = {:name => 'dose-value', :class => HealthVault::WCData::Thing::Medication::DoseValue, :value => nil, :min => 0, :max => 1, :order => 9, :place => :element, :choice => 0 } @children['dose-unit'] = {:name => 'dose-unit', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 10, :place => :element, :choice => 0 } @children['strength-value'] = {:name => 'strength-value', :class => String, :value => nil, :min => 0, :max => 1, :order => 11, :place => :element, :choice => 0 } @children['strength-unit'] = {:name => 'strength-unit', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 12, :place => :element, :choice => 0 } @children['frequency'] = {:name => 'frequency', :class => String, :value => nil, :min => 0, :max => 1, :order => 13, :place => :element, :choice => 0 } @children['route'] = {:name => 'route', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 14, :place => :element, :choice => 0 } @children['duration'] = {:name => 'duration', :class => String, :value => nil, :min => 0, :max => 1, :order => 15, :place => :element, :choice => 0 } @children['duration-unit'] = {:name => 'duration-unit', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 16, :place => :element, :choice => 0 } @children['refills'] = {:name => 'refills', :class => String, :value => nil, :min => 0, :max => 1, :order => 17, :place => :element, :choice => 0 } @children['refills-left'] = {:name => 'refills-left', :class => String, :value => nil, :min => 0, :max => 1, :order => 18, :place => :element, :choice => 0 } @children['days-supply'] = {:name => 'days-supply', :class => String, :value => nil, :min => 0, :max => 1, :order => 19, :place => :element, :choice => 0 } @children['prescription-duration'] = {:name => 'prescription-duration', :class => HealthVault::WCData::Thing::Types::Durationvalue, :value => nil, :min => 0, :max => 1, :order => 20, :place => :element, :choice => 0 } @children['instructions'] = {:name => 'instructions', :class => String, :value => nil, :min => 0, :max => 1, :order => 21, :place => :element, :choice => 0 } @children['substitution-permitted'] = {:name => 'substitution-permitted', :class => String, :value => nil, :min => 0, :max => 1, :order => 22, :place => :element, :choice => 0 } @children['pharmacy'] = {:name => 'pharmacy', :class => HealthVault::WCData::Thing::Types::Contact, :value => nil, :min => 0, :max => 1, :order => 23, :place => :element, :choice => 0 } @children['prescription-number'] = {:name => 'prescription-number', :class => String, :value => nil, :min => 0, :max => 1, :order => 24, :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
#add_code(value) ⇒ Object
value is a String
33 34 35 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 33 def add_code(value) @children['code'][:value] << value end |
#amount_prescribed ⇒ Object
returns: a String
129 130 131 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 129 def amount_prescribed return @children['amount-prescribed'][:value] end |
#amount_prescribed=(value) ⇒ Object
value is a String
124 125 126 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 124 def amount_prescribed=(value) @children['amount-prescribed'][:value] = value end |
#code ⇒ Object
returns: a String Array
45 46 47 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 45 def code return @children['code'][:value] end |
#date_discontinued ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdatetime
59 60 61 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 59 def date_discontinued return @children['date-discontinued'][:value] end |
#date_discontinued=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdatetime
54 55 56 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 54 def date_discontinued=(value) @children['date-discontinued'][:value] = value end |
#date_filled ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdatetime
73 74 75 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 73 def date_filled return @children['date-filled'][:value] end |
#date_filled=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdatetime
68 69 70 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 68 def date_filled=(value) @children['date-filled'][:value] = value end |
#date_prescribed ⇒ Object
returns: a HealthVault::WCData::Dates::Approxdatetime
87 88 89 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 87 def date_prescribed return @children['date-prescribed'][:value] end |
#date_prescribed=(value) ⇒ Object
value is a HealthVault::WCData::Dates::Approxdatetime
82 83 84 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 82 def date_prescribed=(value) @children['date-prescribed'][:value] = value end |
#days_supply ⇒ Object
returns: a String
286 287 288 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 286 def days_supply return @children['days-supply'][:value] end |
#days_supply=(value) ⇒ Object
value is a String
281 282 283 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 281 def days_supply=(value) @children['days-supply'][:value] = value end |
#dose_unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
158 159 160 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 158 def dose_unit return @children['dose-unit'][:value] end |
#dose_unit=(value) ⇒ Object
preferred-vocabulary: x12-de-1330 value is a HealthVault::WCData::Thing::Types::Codablevalue
153 154 155 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 153 def dose_unit=(value) @children['dose-unit'][:value] = value end |
#dose_value ⇒ Object
returns: a HealthVault::WCData::Thing::Medication::DoseValue
143 144 145 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 143 def dose_value return @children['dose-value'][:value] end |
#dose_value=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Medication::DoseValue
138 139 140 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 138 def dose_value=(value) @children['dose-value'][:value] = value end |
#duration ⇒ Object
returns: a String
230 231 232 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 230 def duration return @children['duration'][:value] end |
#duration=(value) ⇒ Object
value is a String
225 226 227 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 225 def duration=(value) @children['duration'][:value] = value end |
#duration_unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
244 245 246 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 244 def duration_unit return @children['duration-unit'][:value] end |
#duration_unit=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Codablevalue
239 240 241 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 239 def duration_unit=(value) @children['duration-unit'][:value] = value end |
#frequency ⇒ Object
returns: a String
201 202 203 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 201 def frequency return @children['frequency'][:value] end |
#frequency=(value) ⇒ Object
value is a String
196 197 198 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 196 def frequency=(value) @children['frequency'][:value] = value end |
#indication ⇒ Object
returns: a String
115 116 117 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 115 def indication return @children['indication'][:value] end |
#indication=(value) ⇒ Object
value is a String
110 111 112 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 110 def indication=(value) @children['indication'][:value] = value end |
#instructions ⇒ Object
returns: a String
314 315 316 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 314 def instructions return @children['instructions'][:value] end |
#instructions=(value) ⇒ Object
value is a String
309 310 311 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 309 def instructions=(value) @children['instructions'][:value] = value end |
#is_prescribed ⇒ Object
returns: a String
101 102 103 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 101 def is_prescribed return @children['is-prescribed'][:value] end |
#is_prescribed=(value) ⇒ Object
value is a String
96 97 98 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 96 def is_prescribed=(value) @children['is-prescribed'][:value] = value end |
#name ⇒ Object
returns: a String
26 27 28 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 26 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
value is a String
21 22 23 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 21 def name=(value) @children['name'][:value] = value end |
#pharmacy ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Contact
342 343 344 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 342 def pharmacy return @children['pharmacy'][:value] end |
#pharmacy=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Contact
337 338 339 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 337 def pharmacy=(value) @children['pharmacy'][:value] = value end |
#prescription_duration ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Durationvalue
300 301 302 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 300 def prescription_duration return @children['prescription-duration'][:value] end |
#prescription_duration=(value) ⇒ Object
value is a HealthVault::WCData::Thing::Types::Durationvalue
295 296 297 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 295 def prescription_duration=(value) @children['prescription-duration'][:value] = value end |
#prescription_number ⇒ Object
returns: a String
356 357 358 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 356 def prescription_number return @children['prescription-number'][:value] end |
#prescription_number=(value) ⇒ Object
value is a String
351 352 353 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 351 def prescription_number=(value) @children['prescription-number'][:value] = value end |
#refills ⇒ Object
returns: a String
258 259 260 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 258 def refills return @children['refills'][:value] end |
#refills=(value) ⇒ Object
value is a String
253 254 255 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 253 def refills=(value) @children['refills'][:value] = value end |
#refills_left ⇒ Object
returns: a String
272 273 274 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 272 def refills_left return @children['refills-left'][:value] end |
#refills_left=(value) ⇒ Object
value is a String
267 268 269 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 267 def refills_left=(value) @children['refills-left'][:value] = value end |
#remove_code(value) ⇒ Object
value is a #String
38 39 40 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 38 def remove_code(value) @children['code'][:value].delete(value) end |
#route ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
216 217 218 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 216 def route return @children['route'][:value] end |
#route=(value) ⇒ Object
preferred-vocabulary: medication-routes value is a HealthVault::WCData::Thing::Types::Codablevalue
211 212 213 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 211 def route=(value) @children['route'][:value] = value end |
#strength_unit ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
187 188 189 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 187 def strength_unit return @children['strength-unit'][:value] end |
#strength_unit=(value) ⇒ Object
preferred-vocabulary: x12-de-355 value is a HealthVault::WCData::Thing::Types::Codablevalue
182 183 184 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 182 def strength_unit=(value) @children['strength-unit'][:value] = value end |
#strength_value ⇒ Object
returns: a String
172 173 174 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 172 def strength_value return @children['strength-value'][:value] end |
#strength_value=(value) ⇒ Object
value is a String
167 168 169 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 167 def strength_value=(value) @children['strength-value'][:value] = value end |
#substitution_permitted ⇒ Object
returns: a String
328 329 330 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 328 def substitution_permitted return @children['substitution-permitted'][:value] end |
#substitution_permitted=(value) ⇒ Object
value is a String
323 324 325 |
# File 'lib/wc_data/generated/thing/medication/medication.rb', line 323 def substitution_permitted=(value) @children['substitution-permitted'][:value] = value end |