Last change
on this file since 42 was 23, checked in by Tatsukawa, Akimichi, 16 years ago |
working on adl_parser semantic functions
|
File size:
1.3 KB
|
Line | |
---|
1 | module 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 |
|
---|
10 | def constraint_binding(a_terminology, a_code)
|
---|
11 | end
|
---|
12 |
|
---|
13 | def constraint_definition(a_lang, a_code)
|
---|
14 | end
|
---|
15 |
|
---|
16 | def has_language?(a_lang)
|
---|
17 | end
|
---|
18 |
|
---|
19 | def has_terminology?(a_terminology)
|
---|
20 | end
|
---|
21 |
|
---|
22 | def term_binding(a_terminology, a_code)
|
---|
23 | end
|
---|
24 |
|
---|
25 | def term_definition(a_lang, a_code)
|
---|
26 | end
|
---|
27 | end
|
---|
28 |
|
---|
29 | class ARCHETYPE_TERM
|
---|
30 | attr_accessor :code, :items
|
---|
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
|
---|
44 | end
|
---|
45 |
|
---|
46 | def keys
|
---|
47 | @items.keys
|
---|
48 | end
|
---|
49 | end
|
---|
50 | end # end of Ontology
|
---|
51 | end # end of Archetype
|
---|
52 | end # end of AM
|
---|
53 | end # end of OpenEHR
|
---|
54 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.