open_ehr 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. data/Gemfile.lock +22 -20
  2. data/README.rdoc +4 -3
  3. data/Rakefile +0 -5
  4. data/VERSION +1 -1
  5. data/lib/open_ehr/parser/adl_grammar.tt +30 -23
  6. data/lib/open_ehr/parser/cadl_grammar.tt +85 -59
  7. data/lib/open_ehr/parser/cadl_node.rb +18 -0
  8. data/lib/open_ehr/parser/dadl_grammar.tt +1 -1
  9. data/lib/open_ehr/parser/shared_token_grammar.tt +4 -4
  10. data/open_ehr.gemspec +104 -55
  11. data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.assumed_types.v1.adl +0 -0
  12. data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.basic_types.v1.adl +0 -0
  13. data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.basic_types_fail.v1.adl +0 -0
  14. data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.most_minimal.v1.adl +0 -0
  15. data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.structure_test1.v1.adl +0 -0
  16. data/spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_basic.draft.adl +56 -0
  17. data/spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_use_node.draft.adl +63 -0
  18. data/spec/lib/open_ehr/parser/adl14/adl-test-car.paths.test.adl +80 -0
  19. data/spec/lib/open_ehr/parser/adl14/adl-test-car.use_node.test.adl +87 -0
  20. data/spec/lib/open_ehr/parser/adl14/adl-test-composition.dv_coded_text.test.adl +29 -0
  21. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_bindings.test.adl +47 -0
  22. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_desc_missing_purpose.test.adl +45 -0
  23. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_description.test.adl +61 -0
  24. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_description2.test.adl +45 -0
  25. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_identification.test.adl +26 -0
  26. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref.test.adl +36 -0
  27. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref2.test.adl +36 -0
  28. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language.test.adl +47 -0
  29. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_no_accreditation.test.adl +38 -0
  30. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_order_of_translation_details.test.adl +40 -0
  31. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_ontology.test.adl +25 -0
  32. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_slot.test.adl +40 -0
  33. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_slot.test2.adl +37 -0
  34. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_uncommonkeys.test.adl +29 -0
  35. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.basic_types.test.adl +272 -0
  36. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_code_phrase.test.adl +77 -0
  37. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_ordinal.test.adl +66 -0
  38. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_empty.test.adl +46 -0
  39. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full.test.adl +64 -0
  40. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full2.test.adl +64 -0
  41. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full3.test.adl +64 -0
  42. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_item_units_only.test.adl +55 -0
  43. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_list.test.adl +58 -0
  44. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_property.test.adl +47 -0
  45. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_reversed.test.adl +59 -0
  46. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.constraint_binding.test.adl +37 -0
  47. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.constraint_ref.test.adl +43 -0
  48. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.datetime.test.adl +183 -0
  49. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.domain_types.test.adl +97 -0
  50. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.durations.test.adl +111 -0
  51. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.empty_other_contributors.test.adl +42 -0
  52. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.missing_language.test.adl +23 -0
  53. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.mixed_node_types.draft.adl +61 -0
  54. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.most_minimal.test.adl +23 -0
  55. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.multi_language.test.adl +52 -0
  56. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.special_string.test.adl +88 -0
  57. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.structure_test1.test.adl +45 -0
  58. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.structure_test2.test.adl +45 -0
  59. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.term_binding.test.adl +37 -0
  60. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.term_binding2.test.adl +32 -0
  61. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.testtranslations.test.adl +83 -0
  62. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_author_language.test.adl +34 -0
  63. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_language_author.test.adl +34 -0
  64. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.unicode_BOM_support.test.adl +41 -0
  65. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.unicode_support.test.adl +41 -0
  66. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ACTION.imaging.v1.adl +0 -0
  67. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ACTION.referral.v1.adl +0 -0
  68. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl +0 -0
  69. data/spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.auscultation.v1.adl +48 -0
  70. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.dimensions-circumference.v1.adl +0 -0
  71. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.dimensions.v1.adl +0 -0
  72. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-abdomen.v1.adl +0 -0
  73. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-chest.v1.adl +0 -0
  74. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-fetus.v1.adl +0 -0
  75. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic-joint.v1.adl +0 -0
  76. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic-lymphnode.v1.adl +0 -0
  77. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic-mass.v1.adl +0 -0
  78. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic.v1.adl +0 -0
  79. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-nervous_system.v1.adl +0 -0
  80. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl +0 -0
  81. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-uterus.v1.adl +0 -0
  82. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-COMPOSITION.discharge.v1draft.adl +0 -0
  83. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-COMPOSITION.encounter.v1draft.adl +0 -0
  84. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-EVALUATION.adverse.v1.adl +0 -0
  85. data/spec/lib/open_ehr/parser/adl14/openEHR-EHR-EVALUATION.columna_vertebral.v1.adl +85 -0
  86. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-INSTRUCTION.medication.v1.adl +0 -0
  87. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-INSTRUCTION.referral.v1.adl +0 -0
  88. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.Laboratory_request.v1.adl +0 -0
  89. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.follow_up.v1draft.adl +0 -0
  90. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.imaging.v1.adl +0 -0
  91. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.medication-formulation.v1.adl +0 -0
  92. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.medication.v1.adl +0 -0
  93. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.referral.v1.adl +0 -0
  94. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-OBSERVATION.apgar.v1.adl +0 -0
  95. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl +0 -0
  96. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-OBSERVATION.body_mass_index.v1.adl +0 -0
  97. data/spec/lib/open_ehr/parser/adl14/openEHR-EHR-OBSERVATION.testassumedvalue.v1.adl +99 -0
  98. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.findings.v1.adl +0 -0
  99. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.reason_for_encounter.v1.adl +0 -0
  100. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.summary.v1.adl +0 -0
  101. data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.vital_signs.v1.adl +0 -0
  102. data/spec/lib/open_ehr/parser/adl_parser_spec.rb +2 -2
  103. data/spec/lib/open_ehr/parser/adl_path_spec.rb +180 -0
  104. metadata +132 -83
  105. data/bin/adl_validator.rb +0 -84
  106. data/lib/open_ehr/parser/scanner/adl_scanner.rb +0 -819
  107. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.auscultation.v1.adl +0 -217
  108. data/spec/lib/open_ehr/parser/adl/openEHR-EHR-cadl_sample.v1.adl +0 -9
  109. data/spec/rcov.opts +0 -1
