
<div>
    <p><b>Description:</b> {{ finding.description }}</p>
    {% if finding.conditions.all %}
        <p><b>Conditions:</b></p>
        <ul>
            {% for condition in finding.conditions.all %}
                <li>{{ condition.get_link }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    {% if finding.structures.all %}
        <p><b>Structures:</b></p>
        <ul>
            {% for structure in finding.structures.all %}
                <li>{{ structure.get_link }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    <button class="btn btn-primary" id="reload-finding">Reload</button>

{% with image_url_array_and_count=finding.series.get_image_url_array_and_count %}
    <div id="root" class="dicom-viewer-root" data-images="{{ image_url_array_and_count.0 }}"
      style="height: 600px; box-sizing: border-box; background: #222;"
      data-annotationjson='{{ finding.annotation_json_3d }}' data-viewerstate='{{ finding.viewer_state_3d }}'
    ></div>
{% endwith %}
</div>
