Class: OpenEHR::RM::DataStructures::History::History
- Inherits:
-
DataStructure
- Object
- Common::Archetyped::Pathable
- Common::Archetyped::Locatable
- DataStructure
- OpenEHR::RM::DataStructures::History::History
- 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
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#events ⇒ Object
Returns the value of attribute events.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#period ⇒ Object
Returns the value of attribute period.
-
#summary ⇒ Object
Returns the value of attribute summary.
Attributes inherited from Common::Archetyped::Locatable
#archetype_details, #archetype_node_id, #feeder_audit, #links, #name, #uid
Attributes inherited from Common::Archetyped::Pathable
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ History
constructor
A new instance of History.
- #is_periodic? ⇒ Boolean
Methods inherited from DataStructure
Methods inherited from Common::Archetyped::Locatable
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.
22 23 24 25 26 27 28 29 |
# File 'lib/openehr/rm/data_structures/history.rb', line 22 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
#duration ⇒ Object
Returns the value of attribute duration.
20 21 22 |
# File 'lib/openehr/rm/data_structures/history.rb', line 20 def duration @duration end |
#events ⇒ Object
Returns the value of attribute events.
19 20 21 |
# File 'lib/openehr/rm/data_structures/history.rb', line 19 def events @events end |
#origin ⇒ Object
Returns the value of attribute origin.
19 20 21 |
# File 'lib/openehr/rm/data_structures/history.rb', line 19 def origin @origin end |
#period ⇒ Object
Returns the value of attribute period.
20 21 22 |
# File 'lib/openehr/rm/data_structures/history.rb', line 20 def period @period end |
#summary ⇒ Object
Returns the value of attribute summary.
20 21 22 |
# File 'lib/openehr/rm/data_structures/history.rb', line 20 def summary @summary end |
Instance Method Details
#is_periodic? ⇒ Boolean
43 44 45 |
# File 'lib/openehr/rm/data_structures/history.rb', line 43 def is_periodic? return !@period.nil? end |