Class: OpenEHR::RM::Demographic::PartyRelationship

Inherits:
Locatable
  • Object
show all
Defined in:
lib/open_ehr/rm/demographic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = { }) ⇒ PartyRelationship

Returns a new instance of PartyRelationship.



233
234
235
236
237
238
239
240
# File 'lib/open_ehr/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

#detailsObject

Returns the value of attribute details.



229
230
231
# File 'lib/open_ehr/rm/demographic.rb', line 229

def details
  @details
end

#sourceObject

Returns the value of attribute source.



230
231
232
# File 'lib/open_ehr/rm/demographic.rb', line 230

def source
  @source
end

#targetObject

Returns the value of attribute target.



230
231
232
# File 'lib/open_ehr/rm/demographic.rb', line 230

def target
  @target
end

#time_validityObject

Returns the value of attribute time_validity.



229
230
231
# File 'lib/open_ehr/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/open_ehr/rm/demographic.rb', line 242

def uid=(uid)
  if uid.nil?
    raise ArgumentError, 'uid is mandatory'
  end
  @uid = uid
end