Class: OpenEHR::AM::OpenEHRProfile::DataTypes::Text::CCodeReference

Inherits:
CCodePhrase show all
Defined in:
lib/openehr/am/openehr_profile/data_types/text.rb

Overview

C_CODE_REFERENCE is defined by Template.xsd (Template OM) as a C_CODE_PHRASE extension carrying a referenceSetUri. nil is accepted for tolerant parsing of real artifacts. valid_value? is inherited: without a terminology service, this class cannot expand the URI's reference set and must retain CCodePhrase's permissive behavior.

Instance Attribute Summary collapse

Attributes inherited from CCodePhrase

#code_list, #terminology_id

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 CCodePhrase

#any_allowed?, #valid_value?

Methods inherited from Archetype::ConstraintModel::CDomainType

#standard_equivalent

Methods inherited from Archetype::ConstraintModel::CDefinedObject

#any_allowed?, #default_value, #has_assumed_value?, #valid_value?

Methods inherited from Archetype::ConstraintModel::CObject

#node_conforms_to?, #path, #to_rm

Methods inherited from Archetype::ConstraintModel::ArchetypeConstraint

#congruent?, #has_path?, #node_conforms_to?

Constructor Details

#initialize(args = { }) ⇒ CCodeReference

Returns a new instance of CCodeReference.



54
55
56
57
# File 'lib/openehr/am/openehr_profile/data_types/text.rb', line 54

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

Instance Attribute Details

#reference_set_uri ⇒ Object

Returns the value of attribute reference_set_uri.



52
53
54
# File 'lib/openehr/am/openehr_profile/data_types/text.rb', line 52

def reference_set_uri
  @reference_set_uri
end