open_ehr 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/History.txt +6 -0
  2. data/README.rdoc +6 -8
  3. data/VERSION +1 -1
  4. data/lib/open_ehr/am/archetype/constraint_model/primitive.rb +2 -2
  5. data/lib/open_ehr/am/archetype/ontology.rb +23 -28
  6. data/lib/open_ehr/am/archetype.rb +1 -1
  7. data/lib/open_ehr/parser/adl.rb +42 -4
  8. data/lib/open_ehr/parser/adl_grammar.tt +67 -42
  9. data/lib/open_ehr/parser/adl_parser.rb +1 -1
  10. data/lib/open_ehr/parser/cadl_grammar.tt +227 -61
  11. data/lib/open_ehr/parser/cadl_node.rb +1 -0
  12. data/lib/open_ehr/parser/dadl_grammar.tt +10 -10
  13. data/lib/open_ehr/parser/shared_token_grammar.tt +13 -13
  14. data/open_ehr.gemspec +14 -4
  15. data/spec/lib/open_ehr/am/archetype/archetype_spec.rb +1 -1
  16. data/spec/lib/open_ehr/am/archetype/ontology/archetype_ontology_spec.rb +22 -13
  17. data/spec/lib/open_ehr/parser/adl14/adl-test-SOME_TYPE.generic_type_use_node.draft.adl +1 -1
  18. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_bindings.test.adl +1 -1
  19. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref.test.adl +1 -1
  20. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_internal_ref2.test.adl +1 -1
  21. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language.test.adl +1 -1
  22. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_no_accreditation.test.adl +1 -1
  23. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_language_order_of_translation_details.test.adl +1 -1
  24. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.archetype_ontology.test.adl +1 -1
  25. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_author_language.test.adl +1 -1
  26. data/spec/lib/open_ehr/parser/adl14/adl-test-entry.translations_language_author.test.adl +1 -1
  27. data/spec/lib/open_ehr/parser/adl_archetype_internal_ref2_spec.rb +42 -0
  28. data/spec/lib/open_ehr/parser/adl_archetype_internal_ref_spec.rb +125 -0
  29. data/spec/lib/open_ehr/parser/adl_archetype_internal_ref_with_generics_spec.rb +258 -0
  30. data/spec/lib/open_ehr/parser/adl_archetype_ontology_binding_spec.rb +98 -0
  31. data/spec/lib/open_ehr/parser/adl_archetype_ontology_spec.rb +42 -0
  32. data/spec/lib/open_ehr/parser/adl_description_spec.rb +13 -2
  33. data/spec/lib/open_ehr/parser/adl_language_no_accreditation_spec.rb +66 -0
  34. data/spec/lib/open_ehr/parser/adl_language_order_spec.rb +68 -0
  35. data/spec/lib/open_ehr/parser/adl_language_spec.rb +119 -0
  36. data/spec/lib/open_ehr/parser/adl_language_translation_author_language_spec.rb +50 -0
  37. data/spec/lib/open_ehr/parser/adl_language_translation_language_author_spec.rb +46 -0
  38. data/spec/lib/open_ehr/parser/adl_parser_spec.rb +2 -2
  39. data/spec/lib/open_ehr/parser/parser_spec_helper.rb +7 -0
  40. data/spec/lib/open_ehr/rm/common/resource/translation_details_spec.rb +4 -4
  41. metadata +49 -39
  42. data/Gemfile.lock +0 -85
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_ehr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-19 00:00:00.000000000Z
13
+ date: 2011-11-22 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: xml-simple
17
- requirement: &17208044800 !ruby/object:Gem::Requirement
17
+ requirement: &17208789880 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *17208044800
25
+ version_requirements: *17208789880
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
- requirement: &17208044060 !ruby/object:Gem::Requirement
28
+ requirement: &17208788960 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *17208044060
36
+ version_requirements: *17208788960
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: locale
39
- requirement: &17208043420 !ruby/object:Gem::Requirement
39
+ requirement: &17208788020 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *17208043420
47
+ version_requirements: *17208788020
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: builder
50
- requirement: &17208042600 !ruby/object:Gem::Requirement
50
+ requirement: &17208784820 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *17208042600
58
+ version_requirements: *17208784820
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: jeweler
61
- requirement: &17208041640 !ruby/object:Gem::Requirement
61
+ requirement: &17208784100 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *17208041640
69
+ version_requirements: *17208784100
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: i18n
72
- requirement: &17208040380 !ruby/object:Gem::Requirement
72
+ requirement: &17208783140 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *17208040380
80
+ version_requirements: *17208783140
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: treetop
83
- requirement: &17208038840 !ruby/object:Gem::Requirement
83
+ requirement: &17208781800 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *17208038840
91
+ version_requirements: *17208781800
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: polyglot
94
- requirement: &17208038020 !ruby/object:Gem::Requirement
94
+ requirement: &17208780760 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *17208038020
102
+ version_requirements: *17208780760
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rdoc
105
- requirement: &17208037180 !ruby/object:Gem::Requirement
105
+ requirement: &17208779640 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :runtime
112
112
  prerelease: false
