templates/_result.gc32.erb in health-data-standards-1.0.1 vs templates/_result.gc32.erb in health-data-standards-2.0.0

- old
+ new

@@ -1,10 +1,12 @@ <result xmlns="urn:hl7-org:greencda:c32"> <id><%= result.id %></id> <%== code_display result, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %> <freeText><%= result.free_text %></freeText> <%== gc32_effective_time(result)%> - <value amount="<%= result.value['scalar']%>" unit="<%= result.value['units'] %>" /> + <% if result.values.first %> + <value amount="<%= result.values.first.scalar %>" unit="<%= result.values.first.units %>" /> + <% end %> <% if result.interpretation%> <% code = result.interpretation.first%> <interpretation code="<%= code.last %>" codeSystem="<%= CodeSystemHelper.oid_for_code_system(code.first) %>"> <% end %> <% if result.reference_range %> \ No newline at end of file