{% extends "base.html" %}{% set active="archive" %}{% block title %}Data Archive{% endblock %}{% block page_title %}Data Archive & Retention{% endblock %} {% block content %} {% if msg %}
Move completed/cancelled appointments older than N days to the archive table.
Permanent. Delete archived records older than N days.
| ID | Orig # | Patient | Doctor | Apt Date | Status | Archived |
|---|---|---|---|---|---|---|
| #{{ a.archive_id }} | {{ '#'+a.original_appointment_id|string if a.original_appointment_id else '—' }} | {{ a.patient_name or '—' }} | {{ a.doctor_name or '—' }} | {{ a.appointment_datetime[:10] if a.appointment_datetime else '—' }} | {{ a.status or '—' }} | {{ a.archived_at[:10] }} |
No archived records yet.