templates/_narrative_block.c32.erb in health-data-standards-1.0.1 vs templates/_narrative_block.c32.erb in health-data-standards-2.0.0
- old
+ new
@@ -22,11 +22,23 @@
<td><%= entry.times_to_s %></td>
<% if status.present? %>
<td><%= entry.status %></td>
<% end %>
- <% if value.present? %>
- <td><%= entry.value["scalar"] %></td>
+ <% if value.present?%>
+ <td>
+ <% entry.values.each do |value| %>
+ <% if value.respond_to? :scalar %>
+ <%= value.try(:scalar) %><br/>
+ <% elsif value.respond_to? :codes %>
+ <% value.codes.each do |system, vals| %>
+ <%= system %>: <%= vals.join(',') %><br/>
+ <% end %>
+ <% else %>
+ UNKNOWN VALUE
+ <% end %>
+ <% end %>
+ </td>
<% end %>
</tr>
<%- end -%>
</tbody>
</table>
\ No newline at end of file