openehr-rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53a7dff33dabbabbb65f0f735ae09d998eda0668
4
- data.tar.gz: 4149a0ce1a3fce436787b7fbb722e9973c1f5933
3
+ metadata.gz: 0035703c1e2ca869773371a17db0f0630bda20cb
4
+ data.tar.gz: 15ba21648d007828f4a5c248978cd3b76a681683
5
5
  SHA512:
6
- metadata.gz: c21500960672bfa606fa3cad2f674c5a4dc34db07ad204cf8017cdbccc807618841c35058203d1b1095dc15315b06827af2b16214a2fcb3c9ea4be9b30d83f1d
7
- data.tar.gz: 1c7a6138ce73c64fe222877c54c4ec3a996e6800bba30d9d9d37e7a28c09a53d2ef16ae91f3e9d364443946d27d80c0a36c7f205e54ecc7cbc3b2e01eb62a943
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
- "<%= f.number_field :#{label} %> #{cobj.list[0].units}<br/>\n"
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
@@ -1,5 +1,5 @@
1
1
  module OpenEHR
2
2
  module Rails
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openehr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinji KOBAYASHI