{% extends 'base.html' %} {% block title %}Révision — Admin OpenCare{% endblock %} {% block content %}
{% include 'admin/_sidebar.html' %}

File de révision

Validez les recommandations extraites par l'IA avant publication

{% if recs %}
{% for rec in recs %}
{{ domain_labels.get(rec.domain, (rec.domain, ''))[0] }} Niveau {{ rec.evidence_level }} {% if rec.study_type %} {{ rec.study_type }} {% endif %} {{ rec.created_at.strftime('%d/%m/%Y') }}
{{ rec.title }}

{{ rec.summary }}

{% if rec.details %}

{{ rec.details[:200] }}{% if rec.details|length > 200 %}…{% endif %}

{% endif %} {% if rec.source_url or rec.source_title %}
{% if rec.source_title %}{{ rec.source_title }}{% endif %} {% if rec.source_doi %} — DOI: {{ rec.source_doi }}{% endif %} {% if rec.source_url %} {% endif %}
{% endif %}
{% if rec.target_age_min or rec.target_age_max %} {{ rec.target_age_min or '?' }}–{{ rec.target_age_max or '∞' }} ans {% endif %} {% if rec.target_sex and rec.target_sex != 'all' %} {{ 'Homme' if rec.target_sex == 'male' else 'Femme' }} {% endif %} {% if rec.not_for_under_18 %} 18+ {% endif %} {% if rec.not_for_pregnant %} Pas pour grossesse {% endif %} {% for c in rec.required_conditions %} Si: {{ c }} {% endfor %} {% for c in rec.excluded_conditions %} Exclu si: {{ c }} {% endfor %} {% for g in rec.required_health_goals %} Objectif: {{ g }} {% endfor %}
{% if status_filter == 'pending' %}
{% elif status_filter == 'approved' %} {% endif %} {% if rec.admin_notes %}
{{ rec.admin_notes }}
{% endif %}
{% endfor %}
{% else %}

{% if status_filter == 'pending' %} Aucune recommandation en attente. Lancez un crawl pour en générer. {% elif status_filter == 'approved' %} Aucune recommandation approuvée. {% else %} Aucune recommandation rejetée. {% endif %}

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