Class: OpenEHR::RM::Demographic::Contact

Inherits:
Common::Archetyped::Locatable show all
Defined in:
lib/openehr/rm/demographic.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 Common::Archetyped::Locatable

#concept, #is_archetype_root?

Methods inherited from Common::Archetyped::Pathable

#item_at_path, #items_at_path, normalize_path, path_attribute, path_attributes, #path_children, #path_exists?, #path_of_item, #path_unique?, select_by_predicate

Constructor Details

#initialize(args = { }) ⇒ Contact

Returns a new instance of Contact.



97
98
99
100
101
# File 'lib/openehr/rm/demographic.rb', line 97

def initialize(args = { })
  super(args)
  self.addresses = args[:addresses]
  self.time_validity = args[:time_validity]
end

Instance Attribute Details

#addressesObject

Returns the value of attribute addresses.



95
96
97
# File 'lib/openehr/rm/demographic.rb', line 95

def addresses
  @addresses
end

#time_validityObject

Returns the value of attribute time_validity.



94
95
96
# File 'lib/openehr/rm/demographic.rb', line 94

def time_validity
  @time_validity
end

Instance Method Details

#purposeObject



103
104
105
# File 'lib/openehr/rm/demographic.rb', line 103

def purpose
  return @name
end