Class: OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvOrdinal

Inherits:
Archetype::ConstraintModel::CDomainType show all
Defined in:
lib/openehr/am/openehr_profile/data_types/quantity.rb

Instance Attribute Summary collapse

Attributes inherited from Archetype::ConstraintModel::CDefinedObject

#assumed_value

Attributes inherited from Archetype::ConstraintModel::CObject

#node_id, #occurrences, #rm_type_name

Attributes inherited from Archetype::ConstraintModel::ArchetypeConstraint

#parent, #path

Instance Method Summary collapse

Methods inherited from Archetype::ConstraintModel::CDomainType

#standard_equivalent

Methods inherited from Archetype::ConstraintModel::CDefinedObject

#default_value, #has_assumed_value?, #valid_value?

Methods inherited from Archetype::ConstraintModel::CObject

#path

Methods inherited from Archetype::ConstraintModel::ArchetypeConstraint

#congruent?, #has_path?, #node_conforms_to?

Constructor Details

#initialize(args = { }) ⇒ CDvOrdinal

Returns a new instance of CDvOrdinal.



28
29
30
31
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 28

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

Instance Attribute Details

#listObject

Returns the value of attribute list.



27
28
29
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 27

def list
  @list
end

Instance Method Details

#any_allowed?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 33

def any_allowed?
  @list.nil?
end