[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
|
---|
[24] | 9 | CURRENT_ADL_VERSION = "1.4"
|
---|
[4] | 10 | end
|
---|
[21] | 11 |
|
---|
[24] | 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 |
|
---|
[24] | 16 | attr_reader :id, :parent_id,:concept, :definition, :ontology
|
---|
| 17 | attr_accessor :adl_version,:description,:original_language
|
---|
[4] | 18 | attr_accessor :revision_history, :translation
|
---|
| 19 |
|
---|
[21] | 20 | def initialize(args = {})
|
---|
| 21 | @adl_version = args[:adl_version] if args[:adl_version]
|
---|
| 22 | @id = args[:id] ? args[:id] : nil
|
---|
| 23 | @parent_id = args[:parent_id] if args[:parent_id]
|
---|
| 24 | @concept = args[:concept] if args[:concept]
|
---|
[24] | 25 | # @original_language = args[:original_language] ? args[:original_language] : nil
|
---|
| 26 | # @translation = args[:translation] ? args[:translation] : nil
|
---|
| 27 | # @description = args[:description] if args[:description]
|
---|
| 28 | # @revision_history = args[:revision_history] if args[:revision_history]
|
---|
[21] | 29 | @is_controled = args[:is_controled] if args[:is_controled]
|
---|
| 30 | @definition = args[:definition] if args[:definition]
|
---|
| 31 | @ontology = args[:ontology] if args[:ontology]
|
---|
[4] | 32 | # loadMaps(definition)
|
---|
[24] | 33 | super
|
---|
[4] | 34 | end
|
---|
| 35 |
|
---|
[24] | 36 | def self.create(args ={}, &block)
|
---|
| 37 | archetype = new(args)
|
---|
| 38 | if block_given?
|
---|
| 39 | yield archetype
|
---|
| 40 | end
|
---|
| 41 | return archetype
|
---|
| 42 | end
|
---|
| 43 |
|
---|
[4] | 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
|
---|
[23] | 79 | end # end of ARCHETYPE
|
---|
[4] | 80 | # original file:
|
---|
| 81 | # ref_imple_eiffel/components/adl_parser/src/interface/adl_definition.e
|
---|
[23] | 82 |
|
---|
| 83 | class VALIDITY_KIND
|
---|
| 84 | end
|
---|
| 85 | end
|
---|
| 86 |
|
---|
| 87 |
|
---|
[4] | 88 | end # end of AM
|
---|
| 89 | end # end of OpenEHR
|
---|