Class: OpenEHR::RM::Common::ChangeControl::OriginalVersion

Inherits:
Version
  • Object
show all
Defined in:
lib/open_ehr/rm/common/change_control.rb

Instance Attribute Summary collapse

Attributes inherited from Version

#commit_audit, #contribution, #data, #lifecycle_state, #preceding_version_uid, #signature, #uid

Instance Method Summary collapse

Methods inherited from Version

#canonical_form, #is_branch?, #lifcycle_state=, #owner_id

Constructor Details

#initialize(args = { }) ⇒ OriginalVersion

Returns a new instance of OriginalVersion.



136
137
138
139
140
# 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

Instance Attribute Details

#attestationsObject

Returns the value of attribute attestations.



134
135
136
# File 'lib/open_ehr/rm/common/change_control.rb', line 134

def attestations
  @attestations
end

#other_input_version_uidsObject

Returns the value of attribute other_input_version_uids.



134
135
136
# File 'lib/open_ehr/rm/common/change_control.rb', line 134

def other_input_version_uids
  @other_input_version_uids
end

Instance Method Details

#is_merged?Boolean

Returns:

  • (Boolean)


156
157
158
# File 'lib/open_ehr/rm/common/change_control.rb', line 156

def is_merged?
  return !other_input_version_uids.nil?
end