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, #path_exists?, #path_of_item, #path_unique?

Constructor Details

#initialize(args = { }) ⇒ EHRStatus

Returns a new instance of EHRStatus.



124
125
126
127
128
129
130
# File 'lib/openehr/rm/ehr.rb', line 124

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.



122
123
124
# File 'lib/openehr/rm/ehr.rb', line 122

def is_modifiable
  @is_modifiable
end

#is_queryableObject

Returns the value of attribute is_queryable.



122
123
124
# File 'lib/openehr/rm/ehr.rb', line 122

def is_queryable
  @is_queryable
end

#other_detailsObject

Returns the value of attribute other_details.



122
123
124
# File 'lib/openehr/rm/ehr.rb', line 122

def other_details
  @other_details
end

#subjectObject

Returns the value of attribute subject.



121
122
123
# File 'lib/openehr/rm/ehr.rb', line 121

def subject
  @subject
end

Instance Method Details

#is_modifiable?Boolean

Returns:

  • (Boolean)


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

def is_modifiable?
  return @is_modifiable
end

#is_queryable?Boolean

Returns:

  • (Boolean)


137
138
139
# File 'lib/openehr/rm/ehr.rb', line 137

def is_queryable?
  return @is_queryable
end

#parent=(parent) ⇒ Object



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

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