open_ehr 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +22 -20
- data/README.rdoc +4 -3
- data/Rakefile +0 -5
- data/VERSION +1 -1
- data/lib/open_ehr/parser/adl_grammar.tt +30 -23
- data/lib/open_ehr/parser/cadl_grammar.tt +85 -59
- data/lib/open_ehr/parser/cadl_node.rb +18 -0
- data/lib/open_ehr/parser/dadl_grammar.tt +1 -1
- data/lib/open_ehr/parser/shared_token_grammar.tt +4 -4
- data/open_ehr.gemspec +104 -55
- data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.assumed_types.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.basic_types.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.basic_types_fail.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.most_minimal.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/adl-test-ENTRY.structure_test1.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_basic.draft.adl +56 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_use_node.draft.adl +63 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-car.paths.test.adl +80 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-car.use_node.test.adl +87 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-composition.dv_coded_text.test.adl +29 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_bindings.test.adl +47 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_desc_missing_purpose.test.adl +45 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_description.test.adl +61 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_description2.test.adl +45 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_identification.test.adl +26 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref.test.adl +36 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref2.test.adl +36 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language.test.adl +47 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_no_accreditation.test.adl +38 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_order_of_translation_details.test.adl +40 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_ontology.test.adl +25 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_slot.test.adl +40 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_slot.test2.adl +37 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_uncommonkeys.test.adl +29 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.basic_types.test.adl +272 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_code_phrase.test.adl +77 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_ordinal.test.adl +66 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_empty.test.adl +46 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full.test.adl +64 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full2.test.adl +64 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_full3.test.adl +64 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_item_units_only.test.adl +55 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_list.test.adl +58 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_property.test.adl +47 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.c_dv_quantity_reversed.test.adl +59 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.constraint_binding.test.adl +37 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.constraint_ref.test.adl +43 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.datetime.test.adl +183 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.domain_types.test.adl +97 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.durations.test.adl +111 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.empty_other_contributors.test.adl +42 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.missing_language.test.adl +23 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.mixed_node_types.draft.adl +61 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.most_minimal.test.adl +23 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.multi_language.test.adl +52 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.special_string.test.adl +88 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.structure_test1.test.adl +45 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.structure_test2.test.adl +45 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.term_binding.test.adl +37 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.term_binding2.test.adl +32 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.testtranslations.test.adl +83 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_author_language.test.adl +34 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_language_author.test.adl +34 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.unicode_BOM_support.test.adl +41 -0
- data/spec/lib/open_ehr/parser/adl14/adl-test-entry.unicode_support.test.adl +41 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ACTION.imaging.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ACTION.referral.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/adl14/openEHR-EHR-CLUSTER.auscultation.v1.adl +48 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.dimensions-circumference.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.dimensions.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-abdomen.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-chest.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-fetus.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic-joint.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic-lymphnode.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic-mass.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-generic.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-nervous_system.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-CLUSTER.exam-uterus.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-COMPOSITION.discharge.v1draft.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-COMPOSITION.encounter.v1draft.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-EVALUATION.adverse.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/adl14/openEHR-EHR-EVALUATION.columna_vertebral.v1.adl +85 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-INSTRUCTION.medication.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-INSTRUCTION.referral.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.Laboratory_request.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.follow_up.v1draft.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.imaging.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.medication-formulation.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.medication.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-ITEM_TREE.referral.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-OBSERVATION.apgar.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-OBSERVATION.body_mass_index.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/adl14/openEHR-EHR-OBSERVATION.testassumedvalue.v1.adl +99 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.findings.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.reason_for_encounter.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.summary.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/{adl → adl14}/openEHR-EHR-SECTION.vital_signs.v1.adl +0 -0
- data/spec/lib/open_ehr/parser/adl_parser_spec.rb +2 -2
- data/spec/lib/open_ehr/parser/adl_path_spec.rb +180 -0
- metadata +132 -83
- data/bin/adl_validator.rb +0 -84
- data/lib/open_ehr/parser/scanner/adl_scanner.rb +0 -819
- data/spec/lib/open_ehr/parser/adl/openEHR-EHR-CLUSTER.auscultation.v1.adl +0 -217
- data/spec/lib/open_ehr/parser/adl/openEHR-EHR-cadl_sample.v1.adl +0 -9
- 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 =
|
8
|
-
s.version = "0.9.
|
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 = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
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/
|
138
|
-
"spec/lib/open_ehr/parser/
|
139
|
-
"spec/lib/open_ehr/parser/
|
140
|
-
"spec/lib/open_ehr/parser/
|
141
|
-
"spec/lib/open_ehr/parser/
|
142
|
-
"spec/lib/open_ehr/parser/adl
|
143
|
-
"spec/lib/open_ehr/parser/adl
|
144
|
-
"spec/lib/open_ehr/parser/adl
|
145
|
-
"spec/lib/open_ehr/parser/adl
|
146
|
-
"spec/lib/open_ehr/parser/adl
|
147
|
-
"spec/lib/open_ehr/parser/adl
|
148
|
-
"spec/lib/open_ehr/parser/adl
|
149
|
-
"spec/lib/open_ehr/parser/adl
|
150
|
-
"spec/lib/open_ehr/parser/adl
|
151
|
-
"spec/lib/open_ehr/parser/adl
|
152
|
-
"spec/lib/open_ehr/parser/adl
|
153
|
-
"spec/lib/open_ehr/parser/adl
|
154
|
-
"spec/lib/open_ehr/parser/adl
|
155
|
-
"spec/lib/open_ehr/parser/adl
|
156
|
-
"spec/lib/open_ehr/parser/adl
|
157
|
-
"spec/lib/open_ehr/parser/adl
|
158
|
-
"spec/lib/open_ehr/parser/adl
|
159
|
-
"spec/lib/open_ehr/parser/adl
|
160
|
-
"spec/lib/open_ehr/parser/adl
|
161
|
-
"spec/lib/open_ehr/parser/adl
|
162
|
-
"spec/lib/open_ehr/parser/adl
|
163
|
-
"spec/lib/open_ehr/parser/adl
|
164
|
-
"spec/lib/open_ehr/parser/adl
|
165
|
-
"spec/lib/open_ehr/parser/adl
|
166
|
-
"spec/lib/open_ehr/parser/adl
|
167
|
-
"spec/lib/open_ehr/parser/adl
|
168
|
-
"spec/lib/open_ehr/parser/adl
|
169
|
-
"spec/lib/open_ehr/parser/adl
|
170
|
-
"spec/lib/open_ehr/parser/adl
|
171
|
-
"spec/lib/open_ehr/parser/adl
|
172
|
-
"spec/lib/open_ehr/parser/adl
|
173
|
-
"spec/lib/open_ehr/parser/adl
|
174
|
-
"spec/lib/open_ehr/parser/adl
|
175
|
-
"spec/lib/open_ehr/parser/adl
|
176
|
-
"spec/lib/open_ehr/parser/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 =
|
298
|
-
s.licenses = [
|
299
|
-
s.require_paths = [
|
300
|
-
s.rubygems_version =
|
301
|
-
s.summary =
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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
|
+
>
|