Class: OpenEHR::Parser::CADL::CDvQuantityItems

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/open_ehr/parser/cadl_node.rb

Instance Method Summary collapse

Instance Method Details

#value(node) ⇒ Object



19
20
21
22
23
24
25
26
27
28
# File 'lib/open_ehr/parser/cadl_node.rb', line 19

def value(node)
  property = prop.value unless prop.empty?
  list = ql.value(node) unless ql.empty?
  av = aqv.value unless aqv.empty?
  OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvQuantity.new(
    :path => node.path, :rm_type_name => 'DvQuantity',
    :occurrences => OpenEHR::AssumedLibraryTypes::Interval.new(
      :upper => 1, :lower => 1),
    :property => property, :list => list, :assumed_value => av)
end