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

Inherits:
Locatable
  • Object
show all
Defined in:
lib/open_ehr/rm/ehr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = { }) ⇒ EHRStatus

Returns a new instance of EHRStatus.



126
127
128
129
130
131
132
# 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

Instance Attribute Details

#is_modifiableObject

Returns the value of attribute is_modifiable.



124
125
126
# File 'lib/open_ehr/rm/ehr.rb', line 124

def is_modifiable
  @is_modifiable
end

#is_queryableObject

Returns the value of attribute is_queryable.



124
125
126
# File 'lib/open_ehr/rm/ehr.rb', line 124

def is_queryable
  @is_queryable
end

#other_detailsObject

Returns the value of attribute other_details.



124
125
126
# File 'lib/open_ehr/rm/ehr.rb', line 124

def other_details
  @other_details
end

#subjectObject

Returns the value of attribute subject.



123
124
125
# File 'lib/open_ehr/rm/ehr.rb', line 123

def subject
  @subject
end

Instance Method Details

#is_modifiable?Boolean

Returns:

  • (Boolean)


143
144
145
# File 'lib/open_ehr/rm/ehr.rb', line 143

def is_modifiable?
  return @is_modifiable
end

#is_queryable?Boolean

Returns:

  • (Boolean)


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

def is_queryable?
  return @is_queryable
end

#parent=(parent) ⇒ Object



147
148
149
150
151
152
# 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