openehr 1.2.13 → 1.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fd68d06f20abc59dbc6c1d4646a881d60e3d70e4
4
+ data.tar.gz: e4b4b7ef4d904033900a4a703d3cfd43633e05a2
5
+ SHA512:
6
+ metadata.gz: 46b5bacfd54c2fdf799f670e3a907979278397e433f513aefed32763655191f629dca547aad841a382d4b393a5f36d89f70eafe8509a720a5462f54295b8a4f8
7
+ data.tar.gz: 243c0fe34c0d351aff28ba217abfc1acf00aa12795a2500dd2e69759d84bfdca2b7c0cb54ac438ed5249c992b804cc089b4c1ceae463e1f4150a4af65b62fa09
@@ -9,7 +9,7 @@ A Ruby implementation of the openEHR specifications
9
9
 
10
10
  * Supports Ruby 1.9.3, 2.0.0 or equivalents.
11
11
  * Developed with CRuby 2.0.0, 1.9.3 on FreeBSD and Linux.
12
- * Ruby 1.8 or earlier are not supported.
12
+ * Ruby 1.8 or earlier are no longer supported.
13
13
 
14
14
  == DESCRIPTION:
15
15
 
@@ -43,7 +43,7 @@ and so on. We postponed to implement such classes.
43
43
  Terminology and Demographic server will be implemented in other
44
44
  projects.
45
45
 
46
- = Authors
46
+ = Original authors
47
47
  * Main codes
48
48
  Shinji Kobayashi, Akimichi Tatsukawa
49
49
  openEHR.jp, <http://openehr.jp>
@@ -60,8 +60,8 @@ Thanks for pull requests on GitHub.
60
60
 
61
61
  = Copyright
62
62
  The software, including all files in this directory and
63
- subdirectories is copyrighted to the original authors and
64
- contributors, 2011-2013.
63
+ subdirectories except ADL files is copyrighted to the
64
+ original authors and contributors, 2011-2013.
65
65
 
66
66
  All Rights Reserved.
67
67
 
@@ -69,7 +69,7 @@ All Rights Reserved.
69
69
 
70
70
  This product is released under Apache 2.0 license
71
71
 
72
- Copyright [2012,2013] Shinji Kobayashi, Akimichi Tatsukawa, openEHR.jp
72
+ Copyright [2012,2013] openEHR Ruby implementation project.
73
73
 
74
74
  Licensed under the Apache License, Version 2.0 (the "License");
75
75
  you may not use this file except in compliance with the License.
@@ -161,6 +161,10 @@ module OpenEHR
161
161
  end if children
162
162
  end
163
163
 
164
+ def has_children?
165
+ !@children.nil? and !@children.empty?
166
+ end
167
+
164
168
  def path
165
169
  @path || calculate_path
166
170
  end
@@ -244,6 +248,10 @@ module OpenEHR
244
248
  @attributes = [] if attributes.nil?
245
249
  end
246
250
 
251
+ def has_attributes?
252
+ !attributes.nil? and !attributes.empty?
253
+ end
254
+
247
255
  def any_allowed?
248
256
  return (@attributes.nil? or @attributes.empty?)
249
257
  end
@@ -192,6 +192,23 @@ module OpenEHR
192
192
  self.day_validity = args[:day_validity]
193
193
  self.month_validity = args[:month_validity]
194
194
  end
195
+
196
+ def range=(range)
197
+ consistency(@pattern, range)
198
+ @range = range
199
+ end
200
+
201
+ def pattern=(pattern)
202
+ consistency(pattern, @range)
203
+ @pattern = pattern
204
+ end
205
+
206
+ protected
207
+ def consistency(pattern, range)
208
+ if pattern.nil? == range.nil?
209
+ raise ArgumentError, 'consistency invaild'
210
+ end
211
+ end
195
212
  end
196
213
 
197
214
  module CTimeModule
@@ -11,6 +11,11 @@ module OpenEHR
11
11
  raise NotImplementedError
12
12
  end
13
13
  end
14
+
15
+ class ParseError < StandardError
16
+
17
+ end
18
+
14
19
  require_relative 'parser/adl_parser'
15
20
  end
16
21
  end
@@ -159,7 +159,7 @@ module OpenEHR
159
159
  details[lang] = item
160
160
  end
161
161
  oc = params['other_contributors']
162
- if oc.instance_of? Hash
162
+ if oc.instance_of? Hash
163
163
  oc = oc.values
164
164
  end
