Class: OpenEHR::AM::Archetype::Archetype
Constant Summary
OpenEHR::AM::Archetype::ADLDefinition::CURRENT_ADL_VERSION
Instance Attribute Summary collapse
#description, #original_language, #revision_history, #translations
Class Method Summary
collapse
Instance Method Summary
collapse
#current_revision, #is_controlled?, #languages_available
Constructor Details
#initialize(args = {}) ⇒ Archetype
Returns a new instance of Archetype.
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/openehr/am/archetype.rb', line 16
def initialize(args = {})
super(args)
self.adl_version = args[:adl_version]
self.archetype_id = args[:archetype_id]
self.uid = args[:uid]
self.concept = args[:concept]
self.parent_archetype_id = args[:parent_archetype_id]
self.definition = args[:definition]
self.ontology = args[:ontology]
self.invariants = args[:invariants]
end
|
Instance Attribute Details
#adl_version ⇒ Object
Returns the value of attribute adl_version.
14
15
16
|
# File 'lib/openehr/am/archetype.rb', line 14
def adl_version
@adl_version
end
|
#archetype_id ⇒ Object
Returns the value of attribute archetype_id.
13
14
15
|
# File 'lib/openehr/am/archetype.rb', line 13
def archetype_id
@archetype_id
end
|
#concept ⇒ Object
Returns the value of attribute concept.
13
14
15
|
# File 'lib/openehr/am/archetype.rb', line 13
def concept
@concept
end
|
#definition ⇒ Object
Returns the value of attribute definition.
13
14
15
|
# File 'lib/openehr/am/archetype.rb', line 13
def definition
@definition
end
|
#invariants ⇒ Object
Returns the value of attribute invariants.
14
15
16
|
# File 'lib/openehr/am/archetype.rb', line 14
def invariants
@invariants
end
|
#ontology ⇒ Object
Returns the value of attribute ontology.
13
14
15
|
# File 'lib/openehr/am/archetype.rb', line 13
def ontology
@ontology
end
|
#parent_archetype_id ⇒ Object
Returns the value of attribute parent_archetype_id.
14
15
16
|
# File 'lib/openehr/am/archetype.rb', line 14
def parent_archetype_id
@parent_archetype_id
end
|
#uid ⇒ Object
Returns the value of attribute uid.
14
15
16
|
# File 'lib/openehr/am/archetype.rb', line 14
def uid
@uid
end
|
Class Method Details
.create(args = {}, &block) ⇒ Object
95
96
97
98
99
100
101
|
# File 'lib/openehr/am/archetype.rb', line 95
def self.create(args ={}, &block)
archetype = new(args)
if block_given?
yield archetype
end
return archetype
end
|
Instance Method Details
#concept_name(a_lang) ⇒ Object
64
65
66
|
# File 'lib/openehr/am/archetype.rb', line 64
def concept_name(a_lang)
return @ontology.term_definition(:lang => a_lang, :code => @concept).items['text']
end
|
#constraint_references_valid? ⇒ Boolean
68
69
|
# File 'lib/openehr/am/archetype.rb', line 68
def constraint_references_valid?
end
|
#internal_references_valid? ⇒ Boolean
71
72
|
# File 'lib/openehr/am/archetype.rb', line 71
def internal_references_valid?
end
|
#is_specialised? ⇒ Boolean
74
75
|
# File 'lib/openehr/am/archetype.rb', line 74
def is_specialised?
end
|
#is_valid? ⇒ Boolean
77
78
|
# File 'lib/openehr/am/archetype.rb', line 77
def is_valid?
end
|
#logical_paths(a_lang) ⇒ Object
80
81
|
# File 'lib/openehr/am/archetype.rb', line 80
def logical_paths(a_lang)
end
|
#node_ids_vaild? ⇒ Boolean
83
84
|
# File 'lib/openehr/am/archetype.rb', line 83
def node_ids_vaild?
end
|
#physical_paths ⇒ Object
86
87
|
# File 'lib/openehr/am/archetype.rb', line 86
def physical_paths
end
|
#previous_version ⇒ Object
89
90
|
# File 'lib/openehr/am/archetype.rb', line 89
def previous_version
end
|
#short_concept_name ⇒ Object
60
61
62
|
# File 'lib/openehr/am/archetype.rb', line 60
def short_concept_name
return @archetype_id.concept_name
end
|
#specialisation_depth ⇒ Object
92
93
|
# File 'lib/openehr/am/archetype.rb', line 92
def specialisation_depth
end
|
#version ⇒ Object
56
57
58
|
# File 'lib/openehr/am/archetype.rb', line 56
def version
return @archetype_id.version_id
end
|