Class: OpenEHR::RM::EHR::EHRStatus

Inherits:
Common::Archetyped::Locatable show all
Defined in:
lib/openehr/rm/ehr.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

Attributes inherited from Common::Archetyped::Locatable

#archetype_details, #archetype_node_id, #feeder_audit, #links, #name, #uid

Attributes inherited from Common::Archetyped::Pathable

#parent

Instance Method Summary collapse

Methods inherited from Common::Archetyped::Locatable

#concept, #is_archetype_root?

Methods inherited from Common::Archetyped::Pathable

#item_at_path, #items_at_path, normalize_path, path_attribute, path_attributes, #path_children, #path_exists?, #path_of_item, #path_unique?, select_by_predicate

Constructor Details

#initialize(args = { }) ⇒ EHRStatus

Returns a new instance of EHRStatus.



143
144
145
146
147
148
149
# File 'lib/openehr/rm/ehr.rb', line 143

def initialize(args = { })
  super(args)
  self.subject = args[:subject]
  self.is_queryable = args[:is_queryable]
  self.is_modifiable = args[:is_modifiable]
  self.other_details = args[:other_details]
end

Instance Attribute Details

#is_modifiableObject

Returns the value of attribute is_modifiable.



140
141
142
# File 'lib/openehr/rm/ehr.rb', line 140

def is_modifiable
  @is_modifiable
end

#is_queryableObject

Returns the value of attribute is_queryable.



140
141
142
# File 'lib/openehr/rm/ehr.rb', line 140

def is_queryable
  @is_queryable
end

#other_detailsObject

Returns the value of attribute other_details.



140
141
142
# File 'lib/openehr/rm/ehr.rb', line 140

def other_details
  @other_details
end

#subjectObject

Returns the value of attribute subject.



139
140
141
# File 'lib/openehr/rm/ehr.rb', line 139

def subject
  @subject
end

Instance Method Details

#is_modifiable?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/openehr/rm/ehr.rb', line 160

def is_modifiable?
  return @is_modifiable
end

#is_queryable?Boolean

Returns:

  • (Boolean)


156
157
158
# File 'lib/openehr/rm/ehr.rb', line 156

def is_queryable?
  return @is_queryable
end

#parent=(parent) ⇒ Object



164
165
166
167
168
169
# File 'lib/openehr/rm/ehr.rb', line 164

def parent=(parent)
  unless parent.nil?
    raise ArgumentError, 'parent should be nil'
  end
  @parent = parent
end