Class: OpenEHR::RM::Composition::Composition
- Inherits:
-
OpenEHR::RM::Common::Archetyped::Locatable
- Object
- OpenEHR::RM::Common::Archetyped::Pathable
- OpenEHR::RM::Common::Archetyped::Locatable
- OpenEHR::RM::Composition::Composition
- 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
-
#category ⇒ Object
Returns the value of attribute category.
-
#composer ⇒ Object
Returns the value of attribute composer.
-
#content ⇒ Object
Returns the value of attribute content.
-
#context ⇒ Object
Returns the value of attribute context.
-
#language ⇒ Object
Returns the value of attribute language.
-
#territory ⇒ Object
Returns the value of attribute territory.
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
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ Composition
constructor
A new instance of Composition.
- #is_persistent? ⇒ Boolean
Methods inherited from OpenEHR::RM::Common::Archetyped::Locatable
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
#category ⇒ Object
Returns the value of attribute category.
11 12 13 |
# File 'lib/openehr/rm/composition.rb', line 11 def category @category end |
#composer ⇒ Object
Returns the value of attribute composer.
11 12 13 |
# File 'lib/openehr/rm/composition.rb', line 11 def composer @composer end |
#content ⇒ Object
Returns the value of attribute content.
12 13 14 |
# File 'lib/openehr/rm/composition.rb', line 12 def content @content end |
#context ⇒ Object
Returns the value of attribute context.
12 13 14 |
# File 'lib/openehr/rm/composition.rb', line 12 def context @context end |
#language ⇒ Object
Returns the value of attribute language.
11 12 13 |
# File 'lib/openehr/rm/composition.rb', line 11 def language @language end |
#territory ⇒ Object
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
52 53 54 |
# File 'lib/openehr/rm/composition.rb', line 52 def is_persistent? return category.value == 'persistent' end |