<%= encounter.id %>
<%== code_display encounter, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT'] %>
<% if encounter.status %>
<% end %>
<%= Time.at(encounter.start_time) %>
<% if encounter.end_time %>
<%= Time.at(encounter.end_time) %>
<% end %>
<%== 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 %>
<% facility = encounter.facility %>
<% if facility %>
<%= facility.id%>
<%= facility.name%>
<% facility.addresses.each do |addr| %>
<%= render :partial => "address", locals: {address: addr} %>
<% end %>
<% facility.telecoms.each do |tele| %>
<%= render :partial => "telecom", locals: {telecom: tele} %>
<% end %>
<% end %>