Class: OpenEHR::AM::OpenEHRProfile::DataTypes::Text::CCodePhrase
- Inherits:
-
Archetype::ConstraintModel::CDomainType
- Object
- Archetype::ConstraintModel::ArchetypeConstraint
- Archetype::ConstraintModel::CObject
- Archetype::ConstraintModel::CDefinedObject
- Archetype::ConstraintModel::CDomainType
- OpenEHR::AM::OpenEHRProfile::DataTypes::Text::CCodePhrase
- Defined in:
- lib/openehr/am/openehr_profile/data_types/text.rb
Instance Attribute Summary collapse
-
#code_list ⇒ Object
Returns the value of attribute code_list.
-
#terminology_id ⇒ Object
Returns the value of attribute terminology_id.
Attributes inherited from Archetype::ConstraintModel::CDefinedObject
Attributes inherited from Archetype::ConstraintModel::CObject
#node_id, #occurrences, #rm_type_name
Attributes inherited from Archetype::ConstraintModel::ArchetypeConstraint
Instance Method Summary collapse
- #any_allowed? ⇒ Boolean
-
#initialize(args = { }) ⇒ CCodePhrase
constructor
A new instance of CCodePhrase.
Methods inherited from Archetype::ConstraintModel::CDomainType
Methods inherited from Archetype::ConstraintModel::CDefinedObject
#default_value, #has_assumed_value?, #valid_value?
Methods inherited from Archetype::ConstraintModel::CObject
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_list ⇒ Object
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_id ⇒ Object
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
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 |