Case {{ linked_case.pk }} {% if is_current %} Current {% endif %} {% if linked_case.open_access %} Open access {% else %} Restricted {% endif %} {% if linked_case.verified %} Verified {% endif %} {% if linked_case.archive %} Archived {% endif %}

{{ linked_case.title|default:"Untitled case" }}

{% if relation_label %}
{{ relation_label }}
{% endif %}
{% if relative_label %}
Timeline {{ relative_label.text }}
{% elif linked_case.get_effective_study_date %}
Study date {{ linked_case.get_effective_study_date|date:"Y-m-d" }}
{% elif linked_case.published_date %}
Published {{ linked_case.published_date|date:"Y-m-d" }}
{% else %}
Created {{ linked_case.created_date|date:"Y-m-d" }}
{% endif %} {% if linked_case.diagnostic_certainty %}
Certainty: {{ linked_case.get_diagnostic_certainty_display }}
{% endif %}
{% if linked_case.description %}

{{ linked_case.description|striptags|truncatechars:220 }}

{% elif linked_case.history %}

{{ linked_case.history|striptags|truncatechars:220 }}

{% endif %}
{% if linked_case.subspecialty.all %}
Subspecialty {% for item in linked_case.subspecialty.all %} {{ item }} {% empty %}{% endfor %}
{% endif %} {% if linked_case.condition.all %}
Condition {% for item in linked_case.condition.all|slice:":4" %} {{ item }} {% endfor %} {% if linked_case.condition.count > 4 %} +{{ linked_case.condition.count|add:-4 }} more {% endif %}
{% endif %} {% if linked_case.presentation.all %}
Presentation {% for item in linked_case.presentation.all|slice:":4" %} {{ item }} {% endfor %} {% if linked_case.presentation.count > 4 %} +{{ linked_case.presentation.count|add:-4 }} more {% endif %}
{% endif %}
Series {{ linked_case.get_ordered_series|length }} linked
{% with ordered_series=linked_case.get_ordered_series %} {% if ordered_series %}
{% for series in ordered_series|slice:":4" %}
{{ series.description|default:series.examination }}
{{ series.modality }}{% if series.examination %} · {{ series.examination }}{% endif %}{% if series.plane %} · {{ series.plane }}{% endif %}
#{{ forloop.counter }}
{% endfor %}
{% if ordered_series|length > 4 %}
Showing 4 of {{ ordered_series|length }} linked series.
{% endif %} {% else %}
No series linked to this case.
{% endif %} {% endwith %}