openehr 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openehr/am/archetype/constraint_model.rb +26 -5
- data/lib/openehr/version.rb +1 -1
- metadata +2 -2
@@ -111,9 +111,22 @@ module OpenEHR
|
|
111
111
|
end
|
112
112
|
|
113
113
|
def path
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
@path || calculate_path
|
115
|
+
end
|
116
|
+
|
117
|
+
private
|
118
|
+
|
119
|
+
def calculate_path
|
120
|
+
path_left_part = parent_path
|
121
|
+
path_left_part = '/' if path_left_part == ''
|
122
|
+
|
123
|
+
if node_id && path_left_part != '/'
|
124
|
+
path_right_part = '[' + node_id + ']'
|
125
|
+
else
|
126
|
+
path_right_part = ''
|
127
|
+
end
|
128
|
+
|
129
|
+
@path = path_left_part + path_right_part
|
117
130
|
end
|
118
131
|
end
|
119
132
|
|
@@ -149,8 +162,16 @@ module OpenEHR
|
|
149
162
|
end
|
150
163
|
|
151
164
|
def path
|
152
|
-
|
153
|
-
|
165
|
+
@path || calculate_path
|
166
|
+
end
|
167
|
+
|
168
|
+
private
|
169
|
+
|
170
|
+
def calculate_path
|
171
|
+
path_left_part = parent_path
|
172
|
+
path_left_part += '/' if path_left_part != '/'
|
173
|
+
|
174
|
+
@path = path_left_part + rm_attribute_name
|
154
175
|
end
|
155
176
|
end
|
156
177
|
|
data/lib/openehr/version.rb
CHANGED
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.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-05-
|
16
|
+
date: 2013-05-31 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rake
|