{% if show_label or editing %}
{% if show_label %}
{{ field_label }}:
{% endif %}
{% if can_edit %}
{% if not editing %}
{% endif %}
{% endif %}
{% endif %}
{% if editing %}
{% else %}
{% if field_kind == "textarea" %}
{% if display_value %}
{% load markup_links %}
{{ display_value|render_markup }}
{% else %}
Not set
{% endif %}
{% elif field_name == "diagnostic_certainty" %}
{% if show_label %}Diagnostic certainty: {% endif %}
{{ display_value|default:"Not set" }}
{% else %}
{% if display_value %}
{{ display_value }}
{% else %}
Not set
{% endif %}
{% endif %}
{% endif %}