Module: OpenEHR::Parser::ADLGrammar::CObject3

Defined in:
lib/openehr/parser/adl_grammar.rb

Instance Method Summary collapse

Instance Method Details

#value(node) ⇒ Object



1561
1562
1563
1564
1565
1566
1567
1568
1569
# File 'lib/openehr/parser/adl_grammar.rb', line 1561

def value(node)
  args = c_ordinal.value
  args[:path] = node.path
  args[:rm_type_name] = 'DV_ORDINAL'
  args[:occurrences] ||= OpenEHR::AssumedLibraryTypes::Interval.new(
    :upper => 1, :lower => 1, :lower_included => true, :upper_included => true)
  OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvOrdinal.new(
   args)
end