templates/_vital_sign.gc32.erb in health-data-standards-1.0.1 vs templates/_vital_sign.gc32.erb in health-data-standards-2.0.0
- old
+ new
@@ -1,7 +1,7 @@
<vitalSign xmlns="urn:hl7-org:greencda:c32">
<id><%= vital_sign.id %></id>
<%== code_display vital_sign, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
<freeText><%= vital_sign.free_text %></freeText>
<%== gc32_effective_time(vital_sign)%>
- <value amount="<%= vital_sign.value['scalar']%>" unit="<%= vital_sign.value['units'] %>" />
+ <value amount="<%= vital_sign.values.first.try(:scalar) %>" unit="<%= vital_sign.values.first.try(:units) %>" />
</vitalSign>
\ No newline at end of file