Class: OpenEHR::RM::DataStructures::History::History

Inherits:
DataStructure show all
Defined in:
lib/openehr/rm/data_structures/history.rb

Constant Summary

Constants included from Common::Archetyped::LocaterConstants

Common::Archetyped::LocaterConstants::CONTENT_PATH_SEPARATOR, Common::Archetyped::LocaterConstants::CURRENT_TRANSACTION_ID, Common::Archetyped::LocaterConstants::FRAGMENT_SEPARATOR, Common::Archetyped::LocaterConstants::MULTIPART_ID_DELIMITER, Common::Archetyped::LocaterConstants::ORGANIZER_PATH_SEPARATOR

Instance Attribute Summary collapse

Attributes inherited from Common::Archetyped::Locatable

#archetype_details, #archetype_node_id, #feeder_audit, #links, #name, #uid

Attributes inherited from Common::Archetyped::Pathable

#parent

Instance Method Summary collapse

Methods inherited from DataStructure

#as_hierarchy

Methods inherited from Common::Archetyped::Locatable

#concept, #is_archetype_root?

Methods inherited from Common::Archetyped::Pathable

#item_at_path, #items_at_path, #path_exists?, #path_of_item, #path_unique?

Constructor Details

#initialize(args = { }) ⇒ History

Returns a new instance of History.



20
21
22
23
24
25
26
27
# File 'lib/openehr/rm/data_structures/history.rb', line 20

def initialize(args = { })
  super(args)
  self.origin = args[:origin]
  self.duration = args[:duration]
  self.period = args[:period]
  self.events = args[:events]
  self.summary = args[:summary]
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



18
19
20
# File 'lib/openehr/rm/data_structures/history.rb', line 18

def duration
  @duration
end

#eventsObject

Returns the value of attribute events.



17
18
19
# File 'lib/openehr/rm/data_structures/history.rb', line 17

def events
  @events
end

#originObject

Returns the value of attribute origin.



17
18
19
# File 'lib/openehr/rm/data_structures/history.rb', line 17

def origin
  @origin
end

#periodObject

Returns the value of attribute period.



18
19
20
# File 'lib/openehr/rm/data_structures/history.rb', line 18

def period
  @period
end

#summaryObject

Returns the value of attribute summary.



18
19
20
# File 'lib/openehr/rm/data_structures/history.rb', line 18

def summary
  @summary
end

Instance Method Details

#is_periodic?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/openehr/rm/data_structures/history.rb', line 41

def is_periodic?
  return !@period.nil?
end