{% extends "atlas/base.html" %} {% load crispy_forms_tags %} {% block content %}

Linked Cases Overview

Review the full case chain around this study, with quick access to related cases and their linked series.

Open current case {% if direct_previous %} Previous in chain {% endif %} {% if direct_next %} Next in chain {% endif %} {% if can_edit_chain and not show_case_editor %} Open case series editor {% endif %} {% if show_case_editor %} Hide case series editor {% endif %} {% if can_edit_chain and not show_study_dates_editor %} Open study dates editor {% endif %} {% if show_study_dates_editor %} Hide study dates editor {% endif %} {% if can_edit_chain and not show_reorder_editor %} Open case reorder editor {% endif %} {% if show_reorder_editor %} Hide case reorder editor {% endif %}
{% if can_edit_chain and show_study_dates_editor %}

Study Dates

Edit each case date directly, or use the copy action to apply one case date to the rest of the linked chain.

{% if anchor_date %}
Relative offsets are measured from {{ anchor_date|date:"Y-m-d" }}.
{% endif %}
{% csrf_token %}
{% for row in linked_case_rows %} {% endfor %}
Case Study date Relative Actions
{{ row.case.title|default:"Untitled case" }}
Case {{ row.case.pk }}{% if row.is_current %} · current{% endif %}
{% if row.relative_label %} {{ row.relative_label.text }} {% else %} No anchor {% endif %}
{% endif %} {% if can_edit_chain and show_reorder_editor %}

Reorder Cases

Drag and drop cases to reorder them, or use the Up/Down buttons, then click Save.

{% csrf_token %}
    {% for linked_case in chain_cases %}
  • Case {{ linked_case.pk }}: {{ linked_case.title|default:"Untitled case" }} {% if linked_case.pk == current_case.pk %}Current{% endif %}
  • {% endfor %}
{% endif %} {% if show_case_editor and case_editor_formset %}

Case Series Editor

Edit full case details across this linked chain in one pass, then optionally copy a single field from one case to every other case.

Editable: {{ editable_case_count }} {% if locked_case_count %} · Read-only: {{ locked_case_count }}{% endif %}
{% csrf_token %} {{ case_editor_formset.management_form }}
Apply runs after saving any edits you make below.
{% for row in case_editor_rows %}

{{ row.form|crispy }}
{% endfor %}
{% endif %}
Current case {{ current_index }} of {{ chain_total }} {% if previous_cases %} {{ previous_cases|length }} previous {% endif %} {% if next_cases %} {{ next_cases|length }} follow-up {% endif %}

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

Case {{ current_case.pk }}
{% if current_case.description %}

{{ current_case.description|striptags|truncatechars:280 }}

{% elif current_case.history %}

{{ current_case.history|striptags|truncatechars:280 }}

{% endif %}
{% if current_case.open_access %} Open access {% else %} Restricted {% endif %} {% if current_case.verified %} Verified {% endif %} {% if current_case.archive %} Archived {% endif %} {% if current_case.diagnostic_certainty %} {{ current_case.get_diagnostic_certainty_display }} {% endif %} {{ current_case.get_ordered_series|length }} series

Chain Summary

Previous Cases

{{ previous_cases|length }}
{% if previous_cases %}
{% for linked_case in previous_cases %} {% include "atlas/partials/_linked_case_card.html" with relation_label="Earlier in the linked chain" relative_label=linked_case.relative_label is_current=False %} {% endfor %}
{% else %}
No previous linked cases.
{% endif %}

Next Cases

{{ next_cases|length }}
{% if next_cases %}
{% for linked_case in next_cases %} {% include "atlas/partials/_linked_case_card.html" with relation_label="Later in the linked chain" relative_label=linked_case.relative_label is_current=False %} {% endfor %}
{% else %}
No follow-up linked cases.
{% endif %}
{% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %}