templates/_encounter.gc32.erb in health-data-standards-0.8.1 vs templates/_encounter.gc32.erb in health-data-standards-1.0.0
- old
+ new
@@ -1,17 +1,11 @@
<encounter xmlns="urn:hl7-org:greencda:c32">
<id><%= encounter.id %></id>
- <code />
<%== code_display encounter, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
<% if encounter.status %>
<status code="completed"/>
<% end %>
- <effectiveTime>
- <start><%= Time.at(encounter.start_time) %></start>
- <% if encounter.end_time %>
- <end><%= Time.at(encounter.end_time) %></end>
- <% end %>
- </effectiveTime>
+ <%== gc32_effective_time(encounter)%>
<%== code_display encounter, "tag_name" => "dishcargeDisposition", 'attribute' => "discharge_disposition" %>
<%== code_display encounter, "tag_name" => "admissionType", 'attribute' => "admit_type" %>
<% if provider %>
<%= render partial: 'provider', locals: {provider: encounter.performer, tag_name: 'performer'}%>
<% end %>
\ No newline at end of file