lib/openehr/parser/adl_grammar.tt in openehr-1.1.1 vs lib/openehr/parser/adl_grammar.tt in openehr-1.1.2
- old
+ new
@@ -141,17 +141,19 @@
params = desc.value
details = { }
params['details'].each do |lang, attrs|
misuse = attrs['misuse']
misuse = nil if misuse.nil? or misuse.empty?
+ use = attrs['use']
+ use = nil if use.nil? or use.empty?
purpose = attrs['purpose'] || '__unknown__' # for backward compat.
item =
OpenEHR::RM::Common::Resource::ResourceDescriptionItem.new(
:language => attrs['language'],
:purpose => purpose,
:keywords => attrs["keywords"],
- :use => attrs["use"],
+ :use => use,
:misuse => misuse,
:copyright => attrs['copyright'],
:original_resource_uri => attrs['original_resource_uri'],
:other_details => attrs['other_details'])
details[lang] = item
@@ -331,10 +333,10 @@
}
/ c_ordinal '' {
def value(node)
args = c_ordinal.value
args[:path] = node.path
- args[:rm_type_name] = 'DvOrdinal'
+ args[:rm_type_name] = 'DV_ORDINAL'
args[:occurrences] ||= OpenEHR::AssumedLibraryTypes::Interval.new(
:upper => 1, :lower => 1)
OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvOrdinal.new(
args)
end