113
- version_requirements: *17208037180
113
+ version_requirements: *17208779640
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: rspec
116
- requirement: &17208036100 !ruby/object:Gem::Requirement
116
+ requirement: &17208778620 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *17208036100
124
+ version_requirements: *17208778620
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: guard-rspec
127
- requirement: &17208028880 !ruby/object:Gem::Requirement
127
+ requirement: &17208774200 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *17208028880
135
+ version_requirements: *17208774200
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: ruby-debug19
138
- requirement: &17208027180 !ruby/object:Gem::Requirement
138
+ requirement: &17208773180 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *17208027180
146
+ version_requirements: *17208773180
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: spork
149
- requirement: &17208026100 !ruby/object:Gem::Requirement
149
+ requirement: &17208771980 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: 0.9.0.rc2
155
155
  type: :development
156
156
  prerelease: false
157
- version_requirements: *17208026100
157
+ version_requirements: *17208771980
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: guard-spork
160
- requirement: &17208025060 !ruby/object:Gem::Requirement
160
+ requirement: &17208770900 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: '0'
166
166
  type: :development
167
167
  prerelease: false
168
- version_requirements: *17208025060
168
+ version_requirements: *17208770900
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: simplecov
171
- requirement: &17208024000 !ruby/object:Gem::Requirement
171
+ requirement: &17208769360 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ! '>='
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: '0'
177
177
  type: :development
178
178
  prerelease: false
179
- version_requirements: *17208024000
179
+ version_requirements: *17208769360
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: rb-inotify
182
- requirement: &17208023040 !ruby/object:Gem::Requirement
182
+ requirement: &17208767840 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ! '>='
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *17208023040
190
+ version_requirements: *17208767840
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: libnotify
193
- requirement: &17208022020 !ruby/object:Gem::Requirement
193
+ requirement: &17208745860 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ! '>='
@@ -198,7 +198,7 @@ dependencies:
198
198
  version: '0'
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *17208022020
201
+ version_requirements: *17208745860
202
202
  description: This project is an implementation of the openEHR specification on Ruby.
203
203
  email: skoba@moss.gr.jp
204
204
  executables: []
@@ -208,7 +208,6 @@ extra_rdoc_files:
208
208
  files:
209
209
  - .document
210
210
  - Gemfile
211
- - Gemfile.lock
212
211
  - Guardfile
213
212
  - History.txt
214
213
  - PostInstall.txt
@@ -413,11 +412,22 @@ files:
413
412
  - spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.reason_for_encounter.v1.adl
414
413
  - spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.summary.v1.adl
415
414
  - spec/lib/open_ehr/parser/adl14/openEHR-EHR-SECTION.vital_signs.v1.adl
415
+ - spec/lib/open_ehr/parser/adl_archetype_internal_ref2_spec.rb
416
+ - spec/lib/open_ehr/parser/adl_archetype_internal_ref_spec.rb
417
+ - spec/lib/open_ehr/parser/adl_archetype_internal_ref_with_generics_spec.rb
418
+ - spec/lib/open_ehr/parser/adl_archetype_ontology_binding_spec.rb
419
+ - spec/lib/open_ehr/parser/adl_archetype_ontology_spec.rb
416
420
  - spec/lib/open_ehr/parser/adl_description_spec.rb
417
421
  - spec/lib/open_ehr/parser/adl_identification_spec.rb
422
+ - spec/lib/open_ehr/parser/adl_language_no_accreditation_spec.rb
423
+ - spec/lib/open_ehr/parser/adl_language_order_spec.rb
424
+ - spec/lib/open_ehr/parser/adl_language_spec.rb
425
+ - spec/lib/open_ehr/parser/adl_language_translation_author_language_spec.rb
426
+ - spec/lib/open_ehr/parser/adl_language_translation_language_author_spec.rb
418
427
  - spec/lib/open_ehr/parser/adl_parser_spec.rb
