Class: OpenEHR::RM::Demographic::Actor
- Defined in:
- lib/open_ehr/rm/demographic.rb
Direct Known Subclasses
Constant Summary collapse
- LEAGAL_IDENTITY =
'legal identity'
Instance Attribute Summary collapse
-
#languages ⇒ Object
Returns the value of attribute languages.
-
#roles ⇒ Object
Returns the value of attribute roles.
Attributes inherited from Party
#contacts, #details, #identities, #relationships, #reverse_relationships, #uid
Instance Method Summary collapse
- #has_legal_identity? ⇒ Boolean
-
#initialize(args = { }) ⇒ Actor
constructor
A new instance of Actor.
Methods inherited from Party
Constructor Details
#initialize(args = { }) ⇒ Actor
Returns a new instance of Actor.
138 139 140 141 142 |
# File 'lib/open_ehr/rm/demographic.rb', line 138 def initialize(args = { }) super(args) self.roles = args[:roles] self.languages = args[:languages] end |
Instance Attribute Details
#languages ⇒ Object
Returns the value of attribute languages.
136 137 138 |
# File 'lib/open_ehr/rm/demographic.rb', line 136 def languages @languages end |
#roles ⇒ Object
Returns the value of attribute roles.
136 137 138 |
# File 'lib/open_ehr/rm/demographic.rb', line 136 def roles @roles end |
Instance Method Details
#has_legal_identity? ⇒ Boolean
151 152 153 154 155 156 157 158 |
# File 'lib/open_ehr/rm/demographic.rb', line 151 def has_legal_identity? @identities.each do |identity| if identity.purpose.value == LEAGAL_IDENTITY return true end end return false end |