Vital Signs <%== render :partial => 'narrative_block', :locals => {:entries => entries, :section => 'vitals', :value=>true} %> <% entries.each_with_index do |entry, i| -%> <%== code_display(entry, {'preferred_code_sets' => ['LOINC','SNOMED']}) %> /> <% if entry.value -%> <% if is_num?(entry.value['scalar']) -%> " <% if entry.value["units"]-%>unit="<%= entry.value["units"] %>"<% end -%>/> <% elsif is_bool?(entry.value['scalar'])%> " /> <% else -%> <%= entry.value["scalar"] %> <% end -%> <% else -%> <% end -%> <% end -%>