Saltar a contenido

Pantalla: Vista Cuidador - Alertas

Identificador: SCR-ALT-013 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 Vista Cuidador - Alertas
Proposito Dashboard de alertas para cuidadores que supervisan pacientes
Tipo Full Screen (Tab variant)
Acceso Modo cuidador, Notificacion escalada, Switch de perfil
Prioridad Alta
Disponibilidad Solo Pro/Perfect

2. Wireframe ASCII

2.1. Vista con Alerta Escalada

+------------------------------------------+
|  [<]    Cuidando a Mama            [...]  |  <- Patient name
+------------------------------------------+
|                                           |
|  +====================================+   |
|  | [!] ALERTA ESCALADA                |   |  <- Critical banner
|  |                                    |   |
|  | Mama no tomo sus medicinas del     |   |
|  | desayuno (hace 45 min)             |   |
|  |                                    |   |
|  | Metformina 850mg, Insulina 10UI    |   |
|  |                                    |   |
|  | +----------+ +---------+ +------+  |   |
|  | | Llamar  | | Mensaje | | Ver  |  |   |
|  | +----------+ +---------+ +------+  |   |
|  +====================================+   |
|                                           |
|  PROXIMAS TOMAS DE MAMA                   |
|  +------------------------------------+   |
|  | [Clock] 14:00  Medicinas almuerzo     ||
|  |     Metformina                        ||
|  |     En 2 horas                        ||
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Clock] 20:00  Medicinas noche        ||
|  |     Losartan, Metformina              ||
|  |     En 8 horas                        ||
|  +------------------------------------+   |
|                                           |
|  HOY                                      |
|  +------------------------------------+   |
|  | [v] 08:00  Medicinas desayuno         ||
|  |     Insulina, Metformina              ||
|  |     OMITIDA - Pendiente de atencion   ||  <- Status
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |  [Calendar] Ver calendario completo|   |
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

2.2. Acciones del Cuidador (Bottom Sheet)

+------------------------------------------+
|  Alerta: Medicinas del desayuno     [X]   |
+------------------------------------------+
|                                           |
|  Mama no confirmo su toma de las 08:00.   |
|  Han pasado 45 minutos.                   |
|                                           |
|  ACCIONES DISPONIBLES:                    |
|                                           |
|  +------------------------------------+   |
|  | [Phone] Llamar a Mama              |   |  <- Direct action
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Message] Enviar mensaje           |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Check] Confirmar que supervise    |   |
|  |         "Mama me dijo que ya tomo" |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Edit] Marcar como tomada          |   |  <- If has permission
|  |        (Registrara tu nombre)      |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [X] Marcar como omitida            |   |  <- If has permission
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

2.3. Vista Sin Alertas Pendientes

+------------------------------------------+
|  [<]    Cuidando a Mama            [...]  |
+------------------------------------------+
|                                           |
|  +------------------------------------+   |
|  | [v] Todo bien con Mama             |   |  <- Success banner
|  |     Ultima toma: 08:00 (a tiempo)  |   |
|  +------------------------------------+   |
|                                           |
|  PROXIMAS TOMAS                           |
|  +------------------------------------+   |
|  | [Clock] 14:00  Medicinas almuerzo     ||
|  |     Metformina                        ||
|  +------------------------------------+   |
|                                           |
|  RESUMEN DE HOY                           |
|  +------------------------------------+   |
|  | Adherencia: 100%                   |   |
|  | Tomas confirmadas: 1/3             |   |
|  | Proxima alerta: 14:00              |   |
|  +------------------------------------+   |
|                                           |
|  HOY                                      |
|  +------------------------------------+   |
|  | [v] 08:00  Medicinas desayuno         ||
|  |     Tomada a las 08:05                ||
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

2.4. Multiples Dependientes

+------------------------------------------+
|  [<]    Mis Dependientes           [...]  |
+------------------------------------------+
|                                           |
|  +------------------------------------+   |
|  | [!] 1 ALERTA REQUIERE ATENCION     |   |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Avatar] Mama                     [!]  |
|  |          1 alerta pendiente       [>]  |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Avatar] Papa                     [v]  |
|  |          Todo al dia              [>]  |
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Avatar] Abuela                   [v]  |
|  |          Todo al dia              [>]  |
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

3. Componentes UI

3.1. Patient Header

Propiedad Valor
Componente CMP-NAV-002 (Top App Bar)
Titulo "Cuidando a [Nombre]"
Leading Back (a lista de dependientes o home)
Trailing Menu (configuracion, permisos)

3.2. Escalated Alert Card

Propiedad Valor
Componente CMP-CRD-016 (Escalated Alert)
Background error.light
Border error.main 2px
Actions Llamar, Mensaje, Ver
Sticky Si (siempre visible arriba)

