source: ruby/branches/0.5.0/lib/open_ehr/am/archetype/ontology.rb@ 167

Last change on this file since 167 was 167, checked in by KOBAYASHI, Shinji, 15 years ago

adjust for rails

File size: 1.3 KB
RevLine 
[167]1module OpenEhr
[4]2 module AM
3 module Archetype
4 module Ontology
[23]5 class ARCHETYPE_ONTOLOGY
[4]6 attr_accessor :constraint_codes, :specialisation_depth
7 attr_accessor :term_attribute_names, :term_codes
8 attr_accessor :terminologies_available
[23]9
[4]10 def constraint_binding(a_terminology, a_code)
11 end
[23]12
[4]13 def constraint_definition(a_lang, a_code)
14 end
[23]15
[4]16 def has_language?(a_lang)
17 end
[23]18
[4]19 def has_terminology?(a_terminology)
20 end
[23]21
[4]22 def term_binding(a_terminology, a_code)
23 end
[23]24
[4]25 def term_definition(a_lang, a_code)
26 end
27 end
[23]28
29 class ARCHETYPE_TERM
[4]30 attr_accessor :code, :items
[23]31
32 def initialize(args = { })
33
34 @code = if args[:code]
35 args[:code]
36 else
37 raise ArgumentError, "Code is empty"
38 end
39 @items = if args[:items]
40 args[:items]
41 else
42 raise ArgumentError, "Items is empty"
43 end
[4]44 end
[23]45
[4]46 def keys
[23]47 @items.keys
[4]48 end
49 end
50 end # end of Ontology
51 end # end of Archetype
52 end # end of AM
53end # end of OpenEHR
54
Note: See TracBrowser for help on using the repository browser.