419
428
  - spec/lib/open_ehr/parser/adl_path_spec.rb
420
429
  - spec/lib/open_ehr/parser/base_spec.rb
430
+ - spec/lib/open_ehr/parser/parser_spec_helper.rb
421
431
  - spec/lib/open_ehr/rm/common/archetyped/archetyped_spec.rb
422
432
  - spec/lib/open_ehr/rm/common/archetyped/feeder_audit_details_spec.rb
423
433
  - spec/lib/open_ehr/rm/common/archetyped/feeder_audit_spec.rb
@@ -549,7 +559,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
549
559
  version: '0'
550
560
  segments:
551
561
  - 0
552
- hash: -2889533999169533225
562
+ hash: 2598870471045101179
553
563
  required_rubygems_version: !ruby/object:Gem::Requirement
554
564
  none: false
555
565
  requirements:
@@ -558,7 +568,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
558
568
  version: '0'
559
569
  requirements: []
560
570
  rubyforge_project:
561
- rubygems_version: 1.8.10
571
+ rubygems_version: 1.8.11
562
572
  signing_key:
563
573
  specification_version: 3
564
574
  summary: Ruby implementation of the openEHR specification
data/Gemfile.lock DELETED
@@ -1,85 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activesupport (3.1.2)
5
- multi_json (~> 1.0)
6
- archive-tar-minitar (0.5.2)
7
- builder (3.0.0)
8
- columnize (0.3.4)
9
- diff-lcs (1.1.3)
10
- ffi (1.0.11)
11
- git (1.2.5)
12
- guard (0.8.8)
13
- thor (~> 0.14.6)
14
- guard-rspec (0.5.4)
15
- guard (>= 0.8.4)
16
- guard-spork (0.3.1)
17
- guard (>= 0.8.4)
18
- spork (>= 0.8.4)
19
- i18n (0.6.0)
20
- jeweler (1.6.4)
21
- bundler (~> 1.0)
22
- git (>= 1.2.5)
23
- rake
24
- json (1.6.1)
25
- libnotify (0.5.9)
26
- linecache19 (0.5.12)
27
- ruby_core_source (>= 0.1.4)
28
- locale (2.0.5)
29
- multi_json (1.0.3)
30
- polyglot (0.3.3)
31
- rake (0.9.2.2)
32
- rb-inotify (0.8.8)
33
- ffi (>= 0.5.0)
34
- rdoc (3.11)
35
- json (~> 1.4)
36
- rspec (2.7.0)
37
- rspec-core (~> 2.7.0)
38
- rspec-expectations (~> 2.7.0)
39
- rspec-mocks (~> 2.7.0)
40
- rspec-core (2.7.1)
41
- rspec-expectations (2.7.0)
42
- diff-lcs (~> 1.1.2)
43
- rspec-mocks (2.7.0)
44
- ruby-debug-base19 (0.11.25)
45
- columnize (>= 0.3.1)
46
- linecache19 (>= 0.5.11)
47
- ruby_core_source (>= 0.1.4)
48
- ruby-debug19 (0.11.6)
49
- columnize (>= 0.3.1)
50
- linecache19 (>= 0.5.11)
51
- ruby-debug-base19 (>= 0.11.19)
52
- ruby_core_source (0.1.5)
53
- archive-tar-minitar (>= 0.5.2)
54
- simplecov (0.5.4)
55
- multi_json (~> 1.0.3)
56
- simplecov-html (~> 0.5.3)
57
- simplecov-html (0.5.3)
58
- spork (0.9.0.rc9)
59
- thor (0.14.6)
60
- treetop (1.4.10)
61
- polyglot
62
- polyglot (>= 0.3.1)
63
- xml-simple (1.1.1)
64
-
65
- PLATFORMS
66
- ruby
67
-
68
- DEPENDENCIES
69
- activesupport
70
- builder
71
- guard-rspec
72
- guard-spork
73
- i18n
74
- jeweler
75
- libnotify
76
- locale
77
- polyglot
78
- rb-inotify
79
- rdoc
80
- rspec
81
- ruby-debug19
82
- simplecov
83
- spork (>= 0.9.0.rc2)
84
- treetop
85
- xml-simple