Class: OpenEHR::RM::Composition::Composition

Inherits:
OpenEHR::RM::Common::Archetyped::Locatable show all
Defined in:
lib/openehr/rm/composition.rb

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

Returns a new instance of Composition.



14
15
16
17
18
19
20
21
22
# File 'lib/openehr/rm/composition.rb', line 14

def initialize(args = { })
  super(args)
  self.language = args[:language]
  self.category = args[:category]
  self.territory = args[:territory]
  self.composer = args[:composer]
  self.content = args[:content]
  self.context = args[:context]
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



11
12
13
# File 'lib/openehr/rm/composition.rb', line 11

def category
  @category
end

#composerObject

Returns the value of attribute composer.



11
12
13
# File 'lib/openehr/rm/composition.rb', line 11

def composer
  @composer
end

#contentObject

Returns the value of attribute content.



12
13
14
# File 'lib/openehr/rm/composition.rb', line 12

def content
  @content
end

#contextObject

Returns the value of attribute context.



12
13
14
# File 'lib/openehr/rm/composition.rb', line 12

def context
  @context
end

#languageObject

Returns the value of attribute language.



11
12
13
# File 'lib/openehr/rm/composition.rb', line 11

def language
  @language
end

#territoryObject

Returns the value of attribute territory.



11
12
13
# File 'lib/openehr/rm/composition.rb', line 11

def territory
  @territory
end

Instance Method Details

#is_persistent?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/openehr/rm/composition.rb', line 52

def is_persistent?
  return category.value == 'persistent'
end