class OpenEHR::RM::EHR::EHRStatus

Attributes

is_modifiable[RW]
is_queryable[RW]
other_details[RW]
subject[R]

Public Class Methods

new(args = { }) click to toggle source
Calls superclass method
# File lib/open_ehr/rm/ehr.rb, line 126
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

Public Instance Methods

is_modifiable?() click to toggle source
# File lib/open_ehr/rm/ehr.rb, line 143
def is_modifiable?
  return @is_modifiable
end
is_queryable?() click to toggle source
# File lib/open_ehr/rm/ehr.rb, line 139
def is_queryable?
  return @is_queryable
end
parent=(parent) click to toggle source
# File lib/open_ehr/rm/ehr.rb, line 147
def parent=(parent)
  unless parent.nil?
    raise ArgumentError, 'parent should be nil'
  end
  @parent = parent
end
subject=(subject) click to toggle source
# File lib/open_ehr/rm/ehr.rb, line 134
def subject=(subject)
  raise ArgumentError, 'subject is mandatory' if subject.nil?
  @subject = subject
end