{% for e in encounters %} {% set _reason = (e.reason) ? " - " ~ e.reason|text|nl2br : "" %}

{{ e.category|text }}

{{ "Reason For Visit"|xlt }}{{ _reason }}
{{ e.provider|text }} ({{ e.facility|text }})
{% if e.posCode %} {{ "POS Code"|xlt }} - {{ e.posCode|text }} {% endif %} {% if e.referringProvider %}
{{ "Referring Provider"|xlt }} - {{ e.referringProvider|text }} {% endif %} {% endfor %}