openehr 1.2.5 → 1.2.6
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.
- checksums.yaml +4 -4
- data/README.rdoc +5 -7
- data/lib/openehr/assumed_library_types.rb +2 -0
- data/lib/openehr/version.rb +1 -1
- data/spec/lib/openehr/assumed_library_types/interval_spec.rb +4 -4
- data/spec/lib/openehr/serializer/openEHR-EHR-SECTION.test.v1.xml +2 -0
- data/spec/lib/openehr/serializer/xml_serializer_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9006b327e8d84275550081cf698751c6331b12f8
|
4
|
+
data.tar.gz: 58f770649e2463e7351227bd72781ae0dcf0f61f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea0d574aa811b2b081830146e34e16c04633d8ebc11bf406488a28da47cb6dbbde5502078ef7b7d222b884eee1c8856c55c96a39b6dc5d2760ede4bafc1ded72
|
7
|
+
data.tar.gz: 8eb160eda53ec3069c0fe9ff2aeed6f5d886cdb69c60ef044d55fe3a7b218dea291ea43f0e90c84781a2b9c7f910d15f84b2830a8adf47e271a967563506cd16
|
data/README.rdoc
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
{<img src="https://travis-ci.org/skoba/openehr-ruby.png?branch=master" alt="Build Status" />}[https://travis-ci.org/skoba/openehr-ruby]
|
1
2
|
= Synopsis
|
2
3
|
|
3
4
|
A Ruby implementation of the openEHR specifications
|
@@ -6,10 +7,9 @@ A Ruby implementation of the openEHR specifications
|
|
6
7
|
|
7
8
|
= Requirements
|
8
9
|
|
9
|
-
* Supports Ruby 1.9.3, 2.0.0 or
|
10
|
+
* Supports Ruby 1.9.3, 2.0.0 or equivalents.
|
10
11
|
* Developed with CRuby 2.0.0, 1.9.3 on FreeBSD and Linux.
|
11
|
-
*
|
12
|
-
but not confirmed.
|
12
|
+
* Ruby 1.8 or earlier are not supported.
|
13
13
|
|
14
14
|
== DESCRIPTION:
|
15
15
|
|
@@ -22,8 +22,6 @@ as open_ehr, but changed to openehr from release 1.1.0. 1.0.x versions
|
|
22
22
|
are obsoleted.
|
23
23
|
The intention is to have a sample EHR to utilize all over the world
|
24
24
|
quickly with Ruby on Rails for many other porject.
|
25
|
-
From this release we changed license from MPL 1.1 to Apache 2.0 license,
|
26
|
-
as regards to the other openEHR artefact license.
|
27
25
|
|
28
26
|
This package includes:
|
29
27
|
* ADL 1.4 parser
|
@@ -54,7 +52,7 @@ openEHR.jp, <http://openehr.jp>
|
|
54
52
|
reference implementation project of the openEHR.
|
55
53
|
|
56
54
|
= Contributors
|
57
|
-
Thanks for pull
|
55
|
+
Thanks for pull requests on GitHub.
|
58
56
|
|
59
57
|
* Michael Deryugin
|
60
58
|
* Dmitry Lavrov
|
@@ -69,7 +67,7 @@ All Rights Reserved.
|
|
69
67
|
|
70
68
|
= License
|
71
69
|
|
72
|
-
This product is under Apache 2.0 license
|
70
|
+
This product is released under Apache 2.0 license
|
73
71
|
|
74
72
|
Copyright [2012,2013] Shinji Kobayashi, Akimichi Tatsukawa, openEHR.jp
|
75
73
|
|
@@ -33,6 +33,7 @@ module OpenEHR
|
|
33
33
|
if (lower == nil) && (lower_included != nil)
|
34
34
|
raise ArgumentError, "lower is not set"
|
35
35
|
end
|
36
|
+
lower_included = true if !lower.nil? && lower_included.nil?
|
36
37
|
@lower_included = lower_included
|
37
38
|
end
|
38
39
|
|
@@ -48,6 +49,7 @@ module OpenEHR
|
|
48
49
|
if (@upper.nil?) && (upper_included != nil)
|
49
50
|
raise ArgumentError, "upper is not set"
|
50
51
|
end
|
52
|
+
upper_included = true if !upper.nil? && upper_included.nil?
|
51
53
|
@upper_included = upper_included
|
52
54
|
end
|
53
55
|
|
data/lib/openehr/version.rb
CHANGED
@@ -43,12 +43,12 @@ describe Interval do
|
|
43
43
|
@interval.has?(-1).should_not be_true
|
44
44
|
end
|
45
45
|
|
46
|
-
it 'should
|
47
|
-
@interval.has?(10).
|
46
|
+
it 'should have 10' do
|
47
|
+
@interval.has?(10).should be_true
|
48
48
|
end
|
49
49
|
|
50
|
-
it 'should
|
51
|
-
@interval.has?(1).
|
50
|
+
it 'should have 1' do
|
51
|
+
@interval.has?(1).should be_true
|
52
52
|
end
|
53
53
|
|
54
54
|
it 'should be equal lower and upper is same' do
|
@@ -29,6 +29,8 @@
|
|
29
29
|
<definition>
|
30
30
|
<rm_type_name>SECTION</rm_type_name>
|
31
31
|
<occurrence>
|
32
|
+
<lower_included>true</lower_included>
|
33
|
+
<upper_included>true</upper_included>
|
32
34
|
<lower_unbounded>false</lower_unbounded>
|
33
35
|
<upper_unbounded>false</upper_unbounded>
|
34
36
|
<lower>1</lower>
|
@@ -16,8 +16,8 @@ describe XMLSerializer do
|
|
16
16
|
end
|
17
17
|
@sample_header = xml.unindent(2, 11, 2)
|
18
18
|
@sample_description = xml.unindent(12, 27, 2)
|
19
|
-
@sample_definition = xml.unindent(28,
|
20
|
-
@sample_ontology = xml.unindent(
|
19
|
+
@sample_definition = xml.unindent(28, 39, 2)
|
20
|
+
@sample_ontology = xml.unindent(40, 58, 2)
|
21
21
|
@sample_xml = xml.join
|
22
22
|
xml_file.close
|
23
23
|
@archetype = sample_archetype
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openehr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinji KOBAYASHI
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-03-
|
15
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|