📊 Risk Assessment
{{ (result.risk_level|default('low')) | upper }} RISK
Risk Target Metric
{{ "%.2f"|format(result.risk_score|default(0)) }}
{{ result.risk_message|default('Risk assessment completed.') }}
{% if result.explanation %}
{% endif %}
🏥 Core Metrics
Detected Elements:{{ result.clinical_terms if result.clinical_terms else 'No pathology found' }}
Lesion Groups:{{ result.lesion_count|default(0) }}
Model Variance:{{ "%.2f"|format(result.uncertainty|default(0)) }}
{% if result.recommendation %}
💡 Clinical Recommendation
{% endif %}
{% if result.multi_labels %}
🏷️ Characteristics Matrix
{% for label, active in result.multi_labels.items() %}
{{ label|replace('_', ' ')|title }} {{ '✓' if active else '✕' }}
{% endfor %}
{% endif %}
{% if result.lesions %}
🔴 Spatial Delineated Lesions
{% for lesion in result.lesions %}
Resolution Footprint: {{ lesion.area|default(0) }} px² • Bounding Box: [{{ lesion.bbox|join(', ') if lesion.bbox else 'N/A' }}]
{% if lesion.features %}
{% if lesion.features.circularity is defined %}
🔄 Circularity: {{ "%.2f"|format(lesion.features.circularity) }}
{% endif %}
{% if lesion.features.white_ratio is defined %}
⬜ White Ratio: {{ "%.2f"|format(lesion.features.white_ratio) }}
{% endif %}
{% if lesion.features.solidity is defined %}
📐 Solidity: {{ "%.2f"|format(lesion.features.solidity) }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if result.differential %}
🩺 Differential Diagnostics Grid
{% for item in result.differential %}
💡 {{ item.recommendation|default('') }}
{% endfor %}
{% endif %}
{% if result.guidelines %}
📋 Protocol Guidelines
{% for item in result.guidelines %}
Standard Guidance #{{ loop.index }}
{{ item.severity|default('medium') }}
{{ item.text }}
{% endfor %}
{% endif %}