Diagnostic Results <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'results', :value=>true} %> <% entries.each_with_index do |entry, i| -%> <%== code_display(entry, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT']) %> /> <% ev = entry.values.first if ev.present? && ev.respond_to?(:scalar) -%> <% if is_num?(ev.scalar) -%> unit="<%= ev.units %>"<% end -%>/> <% elsif is_bool?(ev.scalar)%> <% else -%> <%= ev.scalar %> <% end -%> <% else -%> <% end -%> <% end -%>