templates/_result.gc32.erb in health-data-standards-0.8.1 vs templates/_result.gc32.erb in health-data-standards-1.0.0
- old
+ new
@@ -1,15 +1,9 @@
<result xmlns="urn:hl7-org:greencda:c32">
<id><%= result.id %></id>
-
<%== code_display result, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
- <% if result.status %>
- <status code="completed"/>
- <% end %>
-
- <effectiveTime><%= Time.at(result.time) %></effectiveTime>
-
-
+ <freeText><%= result.free_text %></freeText>
+ <%== gc32_effective_time(result)%>
<value amount="<%= result.value['scalar']%>" unit="<%= result.value['units'] %>" />
<% if result.interpretation%>
<% code = result.interpretation.first%>
<interpretation code="<%= code.last %>" codeSystem="<%= CodeSystemHelper.oid_for_code_system(code.first) %>">
<% end %>
\ No newline at end of file