Class: OpenehrRails::Rm::DvCodedText
- Defined in:
- lib/openehr_rails/rm/data_values.rb
Instance Method Summary collapse
Methods inherited from DvText
Methods inherited from DataValue
find_sti_class, matching, sti_class_for, sti_name, #value
Instance Method Details
#to_canonical_hash ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/openehr_rails/rm/data_values.rb', line 18 def to_canonical_hash { '_type' => 'DV_CODED_TEXT', 'value' => text_value, 'defining_code' => { '_type' => 'CODE_PHRASE', 'terminology_id' => { 'value' => terminology_id || 'local' }, 'code_string' => code_string } } end |