source: ruby/trunk/lib/adl_parser/test/adl/adl-test-ENTRY.basic_types.v1.adl@ 320

Last change on this file since 320 was 320, checked in by Tatsukawa, Akimichi, 15 years ago

refactoring scanner for regex

File size: 4.9 KB
Line 
1archetype (adl_version=1.4)
2 adl-test-ENTRY.basic_types.v1
3
4concept
5 [at0000] -- test entry
6language
7 original_language = <[ISO_639-1::en]>
8description
9 original_author = <
10 ["name"] = <"Thomas Beale">
11 >
12 details = <
13 ["en"] = <
14 language = <[ISO_639-1::en]>
15 purpose = <"test structure">
16 keywords = <"ADL", "test">
17 copyright = <"copyright (c) 2004 The openEHR Foundation">
18 >
19 >
20 lifecycle_state = <"draft">
21
22definition
23 ENTRY[at0000] matches { -- test entry
24 string_attr1 matches {"something"}
25 string_attr2 matches {/this|that|something else/}
26 string_attr3 matches {/cardio.*/}
27 string_attr4 matches {*}
28 string_attr5 matches {"and", "something", "else"}
29 boolean_attr1 matches {True}
30 boolean_attr2 matches {False}
31 boolean_attr3 matches {True, False}
32 boolean_attr4 matches {*}
33 integer_attr1 matches {|55|}
34 integer_attr2 matches {10, 20, 30}
35 integer_attr3 matches {|0..100|}
36 integer_attr3a matches {|>0..100|}
37 integer_attr3b matches {|0..<100|}
38 integer_attr3c matches {|>0..<100|}
39 integer_attr4 matches {|>10|}
40 integer_attr5 matches {|<10|}
41 integer_attr6 matches {|>=10|}
42 integer_attr7 matches {|<=10|}
43 integer_attr8 matches {|-10..-5|}
44 integer_attr9 matches {|10|}
45 integer_attr10 matches {*}
46 real_attr1 matches {|100.0|}
47 real_attr2 matches {10.0, 20.0, 30.0}
48 real_attr3 matches {|0.0..100.0|}
49 real_attr3a matches {|>0.0..100.0|}
50 real_attr3b matches {|0.0..<100.0|}
51 real_attr3c matches {|>0.0..<100.0|}
52 real_attr4 matches {|>=10.0|}
53 real_attr5 matches {|<=10.0|}
54 real_attr6 matches {|>=10.0|}
55 real_attr7 matches {|<=10.0|}
56 real_attr8 matches {|-10.0..-5.0|}
57 real_attr9 matches {|10.0|}
58 real_attr10 matches {*}
59 date_attr1 matches {yyyy-mm-dd}
60 date_attr2 matches {yyyy-??-??}
61 date_attr3 matches {yyyy-mm-??}
62 date_attr4 matches {yyyy-??-XX}
63 date_attr5 matches {|1983-12-25|}
64 date_attr6 matches {|2000-01-01|}
65 date_attr7 matches {|2000-01-01|}
66 date_attr8 matches {|2000-01-01..2000-02-01|}
67 date_attr8a matches {|>2000-01-01..2000-02-01|}
68 date_attr8b matches {|2000-01-01..<2000-02-01|}
69 date_attr8c matches {|>2000-01-01..<2000-02-01|}
70 time_attr1 matches {hh:mm:ss}
71 time_attr2 matches {hh:mm:??}
72 time_attr3 matches {hh:mm:XX}
73 time_attr4 matches {hh:??:??}
74 time_attr5 matches {hh:??:XX}
75 time_attr6 matches {|22:00:05,0|}
76 time_attr7 matches {|00:00:59,0|}
77 time_attr8 matches {|00:00:59,0|}
78 time_attr9 matches {|01:00:00..02:00:00|}
79 time_attr9a matches {|>01:00:00..02:00:00|}
80 time_attr9b matches {|01:00:00..<02:00:00|}
81 time_attr9c matches {|>01:00:00..<02:00:00|}
82 date_time_attr1 matches {yyyy-mm-ddThh:mm:ss}
83 date_time_attr2 matches {yyyy-mm-ddThh:mm:??}
84 date_time_attr3 matches {yyyy-mm-ddThh:mm:XX}
85 date_time_attr4 matches {yyyy-mm-ddThh:??:??}
86 date_time_attr5 matches {yyyy-mm-ddThh:??:XX}
87 date_time_attr6 matches {yyyy-??-??T??:??:??}
88 date_time_attr7a matches {|1983-12-25T22:00:05,0|}
89 date_time_attr7b matches {|2000-01-01T00:00:59,0|}
90 date_time_attr7c matches {|2000-01-01T00:00:59,0|}
91 date_time_attr9a matches {|2000-01-01T01:00:00..2000-01-01T02:00:00|}
92 date_time_attr9b matches {|>2000-01-01T01:00:00..2000-01-01T02:00:00|}
93 date_time_attr9c matches {|2000-01-01T01:00:00..<2000-01-01T02:00:00|}
94 date_time_attr9d matches {|>2000-01-01T01:00:00..<2000-01-01T02:00:00|}
95 duration_attr1 matches {Pw}
96 duration_attr2 matches {Pmw}
97 duration_attr3 matches {PWD}
98 duration_attr3a matches {PD}
99 duration_attr4 matches {Pym}
100 duration_attr5 matches {PdThms}
101 duration_attr6 matches {PTs}
102 duration_attr7 matches {PThm}
103 duration_attr8 matches {|PT0S|}
104 duration_attr8a matches {|PT0.004S|}
105 duration_attr9 matches {|P1D|}
106 duration_attr10 matches {|P38W..P39W4D|}
107 duration_attr10a matches {|>P38W..P39W4D|}
108 duration_attr10b matches {|P38W..<P39W4D|}
109 duration_attr10c matches {|>P38W..<P39W4D|}
110 duration_attr11 matches {|PT2H5M|}
111 duration_attr12 matches {|PT1H55M|}
112 duration_attr13 matches {|<=PT1H|}
113 duration_attr14 matches {|PT1H30M|}
114 duration_attr101 matches {Pw/|PT0S|}
115 duration_attr102 matches {Pmw/|PT0S|}
116 duration_attr103 matches {PWD/|PT0S|}
117 duration_attr103a matches {PD/|PT0S|}
118 duration_attr104 matches {Pym/|PT0S|}
119 duration_attr105 matches {PdThms/|PT0S|}
120 duration_attr106 matches {PTs/|PT0S|}
121 duration_attr107 matches {PThm/|PT0S|}
122 duration_attr201 matches {Pw/|P38W..P39W4D|}
123 duration_attr202 matches {Pmw/|P38W..P39W4D|}
124 duration_attr203 matches {PWD/|P38W..P39W4D|}
125 duration_attr203a matches {PD/|P38W..P39W4D|}
126 duration_attr204 matches {Pym/|P38W..P39W4D|}
127 duration_attr205 matches {PdThms/|P38W..P39W4D|}
128 duration_attr206 matches {PTs/|P38W..P39W4D|}
129 duration_attr207 matches {PThm/|P38W..P39W4D|}
130 }
131
132ontology
133 terminologies_available = <"adl_test", ...>
134 term_definitions = <
135 ["en"] = <
136 items = <
137 ["at0000"] = <
138 description = <"test entry">
139 text = <"test entry">
140 >
141 >
142 >
143 >
Note: See TracBrowser for help on using the repository browser.