Saltar a contenido

SCR-PRN-004: Limites y Alertas

Identificador: SCR-PRN-004 Modulo: MTS-PRN-001 - Medicamentos PRN Version: 1.0.0 Fecha: 2025-12-05 Autor: MobileUxUiDrone (Eight of Eight)


1. Informacion General

Atributo Valor
Nombre Limites y Alertas
Tipo Pantalla de configuracion
Prioridad Alta
Roles PI, CR

2. Proposito

Configurar limites de dosis y alertas para medicamentos PRN, protegiendo al paciente de uso excesivo.


3. Wireframe ASCII

+------------------------------------------+
| [<] Limites y Alertas            [check] |
+------------------------------------------+
|                                          |
| Sumatriptan 50mg                         |
|                                          |
+------------------------------------------+
| LIMITES DE DOSIS                         |
+------------------------------------------+
|                                          |
| Maximo por dia                           |
| +--------------------------------------+ |
| |   [-]        2 dosis          [+]    | |
| +--------------------------------------+ |
|                                          |
| Maximo por semana                        |
| +--------------------------------------+ |
| |   [-]        10 dosis         [+]    | |
| +--------------------------------------+ |
|                                          |
| Intervalo minimo entre tomas             |
| +--------------------------------------+ |
| |        4 horas                  [>]  | |
| +--------------------------------------+ |
|                                          |
+------------------------------------------+
| ALERTAS                                  |
+------------------------------------------+
|                                          |
| [switch ON] Alertar al 80% del limite    |
|                                          |
| [switch ON] Bloquear al 100%             |
|             (siempre activo para este    |
|              tipo de medicamento)        |
|                                          |
| [switch OFF] Permitir override con       |
|              confirmacion                |
|                                          |
+------------------------------------------+
| NOTIFICAR A CUIDADOR                     |
+------------------------------------------+
|                                          |
| [switch ON] Notificar al alcanzar 80%    |
|                                          |
| [switch ON] Notificar si override        |
|                                          |
| Cuidadores que recibiran alertas:        |
| +--------------------------------------+ |
| | Maria Garcia (Responsable)   [check] | |
| | Juan Garcia (Solidario)      [check] | |
| +--------------------------------------+ |
|                                          |
+------------------------------------------+
| LIMITES RECOMENDADOS                     |
+------------------------------------------+
|                                          |
| Segun la prescripcion de Sumatriptan:    |
| - Maximo 2 dosis en 24 horas             |
| - Maximo 10 dosis por semana             |
| - Intervalo minimo de 2 horas            |
|                                          |
| [Restaurar recomendados]                 |
|                                          |
+------------------------------------------+

4. Elementos de UI

4.1. Header

Elemento Componente Accion
Back button IconButton Volver
Titulo TopAppBar "Limites y Alertas"
Save button IconButton Guardar

4.2. Summary

Elemento Componente Especificacion
Med Name Headline6 Bold

4.3. Limites Section

Elemento Componente Especificacion
Section Header SectionHeader "LIMITES DE DOSIS"
Daily Limit NumericStepper 1-20 dosis
Weekly Limit NumericStepper 1-100 dosis
Interval Dropdown 1h, 2h, 4h, 6h, 8h, 12h

4.4. Alertas Section

Elemento Componente Especificacion
Section Header SectionHeader "ALERTAS"
Alert 80% SwitchRow Toggle con label
Block 100% SwitchRow Deshabilitado si required
Override SwitchRow Toggle con warning

4.5. Cuidador Section

Elemento Componente Especificacion
Section Header SectionHeader "NOTIFICAR A CUIDADOR"
Notify 80% SwitchRow Toggle
Notify Override SwitchRow Toggle
Caregiver List CheckboxList Seleccionar cuidadores

4.6. Recomendados Section

Elemento Componente Especificacion
Section Header SectionHeader "LIMITES RECOMENDADOS"
Info Card Card info Limites segun prescripcion
Reset Button TextButton Restaurar recomendados

5. Comportamiento

5.1. Validacion de Limites

Campo Validacion
Daily >= 1, <= prescripcion max * 1.5
Weekly >= daily, <= 100
Interval Segun medicamento

5.2. Override

  • Disponible solo para algunos medicamentos
  • Requiere confirmacion explicita
  • Genera notificacion a cuidador
  • Se registra en historial

5.3. Bloqueo Obligatorio

  • Algunos medicamentos tienen bloqueo obligatorio
  • Switch deshabilitado con tooltip explicativo
  • Ej: Opioides, Benzodiacepinas

6. Estados

6.1. Estado Normal

  • Switches editables
  • Limites configurables

6.2. Estado Medicamento Controlado

+------------------------------------------+
| [lock] BLOQUEO OBLIGATORIO               |
|                                          |
| Este medicamento tiene limites de        |
| seguridad obligatorios que no pueden     |
| ser modificados.                         |
|                                          |
| Esto es por tu seguridad.                |
+------------------------------------------+

6.3. Estado Cambios No Guardados

  • Banner: "Tienes cambios sin guardar"
  • Confirmar al salir

7. Accesibilidad

7.1. WCAG 2.1 AA

Criterio Implementacion
1.3.1 Secciones con headings
2.1.1 Switches accesibles
3.3.2 Labels claros

7.2. Screen Reader

Elemento Anuncio
Stepper "[Campo], [valor] dosis, stepper"
Switch "[Opcion], switch, [on/off]"
Locked "[Campo], bloqueado por seguridad"

8. Navegacion

8.1. Entradas

Origen Accion Parametros
SCR-PRN-001 Menu config -
Detalle PRN Configurar med_id
Notificacion Tap med_id

8.2. Salidas

Destino Accion Parametros
SCR-PRN-001 Guardar/Back -

9. Analytics

Evento Trigger Datos
prn_limits_viewed Pantalla visible med_id
prn_limit_changed Cambiar limite field, old, new
prn_alert_toggled Toggle switch alert_type, enabled
prn_caregiver_notif_set Cambiar notif cuidador enabled
prn_limits_reset Restaurar recomendados med_id

Documento generado por MobileUxUiDrone (Eight of Eight)