openehr-rails 0.1.3 → 0.1.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0035703c1e2ca869773371a17db0f0630bda20cb
|
|
4
|
+
data.tar.gz: 15ba21648d007828f4a5c248978cd3b76a681683
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 471fbb1aecb77eb141d38aa6d764a4d6897721846c3531397a00f90855a810a35aed90590045f89408403c45105233d3049eeee19a3da24adc349e8e5fe62710
|
|
7
|
+
data.tar.gz: 2fc51ab768503ac5b7242bb4e7f4e841bea3bb6aa37f804b5b3260e583f8ace5e5eae16a31015cef06d2ca428cec57cd6d834dab55aefbf998004bdd5241f0b8
|
|
@@ -162,7 +162,6 @@ LOCALE
|
|
|
162
162
|
html += "<%= @#{model_name}.#{cobj.node_id} %><br/>\n"
|
|
163
163
|
when 'DV_QUANTITY', 'DvQuantity'
|
|
164
164
|
units = value.list[0].units unless value.list.nil? or value.list.empty?
|
|
165
|
-
|
|
166
165
|
html += "<%= @#{model_name}.#{cobj.node_id} %>#{units}<br/>\n"
|
|
167
166
|
else
|
|
168
167
|
html += "<%= @#{model_name}.#{cobj.node_id} %><br/>\n"
|
|
@@ -219,7 +218,8 @@ LOCALE
|
|
|
219
218
|
when 'DV_CODED_TEXT', 'DvCodedText'
|
|
220
219
|
"<%= f.select :#{label}, #{code_list_to_hash(cobj.attributes[0].children[0].code_list)} %><br/>\n"
|
|
221
220
|
when 'DV_QUANTITY', 'DvQuantity'
|
|
222
|
-
|
|
221
|
+
units = cobj.list[0].units unless cobj.list.nil? or cobj.list.empty?
|
|
222
|
+
"<%= f.number_field :#{label} %> #{units}<br/>\n"
|
|
223
223
|
else
|
|
224
224
|
"<%= f.text_field :#{label} %><br/>\n"
|
|
225
225
|
end
|