Class: HealthVault::WCData::Types::Codedvalue

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

#initializeCodedvalue

Returns a new instance of Codedvalue.



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/wc_data/generated/types/coded_value.rb', line 77

def initialize
  super
  self.tag_name = 'coded-value'

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

  
  @children['family'] = {:name => 'family', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

  
  @children['type'] = {:name => 'type', :class => String, :value => nil, :min => 1, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  @children['type'][:value] = String.new
    
  

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

#familyObject

returns: a String



41
42
43
# File 'lib/wc_data/generated/types/coded_value.rb', line 41

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

#family=(value) ⇒ Object

remarks: The family of a vocabulary partially identifies the vocabulary instance along with type and version. If the value is missing the family is assumed to be ‘wc’ which is the Microsoft Health Lexicon. value is a String



36
37
38
# File 'lib/wc_data/generated/types/coded_value.rb', line 36

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

#typeObject

returns: a String



56
57
58
# File 'lib/wc_data/generated/types/coded_value.rb', line 56

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

#type=(value) ⇒ Object

remarks: This is the name that identifies the vocabulary in the family of vocabularies. value is a String



51
52
53
# File 'lib/wc_data/generated/types/coded_value.rb', line 51

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

#valueObject

returns: a String



26
27
28
# File 'lib/wc_data/generated/types/coded_value.rb', line 26

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

#value=(value) ⇒ Object

remarks: Codes are unique to the vocabulary they reside in. The codes for a particular vocabulary can be enumerated using GetVocabulary. value is a String



21
22
23
# File 'lib/wc_data/generated/types/coded_value.rb', line 21

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

#versionObject

returns: a String



71
72
73
# File 'lib/wc_data/generated/types/coded_value.rb', line 71

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

#version=(value) ⇒ Object

remarks: The version identifies which version of a vocabulary identified by the ‘type’ element the code is in if more than one version is present. value is a String



66
67
68
# File 'lib/wc_data/generated/types/coded_value.rb', line 66

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