165
165
  OpenEHR::RM::Common::Resource::ResourceDescription.new(
@@ -1,3 +1,3 @@
1
1
  module OpenEHR
2
- VERSION = "1.2.13"
2
+ VERSION = "1.2.14"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openehr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.13
5
- prerelease:
4
+ version: 1.2.14
6
5
  platform: ruby
7
6
  authors:
8
7
  - Shinji KOBAYASHI
@@ -13,12 +12,11 @@ authors:
13
12
  autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
- date: 2013-05-31 00:00:00.000000000 Z
15
+ date: 2013-07-21 00:00:00.000000000 Z
17
16
  dependencies:
18
17
  - !ruby/object:Gem::Dependency
19
18
  name: rake
20
19
  requirement: !ruby/object:Gem::Requirement
21
- none: false
22
20
  requirements:
23
21
  - - '>='
24
22
  - !ruby/object:Gem::Version
@@ -26,7 +24,6 @@ dependencies:
26
24
  type: :runtime
27
25
  prerelease: false
28
26
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
27
  requirements:
31
28
  - - '>='
32
29
  - !ruby/object:Gem::Version
@@ -34,7 +31,6 @@ dependencies:
34
31
  - !ruby/object:Gem::Dependency
35
32
  name: xml-simple
36
33
  requirement: !ruby/object:Gem::Requirement
37
- none: false
38
34
  requirements:
39
35
  - - '>='
40
36
  - !ruby/object:Gem::Version
@@ -42,7 +38,6 @@ dependencies:
42
38
  type: :runtime
43
39
  prerelease: false
44
40
  version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
41
  requirements:
47
42
  - - '>='
48
43
  - !ruby/object:Gem::Version
@@ -50,7 +45,6 @@ dependencies:
50
45
  - !ruby/object:Gem::Dependency
51
46
  name: activesupport
52
47
  requirement: !ruby/object:Gem::Requirement
53
- none: false
54
48
  requirements:
55
49
  - - '>='
56
50
  - !ruby/object:Gem::Version
@@ -58,7 +52,6 @@ dependencies:
58
52
  type: :runtime
59
53
  prerelease: false
60
54
  version_requirements: !ruby/object:Gem::Requirement
61
- none: false
62
55
  requirements:
63
56
  - - '>='
64
57
  - !ruby/object:Gem::Version
@@ -66,7 +59,6 @@ dependencies:
66
59
  - !ruby/object:Gem::Dependency
67
60
  name: locale
68
61
  requirement: !ruby/object:Gem::Requirement
69
- none: false
70
62
  requirements:
71
63
  - - '>='
72
64
  - !ruby/object:Gem::Version
@@ -74,7 +66,6 @@ dependencies:
74
66
  type: :runtime
75
67
  prerelease: false
76
68
  version_requirements: !ruby/object:Gem::Requirement
77
- none: false
78
69
  requirements:
79
70
  - - '>='
80
71
  - !ruby/object:Gem::Version
@@ -82,7 +73,6 @@ dependencies:
82
73
  - !ruby/object:Gem::Dependency
83
74
  name: builder
84
75
  requirement: !ruby/object:Gem::Requirement
85
- none: false
86
76
  requirements:
87
77
  - - '>='
88
78
  - !ruby/object:Gem::Version
@@ -90,7 +80,6 @@ dependencies:
90
80
  type: :runtime
91
81
  prerelease: false
92
82
  version_requirements: !ruby/object:Gem::Requirement
93
- none: false
94
83
  requirements:
95
84
  - - '>='
96
85
  - !ruby/object:Gem::Version
@@ -98,7 +87,6 @@ dependencies:
98
87
  - !ruby/object:Gem::Dependency
99
88
  name: i18n
100
89
  requirement: !ruby/object:Gem::Requirement
101
- none: false
102
90
  requirements:
103
91
  - - '>='
104
92
  - !ruby/object:Gem::Version
@@ -106,7 +94,6 @@ dependencies:
106
94
  type: :runtime
107
95
  prerelease: false
108
96
  version_requirements: !ruby/object:Gem::Requirement
109
- none: false
110
97
  requirements:
111
98
  - - '>='
112
99
  - !ruby/object:Gem::Version
@@ -114,23 +101,20 @@ dependencies:
114
101
  - !ruby/object:Gem::Dependency
115
102
  name: treetop
116
103
  requirement: !ruby/object:Gem::Requirement
117
- none: false
118
104
  requirements:
119
- - - '>='
105
+ - - '='
120
106
  - !ruby/object:Gem::Version
121
- version: '0'
107
+ version: 1.4.12
122
108
  type: :runtime
123
109
  prerelease: false
124
110
  version_requirements: !ruby/object:Gem::Requirement
125
- none: false
126
111
  requirements:
127
- - - '>='
112
+ - - '='
128
113
  - !ruby/object:Gem::Version
129
- version: '0'
114
+ version: 1.4.12
130
115
  - !ruby/object:Gem::Dependency
131
116
  name: polyglot
132
117
  requirement: !ruby/object:Gem::Requirement
133
- none: false
134
118
  requirements:
135
119
  - - '>='
136
120
  - !ruby/object:Gem::Version
@@ -138,7 +122,6 @@ dependencies:
138
122
  type: :runtime
139
123
  prerelease: false
140
124
  version_requirements: !ruby/object:Gem::Requirement
141
- none: false
142
125
  requirements:
143
126
  - - '>='
144
127
  - !ruby/object:Gem::Version
@@ -146,7 +129,6 @@ dependencies:
146
129
  - !ruby/object:Gem::Dependency
147
130
  name: rdoc
148
131
  requirement: !ruby/object:Gem::Requirement
149
- none: false
150
132
  requirements:
151
133
  - - '>='
152
134
  - !ruby/object:Gem::Version
@@ -154,7 +136,6 @@ dependencies:
154
136
  type: :runtime
155
137
  prerelease: false
156
138
  version_requirements: !ruby/object:Gem::Requirement
157
- none: false
158
139
  requirements:
159
140
  - - '>='
160
141
  - !ruby/object:Gem::Version
@@ -162,7 +143,6 @@ dependencies:
162
143
  - !ruby/object:Gem::Dependency
163
144
  name: rspec
164
145
  requirement: !ruby/object:Gem::Requirement
165
- none: false
166
146
  requirements:
167
147
  - - '>='
168
148
  - !ruby/object:Gem::Version
@@ -170,7 +150,6 @@ dependencies:
170
150
  type: :development
171
151
  prerelease: false
172
152
  version_requirements: !ruby/object:Gem::Requirement
173
- none: false
174
153
  requirements:
175
154
  - - '>='
176
155
  - !ruby/object:Gem::Version
@@ -178,7 +157,6 @@ dependencies:
178
157
  - !ruby/object:Gem::Dependency
179
158
  name: cucumber
180
159
  requirement: !ruby/object:Gem::Requirement
181
- none: false
182
160
  requirements:
183
161
  - - '>='
184
162
  - !ruby/object:Gem::Version
@@ -186,7 +164,6 @@ dependencies:
186
164
  type: :development
187
165
  prerelease: false
188
166
  version_requirements: !ruby/object:Gem::Requirement
189
- none: false
190
167
  requirements:
191
168
  - - '>='
192
169
  - !ruby/object:Gem::Version
@@ -194,7 +171,6 @@ dependencies:
194
171
  - !ruby/object:Gem::Dependency
195
172
  name: guard
196
173
  requirement: !ruby/object:Gem::Requirement
197
- none: false
198
174
  requirements:
199
175
  - - '>='
200
176
  - !ruby/object:Gem::Version
@@ -202,7 +178,6 @@ dependencies:
202
178
  type: :development
203
179
  prerelease: false
204
180
  version_requirements: !ruby/object:Gem::Requirement
205
- none: false
206
181
  requirements:
207
182
  - - '>='
208
183
  - !ruby/object:Gem::Version
@@ -210,23 +185,20 @@ dependencies:
210
185
  - !ruby/object:Gem::Dependency
211
186
  name: guard-rspec
212
187
  requirement: !ruby/object:Gem::Requirement
213
- none: false
214
188
  requirements:
215
- - - ~>
189
+ - - '>='
216
190
  - !ruby/object:Gem::Version
217
- version: 2.4.0
191
+ version: '0'
218
192
  type: :development
219
193
  prerelease: false
220
194
  version_requirements: !ruby/object:Gem::Requirement
221
- none: false
222
195
  requirements:
223
- - - ~>
196
+ - - '>='
224
197
  - !ruby/object:Gem::Version
225
- version: 2.4.0
198
+ version: '0'
226
199
  - !ruby/object:Gem::Dependency
227
200
  name: guard-cucumber
228
201
  requirement: !ruby/object:Gem::Requirement
229
- none: false
230
202
  requirements:
231
203
  - - '>='
232
204
  - !ruby/object:Gem::Version
@@ -234,7 +206,6 @@ dependencies:
234
206
  type: :development
235
207
  prerelease: false
236
208
  version_requirements: !ruby/object:Gem::Requirement
237
- none: false
238
209
  requirements:
239
210
  - - '>='
240
211
  - !ruby/object:Gem::Version
@@ -242,7 +213,6 @@ dependencies:
242
213
  - !ruby/object:Gem::Dependency
243
214
  name: spork
244
215
  requirement: !ruby/object:Gem::Requirement
245
- none: false
246
216
  requirements:
247
217
  - - '>'
248
218
  - !ruby/object:Gem::Version
@@ -250,7 +220,6 @@ dependencies:
250
220
  type: :development
251
221
  prerelease: false
252
222
  version_requirements: !ruby/object:Gem::Requirement
253
- none: false
254
223
  requirements:
255
224
  - - '>'
256
225
  - !ruby/object:Gem::Version
@@ -258,7 +227,6 @@ dependencies:
258
227
  - !ruby/object:Gem::Dependency
259
228
  name: guard-spork
260
229
  requirement: !ruby/object:Gem::Requirement
261
- none: false
262
230
  requirements:
263
231
  - - '>='
264
232
  - !ruby/object:Gem::Version
@@ -266,7 +234,6 @@ dependencies:
266
234
  type: :development
267
235
  prerelease: false
268
236
  version_requirements: !ruby/object:Gem::Requirement
269
- none: false
270
237
  requirements:
271
238
  - - '>='
272
239
  - !ruby/object:Gem::Version
@@ -274,7 +241,6 @@ dependencies:
274
241
  - !ruby/object:Gem::Dependency
275
242
  name: simplecov
276
243
  requirement: !ruby/object:Gem::Requirement
277
- none: false
278
244
  requirements:
279
245
  - - '>='
280
246
  - !ruby/object:Gem::Version
@@ -282,7 +248,6 @@ dependencies:
282
248
  type: :development
283
249
  prerelease: false
284
250
  version_requirements: !ruby/object:Gem::Requirement
285
- none: false
286
251
  requirements:
287
252
  - - '>='
288
253
  - !ruby/object:Gem::Version
@@ -290,23 +255,20 @@ dependencies:
290
255
  - !ruby/object:Gem::Dependency
291
256
  name: listen
292
257
  requirement: !ruby/object:Gem::Requirement
293
- none: false
294
258
  requirements:
295
- - - '='
259
+ - - '>='
296
260
  - !ruby/object:Gem::Version
297
- version: 0.6.0
261
+ version: '0'
298
262
  type: :development
299
263
  prerelease: false
300
264
  version_requirements: !ruby/object:Gem::Requirement
301
- none: false
302
265
  requirements:
303
- - - '='
266
+ - - '>='
304
267
  - !ruby/object:Gem::Version
305
- version: 0.6.0
268
+ version: '0'
306
269
  - !ruby/object:Gem::Dependency
307
270
  name: rb-kqueue
308
271
  requirement: !ruby/object:Gem::Requirement
309
- none: false
310
272
  requirements:
311
273
  - - '>='
312
274
  - !ruby/object:Gem::Version
@@ -314,7 +276,6 @@ dependencies:
314
276
  type: :development
315
277
  prerelease: false
316
278
  version_requirements: !ruby/object:Gem::Requirement
317
- none: false
318
279
  requirements:
319
280
  - - '>='
320
281
  - !ruby/object:Gem::Version
@@ -322,7 +283,6 @@ dependencies:
322
283
  - !ruby/object:Gem::Dependency
323
284
  name: libnotify
324
285
  requirement: !ruby/object:Gem::Requirement
325
- none: false
326
286
  requirements:
327
287
  - - '>='
328
288
  - !ruby/object:Gem::Version
@@ -330,7 +290,6 @@ dependencies:
330
290
  type: :development
331
291
  prerelease: false
332
292
  version_requirements: !ruby/object:Gem::Requirement
333
- none: false
334
293
  requirements:
335
294
  - - '>='
336
295
  - !ruby/object:Gem::Version
@@ -398,27 +357,26 @@ files:
398
357
  homepage: http://openehr.jp
399
358
  licenses:
400
359
  - Apache 2.0
360
+ metadata: {}
401
361
  post_install_message:
402
362
  rdoc_options: []
403
363
  require_paths:
404
364
  - lib
405
365
  required_ruby_version: !ruby/object:Gem::Requirement
406
- none: false
407
366
  requirements:
408
367
  - - '>='
409
368
  - !ruby/object:Gem::Version
410
369
  version: '0'
411
370
  required_rubygems_version: !ruby/object:Gem::Requirement
412
- none: false
413
371
  requirements:
414
372
  - - '>='
415
373
  - !ruby/object:Gem::Version
416
374
  version: '0'
417
375
  requirements: []
418
376
  rubyforge_project:
419
- rubygems_version: 1.8.25
377
+ rubygems_version: 2.0.5
420
378
  signing_key:
421
- specification_version: 3
379
+ specification_version: 4
422
380
  summary: Ruby implementation of the openEHR specification
423
381
  test_files: []
424
382
  has_rdoc: