source: ruby/trunk/models/am/archetype/ontology.rb@ 4

Last change on this file since 4 was 4, checked in by KOBAYASHI, Shinji, 16 years ago

restructuring repository tree

File size: 1.2 KB
Line 
1module OpenEHR
2 module AM
3 module Archetype
4 module Ontology
5 class Archetype_Ontology
6 attr_accessor :constraint_codes, :specialisation_depth
7 attr_accessor :term_attribute_names, :term_codes
8 attr_accessor :terminologies_available
9 def constraint_binding(a_terminology, a_code)
10 end
11 def constraint_definition(a_lang, a_code)
12 end
13 def has_language?(a_lang)
14 end
15 def has_terminology?(a_terminology)
16 end
17 def term_binding(a_terminology, a_code)
18 end
19 def term_definition(a_lang, a_code)
20 end
21 end
22 class Archetype_Term
23 attr_accessor :code, :items
24 def initialize(code, items)
25 if code == nil
26 raise ArgumentError, "Code is empty"
27 end
28 if items.keys == nil
29 raise ArgumentError, "Items is empty"
30 end
31 @code = code
32 @items = items
33 end
34 def keys
35 items.keys
36 end
37 end
38 end # end of Ontology
39 end # end of Archetype
40 end # end of AM
41end # end of OpenEHR
42
Note: See TracBrowser for help on using the repository browser.