Saltar a contenido

Pantalla: Alerta de Valores Criticos

Identificador: SCR-ALT-008 Modulo: MTS-ALT-001 - Alertas y Notificaciones Version: 1.0.0 Fecha: 2025-12-05 Autor: MobileUxUiDrone (Eight of Eight) Estado: Especificado


1. Informacion General

Atributo Valor
Nombre Alerta de Valores Criticos
Proposito Mostrar alerta cuando una medicion de salud esta fuera de rangos seguros
Tipo Full Screen Modal (critico) / Bottom Sheet (advertencia)
Acceso Automatico al registrar medicion fuera de rango
Prioridad Critica

2. Wireframe ASCII

2.1. Nivel: Critico (Full Screen)

+------------------------------------------+
|                                           |
|          +------------------+             |
|          |                  |             |
|          |   [!!]           |             |  <- Critical icon 80dp red
|          |                  |             |
|          +------------------+             |
|                                           |
|          VALOR CRITICO                    |  <- Title 28sp
|                                           |
|  +------------------------------------+   |
|  |                                    |   |
|  |         GLUCOSA: 42 mg/dL          |   |  <- Value 48sp red
|  |                                    |   |
|  |    [Rango normal: 70-100 mg/dL]    |   |
|  |                                    |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [!] HIPOGLUCEMIA SEVERA            |   |  <- Warning card
|  |                                    |   |
|  | Este valor requiere atencion       |   |
|  | INMEDIATA. Siga estas instrucciones:|   |
|  +------------------------------------+   |
|                                           |
|  ACCION INMEDIATA:                        |
|  +------------------------------------+   |
|  | 1. Consume 15g de carbohidratos    |   |
|  |    rapidos (jugo, dulces, glucosa) |   |
|  |                                    |   |
|  | 2. Espera 15 minutos               |   |
|  |                                    |   |
|  | 3. Mide nuevamente tu glucosa      |   |
|  |                                    |   |
|  | Si no mejoras, llama a emergencias |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |      [Timer: Medir en 15 min]      |   |  <- Sets timer
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |         [Llamar al 911]            |   |  <- Emergency
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |    [Reconocer alerta y cerrar]     |   |
|  +------------------------------------+   |
|                                           |
|  DISCLAIMER                               |
|  Esta alerta es informativa. MedTime NO   |
|  es un dispositivo medico.                |
|                                           |
+------------------------------------------+

2.2. Nivel: Advertencia (Bottom Sheet)

+------------------------------------------+
|  [Drag handle]                            |
+------------------------------------------+
|                                           |
|  +------------------------------------+   |
|  | [!] Valor fuera de rango           |   |  <- Orange warning
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |     Presion: 145/92 mmHg           |   |  <- Value
|  |                                    |   |
|  |  [Rango normal: <140/90 mmHg]      |   |
|  +------------------------------------+   |
|                                           |
|  Recomendacion:                           |
|  Sientate y descansa 5 minutos.           |
|  Mide nuevamente. Si persiste elevada,    |
|  consulta con tu medico.                  |
|                                           |
|  +------------------------------------+   |
|  |        [Timer: 5 minutos]          |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |         [Entendido]                |   |
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

2.3. Nivel: Informativo (Inline)

+------------------------------------------+
|  [Dentro de pantalla de registro]         |
|                                           |
|  Glucosa registrada: 115 mg/dL            |
|                                           |
|  +------------------------------------+   |
|  | [i] Ligeramente elevada            |   |  <- Yellow info card
|  |                                    |   |
|  | El valor esta en rango pre-        |   |
|  | diabetico. Considera:              |   |
|  | - Revisar tu dieta                 |   |
|  | - Aumentar actividad fisica        |   |
|  | - Comentar con tu medico           |   |
|  |                                    |   |
|  | [Mas informacion]  [Descartar]     |   |
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

2.4. Error de Valor (Confirmar Lectura)

+------------------------------------------+
|                                           |
|  CONFIRMAR LECTURA                        |
|                                           |
|  +------------------------------------+   |
|  |                                    |   |
|  |      El valor ingresado:           |   |
|  |         42 mg/dL                   |   |
|  |                                    |   |
|  |   parece muy bajo. Esto puede      |   |
|  |   indicar una emergencia.          |   |
|  |                                    |   |
|  +------------------------------------+   |
|                                           |
|  Es correcto este valor?                  |
|                                           |
|  +------------------------------------+   |
|  |  [Si, es correcto - Ver alerta]    |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |  [No, corregir valor]              |   |
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

3. Componentes UI

3.1. Critical Icon

