Class: OpenEHR::RM::Demographic::Party

Inherits:
Common::Archetyped::Locatable show all
Defined in:
lib/openehr/rm/demographic.rb

Direct Known Subclasses

Actor, Role

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

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, #path_exists?, #path_of_item, #path_unique?

Constructor Details

#initialize(args = { }) ⇒ Party

Returns a new instance of Party.



15
16
17
18
19
20
21
22
23
24
# File 'lib/openehr/rm/demographic.rb', line 15

def initialize(args = { })
  super(args)
  self.uid = args[:uid]
  self.identities = args[:identities]
  self.contacts = args[:contacts]
  self.relationships = args[:relationships]
  self.reverse_relationships =
    args[:reverse_relationships]
  self.details = args[:details]
end

Instance Attribute Details

#contactsObject

Returns the value of attribute contacts.



10
11
12
# File 'lib/openehr/rm/demographic.rb', line 10

def contacts
  @contacts
end

#detailsObject

Returns the value of attribute details.



12
13
14
# File 'lib/openehr/rm/demographic.rb', line 12

def details
  @details
end

#identitiesObject

Returns the value of attribute identities.



10
11
12
# File 'lib/openehr/rm/demographic.rb', line 10

def identities
  @identities
end

#relationshipsObject

Returns the value of attribute relationships.



10
11
12
# File 'lib/openehr/rm/demographic.rb', line 10

def relationships
  @relationships
end

#reverse_relationshipsObject

Returns the value of attribute reverse_relationships.



10
11
12
# File 'lib/openehr/rm/demographic.rb', line 10

def reverse_relationships
  @reverse_relationships
end

#uidObject

Returns the value of attribute uid.



10
11
12
# File 'lib/openehr/rm/demographic.rb', line 10

def uid
  @uid
end

Instance Method Details

#parent=(parent) ⇒ Object



45
46
47
# File 'lib/openehr/rm/demographic.rb', line 45

def parent=(parent)
  @parent = nil
end