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/open_ehr/rm/common/change_control.rb, line 136
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/open_ehr/rm/common/change_control.rb, line 142
def attestations=(attestations)
  if attestations.nil? || attestations.empty?
    raise ArgumentError, 'attestations is mandatory'
  end
  @attestations = attestations
end
is_merged?() click to toggle source
# File lib/open_ehr/rm/common/change_control.rb, line 156
def is_merged?
  return !other_input_version_uids.nil?
end
other_input_version_uids=(other_input_version_uids) click to toggle source
# File lib/open_ehr/rm/common/change_control.rb, line 149
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