{% load partials %} {% partialdef case-series %} {% for series in case.get_ordered_series %} Series {{ forloop.counter }}:
{{series.get_block}}
Popup
{% endfor %} {% endpartialdef %}

Case: {{ case.title }}

{% if case.previous_case or case.next_case %} {% endif %}
{% if case.cimar_uuid %}
Details Case uuid: {{case.cimar_uuid}}
{% if cimar_sid %} External {% else %} External {% endif %} Viewer
Study details {{ case.get_cimar_case.get_pretty_study_details }}
Study schema {{ case.get_cimar_case.get_pretty_study_schema }}
Study series
Refresh
{% else %} {% endif %}
ID: {{ case.id }} / {{ case.created_date|date:"d/m/Y" }}
{# Subspecialty badges (preserve any anchor returned by get_link) #} {% if case.subspecialty.all %} {% for sub in case.subspecialty.all %} {{ sub.get_link|safe }} {% endfor %} {% else %} No subspecialty {% endif %} {# Pathological process badges #} {% if case.pathological_process.all %} {% for p in case.pathological_process.all %} {{ p.get_link|safe }} {% endfor %} {% endif %} {# Diagnostic certainty as a badge #} Diagnostic certainty: {{ case.get_diagnostic_certainty_display }} {# Normal toggle HTMX block #}
{% include "atlas/partials/_normal_toggle.html" %}
Viewer

Description: {{ case.description }}

Presentation:

History
{{ case.history|linebreaks }}
Discussion
{{ case.discussion|linebreaks }}
Report
{{ case.report|linebreaks }}

Resource
{% for caseresource in case.caseresource_set.all %} {{caseresource.resource.name}} {% if caseresource.pre_review %} (pre) {% else %} (post) {% endif %} {% endfor %}

Series:
{% partial case-series %}

Create and add new series

{% comment %}

Scrapped: {{ case.scrapped }} (toggle) {% endcomment %}

Condition:
    {% for con in case.condition.all %}
  • {{con.get_link}}
  • {% endfor %}
Findings {% if can_edit %}
Help

Findings are display sets that can be added to series. Once added they will appear here on linked cases.

To add a finding to a series, select the series and then click the "Add finding" button.

{% endif %}
Series Findings
{% if case.ordered_series %} {% for series in case.ordered_series %} {% for finding in series.findings.all %}
{% if finding.findings %} Findings: {% for f in finding.findings.all %} {{f.get_link}},  {% endfor %} {% endif %} {% if finding.conditions %} Conditions: {% for c in finding.conditions.all %} {{c.get_link}},  {% endfor %} {% endif %} {% if finding.structures %} Structure: {% for s in finding.structures.all %} {{s.get_link}},  {% endfor %} {% endif %} {% if finding.description %} Description: {{finding.description}} {% endif %}
{% endfor %} {% endfor %} {% else %} No series associated with case. {% endif %}
Case Display Sets
{% if case.display_sets %}
    {% for ds in case.display_sets.all %}
  • Name: {{ ds.name }} {% if ds.description %} ({{ ds.description }}) {% endif %} View Display Set
    Findings: {% if ds.findings.all %}
      {% for finding in ds.findings.all %}
    • {{ finding }}
    • {% endfor %}
    {% else %} None {% endif %}
    Structures: {% if ds.structures.all %}
      {% for structure in ds.structures.all %}
    • {{ structure }}
    • {% endfor %}
    {% else %} None {% endif %}
    Conditions: {% if ds.conditions.all %}
      {% for condition in ds.conditions.all %}
    • {{ condition }}
    • {% endfor %}
    {% else %} None {% endif %}
    Show advanced (viewer state & annotations)
    Viewer State:
    {{ ds.viewerstate|default:"{}" }}
    Annotations:
    {{ ds.annotations|default:"{}" }}
  • {% endfor %}
{% else %} No display sets for this case. {% endif %}
Differentials
    {% for diff in case.differentialcase.all %}
  • {{diff.condition.get_link}} - {{diff.text}}
  • {% endfor %}
Collections: {% if can_edit %} {% endif %}

{% if casedetail %} {% include 'atlas/partials/collection_question_block.html' with can_edit=can_edit %} {% endif %}

Previous case: {{ case.previous_case.get_link }}

Next case: {% if case.next_case %} {{ case.next_case.get_link }} {% else %} Clone and add next case {% endif %}

{% include 'question_notes.html' %}

Checked by: {% for verified in case.verified.all %} {{verified}}, {% endfor %}

Author(s): {% for author in case.author.all %} {{author}}, {% endfor %}

Case size: {{ case.get_total_series_images_size | filesizeformat }}