1 | require 'rm/support/terminology.rb'
|
---|
2 |
|
---|
3 | module OpenEHR
|
---|
4 | module AM
|
---|
5 | module Archetype
|
---|
6 | module ADL_Definition
|
---|
7 | # include OpenEHR::RM::Support::Terminology::OpenEHR_Code_Set_Identifier
|
---|
8 | include OpenEHR::RM::Support::Terminology
|
---|
9 | CURRENT_ADL_VERSION = "2.0"
|
---|
10 | end
|
---|
11 | class Archetype < OpenEHR::RM::Common::Resource::Authored_Resource
|
---|
12 | include ADL_Definition
|
---|
13 | attr_accessor :archetype_id, :concept_code, :is_controlled, :original_language, :parent_archtype_id, :uid
|
---|
14 |
|
---|
15 | attr_reader :adl_version, :id, :parent_id
|
---|
16 | attr_reader :concept, :definition, :ontology
|
---|
17 | attr_accessor :description,:original_language
|
---|
18 | attr_accessor :revision_history, :translation
|
---|
19 |
|
---|
20 | def initialize(parent_id, concept,
|
---|
21 | description, revision_history, is_controled,
|
---|
22 | definition, ontology, adl_version,
|
---|
23 | id = nil , original_language = nil, translation = nil)
|
---|
24 | # raise Exception.new("illegal argument error, id == nil") unless id
|
---|
25 | # raise Exception.new("illegal argument error, originalLanguage == nil") unless origina_language
|
---|
26 |
|
---|
27 | # raise Exception.new("illegal argument error, translation == nil") unless translation
|
---|
28 | @adl_version = adl_version
|
---|
29 | @id = id
|
---|
30 | @parent_id = parent_id
|
---|
31 | @concept = concept
|
---|
32 | @original_language = original_language
|
---|
33 | @translation = translation
|
---|
34 | @description = description
|
---|
35 | @revision_history = revision_history
|
---|
36 | @is_controled = is_controled
|
---|
37 | @definition = definition
|
---|
38 | @ontology = ontology
|
---|
39 | # loadMaps(definition)
|
---|
40 | end
|
---|
41 |
|
---|
42 | def concept_name(a_lang)
|
---|
43 | end
|
---|
44 |
|
---|
45 | def constraint_references_valid?
|
---|
46 | end
|
---|
47 |
|
---|
48 | def internal_references_valid?
|
---|
49 | end
|
---|
50 |
|
---|
51 | def is_specialised?
|
---|
52 | end
|
---|
53 |
|
---|
54 | def is_valid?
|
---|
55 | end
|
---|
56 |
|
---|
57 | def logical_paths(a_lang)
|
---|
58 | end
|
---|
59 |
|
---|
60 | def node_ids_vaild?
|
---|
61 | end
|
---|
62 |
|
---|
63 | def physical_paths
|
---|
64 | end
|
---|
65 |
|
---|
66 | def previous_version
|
---|
67 | end
|
---|
68 |
|
---|
69 | def short_concept_name
|
---|
70 | end
|
---|
71 |
|
---|
72 | def specialisation_depth
|
---|
73 | end
|
---|
74 |
|
---|
75 | def version
|
---|
76 | end
|
---|
77 | end
|
---|
78 | # original file:
|
---|
79 | # ref_imple_eiffel/components/adl_parser/src/interface/adl_definition.e
|
---|
80 | end # end of Archetype
|
---|
81 | end # end of AM
|
---|
82 | end # end of OpenEHR
|
---|