class OpenEHR::RM::Common::ChangeControl::OriginalVersion

Attributes

attestations[R]
other_input_version_uids[R]

Public Class Methods

new(args = { }) click to toggle source
# File lib/openehr/rm/common/change_control.rb, line 137
def initialize(args = { })
  super(args)
  self.attestations = args[:attestations]
  self.other_input_version_uids = args[:other_input_version_uids]
end

Public Instance Methods

attestations=(attestations) click to toggle source
# File lib/openehr/rm/common/change_control.rb, line 143
def attestations=(attestations)
  if !attestations.nil? && attestations.empty?
    raise ArgumentError, 'invalid attestations'
  end
  @attestations = attestations
end
is_merged?() click to toggle source
# File lib/openehr/rm/common/change_control.rb, line 157
def is_merged?
  return !other_input_version_uids.nil?
end
other_input_version_uids=(other_input_version_uids) click to toggle source
# File lib/openehr/rm/common/change_control.rb, line 150
def other_input_version_uids=(other_input_version_uids)
  if !other_input_version_uids.nil? && other_input_version_uids.empty?
    raise ArgumentError, 'invaild other_input_version_uids'
  end
  @other_input_version_uids = other_input_version_uids
end