Class: SimpleXml::Coded
- Inherits:
-
Object
- Object
- SimpleXml::Coded
- Includes:
- Utilities
- Defined in:
- lib/model/types.rb
Overview
Represents a HQMF CD value which has a code and codeSystem
Constant Summary
Constants included from Utilities
Utilities::MEASURE_ATTRIBUTES_MAP
Instance Attribute Summary collapse
-
#code_list_id ⇒ Object
readonly
Returns the value of attribute code_list_id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(code_list_id, title) ⇒ Coded
constructor
A new instance of Coded.
- #to_model ⇒ Object
Methods included from Utilities
#attr_val, attr_val, build_value, #children_of, #comments_on, #create_age_timing, #create_birthdate_criteria
Constructor Details
#initialize(code_list_id, title) ⇒ Coded
Returns a new instance of Coded.
121 122 123 124 |
# File 'lib/model/types.rb', line 121 def initialize(code_list_id, title) @code_list_id = code_list_id @title = title end |
Instance Attribute Details
#code_list_id ⇒ Object (readonly)
Returns the value of attribute code_list_id.
119 120 121 |
# File 'lib/model/types.rb', line 119 def code_list_id @code_list_id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
119 120 121 |
# File 'lib/model/types.rb', line 119 def title @title end |
Instance Method Details
#to_model ⇒ Object
126 127 128 |
# File 'lib/model/types.rb', line 126 def to_model HQMF::Coded.for_code_list(code_list_id, title) end |