Propiedad Valor
Componente CMP-ICN-002 (Alert Icon)
Size 80x80dp
Color error.main (#D32F2F)
Animacion Pulse lento

3.2. Value Display

Propiedad Valor
Componente CMP-TYP-005 (Metric Display)
Value size 48sp
Unit size 24sp
Color Segun nivel (rojo/naranja/amarillo)

3.3. Range Indicator

Propiedad Valor
Componente CMP-DAT-007 (Range Badge)
Background neutral.100
Text "Rango normal: X-Y unidad"
Size 14sp

3.4. Action Steps Card

Propiedad Valor
Componente CMP-CRD-009 (Steps Card)
Numbered Si
Background warning.light
Urgency indicator Si (para criticos)

3.5. Timer Button

Propiedad Valor
Componente CMP-BTN-006 (Timer Button)
Icono Clock
Estados Default, Countdown, Completed
Notificacion Programa local notification

4. Niveles de Alerta por Medicion

4.1. Glucosa

Rango Nivel Color Presentacion
< 50 mg/dL Critico bajo Red Full screen
50-70 mg/dL Advertencia bajo Orange Bottom sheet
70-100 mg/dL Normal Green Sin alerta
100-125 mg/dL Informativo Yellow Inline
125-200 mg/dL Advertencia alto Orange Bottom sheet
> 200 mg/dL Critico alto Red Full screen
> 300 mg/dL Emergencia Red + 911 Full screen blocking

4.2. Presion Arterial

Sistolica Diastolica Nivel Presentacion
< 90 < 60 Advertencia bajo Bottom sheet
< 70 < 50 Critico bajo Full screen
90-120 60-80 Normal Sin alerta
120-140 80-90 Informativo Inline
140-180 90-120 Advertencia alto Bottom sheet
> 180 > 120 Crisis hipertensiva Full screen + 911

4.3. SpO2 (Saturacion Oxigeno)

Rango Nivel Presentacion
95-100% Normal Sin alerta
90-94% Advertencia Bottom sheet
< 90% Critico Full screen + 911

5. Comportamientos

5.1. Flujo de Alerta por Valor

flowchart TD
    A[Usuario registra medicion] --> B{Valor en rango?}

    B -->|Normal| C[Guardar sin alerta]
    B -->|Fuera de rango| D{Nivel?}

    D -->|Informativo| E[Mostrar inline warning]
    D -->|Advertencia| F[Bottom sheet warning]
    D -->|Critico| G[Confirmar valor correcto?]

    G -->|Si| H[Full screen alerta critica]
    G -->|No, error| I[Permitir correccion]
    I --> A

    H --> J{Accion usuario?}
    J -->|Timer| K[Programar recordatorio]
    J -->|Llamar 911| L[Abrir dialer]
    J -->|Reconocer| M[Guardar con flag critico]

    K --> N{Notificar contacto emergencia?}
    M --> N

    N -->|Si, con consentimiento| O[Enviar alerta a contactos]
    N -->|No| P[Solo registrar]

    O --> P

5.2. Timer de Seguimiento

Condicion Timer sugerido
Hipoglucemia < 70 15 minutos
Hipertension > 140 5 minutos
SpO2 < 94% 5 minutos
Fiebre > 38.5 30 minutos

6. Datos Requeridos

6.1. Input Data

interface CriticalValueAlert {
  measurement_id: string;
  measurement_type: 'GLUCOSE' | 'BLOOD_PRESSURE' | 'SPO2' | 'HEART_RATE' | 'TEMPERATURE';
  value: number | { systolic: number; diastolic: number };
  unit: string;
  level: 'INFO' | 'WARNING' | 'CRITICAL' | 'EMERGENCY';
  normal_range: { min: number; max: number };
  condition_name: string; // "Hipoglucemia severa"
  risk_description: string;
  immediate_actions: string[];
  timer_minutes?: number;
  show_911: boolean;
  emergency_contact_consent: boolean;
}

6.2. Output Events

Evento Payload Destino
onAcknowledge measurement_id Save + Close
onSetTimer minutes Local notification
onCall911 - Phone dialer
onContactEmergency contact_ids Notification service
onCorrectValue - Return to input

7. Accesibilidad

7.1. Consideraciones Criticas

Esta pantalla puede mostrarse cuando el usuario esta en estado de emergencia medica:

Requisito Implementacion
Alto contraste AAA (7:1) para valores criticos
Texto enorme Value 48sp, actions 20sp
Touch targets 64dp minimo
Feedback multimodal Visual + Audio + Haptico
Sin scroll necesario Acciones visibles sin scroll
TTS automatico Lee la alerta al abrir

7.2. Labels y Hints

Elemento accessibilityLabel
Pantalla "ALERTA: Valor critico de {tipo}. {valor} {unidad}. {condicion}"
Timer button "Programar recordatorio en {minutos} minutos"
911 button "Llamar a emergencias 911"
Acknowledge "Reconocer alerta y cerrar"

7.3. Screen Reader Announcements

Evento Anuncio
Alerta abierta "ATENCION. Valor critico detectado. {tipo}: {valor}. {instrucciones}"
Timer activado "Recordatorio programado para {minutos} minutos"
Alerta reconocida "Alerta registrada. Recuerda seguir las instrucciones"

8. Disclaimers Obligatorios

Cada alerta de valor critico incluye:

IMPORTANTE: Esta alerta es informativa.
MedTime NO es un dispositivo medico certificado.
En caso de emergencia, contacte a servicios de
emergencia de su localidad (911) o a su
profesional de salud.

9. Metricas

9.1. Analytics Events

Evento Parametros
critical_value_detected measurement_type, level, value
critical_value_action measurement_id, action
timer_set measurement_id, minutes
emergency_call_initiated measurement_id
emergency_contact_notified measurement_id, contact_count

10. Referencias


Documento generado por MobileUxUiDrone (Eight of Eight)