[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 |
|
---|
[163] | 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 |
|
---|
[26] | 16 | attr_reader :parent_id,:concept, :definition, :ontology
|
---|
[24] | 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]
|
---|
[26] | 22 | @archetype_id = args[:archetype_id] ? args[:archetype_id] : nil
|
---|
[21] | 23 | @parent_id = args[:parent_id] if args[:parent_id]
|
---|
| 24 | @concept = args[:concept] if args[:concept]
|
---|
| 25 | @is_controled = args[:is_controled] if args[:is_controled]
|
---|
[26] | 26 | @definition = args[:definition] if args[:definition]
|
---|
[21] | 27 | @ontology = args[:ontology] if args[:ontology]
|
---|
[4] | 28 | # loadMaps(definition)
|
---|
[24] | 29 | super
|
---|
[4] | 30 | end
|
---|
| 31 |
|
---|
[24] | 32 | def self.create(args ={}, &block)
|
---|
| 33 | archetype = new(args)
|
---|
| 34 | if block_given?
|
---|
| 35 | yield archetype
|
---|
| 36 | end
|
---|
| 37 | return archetype
|
---|
| 38 | end
|
---|
| 39 |
|
---|
[4] | 40 | def concept_name(a_lang)
|
---|
| 41 | end
|
---|
| 42 |
|
---|
| 43 | def constraint_references_valid?
|
---|
| 44 | end
|
---|
| 45 |
|
---|
| 46 | def internal_references_valid?
|
---|
| 47 | end
|
---|
| 48 |
|
---|
| 49 | def is_specialised?
|
---|
| 50 | end
|
---|
| 51 |
|
---|
| 52 | def is_valid?
|
---|
| 53 | end
|
---|
| 54 |
|
---|
| 55 | def logical_paths(a_lang)
|
---|
| 56 | end
|
---|
| 57 |
|
---|
| 58 | def node_ids_vaild?
|
---|
| 59 | end
|
---|
| 60 |
|
---|
| 61 | def physical_paths
|
---|
| 62 | end
|
---|
| 63 |
|
---|
| 64 | def previous_version
|
---|
| 65 | end
|
---|
| 66 |
|
---|
| 67 | def short_concept_name
|
---|
| 68 | end
|
---|
| 69 |
|
---|
| 70 | def specialisation_depth
|
---|
| 71 | end
|
---|
| 72 |
|
---|
| 73 | def version
|
---|
| 74 | end
|
---|
[23] | 75 | end # end of ARCHETYPE
|
---|
[4] | 76 | # original file:
|
---|
| 77 | # ref_imple_eiffel/components/adl_parser/src/interface/adl_definition.e
|
---|
[23] | 78 |
|
---|
| 79 | class VALIDITY_KIND
|
---|
| 80 | end
|
---|
| 81 | end
|
---|
| 82 |
|
---|
| 83 |
|
---|
[4] | 84 | end # end of AM
|
---|
| 85 | end # end of OpenEHR
|
---|