{% comment %}
if we're looking at a patient subrecord and the patient exists use the patient as the parent
otherwise use the episode as the parent
{% endcomment %}
{% if is_patient_subrecord %}
{% else %}
{% endif %}
{{ title }}
{% if singleton %}
{% else %}
{% endif %}