Class: OpenEHR::RM::Composition::Content::Entry::Entry

Inherits:
ContentItem show all
Defined in:
lib/openehr/rm/composition/content/entry.rb

Direct Known Subclasses

AdminEntry, CareEntry

Constant Summary

Constants included from OpenEHR::RM::Common::Archetyped::LocaterConstants

OpenEHR::RM::Common::Archetyped::LocaterConstants::CONTENT_PATH_SEPARATOR, OpenEHR::RM::Common::Archetyped::LocaterConstants::CURRENT_TRANSACTION_ID, OpenEHR::RM::Common::Archetyped::LocaterConstants::FRAGMENT_SEPARATOR, OpenEHR::RM::Common::Archetyped::LocaterConstants::MULTIPART_ID_DELIMITER, OpenEHR::RM::Common::Archetyped::LocaterConstants::ORGANIZER_PATH_SEPARATOR

Instance Attribute Summary collapse

Attributes inherited from OpenEHR::RM::Common::Archetyped::Locatable

#archetype_details, #archetype_node_id, #feeder_audit, #links, #name, #uid

Attributes inherited from OpenEHR::RM::Common::Archetyped::Pathable

#parent

Instance Method Summary collapse

Methods inherited from OpenEHR::RM::Common::Archetyped::Locatable

#concept, #is_archetype_root?

Methods inherited from OpenEHR::RM::Common::Archetyped::Pathable

#item_at_path, #items_at_path, #path_exists?, #path_of_item, #path_unique?

Constructor Details

#initialize(args = { }) ⇒ Entry

Returns a new instance of Entry.



19
20
21
22
23
24
25
26
27
# File 'lib/openehr/rm/composition/content/entry.rb', line 19

def initialize(args = { })
  super(args)
  self.language = args[:language]
  self.encoding = args[:encoding]
  self.subject = args[:subject]
  self.provider = args[:provider]
  self.other_participations = args[:other_participations]
  self.workflow_id = args[:workflow_id]
end

Instance Attribute Details

#encodingObject

Returns the value of attribute encoding.



16
17
18
# File 'lib/openehr/rm/composition/content/entry.rb', line 16

def encoding
  @encoding
end

#languageObject

Returns the value of attribute language.



16
17
18
# File 'lib/openehr/rm/composition/content/entry.rb', line 16

def language
  @language
end

#other_participationsObject

Returns the value of attribute other_participations.



17
18
19
# File 'lib/openehr/rm/composition/content/entry.rb', line 17

def other_participations
  @other_participations
end

#providerObject

Returns the value of attribute provider.



17
18
19
# File 'lib/openehr/rm/composition/content/entry.rb', line 17

def provider
  @provider
end

#subjectObject

Returns the value of attribute subject.



16
17
18
# File 'lib/openehr/rm/composition/content/entry.rb', line 16

def subject
  @subject
end

#workflow_idObject

Returns the value of attribute workflow_id.



17
18
19
# File 'lib/openehr/rm/composition/content/entry.rb', line 17

def workflow_id
  @workflow_id
end

Instance Method Details

#subject_is_self?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/openehr/rm/composition/content/entry.rb', line 50

def subject_is_self?
  return @subject.instance_of? PartySelf
end