class OpenEHR::RM::Support::Identification::ObjectVersionID
Attributes
creating_system_id[R]
version_tree_id[R]
Public Class Methods
new(args= {})
click to toggle source
Calls superclass method
OpenEHR::RM::Support::Identification::UIDBasedID::new
# File lib/openehr/rm/support/identification.rb, line 243 def initialize(args= {}) super end
Public Instance Methods
creating_system_id=(creating_system_id)
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 272 def creating_system_id=(creating_system_id) if creating_system_id.nil? raise ArgumentError, 'creating_system_id is mandatory' end @creating_system_id = creating_system_id end
is_branch?()
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 286 def is_branch? return @version_tree_id.is_branch? end
objectid()
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 263 def objectid return @oid end
objectid=(oid)
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 267 def objectid=(oid) raise ArgumentError, 'objectid is mandatory' if oid.nil? @oid = oid end
value()
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 257 def value return @oid.value + '::' + @creating_system_id.value + '::' + @version_tree_id.value end
value=(value)
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 247 def value=(value) if /^(\S+)::(\S+)::((\d|\.)+)$/ =~ value self.objectid = UID.new(:value => $1) self.creating_system_id = UID.new(:value => $2) self.version_tree_id = VersionTreeID.new(:value => $3) else raise ArgumentError, 'invalid format' end end
version_tree_id=(version_tree_id)
click to toggle source
# File lib/openehr/rm/support/identification.rb, line 279 def version_tree_id=(version_tree_id) if version_tree_id.nil? raise ArgumentError, 'version_tree_id is mandatory' end @version_tree_id = version_tree_id end