Class: OpenEHR::RM::Support::Identification::PartyRef

Inherits:
ObjectRef
  • Object
show all
Defined in:
lib/openehr/rm/support/identification.rb

Instance Attribute Summary

Attributes inherited from ObjectRef

#id, #namespace, #type

Instance Method Summary collapse

Methods inherited from ObjectRef

#initialize

Constructor Details

This class inherits a constructor from OpenEHR::RM::Support::Identification::ObjectRef

Instance Method Details

#type=(type) ⇒ Object

Raises:

  • (ArgumentError)


310
311
312
313
314
# File 'lib/openehr/rm/support/identification.rb', line 310

def type=(type)
  parties = %w[PERSON ORGANISATION GROUP AGENT ROLE PARTY ACTOR]
  raise ArgumentError, 'type invalid' unless parties.include? type
  @type = type
end