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
data/open_ehr.gemspec CHANGED
@@ -4,15 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{open_ehr}
8
- s.version = "0.9.1"
7
+ s.name = "open_ehr"
8
+ s.version = "0.9.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Shinji KOBAYASHI}, %q{Akimichi Tatsukawa}]
12
- s.date = %q{2011-10-04}
13
- s.description = %q{This project is an implementation of the openEHR specification on Ruby.}
14
- s.email = %q{skoba@moss.gr.jp}
15
- s.executables = [%q{adl_validator.rb}]
11
+ s.authors = ["Shinji KOBAYASHI", "Akimichi Tatsukawa"]
12
+ s.date = "2011-11-16"
13
+ s.description = "This project is an implementation of the openEHR specification on Ruby."
14
+ s.email = "skoba@moss.gr.jp"
16
15
  s.extra_rdoc_files = [
17
16
  "README.rdoc"
18
17
  ]
@@ -26,7 +25,6 @@ Gem::Specification.new do |s|
26
25
  "README.rdoc",
27
26
  "Rakefile",
28
27
  "VERSION",
29
- "bin/adl_validator.rb",
30
28
  "doc/openehr_terminology.xml",
31
29
  "lib/open_ehr.rb",
32
30
  "lib/open_ehr/am.rb",
@@ -45,10 +43,10 @@ Gem::Specification.new do |s|
45
43
  "lib/open_ehr/parser/adl_grammar.tt",
46
44
  "lib/open_ehr/parser/adl_parser.rb",
47
45
  "lib/open_ehr/parser/cadl_grammar.tt",
46
+ "lib/open_ehr/parser/cadl_node.rb",
48
47
  "lib/open_ehr/parser/dadl.rb",
49
48
  "lib/open_ehr/parser/dadl_grammar.tt",
50
49
  "lib/open_ehr/parser/exception.rb",
51
- "lib/open_ehr/parser/scanner/adl_scanner.rb",
52
50
  "lib/open_ehr/parser/shared_token_grammar.tt",
53
51
  "lib/open_ehr/parser/validator.rb",
54
52
  "lib/open_ehr/parser/xml_perser.rb",
@@ -134,47 +132,99 @@ Gem::Specification.new do |s|
134
132
  "spec/lib/open_ehr/assumed_library_types/iso8601_time_spec.rb",
135
133
  "spec/lib/open_ehr/assumed_library_types/iso8601_timezone_spec.rb",
136
134
  "spec/lib/open_ehr/assumed_library_types/time_definitions_spec.rb",
