Saltar a contenido

Pantalla: Historial de Predicciones

Identificador: SCR-NTF-006 Modulo: MTS-NTF-001 - Notificaciones Inteligentes Version: 1.0.0 Fecha: 2025-12-05 Autor: MobileUxUiDrone (Eight of Eight) Estado: Especificado FASE: 2 - Value


1. Informacion General

Atributo Valor
Nombre Historial de Predicciones
Proposito Registro de predicciones pasadas y su precision
Tipo Full Screen
Acceso SCR-NTF-002 > "Ver historial"
Prioridad Baja

2. Wireframe ASCII

2.1. Lista de Predicciones

+------------------------------------------+
|  [<]    Historial de Predicciones         |
+------------------------------------------+
|                                           |
|  RESUMEN (ultimos 30 dias)                |
|  ┌─────────────────────────────────────┐  |
|  │  Predicciones:    24                │  |
|  │  Correctas:       18 (75%)          │  |
|  │  Incorrectas:     6 (25%)           │  |
|  └─────────────────────────────────────┘  |
|                                           |
|  ─────────────────────────────────────    |
|                                           |
|  HOY                                      |
|  ┌─────────────────────────────────────┐  |
|  │  🔮 Prediccion: Riesgo bajo         │  |
|  │     Toma 14:00 - Metformina         │  |
|  │                                     │  |
|  │     Resultado: Pendiente ⏳          │  |
|  └─────────────────────────────────────┘  |
|                                           |
|  AYER                                     |
|  ┌─────────────────────────────────────┐  |
|  │  🔮 Prediccion: Riesgo alto         │  |
|  │     Toma 14:00 - Metformina         │  |
|  │                                     │  |
|  │     Resultado: Acertada ✓           │  |
|  │     Alerta enviada: 13:30           │  |
|  │     Toma confirmada: 13:45          │  |
|  └─────────────────────────────────────┘  |
|                                           |
|  ┌─────────────────────────────────────┐  |
|  │  🔮 Prediccion: Riesgo medio        │  |
|  │     Toma 08:00 - Lisinopril         │  |
|  │                                     │  |
|  │     Resultado: Falsa alarma ✗       │  |
|  │     Usuario tomo a tiempo           │  |
|  │     [Dar feedback]                  │  |
|  └─────────────────────────────────────┘  |
|                                           |
|  SABADO, 30 NOV                           |
|  ┌─────────────────────────────────────┐  |
|  │  🔮 Prediccion: Riesgo alto         │  |
|  │     Sabado - todas las tomas        │  |
|  │                                     │  |
|  │     Resultado: Acertada ✓           │  |
|  │     2 de 4 tomas omitidas           │  |
|  └─────────────────────────────────────┘  |
|                                           |
+------------------------------------------+

3. Componentes UI

3.1. Summary Card

Propiedad Valor
Componente CMP-NTF-011 (PredictionSummaryCard) NUEVO
Background primary.50
Metricas Total, correctas, incorrectas
Periodo Ultimos 30 dias

3.2. Prediction History Item

Propiedad Valor
Componente CMP-NTF-012 (PredictionHistoryItem) NUEVO
Layout Card con resultado
Icono Bola de cristal
Resultado Badge de estado

Estados de Resultado:

Estado Color Icono Texto
Pendiente neutral.500 ⏳ "Pendiente"
Acertada success.500 ✓ "Acertada"
Falsa alarma warning.500 ✗ "Falsa alarma"
No detectada error.500 ✗ "No detectada"

3.3. Day Section Header

Propiedad Valor
Texto "HOY", "AYER", o fecha
Sticky Si (al scroll)

4. Comportamientos

4.1. Clasificacion de Resultados

Prediccion Resultado Real Clasificacion
Riesgo alto Omision Acertada
Riesgo alto Toma a tiempo Falsa alarma
Riesgo bajo Toma a tiempo Acertada
Riesgo bajo Omision No detectada

4.2. Gestos

Gesto Elemento Accion
Tap Item con feedback SCR-NTF-007
Pull down Lista Refresh
Scroll Lista Cargar mas (paginacion)

5. Datos Requeridos

5.1. Input Data

interface PredictionHistoryData {
  summary: {
    total: number;
    correct: number;
    incorrect: number;
    precision: number;
  };
  predictions: PredictionRecord[];
}

interface PredictionRecord {
  id: string;
  date: Date;
  riskLevel: 'LOW' | 'MEDIUM' | 'HIGH';
  medicationId?: string;
  medicationName?: string;
  scheduledTime?: string;

  // Resultado
  status: 'PENDING' | 'CORRECT' | 'FALSE_ALARM' | 'MISSED';
  alertSentTime?: string;
  actualTime?: string;

  // Feedback
  hasFeedback: boolean;
  canProvideFeedback: boolean;
}

6. Metricas

6.1. Analytics Events

Evento Parametros
screen_view screen_name: "prediction_history"
feedback_tap prediction_id

7. Referencias


Documento generado por MobileUxUiDrone (Eight of Eight)