Class: OpenEHR::AM::OpenEHRProfile::DataTypes::Text::CCodePhrase

Inherits:
Archetype::ConstraintModel::CDomainType show all
Defined in:
lib/openehr/am/openehr_profile/data_types/text.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 = { }) ⇒ CCodePhrase

Returns a new instance of CCodePhrase.



11
12
13
14
15
16
# File 'lib/openehr/am/openehr_profile/data_types/text.rb', line 11

def initialize(args = { })
  super
  self.terminology_id = args[:terminology_id]
  self.code_list = args[:code_list]
  self.assumed_value = args[:assumed_value]
end

Instance Attribute Details

#code_listObject

Returns the value of attribute code_list.



9
10
11
# File 'lib/openehr/am/openehr_profile/data_types/text.rb', line 9

def code_list
  @code_list
end

#terminology_idObject

Returns the value of attribute terminology_id.



9
10
11
# File 'lib/openehr/am/openehr_profile/data_types/text.rb', line 9

def terminology_id
  @terminology_id
end

Instance Method Details

#any_allowed?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/openehr/am/openehr_profile/data_types/text.rb', line 18

def any_allowed?
  @terminology_id.nil? && @code_list.nil?
end