137
- "spec/lib/open_ehr/parser/adl/adl-test-ENTRY.assumed_types.v1.adl",
138
- "spec/lib/open_ehr/parser/adl/adl-test-ENTRY.basic_types.v1.adl",
139
- "spec/lib/open_ehr/parser/adl/adl-test-ENTRY.basic_types_fail.v1.adl",
140
- "spec/lib/open_ehr/parser/adl/adl-test-ENTRY.most_minimal.v1.adl",
141
- "spec/lib/open_ehr/parser/adl/adl-test-ENTRY.structure_test1.v1.adl",
142
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ACTION.imaging.v1.adl",
143
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ACTION.referral.v1.adl",
144
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl",
145
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.auscultation.v1.adl",
146
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.dimensions-circumference.v1.adl",
147
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.dimensions.v1.adl",
148
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-abdomen.v1.adl",
149
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-chest.v1.adl",
150
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-fetus.v1.adl",
151
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic-joint.v1.adl",
152
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic-lymphnode.v1.adl",
153
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic-mass.v1.adl",
154
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-generic.v1.adl",
155
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-nervous_system.v1.adl",
156
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl",
157
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.exam-uterus.v1.adl",
158
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-COMPOSITION.discharge.v1draft.adl",
159
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-COMPOSITION.encounter.v1draft.adl",
160
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-EVALUATION.adverse.v1.adl",
161
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-INSTRUCTION.medication.v1.adl",
162
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-INSTRUCTION.referral.v1.adl",
163
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.Laboratory_request.v1.adl",
164
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.follow_up.v1draft.adl",
165
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.imaging.v1.adl",
166
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.medication-formulation.v1.adl",
167
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.medication.v1.adl",
168
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-ITEM_TREE.referral.v1.adl",
169
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-OBSERVATION.apgar.v1.adl",
170
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl",
171
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-OBSERVATION.body_mass_index.v1.adl",
172
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.findings.v1.adl",
173
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.reason_for_encounter.v1.adl",
174
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.summary.v1.adl",
175
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-SECTION.vital_signs.v1.adl",
176
- "spec/lib/open_ehr/parser/adl/openEHR-EHR-cadl_sample.v1.adl",
135
+ "spec/lib/open_ehr/parser/adl14/adl-test-ENTRY.assumed_types.v1.adl",
136
+ "spec/lib/open_ehr/parser/adl14/adl-test-ENTRY.basic_types.v1.adl",
137
+ "spec/lib/open_ehr/parser/adl14/adl-test-ENTRY.basic_types_fail.v1.adl",
138
+ "spec/lib/open_ehr/parser/adl14/adl-test-ENTRY.most_minimal.v1.adl",
139
+ "spec/lib/open_ehr/parser/adl14/adl-test-ENTRY.structure_test1.v1.adl",
140
+ "spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_basic.draft.adl",
141
+ "spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_use_node.draft.adl",
142
+ "spec/lib/open_ehr/parser/adl14/adl-test-car.paths.test.adl",
143
+ "spec/lib/open_ehr/parser/adl14/adl-test-car.use_node.test.adl",
144
+ "spec/lib/open_ehr/parser/adl14/adl-test-composition.dv_coded_text.test.adl",
145
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_bindings.test.adl",
146
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_desc_missing_purpose.test.adl",
147
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_description.test.adl",
148
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_description2.test.adl",
149
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_identification.test.adl",
150
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref.test.adl",
151
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref2.test.adl",
152
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language.test.adl",
153
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_no_accreditation.test.adl",
154
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_order_of_translation_details.test.adl",
155
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_ontology.test.adl",
156
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_slot.test.adl",
157
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_slot.test2.adl",
158
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_uncommonkeys.test.adl",
159
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.basic_types.test.adl",
160
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_code_phrase.test.adl",
161
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_ordinal.test.adl",
162
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_empty.test.adl",
163
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full.test.adl",
164
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full2.test.adl",
165
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full3.test.adl",
166
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_item_units_only.test.adl",
167
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_list.test.adl",
168
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_property.test.adl",
169
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_reversed.test.adl",
170
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.constraint_binding.test.adl",
171
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.constraint_ref.test.adl",
172
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.datetime.test.adl",
173
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.domain_types.test.adl",
174
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.durations.test.adl",
175
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.empty_other_contributors.test.adl",
176
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.missing_language.test.adl",
177
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.mixed_node_types.draft.adl",
178
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.most_minimal.test.adl",
179
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.multi_language.test.adl",
180
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.special_string.test.adl",
181
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.structure_test1.test.adl",
182
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.structure_test2.test.adl",
183
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.term_binding.test.adl",
184
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.term_binding2.test.adl",
185
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.testtranslations.test.adl",
186
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_author_language.test.adl",
187
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_language_author.test.adl",
188
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.unicode_BOM_support.test.adl",
189
+ "spec/lib/open_ehr/parser/adl14/adl-test-entry.unicode_support.test.adl",
190
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ACTION.imaging.v1.adl",
191
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ACTION.referral.v1.adl",
192
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl",
193
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.auscultation.v1.adl",
194
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.dimensions-circumference.v1.adl",
195
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.dimensions.v1.adl",
196
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-abdomen.v1.adl",
197
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-chest.v1.adl",
198
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-fetus.v1.adl",
199
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-generic-joint.v1.adl",
200
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-generic-lymphnode.v1.adl",
201
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-generic-mass.v1.adl",
202
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-generic.v1.adl",
203
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-nervous_system.v1.adl",
204
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl",
205
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.exam-uterus.v1.adl",
206
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-COMPOSITION.discharge.v1draft.adl",
207
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-COMPOSITION.encounter.v1draft.adl",
208
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-EVALUATION.adverse.v1.adl",
209
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-EVALUATION.columna_vertebral.v1.adl",
210
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-INSTRUCTION.medication.v1.adl",
211
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-INSTRUCTION.referral.v1.adl",
212
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ITEM_TREE.Laboratory_request.v1.adl",
213
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ITEM_TREE.follow_up.v1draft.adl",
214
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ITEM_TREE.imaging.v1.adl",
215
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ITEM_TREE.medication-formulation.v1.adl",
216
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ITEM_TREE.medication.v1.adl",
217
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-ITEM_TREE.referral.v1.adl",
218
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-OBSERVATION.apgar.v1.adl",
219
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl",
220
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-OBSERVATION.body_mass_index.v1.adl",
221
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-OBSERVATION.testassumedvalue.v1.adl",
222
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.findings.v1.adl",
223
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.reason_for_encounter.v1.adl",
224
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.summary.v1.adl",
225
+ "spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.vital_signs.v1.adl",
177
226
  "spec/lib/open_ehr/parser/adl_parser_spec.rb",
