Class: OpenEHR::RM::Demographic::PartyRelationship
- Inherits:
-
Common::Archetyped::Locatable
- Object
- Common::Archetyped::Pathable
- Common::Archetyped::Locatable
- OpenEHR::RM::Demographic::PartyRelationship
- 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
-
#details ⇒ Object
Returns the value of attribute details.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
-
#time_validity ⇒ Object
Returns the value of attribute time_validity.
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 = { }) ⇒ PartyRelationship
constructor
A new instance of PartyRelationship.
- #uid=(uid) ⇒ Object
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 = { }) ⇒ PartyRelationship
Returns a new instance of PartyRelationship.
233 234 235 236 237 238 239 240 |
# File 'lib/openehr/rm/demographic.rb', line 233 def initialize(args = { }) super(args) self.uid = args[:uid] self.details = args[:details] self.time_validity = args[:time_validity] self.source = args[:source] self.target = args[:target] end |
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details.
229 230 231 |
# File 'lib/openehr/rm/demographic.rb', line 229 def details @details end |
#source ⇒ Object
Returns the value of attribute source.
230 231 232 |
# File 'lib/openehr/rm/demographic.rb', line 230 def source @source end |
#target ⇒ Object
Returns the value of attribute target.
230 231 232 |
# File 'lib/openehr/rm/demographic.rb', line 230 def target @target end |
#time_validity ⇒ Object
Returns the value of attribute time_validity.
229 230 231 |
# File 'lib/openehr/rm/demographic.rb', line 229 def time_validity @time_validity end |
Instance Method Details
#uid=(uid) ⇒ Object
242 243 244 245 246 247 |
# File 'lib/openehr/rm/demographic.rb', line 242 def uid=(uid) if uid.nil? raise ArgumentError, 'uid is mandatory' end @uid = uid end |