Class: OpenEHR::RM::Composition::Composition
- Inherits:
-
Locatable
- Object
- Locatable
- OpenEHR::RM::Composition::Composition
- Defined in:
- lib/open_ehr/rm/composition.rb
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.
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ Composition
constructor
A new instance of Composition.
- #is_persistent? ⇒ Boolean
Constructor Details
#initialize(args = { }) ⇒ Composition
Returns a new instance of Composition.
13 14 15 16 17 18 19 20 21 |
# File 'lib/open_ehr/rm/composition.rb', line 13 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.
10 11 12 |
# File 'lib/open_ehr/rm/composition.rb', line 10 def category @category end |
#composer ⇒ Object
Returns the value of attribute composer.
10 11 12 |
# File 'lib/open_ehr/rm/composition.rb', line 10 def composer @composer end |
#content ⇒ Object
Returns the value of attribute content.
11 12 13 |
# File 'lib/open_ehr/rm/composition.rb', line 11 def content @content end |
#context ⇒ Object
Returns the value of attribute context.
11 12 13 |
# File 'lib/open_ehr/rm/composition.rb', line 11 def context @context end |
#language ⇒ Object
Returns the value of attribute language.
10 11 12 |
# File 'lib/open_ehr/rm/composition.rb', line 10 def language @language end |
#territory ⇒ Object
Returns the value of attribute territory.
10 11 12 |
# File 'lib/open_ehr/rm/composition.rb', line 10 def territory @territory end |
Instance Method Details
#is_persistent? ⇒ Boolean
51 52 53 |
# File 'lib/open_ehr/rm/composition.rb', line 51 def is_persistent? return category.value == 'persistent' end |