227
+ "spec/lib/open_ehr/parser/adl_path_spec.rb",
178
228
  "spec/lib/open_ehr/parser/base_spec.rb",
179
229
  "spec/lib/open_ehr/rm/common/archetyped/archetyped_spec.rb",
180
230
  "spec/lib/open_ehr/rm/common/archetyped/feeder_audit_details_spec.rb",
@@ -290,15 +340,14 @@ Gem::Specification.new do |s|
290
340
  "spec/lib/open_ehr/serializer/sample_archetype_spec.rb",
291
341
  "spec/lib/open_ehr/serializer/xml_serializer_spec.rb",
292
342
  "spec/lib/open_ehr/terminology/open_ehr_terminology_spec.rb",
293
- "spec/rcov.opts",
294
343
  "spec/spec.opts",
295
344
  "spec/spec_helper.rb"
296
345
  ]
297
- s.homepage = %q{http://github.com/skoba/ruby-impl-openehr}
298
- s.licenses = [%q{The openEHR Open Source Software license(mozilla tri-license)}]
299
- s.require_paths = [%q{lib}]
300
- s.rubygems_version = %q{1.8.7}
301
- s.summary = %q{Ruby implementation of the openEHR specification}
346
+ s.homepage = "http://github.com/skoba/ruby-impl-openehr"
347
+ s.licenses = ["The openEHR Open Source Software license(mozilla tri-license)"]
348
+ s.require_paths = ["lib"]
349
+ s.rubygems_version = "1.8.10"
350
+ s.summary = "Ruby implementation of the openEHR specification"
302
351
 
303
352
  if s.respond_to? :specification_version then
304
353
  s.specification_version = 3
@@ -0,0 +1,56 @@
1
+ archetype (adl_version=1.4)
2
+ adl-test-SOME_TYPE.generic_type_basic.draft
3
+
4
+ concept
5
+ [at0000] -- root item
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ description
9
+ original_author = <
10
+ ["name"] = <"Thomas Beale">
11
+ >
12
+ details = <
13
+ ["en"] = <
14
+ language = <[ISO_639-1::en]>
15
+ purpose = <"Illustrates the use of generic types">
16
+ keywords = <"ADL", "test">
17
+ copyright = <"copyright (c) 2006 The openEHR Foundation">
18
+ >
19
+ >
20
+ lifecycle_state = <"draft">
21
+
22
+ definition
23
+ SOME_TYPE[at0000] matches { -- root item
24
+ interval_attr matches {
25
+ INTERVAL<QUANTITY> matches {
26
+ lower matches {
27
+ QUANTITY matches {
28
+ property matches {"temperature"}
29
+ unit matches {"C"}
30
+ magnitude matches {|>= 37.0|}
31
+ }
32
+ }
33
+ upper matches {
34
+ QUANTITY matches {
35
+ property matches {"temperature"}
36
+ unit matches {"C"}
37
+ magnitude matches {|>= 39.0|}
38
+ }
39
+ }
40
+ lower_included matches {True}
41
+ upper_included matches {True}
42
+ }
43
+ }
44
+ }
45
+
46
+ ontology
47
+ term_definitions = <
48
+ ["en"] = <
49
+ items = <
50
+ ["at0000"] = <
51
+ description = <"xxxx">
52
+ text = <"root item">
53
+ >
54
+ >
55
+ >
56
+ >
@@ -0,0 +1,63 @@
1
+ archetype (adl_version=1.4)
2
+ adl-test-SOME_TYPE.generic_type_basic.draft
3
+
4
+ concept
5
+ [at0000] -- root item
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+ description
9
+ original_author = <
10
+ ["name"] = <"Thomas Beale">
11
+ >
12
+ details = <
13
+ ["en"] = <
14
+ language = <[ISO_639-1::en]>
15
+ purpose = <"Illustrates the use of generic types">
16
+ keywords = <"ADL", "test">
17
+ copyright = <"copyright (c) 2006 The openEHR Foundation">
18
+ >
19
+ >
20
+ lifecycle_state = <"draft">
21
+
22
+ definition
23
+ SOME_TYPE[at0000] matches { -- root item
24
+ interval_attr matches {
25
+ INTERVAL<QUANTITY>[at0001] matches { -- interval of quantities
26
+ lower matches {
27
+ QUANTITY matches {
28
+ property matches {"temperature"}
29
+ unit matches {"C"}
30
+ magnitude matches {|>= 37.0|}
31
+ }
32
+ }
33
+ upper matches {
34
+ QUANTITY matches {
35
+ property matches {"temperature"}
36
+ unit matches {"C"}
37
+ magnitude matches {|>= 39.0|}
38
+ }
39
+ }
40
+ lower_included matches {True}
41
+ upper_included matches {True}
42
+ }
43
+ }
44
+ interval_attr2 matches {
45
+ use_node INTERVAL<QUANTITY> /interval_attr[at0001]
46
+ }
47
+ }
48
+
49
+ ontology
50
+ term_definitions = <
51
+ ["en"] = <
52
+ items = <
53
+ ["at0000"] = <
54
+ description = <"xxxx">
55
+ text = <"root item">
56
+ >
57
+ ["at0001"] = <
58
+ description = <"interval">
59
+ text = <"interval of quantities">
60
+ >
61
+ >
62
+ >
63
+ >
@@ -0,0 +1,80 @@
1
+ archetype
2
+ adl-test-CAR.user_node.v1
3
+ concept
4
+ [at0000] -- car
5
+
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+
9
+ definition
10
+ CAR [at0000] matches {
11
+ wheels matches {
12
+ WHEEL[at0001] matches {
13
+ description matches {"front left hand wheel"}
14
+ parts matches {
15
+ WHEEL_PART[at0002] matches {
16
+ something matches {"etc"}
17
+ something_else matches {"etc"}
18
+ }
19
+ }
20
+ }
21
+ WHEEL[at0003] matches {
22
+ description matches {"front right hand wheel"}
23
+ parts matches {
24
+ use_node WHEEL_PART /wheels[at0001]/parts[at0002] -- will pass
25
+ }
26
+ }
27
+ WHEEL[at0004] matches {
28
+ description matches {"rear left hand wheel"}
29
+ parts matches {
30
+ use_node WHEEL_PART /wheels[at0001]/parts[at0002] -- will pass
31
+ }
32
+ }
33
+ WHEEL[at0005] matches {
34
+ description matches {"rear right hand wheel"}
35
+ parts matches {
36
+ use_node WHEEL_PART /engine[at0001]/parts[at0002] -- will fail
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+
43
+ ontology
44
+ primary_language = <"en">
45
+
46
+ languages_available = <"en", ...>
47
+
48
+ terminologies_available = <"en", ...>
49
+
50
+ term_definitions = <
51
+ ["en"] = <
52
+ items = <
53
+ ["at0000"] = <
54
+ text = <"car">;
55
+ description = <"car">
56
+ >
57
+ ["at0001"] = <
58
+ text = <"front left hand wheel">;
59
+ description = <"front left hand wheel">
60
+ >
61
+ ["at0002"] = <
62
+ text = <"wheel part">;
63
+ description = <"wheel part">
64
+ >
65
+ ["at0003"] = <
66
+ text = <"front right hand wheel">;
67
+ description = <"front right hand wheel">
68
+ >
69
+ ["at0004"] = <
70
+ text = <"rear left hand wheel">;
71
+ description = <"rear left hand wheel">
72
+ >
73
+ ["at0005"] = <
74
+ text = <"rear right hand wheel">;
75
+ description = <"rear right hand wheel">
76
+ >
77
+ >
78
+ >
79
+ >
80
+
@@ -0,0 +1,87 @@
1
+ archetype
2
+ adl-test-CAR.paths.draft
3
+ concept
4
+ [at0000] -- car
5
+
6
+ language
7
+ original_language = <[ISO_639-1::en]>
8
+
9
+ definition
10
+ CAR [at0000] matches {
11
+ wheels matches {
12
+ WHEEL[at0001] matches {
13
+ description matches {"front left hand wheel"}
14
+ parts matches {
15
+ WHEEL_PART[at0002] matches {
16
+ something matches {"etc"}
17
+ something_else matches {"etc"}
18
+ }
19
+ }
20
+ }
21
+ WHEEL[at0003] matches {
22
+ description matches {"front right hand wheel"}
23
+ parts matches {
24
+ use_node WHEEL_PART /wheels[at0001]/parts[at0002] -- will pass
25
+ }
26
+ }
27
+ WHEEL[at0004] matches {
28
+ description matches {"rear left hand wheel"}
29
+ parts matches {
30
+ use_node WHEEL_PART /wheels[at0001]/parts[at0002] -- will pass
31
+ }
32
+ }
33
+ WHEEL[at0005] matches {
34
+ description matches {"rear right hand wheel"}
35
+ parts matches {
36
+ use_node WHEEL_PART /engine[at0001]/parts[at0002] -- will fail, wrong target path
37
+ }
38
+ }
39
+ WHEEL[at0006] matches {
40
+ description matches {"rear right hand wheel"}
41
+ parts matches {
42
+ use_node WHEEL /wheels[at0001]/parts[at0002] -- will fail, wrong type
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+
49
+ ontology
50
+ primary_language = <"en">
51
+ languages_available = <"en", ...>
52
+ terminologies_available = <"en", ...>
53
+
54
+ term_definitions = <
55
+ ["en"] = <
56
+ items = <
57
+ ["at0000"] = <
58
+ text = <"car">;
59
+ description = <"car">
60
+ >
61
+ ["at0001"] = <
62
+ text = <"front left hand wheel">;
63
+ description = <"front left hand wheel">
64
+ >
65
+ ["at0002"] = <
66
+ text = <"wheel part">;
67
+ description = <"wheel part">
68
+ >
69
+ ["at0003"] = <
70
+ text = <"front right hand wheel">;
71
+ description = <"front right hand wheel">
72
+ >
73
+ ["at0004"] = <
74
+ text = <"rear left hand wheel">;
75
+ description = <"rear left hand wheel">
76
+ >
77
+ ["at0005"] = <
78
+ text = <"rear right hand wheel">;
79
+ description = <"rear right hand wheel">
80
+ >
81
+ ["at0006"] = <
82
+ text = <"rear right hand wheel">;
83
+ description = <"rear right hand wheel">
84
+ >
85
+ >
86
+ >
87
+ >
@@ -0,0 +1,29 @@
1
+ archetype (adl_version=1.4)
2
+ openEHR-EHR-COMPOSITION.dv_coded_text.test
3
+
4
+ concept
5
+ [at0000] -- Problem list
6
+
7
+ language
8
+ original_language = <[ISO_639-1::en]>
9
+
10
+ definition
11
+ COMPOSITION[at0000] matches { -- Problem list
12
+ category matches {
13
+ DV_CODED_TEXT matches {
14
+ defining_code matches {[openehr::431]}
15
+ }
16
+ }
17
+ }
18
+
19
+ ontology
20
+ term_definitions = <
21
+ ["en"] = <
22
+ items = <
23
+ ["at0000"] = <
24
+ description = <"A list of the ongoing health problems of this person.">
25
+ text = <"Problem list">
26
+ >
27
+ >
28
+ >
29
+ >
@@ -0,0 +1,47 @@
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
+ definition
10
+ ENTRY[at0000] matches {*}
11
+
12
+ ontology
13
+ terminologies_available = <"SNOMED-CT", ...>
14
+ term_definitions = <
15
+ ["en"] = <
16
+ items = <
17
+ ["at0000"] = <
18
+ text = <"test">;
19
+ description = <"test">
20
+ >
21
+ >
22
+ >
23
+ >
24
+ constraint_definitions = <
25
+ ["en"] = <
26
+ items = <
27
+ ["ac0001"] = <
28
+ text = <"test constraint">
29
+ description = <"*">
30
+ >
31
+ >
32
+ >
33
+ >
34
+ term_bindings = <
35
+ ["SNOMED-CT"] = <
36
+ items = <
37
+ ["at0002"] = <[SNOMED-CT::123456]>
38
+ >
39
+ >
40
+ >
41
+ constraint_bindings = <
42
+ ["SNOMED-CT"] = <
43
+ items = <
44
+ ["ac0001"] = <http://openEHR.org/testconstraintbinding>
45
+ >
46
+ >
47
+ >
@@ -0,0 +1,45 @@
1
+ archetype
2
+ adl-test-ENTRY.archetype_description_missing_purpose.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
+ 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.">
21
+ keywords = <"issue", "condition">
22
+ misuse = <"Use specialisations for medical diagnoses, 'openEHR-EHR-EVALUATION.problem-diagnosis' and histological diagnoses 'openEHR-EHR-EVALUATION.problem-diagnosis-histological'">
23
+ copyright = <"copyright (c) 2004 The openEHR Foundation">
24
+ >
25
+ >
26
+ lifecycle_state = <"AuthorDraft">
27
+ archetype_package_uri = <"www.aihw.org.au/data_sets/diabetic_archetypes.html">
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
+ >