{% extends "index.html" %} {% block title %}{{ title }} · Epicrisis{% endblock %} {% block body_class %}app-page epicrisis-page{% endblock %} {% block shell_class %}app-page__shell epicrisis-shell{% endblock %} {% block head_extra %} {% endblock %} {% block header_actions %}
{{ secondary_action_label }}
{% endblock %} {% block content %}

Epicrisis operativa

{{ title }}

{% if case_number or case_key %}

{% if case_number %}Caso: {{ case_number }}{% endif %} {% if case_key %}Case key: {{ case_key }}{% endif %}

{% endif %}

{{ message }}

{% if detail %}
{{ 'Detalle del error' if status_variant == 'error' else 'Estado actual' }}
{{ detail }}
{% endif %} {% if rule_diagnostic and rule_diagnostic.findings %}

Diagnóstico de validación

{% if rule_diagnostic.missing_documents %}

Falta: {{ rule_diagnostic.missing_documents | join(", ") }}

{% endif %} {% if rule_diagnostic.checked_documents %}

Documentos detectados: {{ rule_diagnostic.checked_documents | join(", ") }}

{% endif %} {% if rule_diagnostic.action_hint %}

Cómo corregirlo: {{ rule_diagnostic.action_hint }}

{% endif %}
{% for finding in rule_diagnostic.findings %}

Regla: {{ finding.rule_code or "Sin código" }}

{% if finding.severity %}

Severidad: {{ finding.severity }}

{% endif %} {% if finding.message %}

Motivo: {{ finding.message }}

{% endif %} {% if finding.checked_documents %}

Documentos revisados por la regla: {{ finding.checked_documents | join(", ") }}

{% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}