Class: OpenEHR::RM::Common::ChangeControl::ImportedVersion

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 = { }) ⇒ ImportedVersion

Returns a new instance of ImportedVersion.



116
117
118
119
120
121
122
123
124
125
# File 'lib/open_ehr/rm/common/change_control.rb', line 116

def initialize(args = { })
  self.item = args[:item]
  super(:uid => @item.uid,
        :preceding_version_uid => @item.preceding_version_uid,
        :data => @item.data, :commit_audit=> args[:commit_audit],
        :commit_audit => args[:commit_audit],
        :contribution => args[:contribution],
        :lifecycle_state => @item.lifecycle_state,
        :signature => args[:signature])                  
end

Instance Attribute Details

#itemObject

Returns the value of attribute item.



114
115
116
# File 'lib/open_ehr/rm/common/change_control.rb', line 114

def item
  @item
end