3.3. Carer Action Buttons

Accion Icono Disponibilidad Efecto
Llamar Phone Siempre Abre dialer
Mensaje Message Siempre Abre mensajeria
Ver Eye Siempre Abre detalle
Confirmar supervision Check Siempre Registra que reviso
Marcar tomada Edit Con permiso Registra toma como cuidador
Marcar omitida X Con permiso Registra omision

3.4. Patient Summary Card

Propiedad Valor
Componente CMP-CRD-017 (Summary Card)
Metricas Adherencia %, Tomas, Proxima alerta
Color success.light si OK, warning si pendiente

3.5. Dependent List Item

Propiedad Valor
Componente CMP-LST-004 (Dependent Item)
Avatar Foto o iniciales
Nombre Bold
Status Alert badge o checkmark
Chevron Navegacion

4. Comportamientos

4.1. Permisos del Cuidador

Permiso CS (Secundario) CR (Responsable)
Ver alertas Si Si
Llamar/Mensaje Si Si
Confirmar supervision Si Si
Marcar como tomada Configurable Si
Marcar como omitida No Si
Ver historial Si Si
Ver detalle medicamentos Configurable Si

4.2. Flujo de Accion del Cuidador

flowchart TD
    A[Cuidador recibe alerta] --> B[Abre app/notificacion]
    B --> C[Ve dashboard del paciente]

    C --> D{Que hace?}

    D -->|Llamar| E[Abre dialer con numero del paciente]
    D -->|Mensaje| F[Abre mensajeria con paciente]
    D -->|Ver| G[Abre detalle de la alerta]

    E --> H{Paciente tomo?}
    F --> H
    G --> H

    H -->|Si| I{Tiene permiso marcar?}
    H -->|No| J[Registrar que intento contactar]

    I -->|Si| K[Marcar como tomada por cuidador]
    I -->|No| L[Confirmar supervision]

    K --> M[Notificar al paciente]
    L --> M
    J --> N[Alerta queda pendiente]

    M --> O[Alerta resuelta]

4.3. Notificacion al Paciente

Cuando cuidador toma accion:

  • Paciente recibe notificacion: "[Cuidador] marco tu toma de las [hora]"
  • Registro incluye quien marco la toma
  • Paciente puede corregir si fue error

5. Datos Requeridos

5.1. Input Data

interface CarerDashboardData {
  patient: PatientInfo;
  carer_permissions: CarerPermissions;
  escalated_alerts: EscalatedAlert[];
  upcoming_doses: UpcomingDose[];
  today_history: AlertHistoryItem[];
  summary: PatientSummary;
}

interface PatientInfo {
  id: string;
  name: string;
  avatar_url?: string;
  phone: string;
  relationship: string;
}

interface CarerPermissions {
  can_mark_taken: boolean;
  can_mark_omitted: boolean;
  can_view_details: boolean;
  can_modify_schedule: boolean;
}

interface EscalatedAlert {
  id: string;
  event_name: string;
  scheduled_time: Date;
  minutes_overdue: number;
  medications: string[];
  is_critical: boolean;
}

interface PatientSummary {
  adherence_today: number;
  doses_completed: number;
  doses_total: number;
  next_alert_time?: Date;
}

5.2. Output Events

Evento Payload Destino
onCall patient_phone Phone dialer
onMessage patient_id Messaging
onViewAlert alert_id SCR-ALT-002
onConfirmSupervision alert_id, note? API
onMarkTaken alert_id, carer_note? API + Notify patient
onMarkOmitted alert_id, reason API + Notify patient
onViewCalendar patient_id Calendar view

6. Accesibilidad

6.1. Labels y Hints

Elemento accessibilityLabel
Patient header "Cuidando a {nombre}"
Escalated alert "ALERTA: {nombre} no tomo {medicamentos} hace {minutos} minutos"
Call button "Llamar a {nombre}"
Message button "Enviar mensaje a {nombre}"
Summary card "Hoy: {adherencia}% adherencia, {completadas} de {total} tomas"
Dependent item "{nombre}, {estado}"

6.2. Screen Reader Announcements

Evento Anuncio
Dashboard abierto "{N} alertas pendientes para {nombre}"
Nueva alerta "Nueva alerta: {nombre} no tomo sus medicinas"
Accion tomada "{accion} registrada para {nombre}"
Supervision confirmada "Supervision confirmada"

7. Metricas

7.1. Analytics Events

Evento Parametros
carer_dashboard_view patient_id, alert_count
carer_action patient_id, action, alert_id
carer_call patient_id, from_alert
carer_message patient_id, from_alert
carer_mark_taken patient_id, alert_id
carer_response_time alert_id, seconds

8. Referencias


Documento generado por MobileUxUiDrone (Eight of Eight)