Last change
on this file since 389 was 326, checked in by Tatsukawa, Akimichi, 15 years ago |
start implementing semantic function in ADL parser
|
File size:
2.1 KB
|
Line | |
---|
1 | module OpenEhr
|
---|
2 | module ADL
|
---|
3 | module Exception
|
---|
4 | class Base < RuntimeError
|
---|
5 | end
|
---|
6 |
|
---|
7 | module Scanner
|
---|
8 | class Base < RuntimeError
|
---|
9 | end
|
---|
10 | end
|
---|
11 |
|
---|
12 | module Parser
|
---|
13 | class Base < RuntimeError
|
---|
14 | end
|
---|
15 |
|
---|
16 | class Error < Base
|
---|
17 | end
|
---|
18 | end
|
---|
19 |
|
---|
20 |
|
---|
21 | #
|
---|
22 | #
|
---|
23 | # c.f. beale07:_archet_defin_languag,p.100
|
---|
24 | module Validation
|
---|
25 | class Base < RuntimeError
|
---|
26 | end
|
---|
27 |
|
---|
28 | class VARID < Base
|
---|
29 | MESSAGE = "The archetype must have an identifier value for the archetype_id section. The identifier must conform to the published openEHR specification for archetype identifiers."
|
---|
30 | end
|
---|
31 |
|
---|
32 | class VARCN < Base
|
---|
33 | MESSAGE = "The archetype must have an archetype term value in concept section. The term must exist in the archetype ontology."
|
---|
34 | end
|
---|
35 |
|
---|
36 | class VARDF < Base
|
---|
37 | MESSAGE = "The archetype must have a definition section, expressed as a cADL syntax."
|
---|
38 | end
|
---|
39 |
|
---|
40 | class VARON < Base
|
---|
41 | MESSAGE = "The archetype must have a ontology section, expressed as a dADL syntax."
|
---|
42 | end
|
---|
43 |
|
---|
44 | class VARDT < Base
|
---|
45 | MESSAGE = "The topmost typename mentioned in the archetype definition section must match the type mentioned in the type-name slot of the first segment of the archetype id."
|
---|
46 | end
|
---|
47 |
|
---|
48 | class VATDF < Base
|
---|
49 | MESSAGE = "Each archetype term used as a node identifier the archetype definition must be defined in the term_definitions part of the ontology."
|
---|
50 | end
|
---|
51 |
|
---|
52 | class VACDF < Base
|
---|
53 | MESSAGE = "Each constraint code used in the archetype definition must be defined in the constraint_definition part of the ontology."
|
---|
54 | end
|
---|
55 |
|
---|
56 | class VDFAI < Base
|
---|
57 | MESSAGE = "Any archetype identifier mentioned in an archetype slot in the definition section must conform to the published openEHR specification for archetype identifiers."
|
---|
58 | end
|
---|
59 |
|
---|
60 | class VDFPT < Base
|
---|
61 | MESSAGE = "Any path mentioned in the definition section must be valid syntactically, and a valid path with respect to the hierarchical structure of the definition section."
|
---|
62 | end
|
---|
63 | end
|
---|
64 |
|
---|
65 | end
|
---|
66 | end
|
---|
67 | end
|
---|
68 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.