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,61 @@
1
+ archetype
2
+ adl-test-ENTRY.archetype_description.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"] = <"Sam Heard">
13
+ ["organisation"] = <"Ocean Informatics">
14
+ ["date"] = <"23/04/2006">
15
+ ["email"] = <"sam.heard@oceaninformatics.biz">
16
+ >
17
+ details = <
18
+ ["en"] = <
19
+ language = <[ISO_639-1::en]>
20
+ purpose = <"For recording a problem, condition or issue that has ongoing significance to the person's health.">
21
+ use = <"Used for recording any problem, present or past - so is used for recording past history as well as current problems. Used with changed 'Subject of care' for recording problems of relatives and so for family history.">
22
+ keywords = <"issue", "condition">
23
+ misuse = <"Use specialisations for medical diagnoses, 'openEHR-EHR-EVALUATION.problem-diagnosis' and histological diagnoses 'openEHR-EHR-EVALUATION.problem-diagnosis-histological'">
24
+ copyright = <"copyright (c) 2004 The openEHR Foundation">
25
+ original_resource_uri = <
26
+ ["ligne guide"] = <"http://guidelines.are.us/wherever/fr">
27
+ ["medline"] = <"http://some%20medline%20ref">
28
+ >
29
+ other_details = <
30
+ ["item other 1"] = <"item details 1">
31
+ ["item other 2"] = <"item details 2">
32
+ >
33
+ >
34
+ >
35
+ lifecycle_state = <"AuthorDraft">
36
+ archetype_package_uri = <"www.aihw.org.au/data_sets/diabetic_archetypes.html">
37
+ other_contributors = <
38
+ ["1"] = <"Ian McNicoll, MD">
39
+ >
40
+ other_details = <
41
+ ["other 1"] = <"details 1">
42
+ ["other 2"] = <"details 2">
43
+ >
44
+
45
+ definition
46
+ ENTRY[at0000] matches {*}
47
+
48
+ ontology
49
+ primary_language = <"en">
50
+ languages_available = <"en", ...>
51
+
52
+ term_definitions = <
53
+ ["en"] = <
54
+ items = <
55
+ ["at0000"] = <
56
+ text = <"test">
57
+ description = <"test">
58
+ >
59
+ >
60
+ >
61
+ >
@@ -0,0 +1,45 @@
1
+ archetype (adl_version=1.4)
2
+ openEHR-EHR-OBSERVATION.body_mass_index.v1
3
+
4
+ concept
5
+ [at0000] -- Body mass index
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ description
11
+ details = <
12
+ ["en"] = <
13
+ language = <[ISO_639-1::en]>
14
+ purpose = <"To record the body mass index. This is index is calculated by dividing the weight in kg by the height in metres squared.">
15
+ use = <"To record BMI">
16
+ keywords = <"obesity", "index">
17
+ misuse = <"">
18
+ >
19
+ >
20
+ lifecycle_state = <"Initial">
21
+ other_contributors = <>
22
+ original_author = <
23
+ ["name"] = <"Sam Heard">
24
+ ["organisation"] = <"Ocean Informatics">
25
+ ["date"] = <"22/03/2006">
26
+ ["email"] = <"sam.heard@oceaninformatics.biz">
27
+ >
28
+
29
+ definition
30
+ ENTRY[at0000] matches {*}
31
+
32
+ ontology
33
+ primary_language = <"en">
34
+ languages_available = <"en", ...>
35
+
36
+ term_definitions = <
37
+ ["en"] = <
38
+ items = <
39
+ ["at0000"] = <
40
+ text = <"test">;
41
+ description = <"test">
42
+ >
43
+ >
44
+ >
45
+ >
@@ -0,0 +1,26 @@
1
+ archetype (adl_version=1.4)
2
+ adl-test-ENTRY.archetype_identification.draft
3
+
4
+ concept
5
+ [at0000] -- test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ ENTRY[at0000] matches {*}
12
+
13
+ ontology
14
+ primary_language = <"en">
15
+ languages_available = <"en", ...>
16
+
17
+ term_definitions = <
18
+ ["en"] = <
19
+ items = <
20
+ ["at0000"] = <
21
+ text = <"test">;
22
+ description = <"test">
23
+ >
24
+ >
25
+ >
26
+ >
@@ -0,0 +1,36 @@
1
+ archetype
2
+ adl-test-entry.archetype_internal_ref.test
3
+
4
+ concept
5
+ [at0000]
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ Entry[at0000] matches { -- Encounter
12
+ attribute1 matches {
13
+ SECTION[at0001] occurrences matches {0..1} matches {*}
14
+ }
15
+ attribute2 matches {
16
+ use_node SECTION occurrences matches {1..2} /attribute1
17
+ }
18
+ attribute3 matches {
19
+ use_node COMPLEX_OBJECT /items[at0001]
20
+ use_node COMPLEX_OBJECT /items[at0002]
21
+ }
22
+ }
23
+
24
+ ontology
25
+ primary_language = <"en">
26
+ languages_available = <"en", ...>
27
+ term_definitions = <
28
+ ["en"] = <
29
+ items = <
30
+ ["at0000"] = <
31
+ text = <"test composition">;
32
+ description = <"test composition">
33
+ >
34
+ >
35
+ >
36
+ >
@@ -0,0 +1,36 @@
1
+ archetype
2
+ adl-test-entry.archetype_internal_ref.test
3
+
4
+ concept
5
+ [at0000]
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ Entry[at0000] matches { -- Encounter
12
+ attribute1 matches {
13
+ SECTION[at0001] occurrences matches {0..1} matches {*}
14
+ }
15
+ attribute2 matches {
16
+ use_node SECTION occurrences matches {1..2} /attribute1 -- /test withslash in comment after use node
17
+ }
18
+ attribute3 matches {
19
+ use_node COMPLEX_OBJECT /items[at0001]
20
+ use_node COMPLEX_OBJECT /items[at0002]
21
+ }
22
+ }
23
+
24
+ ontology
25
+ primary_language = <"en">
26
+ languages_available = <"en", ...>
27
+ term_definitions = <
28
+ ["en"] = <
29
+ items = <
30
+ ["at0000"] = <
31
+ text = <"test composition">;
32
+ description = <"test composition">
33
+ >
34
+ >
35
+ >
36
+ >
@@ -0,0 +1,47 @@
1
+ archetype
2
+ adl-test-ENTRY.archetype_language.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
+ accreditation = <"British Medical Translator id 00400595">
17
+ other_details = <
18
+ ["review 1"] = <"Ron Weasley">
19
+ ["review 2"] = <"Rubeus Hagrid">
20
+ >
21
+ >
22
+ ["ru"] = <
23
+ language = <[ISO_639-1::ru]>
24
+ author = <
25
+ ["name"] = <"Vladimir Nabokov">
26
+ ["email"] = <"vladimir@something.somewhere.ru">
27
+ >
28
+ accreditation = <"Russion Translator id 892230A">
29
+ >
30
+ >
31
+ definition
32
+ ENTRY[at0000] matches {*}
33
+
34
+ ontology
35
+ primary_language = <"en">
36
+ languages_available = <"en", ...>
37
+
38
+ term_definitions = <
39
+ ["en"] = <
40
+ items = <
41
+ ["at0000"] = <
42
+ text = <"test">;
43
+ description = <"test">
44
+ >
45
+ >
46
+ >
47
+ >
@@ -0,0 +1,38 @@
1
+ archetype
2
+ adl-test-ENTRY.archetype_language.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
+ other_details = <
17
+ ["review 1"] = <"Ron Weasley">
18
+ ["review 2"] = <"Rubeus Hagrid">
19
+ >
20
+ >
21
+ >
22
+ definition
23
+ ENTRY[at0000] matches {*}
24
+
25
+ ontology
26
+ primary_language = <"en">
27
+ languages_available = <"en", ...>
28
+
29
+ term_definitions = <
30
+ ["en"] = <
31
+ items = <
32
+ ["at0000"] = <
33
+ text = <"test">;
34
+ description = <"test">
35
+ >
36
+ >
37
+ >
38
+ >
@@ -0,0 +1,40 @@
1
+ archetype
2
+ adl-test-entry.archetype_language_order_of_translation_details.test
3
+
4
+ concept
5
+ [at0000] -- test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+ translations = <
10
+ ["de"] = <
11
+
12
+ author = <
13
+ ["name"] = <"Harry Potter">
14
+ ["email"] = <"harry@something.somewhere.co.uk">
15
+ >
16
+ accreditation = <"Seven OWLs at Hogwards">
17
+ other_details = <
18
+ ["review 1"] = <"Ron Weasley">
19
+ ["review 2"] = <"Rubeus Hagrid">
20
+ >
21
+ language = <[ISO_639-1::de]>
22
+ >
23
+ >
24
+ definition
25
+ ENTRY[at0000] matches {*}
26
+
27
+ ontology
28
+ primary_language = <"en">
29
+ languages_available = <"en", ...>
30
+
31
+ term_definitions = <
32
+ ["en"] = <
33
+ items = <
34
+ ["at0000"] = <
35
+ text = <"test">;
36
+ description = <"test">
37
+ >
38
+ >
39
+ >
40
+ >
@@ -0,0 +1,25 @@
1
+ archetype
2
+ adl-test-ENTRY.archetype_ontology.draft
3
+ concept
4
+ [at0000] -- empty definition test
5
+ language
6
+ original_language = <[ISO_639-1::en]>
7
+
8
+ definition
9
+ ENTRY[at0000] matches {*}
10
+
11
+ ontology
12
+ primary_language = <"en">
13
+ languages_available = <"en", ...>
14
+
15
+ term_definitions = <
16
+ ["en"] = <
17
+ items = <
18
+ ["at0000"] = <
19
+ text = <"some text">;
20
+ description = <"some description">
21
+ comment = <"some comment">
22
+ >
23
+ >
24
+ >
25
+ >
@@ -0,0 +1,40 @@
1
+ archetype
2
+ adl-test-entry.archetype_slot.test
3
+
4
+ concept
5
+ [at0000]
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ Entry[at0000] matches { -- Encounter
12
+ content matches {
13
+ allow_archetype SECTION [at0001] occurrences matches {0..1} matches {
14
+ include
15
+ domain_concept matches {/blood_pressure.v1/}
16
+ exclude
17
+ domain_concept matches {/blood_pressure.v2/}
18
+ domain_concept matches {/.*/}
19
+ }
20
+ }
21
+ }
22
+
23
+
24
+ ontology
25
+ primary_language = <"en">
26
+ languages_available = <"en", ...>
27
+ term_definitions = <
28
+ ["en"] = <
29
+ items = <
30
+ ["at0000"] = <
31
+ text = <"test composition">;
32
+ description = <"test composition">
33
+ >
34
+ ["at0001"] = <
35
+ text = <"slot">;
36
+ description = <"slot">
37
+ >
38
+ >
39
+ >
40
+ >
@@ -0,0 +1,37 @@
1
+ archetype
2
+ adl-test-entry.archetype_slot.test
3
+
4
+ concept
5
+ [at0000]
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ Entry[at0000] matches { -- Encounter
12
+ content matches {
13
+ allow_archetype SECTION [at0001] occurrences matches {0..1} matches {
14
+ include
15
+ archetype_id/value matches {/openEHR-EHR-CLUSTER\.device\.v1/}
16
+ }
17
+ }
18
+ }
19
+
20
+
21
+ ontology
22
+ primary_language = <"en">
23
+ languages_available = <"en", ...>
24
+ term_definitions = <
25
+ ["en"] = <
26
+ items = <
27
+ ["at0000"] = <
28
+ text = <"test composition">;
29
+ description = <"test composition">
30
+ >
31
+ ["at0001"] = <
32
+ text = <"slot">;
33
+ description = <"slot">
34
+ >
35
+ >
36
+ >
37
+ >
@@ -0,0 +1,29 @@
1
+ archetype (adl_version=1.4)
2
+ adl-test-ENTRY.archetype_uncommonkeys.v1
3
+
4
+ concept
5
+ [at0000] -- test
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ ENTRY[at0000] matches {*}
12
+
13
+ ontology
14
+ primary_language = <"en">
15
+ languages_available = <"en", ...>
16
+
17
+ term_definitions = <
18
+ ["en"] = <
19
+ items = <
20
+ ["at0000"] = <
21
+ text = <"test text">;
22
+ description = <"test description">
23
+ anotherkey = <"another key value">
24
+ status = <"status value">
25
+ revision = <"revision value">
26
+ >
27
+ >
28
+ >
29
+ >