class OpenEHR::RM::Common::Archetyped::Locatable
Attributes
archetype_details[RW]
archetype_node_id[R]
feeder_audit[RW]
links[R]
name[R]
uid[RW]
Public Class Methods
new(args = { })
click to toggle source
Calls superclass method
OpenEHR::RM::Common::Archetyped::Pathable::new
# File lib/openehr/rm/common/archetyped.rb, line 49 def initialize(args = { }) super(args) self.archetype_node_id = args[:archetype_node_id] self.name = args[:name] self.links = args[:links] self.uid = args[:uid] self.archetype_details = args[:archetype_details] self.feeder_audit = args[:feeder_audit] end
Public Instance Methods
archetype_node_id=(archetype_node_id)
click to toggle source
# File lib/openehr/rm/common/archetyped.rb, line 59 def archetype_node_id=(archetype_node_id) if archetype_node_id.nil? or archetype_node_id.empty? raise ArgumentError, 'archetype_node_id should not be nil' end @archetype_node_id = archetype_node_id end
concept()
click to toggle source
# File lib/openehr/rm/common/archetyped.rb, line 80 def concept if self.is_archetype_root? return DvText.new(:value => @archetype_details.archetype_id.concept_name) else raise ArgumentError, 'this is not root' end end
is_archetype_root?()
click to toggle source
# File lib/openehr/rm/common/archetyped.rb, line 89 def is_archetype_root? !archetype_details.nil? end
links=(links)
click to toggle source
# File lib/openehr/rm/common/archetyped.rb, line 73 def links=(links) if !links.nil? and links.empty? raise ArgumentError, "links shoud not be empty" end @links = links end
name=(name)
click to toggle source
# File lib/openehr/rm/common/archetyped.rb, line 66 def name=(name) if name.nil? or name.value.empty? raise ArgumentError, 'name should not be empty' end @name = name end