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