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

Inherits:
ObjectRef
  • Object
show all
Defined in:
lib/open_ehr/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)


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

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