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

Inherits:
Locatable
  • Object
show all
Defined in:
lib/open_ehr/rm/composition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject

Returns the value of attribute category.



10
11
12
# File 'lib/open_ehr/rm/composition.rb', line 10

def category
  @category
end

#composerObject

Returns the value of attribute composer.



10
11
12
# File 'lib/open_ehr/rm/composition.rb', line 10

def composer
  @composer
end

#contentObject

Returns the value of attribute content.



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

def content
  @content
end

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

#languageObject

Returns the value of attribute language.



10
11
12
# File 'lib/open_ehr/rm/composition.rb', line 10

def language
  @language
end

#territoryObject

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

Returns:

  • (Boolean)


51
52
53
# File 'lib/open_ehr/rm/composition.rb', line 51

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