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

Inherits:
ContentItem
  • Object
show all
Defined in:
lib/open_ehr/rm/composition/content/entry.rb

Direct Known Subclasses

AdminEntry, CareEntry

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = { }) ⇒ Entry

Returns a new instance of Entry.



15
16
17
18
19
20
21
22
23
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 15

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.



13
14
15
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 13

def encoding
  @encoding
end

#languageObject

Returns the value of attribute language.



13
14
15
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 13

def language
  @language
end

#other_participationsObject

Returns the value of attribute other_participations.



14
15
16
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 14

def other_participations
  @other_participations
end

#providerObject

Returns the value of attribute provider.



14
15
16
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 14

def provider
  @provider
end

#subjectObject

Returns the value of attribute subject.



13
14
15
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 13

def subject
  @subject
end

#workflow_idObject

Returns the value of attribute workflow_id.



14
15
16
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 14

def workflow_id
  @workflow_id
end

Instance Method Details

#subject_is_self?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/open_ehr/rm/composition/content/entry.rb', line 40

def subject_is_self?
  return @subject.instance_of? PartySelf
end