{% extends "base.html" %} {% block title %}{{ row.image_id }} — Report{% endblock %} {% block content %}

{{ row.image_id }}

{% if row.is_positive %} {{ row.outcome }} {% else %} {{ row.outcome }} {% endif %}

{% if row.date_display != '—' %} Generated: {{ row.date_display }} UTC {% endif %} {% if payload and payload.report_id %} · Report ID: {{ payload.report_id }} {% endif %}

{% if row.report_file %} Raw JSON {% endif %} ← Back

Prediction Summary

Screening Outcome {{ row.outcome }}
Calibrated Probability {{ '%.4f'|format(row.cal_prob) if row.cal_prob is not none else 'N/A' }}
Raw Probability {{ '%.4f'|format(row.raw_prob) if row.raw_prob is not none else 'N/A' }}
Confidence Band {{ row.band }}
Triage Action {{ row.triage }}
Urgency {{ row.urgency }}
Ground Truth {{ row.true_label if row.true_label and row.true_label != 'N/A' else 'Not available' }}
Report Date {{ row.date_display }}
{% if row.cal_prob is not none %}
0 Calibrated probability 1
{{ '%.2f'|format(row.cal_prob) }}
{% endif %}

Grad-CAM Visualization

{% if row.gradcam_url %} Grad-CAM for {{ row.image_id }}

Highlighted regions indicate areas with greatest influence on the model's decision.

{% else %}

No Grad-CAM heatmap available for this case.

{% endif %}
{% if report_record and report_record.llm_summary %}

AI Medical Intelligence Summary

{{ report_record.llm_summary }}

{% endif %} {% if payload and (payload.llm_provider or payload.llm_model) %}

LLM Information

Provider {{ payload.llm_provider or 'N/A' }}
Model {{ payload.llm_model or 'N/A' }}
{% endif %} {% if payload and payload.screening_module %}

Model Information

Architecture {{ payload.screening_module.architecture }}
Version {{ payload.screening_module.version }}
Calibration {{ payload.screening_module.calibration_method }}
Decision Threshold {{ '%.4f'|format(payload.prediction.decision_threshold) }}
{% endif %}
Disclaimer: This report is produced by an AI-assisted screening tool and does NOT constitute a medical diagnosis. All screening findings must be reviewed and confirmed by a qualified, licensed medical professional before any clinical decision is made.
{% endblock %}