Pantalla: Reportes Programados
Identificador: SCR-RPT-005
Modulo: MTS-RPT-001 - Reportes y Exportaciones
Version: 1.0.0
Fecha: 2025-12-05
Autor: MobileUxUiDrone (Eight of Eight)
Estado: Especificado
| Atributo |
Valor |
| Nombre |
Reportes Programados |
| Proposito |
Configurar reportes automaticos que se envian periodicamente |
| Tipo |
Full Screen |
| Acceso |
Centro Reportes > Reportes Programados |
| Prioridad |
Media |
| Tier |
Pro/Perfect |
2. Wireframe ASCII
2.1. Lista de Reportes Programados
+------------------------------------------+
| [<] Reportes Programados [+] |
+------------------------------------------+
| |
| +------------------------------------+ |
| | [i] Los reportes automaticos se | |
| | generan y envian segun tu | |
| | configuracion | |
| +------------------------------------+ |
| |
| ACTIVOS (2) |
| |
| +------------------------------------+ |
| | [Chart] Resumen Semanal | |
| | Cada domingo, 8:00 AM | |
| | Email | |
| | [ON/OFF Switch: ON] [>] | |
| +------------------------------------+ |
| |
| +------------------------------------+ |
| | [Bell] Reporte Pre-Cita | |
| | 1 dia antes de cada cita | |
| | Push notification | |
| | [ON/OFF Switch: ON] [>] | |
| +------------------------------------+ |
| |
| PAUSADOS (1) |
| |
| +------------------------------------+ |
| | [Calendar] Resumen Mensual | |
| | Dia 1 de cada mes | |
| | Email | |
| | [ON/OFF Switch: OFF][>] | |
| +------------------------------------+ |
| |
| AGREGAR REPORTE |
| |
| +------------------------------------+ |
| | [+] Configurar nuevo reporte | |
| | automatico | |
| +------------------------------------+ |
| |
| PROXIMAS EJECUCIONES |
| |
| +------------------------------------+ |
| | Dom 8 Dic, 8:00 AM | |
| | Resumen Semanal | |
| +------------------------------------+ |
| +------------------------------------+ |
| | Mar 10 Dic, 10:00 AM | |
| | Reporte Pre-Cita | |
| | (Consulta Dr. Garcia) | |
| +------------------------------------+ |
| |
+------------------------------------------+
2.2. Crear/Editar Reporte Programado
+------------------------------------------+
| [<] Nuevo Reporte Automatico |
+------------------------------------------+
| |
| TIPO DE REPORTE |
| |
| +------------------------------------+ |
| | (*) Resumen de adherencia | |
| +------------------------------------+ |
| +------------------------------------+ |
| | ( ) Resumen semanal completo | |
| +------------------------------------+ |
| +------------------------------------+ |
| | ( ) Alertas para cuidador | |
| +------------------------------------+ |
| +------------------------------------+ |
| | ( ) Reporte pre-cita | |
| +------------------------------------+ |
| |
| FRECUENCIA |
| |
| +------------------------------------+ |
| | ( ) Diario | |
| +------------------------------------+ |
| +------------------------------------+ |
| | (*) Semanal | |
| +------------------------------------+ |
| +------------------------------------+ |
| | ( ) Mensual | |
| +------------------------------------+ |
| +------------------------------------+ |
| | ( ) Antes de cada cita | |
| +------------------------------------+ |
| |
| DIA DE ENVIO |
| |
| +------------------------------------+ |
| | Domingo [v]| |
| +------------------------------------+ |
| |
| HORA DE ENVIO |
| |
| +------------------------------------+ |
| | 08:00 AM [v]| |
| +------------------------------------+ |
| |
| CANAL DE ENTREGA |
| |
| +------------------------------------+ |
| | [x] Email | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [ ] Push notification | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [ ] Ambos | |
| +------------------------------------+ |
| |
| CONTENIDO |
| |
| +------------------------------------+ |
| | [x] Incluir graficas | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [x] Incluir anomalias | |
| +------------------------------------+ |
| |
+------------------------------------------+
| [Guardar] |
+------------------------------------------+
2.3. Reporte Pre-Cita (Especial)
+------------------------------------------+
| [<] Reporte Pre-Cita |
+------------------------------------------+
| |
| +------------------------------------+ |
| | [i] Este reporte se genera | |
| | automaticamente antes de | |
| | cada cita programada | |
| +------------------------------------+ |
| |
| CUANDO ENVIAR |
| |
| +------------------------------------+ |
| | (*) 1 dia antes de la cita | |
| | ( ) 2 dias antes de la cita | |
| | ( ) 3 dias antes de la cita | |
| | ( ) 1 semana antes de la cita | |
| +------------------------------------+ |
| |
| CONTENIDO DEL REPORTE |
| |
| +------------------------------------+ |
| | [x] Adherencia desde ultima cita | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [x] Medicamentos actuales | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [x] Anomalias reportadas | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [ ] Mediciones de salud | |
| +------------------------------------+ |
| |
| CANAL DE ENTREGA |
| |
| +------------------------------------+ |
| | [x] Push notification | |
| +------------------------------------+ |
| +------------------------------------+ |
| | [x] Email | |
| +------------------------------------+ |
| |
| PROXIMAS CITAS CON REPORTE |
| |
| +------------------------------------+ |
| | 10 Dic - Consulta Dr. Garcia | |
| | Reporte: 9 Dic 10:00 AM | |
| +------------------------------------+ |
| +------------------------------------+ |
| | 24 Dic - Quimioterapia (4/6) | |
| | Reporte: 23 Dic 10:00 AM | |
| +------------------------------------+ |
| |
+------------------------------------------+
| [Guardar] |
+------------------------------------------+
2.4. Historial de Envios
+------------------------------------------+
| [<] Historial de Envios |
+------------------------------------------+
| |
| Resumen Semanal |
| |
| ULTIMOS ENVIOS |
| |
| +------------------------------------+ |
| | [Check] 1 Dic 2025, 8:00 AM | |
| | Enviado por email | |
| | [Ver reporte] | |
| +------------------------------------+ |
| |
| +------------------------------------+ |
| | [Check] 24 Nov 2025, 8:00 AM | |
| | Enviado por email | |
| | [Ver reporte] | |
| +------------------------------------+ |
| |
| +------------------------------------+ |
| | [X] 17 Nov 2025, 8:00 AM | |
| | Error de envio | |
| | [Reintentar] | |
| +------------------------------------+ |
| |
| +------------------------------------+ |
| | [Check] 10 Nov 2025, 8:00 AM | |
| | Enviado por email | |
| | [Ver reporte] | |
| +------------------------------------+ |
| |
+------------------------------------------+
3. Componentes UI
3.1. Scheduled Report Card
| Propiedad |
Valor |
| Componente |
CMP-CRD-043 (Scheduled Report) |
| Icon |
Por tipo |
| Title |
Nombre del reporte |
| Subtitle |
Frecuencia + Hora |
| Badge |
Canal |
| Switch |
ON/OFF |
| Chevron |
Editar |
3.2. Frequency Selector
| Propiedad |
Valor |
| Componente |
CMP-RAD-005 (Frequency Radio) |
| Options |
Diario, Semanal, Mensual, Pre-cita |
| Single select |
Si |
3.3. Day Picker
| Propiedad |
Valor |
| Componente |
CMP-SEL-006 (Day Dropdown) |
| Options |
Lunes - Domingo |
| Default |
Domingo |
3.4. Time Picker
| Propiedad |
Valor |
| Componente |
CMP-INP-024 (Time Picker) |
| Format |
12h / 24h segun settings |
| Increment |
1 hora |
| Default |
08:00 |
3.5. Upcoming Execution
| Propiedad |
Valor |
| Componente |
CMP-LST-033 (Upcoming Item) |
| Date |
Fecha y hora |
| Report |
Nombre |
| Context |
Info adicional |
4. Tipos de Reportes Programables
| Tipo |
Frecuencias |
Contenido |
| Resumen adherencia |
Diario, Semanal, Mensual |
Adherencia basica |
| Resumen completo |
Semanal, Mensual |
Adherencia + graficas |
| Alertas cuidador |
Diario |
Eventos criticos |
| Pre-cita |
Antes de cita |
Para compartir con medico |
5. Restricciones por Tier
| Funcionalidad |
Free |
Pro |
Perfect |
| Reportes programados |
No |
3 max |
Ilimitado |
| Resumen mensual |
No |
Si |
Si |
| Resumen semanal |
No |
Si |
Si |
| Pre-cita |
No |
Si |
Si |
| Alertas cuidador |
No |
Si |
Si |
6. Comportamientos
6.1. Ejecucion Automatica
- Sistema ejecuta en hora configurada
- Considera timezone del usuario
- Reintenta 3 veces si falla
- Desactiva tras 3 fallos consecutivos
6.2. Notificacion de Fallo
Si falla:
- Notifica al usuario
- Ofrece reintentar
- Tras 3 fallos: desactiva y notifica
7. Datos Requeridos
interface ScheduledReport {
id: string;
type: ScheduledReportType;
name: string;
frequency: ReportFrequency;
dayOfWeek?: number; // 0-6 for weekly
dayOfMonth?: number; // 1-31 for monthly
timeOfDay: string; // "08:00"
channel: ReportChannel[];
includeGraphs: boolean;
includeAnomalies: boolean;
active: boolean;
lastExecution?: Date;
nextExecution: Date;
consecutiveErrors: number;
createdAt: Date;
}
type ScheduledReportType =
| 'ADHERENCE_SUMMARY'
| 'WEEKLY_COMPLETE'
| 'CAREGIVER_ALERTS'
| 'PRE_APPOINTMENT';
type ReportFrequency =
| 'DAILY'
| 'WEEKLY'
| 'MONTHLY'
| 'BEFORE_APPOINTMENT';
type ReportChannel = 'EMAIL' | 'PUSH' | 'BOTH';
interface ScheduledReportHistory {
reportId: string;
executedAt: Date;
success: boolean;
errorMessage?: string;
generatedReportId?: string;
}
8. Accesibilidad
8.1. Labels
| Elemento |
accessibilityLabel |
| Report card |
"{nombre}: {frecuencia}, {estado}" |
| Switch |
"Activar/desactivar {nombre}" |
| Upcoming |
"Proximo: {fecha}, {reporte}" |
| History item |
"{fecha}: {estado}" |
9. Referencias
Documento generado por MobileUxUiDrone (Eight of Eight)