Sha256: 9bb8cbe18de06728aa893043953f8354847a5e3e6c43e564a8be02834d258cd2

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

<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>
  <%== 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.id%></id>
      <name><%= facility.name%></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 %>
  </facility>
</encounter>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
health-data-standards-0.8.1 templates/_encounter.gc32.erb
health-data-standards-0.8.0 templates/_encounter.gc32.erb