@@ -0,0 +1,42 @@
1
+ archetype
2
+ adl-test-ENTRY.empty_other_contributors.draft
3
+
4
+ concept
5
+ [at0000] -- test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ description
11
+ original_author = <
12
+ ["name"] = <"name">
13
+ >
14
+ details = <
15
+ ["en"] = <
16
+ language = <[ISO_639-1::en]>
17
+ purpose = <"purpose">
18
+ use = <"use">
19
+ misuse = <"misuse">
20
+ copyright = <"copyright">
21
+ >
22
+ >
23
+ lifecycle_state = <"AuthorDraft">
24
+ other_contributors = <>
25
+
26
+ definition
27
+ ENTRY[at0000] matches {*}
28
+
29
+ ontology
30
+ primary_language = <"en">
31
+ languages_available = <"en", ...>
32
+
33
+ term_definitions = <
34
+ ["en"] = <
35
+ items = <
36
+ ["at0000"] = <
37
+ text = <"text">;
38
+ description = <"description">
39
+ >
40
+ >
41
+ >
42
+ >
@@ -0,0 +1,23 @@
1
+ archetype
2
+ adl-test-ENTRY.missing_language.draft
3
+
4
+ concept
5
+ [at0000] -- testing missing language compatibility
6
+
7
+ definition
8
+ ENTRY[at0000] matches {*}
9
+
10
+ ontology
11
+ primary_language = <"zh">
12
+ languages_available = <"zh", ...>
13
+
14
+ term_definitions = <
15
+ ["en"] = <
16
+ items = <
17
+ ["at0000"] = <
18
+ text = <"most minimal">;
19
+ description = <"most minimal">
20
+ >
21
+ >
22
+ >
23
+ >
@@ -0,0 +1,61 @@
1
+ archetype (adl_version=1.4)
2
+ adl-test-OUTER.mixed_types.draft
3
+
4
+ concept
5
+ [at0000] -- outer object
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ description
9
+ original_author = <
10
+ ["name"] = <"Thomas Beale">
11
+ ["submission"] = <"01/05/2004">
12
+ ["organisation"] = <"OceanInformatics.biz">
13
+ >
14
+ details = <
15
+ ["en"] = <
16
+ language = <[ISO_639-1::en]>
17
+ purpose = <"Test archetype for mixed node types">
18
+ keywords = <"ADL", "test">
19
+ copyright = <"copyright (c) 2004 The openEHR Foundation">
20
+ >
21
+ >
22
+ lifecycle_state = <"draft">
23
+
24
+ definition
25
+ OUTER[at0000] matches { -- outer object
26
+ items cardinality matches {0..*; ordered} matches {
27
+ COMPLEX_OBJECT[at0001] matches {*}
28
+ use_node COMPLEX_OBJECT /items[at0001]
29
+ use_node COMPLEX_OBJECT /items[at0002]
30
+ COMPLEX_OBJECT[at0002] matches {*}
31
+ allow_archetype COMPLEX_OBJECT matches {
32
+ include
33
+ archetype_id/value matches {/.*/}
34
+ }
35
+ COMPLEX_OBJECT[at0003] matches {*}
36
+ }
37
+ }
38
+
39
+ ontology
40
+ term_definitions = <
41
+ ["en"] = <
42
+ items = <
43
+ ["at0000"] = <
44
+ description = <"outer object">
45
+ text = <"outer object">
46
+ >
47
+ ["at0001"] = <
48
+ description = <"complex object 1">
49
+ text = <"complex object 1">
50
+ >
51
+ ["at0002"] = <
52
+ description = <"complex object 2">
53
+ text = <"complex object 2">
54
+ >
55
+ ["at0003"] = <
56
+ description = <"complex object 3">
57
+ text = <"complex object 3">
58
+ >
59
+ >
60
+ >
61
+ >
@@ -0,0 +1,23 @@
1
+ archetype
2
+ adl-test-ENTRY.most_minimal.draft
3
+
4
+ concept
5
+ [at0000] -- empty definition test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ ENTRY[at0000] matches {*}
12
+
13
+ ontology
14
+ term_definitions = <
15
+ ["en"] = <
16
+ items = <
17
+ ["at0000"] = <
18
+ text = <"most minimal">;
19
+ description = <"most minimal">
20
+ >
21
+ >
22
+ >
23
+ >
@@ -0,0 +1,52 @@
1
+ archetype
2
+ adl-test-ENTRY.multi-language.draft
3
+ concept
4
+ [at0000] -- empty definition test
5
+
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+
9
+ definition
10
+ ENTRY[at0000] matches {*}
11
+
12
+ ontology
13
+ primary_language = <"en">
14
+ languages_available = <"en", "sv">
15
+
16
+ term_definitions = <
17
+ ["en"] = <
18
+ items = <
19
+ ["at0000"] = <
20
+ text = <"most minimal">;
21
+ description = <"most minimal">
22
+ >
23
+ >
24
+ >
25
+ ["sv"] = <
26
+ items = <
27
+ ["at0000"] = <
28
+ text = <"mesta minimal">;
29
+ description = <"mesta minimal">
30
+ >
31
+ >
32
+ >
33
+ >
34
+
35
+ constraint_definitions = <
36
+ ["en"] = <
37
+ items = <
38
+ ["ac0001"] = <
39
+ text = <"most minimal">;
40
+ description = <"most minimal">
41
+ >
42
+ >
43
+ >
44
+ ["sv"] = <
45
+ items = <
46
+ ["ac0001"] = <
47
+ text = <"mesta minimal">;
48
+ description = <"mesta minimal">
49
+ >
50
+ >
51
+ >
52
+ >
@@ -0,0 +1,88 @@
1
+ archetype
2
+ adl-test-ENTRY.test.draft
3
+
4
+ concept
5
+ [at0000] -- basic data types test 1
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ ENTRY[at0000] matches {
12
+ string_attributes matches {
13
+ LIST matches {
14
+
15
+ -- escaped double quote
16
+ string_attr10 matches {"some\"thing"}
17
+
18
+ -- escaped backslash
19
+ string_attr11 matches {"any\\thing"}
20
+
21
+ -- three-lines string
22
+ string_attr21 matches {"this is what it is used for, this could be a really long line or even
23
+ multiple lines, just like
24
+ what you are reading now"}
25
+
26
+ -- nine-lines string with leading and trailing spaces
27
+ string_attr21 matches {"this is what it is used for, this could
28
+ be a really long line or even multiple lines, just like what you
29
+ string_attr21 matches this is what it is used for, this could
30
+ be a really long line or even multiple lines, just like what you
31
+ string_attr21 matches this is what it is used for, this could
32
+ be a really long line or even multiple lines, just like what you
33
+ string_attr21 matches this is what it is used for, this could
34
+ be a really long line or even multiple lines, just like what you
35
+ are reading now "}
36
+
37
+ -- multi-line string with empty lines in the middle
38
+ string_attr22 matches {"this is what it is used for, this could be a really long line or even
39
+
40
+
41
+ multiple lines, just like"}
42
+
43
+
44
+ -- another multi-line string starting with empty line
45
+ string_attr23 matches {"
46
+
47
+ this is what it is used
48
+
49
+ for, this could
50
+
51
+ be a really long line or even
52
+
53
+ multiple lines, just like
54
+
55
+ multiple lines, just like
56
+
57
+ multiple lines, just like
58
+
59
+ multiple lines, just like
60
+
61
+ multiple lines, just like
62
+
63
+ "}
64
+
65
+ -- units = <"/min">, possibile confict with path syntax
66
+ units_1 matches {"/min"}
67
+
68
+ -- units =
69
+ units_2 matches {"km/h"}
70
+
71
+ }
72
+ }
73
+ }
74
+ ontology
75
+ primary_language = <"en">
76
+ languages_available = <"en", ...>
77
+ terminologies_available = <"adl_test", ...>
78
+
79
+ term_definitions = <
80
+ ["en"] = <
81
+ items = <
82
+ ["at0000"] = <
83
+ text = <"test entry">;
84
+ description = <"test entry">
85
+ >
86
+ >
87
+ >
88
+ >
@@ -0,0 +1,45 @@
1
+ archetype
2
+ adl-test-ENTRY.structure_test1.draft
3
+ concept
4
+ [at0000] -- structure test 1
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+
9
+ definition
10
+ ENTRY[at0000] matches {
11
+ subject_relationship matches {
12
+ RELATED_PARTY matches {
13
+ relationship matches {
14
+ TEXT matches {
15
+ value matches {"self"}
16
+ }
17
+ }
18
+ }
19
+ }
20
+ members existence matches {0..1} cardinality matches {0..8} matches {
21
+ PERSON occurrences matches {1} matches {
22
+ title matches {"head"}
23
+ }
24
+ PERSON occurrences matches {0..*} matches {
25
+ title matches {"member"}
26
+ }
27
+ }
28
+ }
29
+
30
+ ontology
31
+ primary_language = <"en">
32
+ languages_available = <"en", ...>
33
+ terminologies_available = <"adl_test", ...>
34
+
35
+ term_definitions = <
36
+ ["en"] = <
37
+ items = <
38
+ ["at0000"] = <
39
+ text = <"test entry">;
40
+ description = <"test entry">
41
+ >
42
+ >
43
+ >
44
+ >
45
+
@@ -0,0 +1,45 @@
1
+ archetype
2
+ adl-test-ENTRY.structure_test1.draft
3
+ concept
4
+ [at0000] -- structure test 1
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+
9
+ definition
10
+ ENTRY[at0000] matches { -- /items[Clinical Description]
11
+ subject_relationship matches {
12
+ RELATED_PARTY matches {
13
+ relationship matches {
14
+ TEXT matches {
15
+ value matches {"self"}
16
+ }
17
+ }
18
+ }
19
+ }
20
+ members existence matches {0..1} cardinality matches {0..8} matches {
21
+ PERSON occurrences matches {1} matches {
22
+ title matches {"head"}
23
+ }
24
+ PERSON occurrences matches {0..*} matches {
25
+ title matches {"member"}
26
+ }
27
+ }
28
+ }
29
+
30
+ ontology
31
+ primary_language = <"en">
32
+ languages_available = <"en", ...>
33
+ terminologies_available = <"adl_test", ...>
34
+
35
+ term_definitions = <
36
+ ["en"] = <
37
+ items = <
38
+ ["at0000"] = <
39
+ text = <"test entry">;
40
+ description = <"test entry">
41
+ >
42
+ >
43
+ >
44
+ >
45
+
@@ -0,0 +1,37 @@
1
+ archetype
2
+ adl-test-ENTRY.term_binding.draft
3
+ concept
4
+ [at0000] -- empty definition test
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+
9
+ definition
10
+ ENTRY[at0000] matches {*}
11
+
12
+ ontology
13
+ primary_language = <"en">
14
+ languages_available = <"en", ...>
15
+
16
+ term_definitions = <
17
+ ["en"] = <
18
+ items = <
19
+ ["at0000"] = <
20
+ text = <"most minimal">;
21
+ description = <"most minimal">
22
+ >
23
+ >
24
+ >
25
+ >
26
+ term_binding = <
27
+ ["SNOMED_CT"] = <
28
+ items = <
29
+ ["at0000"] = <[snomed_ct::1000339]>
30
+ >
31
+ >
32
+ ["ICD10"] = <
33
+ items = <
34
+ ["at0000"] = <[icd10::1000],[icd10::1001]>
35
+ >
36
+ >
37
+ >
@@ -0,0 +1,32 @@
1
+ archetype
2
+ adl-test-ENTRY.term_binding.draft
3
+ concept
4
+ [at0000] -- path-based binding test
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+
9
+ definition
10
+ ENTRY[at0000] matches {*}
11
+
12
+ ontology
13
+ primary_language = <"en">
14
+ languages_available = <"en", ...>
15
+
16
+ term_definitions = <
17
+ ["en"] = <
18
+ items = <
19
+ ["at0000"] = <
20
+ text = <"most minimal">;
21
+ description = <"most minimal">
22
+ >
23
+ >
24
+ >
25
+ >
26
+ term_binding = <
27
+ ["LNC205"] = <
28
+ items = <
29
+ ["/data[at0002]/events[at0003]/data[at0001]/item[at0004]"] = <[LNC205::8310-5]>
30
+ >
31
+ >
32
+ >
@@ -0,0 +1,83 @@
1
+ archetype
2
+ adl-test-ENTRY.testtranslations.draft
3
+ concept
4
+ [at0000] -- empty definition test
5
+
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ translations = <
9
+ ["de"] = <
10
+ language = <[ISO_639-1::de]>
11
+ author = <
12
+ ["organisation"] = <"test organisation">
13
+ ["name"] = <"test author">
14
+ >
15
+ accreditation = <"test Accreditation!">
16
+ >
17
+ ["es"] = <
18
+ language = <[ISO_639-1::es]>
19
+ author = <
20
+ ["name"] = <"Another test author">
21
+ > -- no organisation or accreditation here to test that the parser won't take the old accreditation/organisation!
22
+ >
23
+ >
24
+ definition
25
+ ENTRY[at0000] matches {*}
26
+
27
+ ontology
28
+ primary_language = <"en">
29
+ languages_available = <"en", "de", "es">
30
+
31
+ term_definitions = <
32
+ ["en"] = <
33
+ items = <
34
+ ["at0000"] = <
35
+ text = <"most minimal">;
36
+ description = <"most minimal">
37
+ >
38
+ >
39
+ >
40
+ ["de"] = <
41
+ items = <
42
+ ["at0000"] = <
43
+ text = <"sehr minimal">;
44
+ description = <"sehr minimal">
45
+ >
46
+ >
47
+ >
48
+ ["es"] = <
49
+ items = <
50
+ ["at0000"] = <
51
+ text = <"mesta minimal">;
52
+ description = <"mesta minimal">
53
+ >
54
+ >
55
+ >
56
+ >
57
+
58
+ constraint_definitions = <
59
+ ["en"] = <
60
+ items = <
61
+ ["ac0001"] = <
62
+ text = <"most minimal">;
63
+ description = <"most minimal">
64
+ >
65
+ >
66
+ >
67
+ ["de"] = <
68
+ items = <
69
+ ["ac0001"] = <
70
+ text = <"sehr minimal">;
71
+ description = <"sehr minimal">
72
+ >
73
+ >
74
+ >
75
+ ["es"] = <
76
+ items = <
77
+ ["ac0001"] = <
78
+ text = <"mesta minimal">;
79
+ description = <"mesta minimal">
80
+ >
81
+ >
82
+ >
83
+ >
@@ -0,0 +1,34 @@
1
+ archetype
2
+ adl-test-ENTRY.translation_author_language.draft
3
+
4
+ concept
5
+ [at0000] -- test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+ translations = <
10
+ ["de"] = <
11
+ author = <
12
+ ["name"] = <"Harry Potter">
13
+ ["email"] = <"harry@something.somewhere.co.uk">
14
+ >
15
+ language = <[ISO_639-1::de]>
16
+ >
17
+ >
18
+ definition
19
+ ENTRY[at0000] matches {*}
20
+
21
+ ontology
22
+ primary_language = <"en">
23
+ languages_available = <"en", ...>
24
+
25
+ term_definitions = <
26
+ ["en"] = <
27
+ items = <
28
+ ["at0000"] = <
29
+ text = <"test">;
30
+ description = <"test">
31
+ >
32
+ >
33
+ >
34
+ >
@@ -0,0 +1,34 @@
1
+ archetype
2
+ adl-test-ENTRY.translation_language_author.draft
3
+
4
+ concept
5
+ [at0000] -- test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+ translations = <
10
+ ["de"] = <
11
+ language = <[ISO_639-1::de]>
12
+ author = <
13
+ ["name"] = <"Harry Potter">
14
+ ["email"] = <"harry@something.somewhere.co.uk">
15
+ >
16
+ >
17
+ >
18
+ definition
19
+ ENTRY[at0000] matches {*}
20
+
21
+ ontology
22
+ primary_language = <"en">
23
+ languages_available = <"en", ...>
24
+
25
+ term_definitions = <
26
+ ["en"] = <
27
+ items = <
28
+ ["at0000"] = <
29
+ text = <"test">;
30
+ description = <"test">
31
+ >
32
+ >
33
+ >
34
+ >
@@ -0,0 +1,41 @@
1
+ archetype
2
+ adl-test-ENTRY.unicode_BOM_support.draft
3
+ concept
4
+ [at0000] -- empty definition test
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+
9
+ definition
10
+ ENTRY[at0000] matches {*}
11
+
12
+ ontology
13
+ primary_language = <"en">
14
+ languages_available = <"en", "zh", "sv">
15
+
16
+ term_definitions = <
17
+ ["en"] = <
18
+ items = <
19
+ ["at0000"] = <
20
+ text = <"concept">;
21
+ description = <"description">
22
+ >
23
+ >
24
+ >
25
+ ["zh"] = <
26
+ items = <
27
+ ["at0000"] = <
28
+ text = <"概念">; -- "concept" in Chinese
29
+ description = <"描述"> -- "description" in Chinese
30
+ >
31
+ >
32
+ >
33
+ ["sv"] = <
34
+ items = <
35
+ ["at0000"] = <
36
+ text = <"språk">; -- "language" in Swedish
37
+ description = <"Hjälp"> -- "help" in Swedish
38
+ >
39
+ >
40
+ >
41
+ >
@@ -0,0 +1,41 @@
1
+ archetype
2
+ adl-test-ENTRY.unicode_support.draft
3
+ concept
4
+ [at0000] -- empty definition test
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+
9
+ definition
10
+ ENTRY[at0000] matches {*}
11
+
12
+ ontology
13
+ primary_language = <"en">
14
+ languages_available = <"en", "zh", "sv">
15
+
16
+ term_definitions = <
17
+ ["en"] = <
18
+ items = <
19
+ ["at0000"] = <
20
+ text = <"concept">;
21
+ description = <"description">
22
+ >
23
+ >
24
+ >
25
+ ["zh"] = <
26
+ items = <
27
+ ["at0000"] = <
28
+ text = <"概念">; -- "concept" in Chinese
29
+ description = <"描述"> -- "description" in Chinese
30
+ >
31
+ >
32
+ >
33
+ ["sv"] = <
34
+ items = <
35
+ ["at0000"] = <
36
+ text = <"språk">; -- "language" in Swedish
37
+ description = <"Hjälp"> -- "help" in Swedish
38
+ >
39
+ >
40
+ >
41
+ >