source: ruby/trunk/lib/adl_parser/test/adl/adl-test-ENTRY.assumed_types.v1.adl@ 319

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

polishing ADL parser to handle http://www.openehr.org/svn/knowledge/archetypes/dev/adl/test/

  • Property svn:executable set to *
File size: 2.9 KB
Line 
1archetype (adl_version=1.4)
2 adl-test-ENTRY.assumed_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 assumed types">
16 keywords = <"ADL", "assumed types", "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", "something else"; "something else"}
25 string_attr2 matches {/this|that|something else/; "this"}
26 string_attr3 matches {/cardio.*/; "cardiology examination"}
27 boolean_attr1 matches {True}
28 boolean_attr2 matches {False}
29 boolean_attr3 matches {True, False; True}
30 integer_attr1 matches {|55|}
31 integer_attr2 matches {10, 20, 30; 10}
32 integer_attr3 matches {|0..100|; 10}
33 integer_attr4 matches {|>10|; 11}
34 integer_attr5 matches {|<10|; 9}
35 integer_attr6 matches {|>=10|; 10}
36 integer_attr7 matches {|<=10|; 5}
37 integer_attr8 matches {|-10..-5|; -8}
38 integer_attr9 matches {|10|}
39 real_attr1 matches {|100.0|}
40 real_attr2 matches {10.0, 20.0, 30.0; 20.0}
41 real_attr3 matches {|0.0..100.0|; 20.4}
42 real_attr4 matches {|>=10.0|; 20.0}
43 real_attr5 matches {|<=10.0|; 9.5}
44 real_attr6 matches {|>=10.0|; 20.3}
45 real_attr7 matches {|<=10.0|; 8.0}
46 real_attr8 matches {|-10.0..-5.0|; -9.8}
47 real_attr9 matches {|10.0|}
48 date_attr1 matches {yyyy-mm-dd; 1995-03-17}
49 date_attr2 matches {yyyy-??-??; 1995-03-17}
50 date_attr3 matches {yyyy-mm-??; 1995-03-17}
51 date_attr4 matches {yyyy-??-XX; 1995-03}
52 date_attr5 matches {|1983-12-25|}
53 date_attr6 matches {|2000-01-01|}
54 time_attr1 matches {hh:mm:ss; 12:01:30}
55 time_attr2 matches {hh:mm:XX; 12:01}
56 time_attr3 matches {hh:??:XX; 12:00}
57 time_attr4 matches {hh:??:??; 12:00}
58 time_attr5 matches {|22:00:05,0|}
59 time_attr6 matches {|00:00:59,0|}
60 time_attr7 matches {|00:00:59,0|}
61 date_time_attr1 matches {yyyy-mm-ddThh:mm:ss; 1995-03-17T12:01:30}
62 date_time_attr2 matches {yyyy-mm-ddThh:mm:??; 1995-03-17T12:01}
63 date_time_attr3 matches {yyyy-mm-ddThh:mm:XX; 1995-03-17T12:01}
64 date_time_attr4 matches {yyyy-mm-ddThh:??:XX; 1995-03-17T12:01}
65 date_time_attr5 matches {yyyy-??-??T??:??:??; 1995-03-17T12:01}
66 date_time_attr6 matches {|1983-12-25T22:00:05,0|}
67 date_time_attr7 matches {|2000-01-01T00:00:59,0|}
68 date_time_attr8 matches {|2000-01-01T00:00:59,0|}
69 duration_attr1 matches {|PT0S|}
70 duration_attr2 matches {|P1D|}
71 duration_attr3 matches {|PT2H5M|}
72 duration_attr4 matches {|PT1H55M|}
73 duration_attr5 matches {|<=PT1H|; PT30M}
74 duration_attr6 matches {|PT1H30M|}
75 }
76
77ontology
78 terminologies_available = <"adl_test", ...>
79 term_definitions = <
80 ["en"] = <
81 items = <
82 ["at0000"] = <
83 description = <"test entry">
84 text = <"test entry">
85 >
86 >
87 >
88 >
Note: See TracBrowser for help on using the repository browser.