Pantalla: Insights y Recomendaciones
Identificador: SCR-ADH-007
Modulo: MTS-ADH-001 - Motor de Adherencia
Version: 1.0.0
Fecha: 2025-12-05
Autor: MobileUxUiDrone (Eight of Eight)
Estado: Especificado
FASE: 2 - Value
| Atributo |
Valor |
| Nombre |
Insights y Recomendaciones |
| Proposito |
Sugerencias personalizadas del sistema basadas en patrones |
| Tipo |
Full Screen |
| Acceso |
SCR-ADH-001 > "Ver insights" |
| Prioridad |
Media |
2. Wireframe ASCII
2.1. Estado: Con Insights
+------------------------------------------+
| [<] Mis Insights |
+------------------------------------------+
| |
| Sugerencias personalizadas basadas en |
| tus patrones de adherencia |
| |
| ───────────────────────────────────── |
| |
| PATRON DETECTADO |
| ┌─────────────────────────────────────┐ |
| │ 🔍 Tomas de mediodia │ |
| │ ───────────────────────────────── │ |
| │ │ |
| │ Tus tomas entre 12:00 y 14:00 │ |
| │ tienen 25% menos adherencia que │ |
| │ el resto del dia. │ |
| │ │ |
| │ Datos de ultimos 30 dias: │ |
| │ • Manana: 94% adherencia │ |
| │ • Mediodia: 69% adherencia │ |
| │ • Noche: 96% adherencia │ |
| │ │ |
| └─────────────────────────────────────┘ |
| |
| SUGERENCIA |
| ┌─────────────────────────────────────┐ |
| │ 💡 Asocia con el almuerzo │ |
| │ ───────────────────────────────── │ |
| │ │ |
| │ Intenta vincular tu toma de │ |
| │ mediodia con tu hora de almuerzo. │ |
| │ Los pacientes que asocian tomas │ |
| │ con comidas mejoran ~15%. │ |
| │ │ |
| │ Quieres cambiar el horario de │ |
| │ tu Metformina de 14:00 a 13:00? │ |
| │ │ |
| │ [Cambiar horario] [Ahora no] │ |
| └─────────────────────────────────────┘ |
| |
| LOGRO CERCANO |
| ┌─────────────────────────────────────┐ |
| │ 🏆 A punto de romper record │ |
| │ ───────────────────────────────── │ |
| │ │ |
| │ Tu racha actual: 21 dias │ |
| │ Tu mejor racha: 23 dias │ |
| │ │ |
| │ Solo 2 dias mas para superar │ |
| │ tu record personal! │ |
| │ │ |
| └─────────────────────────────────────┘ |
| |
| ALERTA |
| ┌─────────────────────────────────────┐ |
| │ ⚠️ Atorvastatina bajando │ |
| │ ───────────────────────────────── │ |
| │ │ |
| │ Tu adherencia a Atorvastatina │ |
| │ bajo 12% esta semana. │ |
| │ │ |
| │ [Ver detalle del medicamento] │ |
| └─────────────────────────────────────┘ |
| |
+------------------------------------------+
2.2. Estado: Sin Insights (Datos Insuficientes)
+------------------------------------------+
| [<] Mis Insights |
+------------------------------------------+
| |
| |
| ┌─────────────┐ |
| │ 💡 │ |
| │ │ |
| └─────────────┘ |
| |
| Aun no hay suficientes datos |
| |
| Necesitamos al menos 14 dias de |
| registros para generar insights |
| personalizados. |
| |
| Llevas: 8 dias |
| Necesitas: 14 dias |
| |
| ████████████████░░░░░░░░░░ 57% |
| |
| Mientras tanto, aqui hay algunos |
| consejos generales: |
| |
| ┌─────────────────────────────────────┐ |
| │ 📚 Tip general │ |
| │ │ |
| │ Asociar tus medicamentos con │ |
| │ actividades diarias (como comer) │ |
| │ ayuda a recordarlos mejor. │ |
| └─────────────────────────────────────┘ |
| |
+------------------------------------------+
3. Componentes UI
3.1. Insight Card (Expandido)
| Propiedad |
Valor |
| Componente |
CMP-ADH-014 (InsightCardExpanded) NUEVO |
| Background |
Segun tipo |
| Border radius |
16dp |
| Padding |
16dp |
| Shadow |
elevation 2 |
Colores por Tipo:
| Tipo |
Background |
Border |
Icono |
| PATTERN |
info.50 |
info.500 |
🔍 |
| SUGGESTION |
primary.50 |
primary.500 |
💡 |
| ACHIEVEMENT |
success.50 |
success.500 |
🏆 |
| ALERT |
warning.50 |
warning.500 |
⚠️ |
| MOTIVATION |
purple.50 |
purple.500 |
💪 |
| Propiedad |
Valor |
| Texto |
Tipo de insight (PATRON, SUGERENCIA, etc) |
| Tipografia |
12sp, uppercase, medium |
| Color |
Segun tipo |
| Margin top |
24dp |
| Propiedad |
Valor |
| Layout |
Horizontal, right aligned |
| Primary |
Filled button |
| Secondary |
Text button |
| Spacing |
16dp entre botones |
3.4. Data Points
| Propiedad |
Valor |
| Layout |
Lista con bullets |
| Bullet |
Color segun metrica |
| Texto |
"{label}: {value}" |
4. Comportamientos
4.1. Gestos
| Gesto |
Elemento |
Accion |
| Tap |
Action button primario |
Ejecutar accion |
| Tap |
Action button secundario |
Descartar |
| Tap |
"Ver detalle" |
Navegar a pantalla relevante |
| Pull down |
Lista |
Refresh insights |
4.2. Acciones de Insights
| Tipo |
Accion Primaria |
Resultado |
| SUGGESTION (horario) |
"Cambiar horario" |
Navegar a SCR-MED-004 |
| SUGGESTION (recordatorio) |
"Agregar recordatorio" |
Crear alerta |
| ALERT (medicamento) |
"Ver detalle" |
SCR-ADH-002 filtrado |
| ACHIEVEMENT |
"Ver logros" |
SCR-ADH-009 |
4.3. Priorizacion de Insights
- Alertas (bajada de adherencia)
- Sugerencias accionables
- Patrones detectados
- Logros/Motivacion
4.4. Frecuencia de Actualizacion
- Insights se recalculan cada 24 horas
- Badge "Nuevo" si hay insight de hoy
- Maximo 5 insights visibles a la vez
5. Datos Requeridos
interface InsightsData {
hasEnoughData: boolean;
daysWithData: number;
minimumDays: number;
// Insights generados
insights: InsightItem[];
// Tips generales (si no hay suficientes datos)
generalTips: GeneralTip[];
}
interface InsightItem {
id: string;
type: 'PATTERN' | 'SUGGESTION' | 'ACHIEVEMENT' | 'ALERT' | 'MOTIVATION';
priority: number; // 1 = mas importante
isNew: boolean; // Generado hoy
// Contenido
title: string;
description: string;
dataPoints?: DataPoint[];
// Acciones
primaryAction?: InsightAction;
secondaryAction?: InsightAction;
// Metadata
generatedAt: Date;
basedOnDays: number; // Datos de X dias
}
interface DataPoint {
label: string;
value: string;
color?: string;
}
interface InsightAction {
label: string;
type: 'NAVIGATE' | 'EXECUTE' | 'DISMISS';
destination?: string;
payload?: any;
}
interface GeneralTip {
id: string;
title: string;
content: string;
icon: string;
}
5.2. Output Events
| Evento |
Payload |
Destino |
| onActionTap |
{insight_id, action_type} |
Variable |
| onDismiss |
insight_id |
Marcar visto |
| onRefresh |
- |
Recalcular |
6. Accesibilidad
6.1. Labels
| Elemento |
accessibilityLabel |
| Insight card |
"{tipo}: {titulo}" |
| Data point |
"{label}, {valor}" |
| Action button |
"{accion} para {insight}" |
6.2. Screen Reader
| Evento |
Anuncio |
| Pantalla cargada |
"{N} insights disponibles" |
| Insight nuevo |
"Nuevo insight: {titulo}" |
| Accion ejecutada |
"{accion} aplicada" |
7. Metricas
7.1. Analytics Events
| Evento |
Parametros |
| screen_view |
screen_name: "insights" |
| insight_view |
insight_id, type, is_new |
| insight_action |
insight_id, action_type |
| insight_dismiss |
insight_id |
8. Referencias
Documento generado por MobileUxUiDrone (Eight of Eight)