Class: OpenEHR::AM::Archetype::ConstraintModel::ArchetypeSlot

Inherits:
CReferenceObject show all
Defined in:
lib/openehr/am/archetype/constraint_model.rb

Instance Attribute Summary collapse

Attributes inherited from CObject

#node_id, #occurrences, #rm_type_name

Attributes inherited from ArchetypeConstraint

#parent, #path

Instance Method Summary collapse

Methods inherited from CObject

#node_conforms_to?, #path, #to_rm

Methods inherited from ArchetypeConstraint

#congruent?, #has_path?, #node_conforms_to?

Constructor Details

#initialize(args = { }) ⇒ ArchetypeSlot

Returns a new instance of ArchetypeSlot.



531
532
533
534
535
# File 'lib/openehr/am/archetype/constraint_model.rb', line 531

def initialize(args = { })
  super
  self.includes = args[:includes]
  self.excludes = args[:excludes]
end

Instance Attribute Details

#excludesObject

Returns the value of attribute excludes.



529
530
531
# File 'lib/openehr/am/archetype/constraint_model.rb', line 529

def excludes
  @excludes
end

#includesObject

Returns the value of attribute includes.



529
530
531
# File 'lib/openehr/am/archetype/constraint_model.rb', line 529

def includes
  @includes
end

Instance Method Details

#any_allowed?Boolean

Returns:

  • (Boolean)


551
552
553
# File 'lib/openehr/am/archetype/constraint_model.rb', line 551

def any_allowed?
  return includes.nil? && excludes.nil?
end