templates/cat1/_2.16.840.1.113883.10.20.24.3.40.cat1.erb in health-data-standards-3.3.0 vs templates/cat1/_2.16.840.1.113883.10.20.24.3.40.cat1.erb in health-data-standards-3.4.0
- old
+ new
@@ -1,5 +1,8 @@
+<% vals = entry.values.empty? ? [nil] : entry.values
+ vals.each do |value|
+ %>
<entry>
<!--Laboratory test, result -->
<observation classCode="OBS" moodCode="EVN">
<!-- Result Observation (consolidation) template -->
<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
@@ -11,8 +14,9 @@
<statusCode code="completed"/>
<effectiveTime>
<low <%= value_or_null_flavor(entry.start_time) %>/>
<high <%= value_or_null_flavor(entry.end_time) %>/>
</effectiveTime>
- <%== render(:partial => 'result_value', :locals => {:values => [entry.values.first], :result_oids=>result_oids}) %>
+ <%== render(:partial => 'result_value', :locals => {:values => [value], :result_oids=>result_oids}) %>
</observation>
-</entry>
+</entry>
+<% end %>
\ No newline at end of file