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

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



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
106
# File 'lib/wc_data/generated/thing/types/coded_value.rb', line 78

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



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

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



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

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

#typeObject

returns: a String



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

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



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

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

#valueObject

returns: a String



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

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



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

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

#versionObject

returns: a String



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

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



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

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