class OpenEHR::AM::Archetype::ConstraintModel::CDefinedObject

Attributes

assumed_value[RW]

Public Class Methods

new(args = { }) click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 157
def initialize(args = { })
  super
  self.assumed_value = args[:assumed_value]
end

Public Instance Methods

any_allowed?() click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 174
def any_allowed?
  raise NotImplementedError, 'subclass should implement this method'
end
default_value() click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 166
def default_value
  raise NotImplementedError, 'subclass should implement this method'
end
has_assumed_value?() click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 162
def has_assumed_value?
  return !@assumed_value.nil?
end
valid_value?(value) click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 170
def valid_value?(value)
  raise NotImplementedError, 'subclass should implement this method'
end