SCR-PRN-001: Lista de Medicamentos PRN
Identificador: SCR-PRN-001
Modulo: MTS-PRN-001 - Medicamentos PRN
Version: 1.0.0
Fecha: 2025-12-05
Autor: MobileUxUiDrone (Eight of Eight)
| Atributo |
Valor |
| Nombre |
Lista de Medicamentos PRN |
| Tipo |
Pantalla principal |
| Prioridad |
Alta |
| Roles |
PI, CR |
2. Proposito
Mostrar todos los medicamentos configurados como PRN (segun necesidad) con indicadores de uso y limites.
3. Wireframe ASCII
+------------------------------------------+
| [<] Medicamentos PRN [...] |
+------------------------------------------+
| |
| HOY |
| 2 de 4 medicamentos usados |
| |
+------------------------------------------+
| |
| +--------------------------------------+ |
| | [pill] Sumatriptan 50mg | |
| | | |
| | 1 de 2 dosis hoy | |
| | ============50% | |
| | | |
| | Ultima toma: 10:30 AM | |
| | [Registrar toma] | |
| +--------------------------------------+ |
| |
| +--------------------------------------+ |
| | [pill] Lorazepam 1mg [!] | |
| | | |
| | 2 de 3 dosis hoy | |
| | ================67% | |
| | | |
| | Ultima toma: 2:00 PM | |
| | Prox. disponible: 8:00 PM | |
| | [Registrar toma] | |
| +--------------------------------------+ |
| |
| +--------------------------------------+ |
| | [pill] Paracetamol 500mg | |
| | | |
| | 0 de 8 dosis hoy | |
| | 0% | |
| | | |
| | Sin uso hoy | |
| | [Registrar toma] | |
| +--------------------------------------+ |
| |
| +--------------------------------------+ |
| | [pill] Omeprazol 20mg [X] | |
| | | |
| | 1 de 1 dosis hoy | |
| | ====================100% | |
| | | |
| | Limite alcanzado | |
| | Disponible manana | |
| +--------------------------------------+ |
| |
+==========================================+
| [+] REGISTRAR TOMA |
+------------------------------------------+
4. Elementos de UI
| Elemento |
Componente |
Accion |
| Back button |
IconButton |
Volver a MTS-MED-001 |
| Titulo |
TopAppBar |
"Medicamentos PRN" |
| Menu |
IconButton |
Opciones |
4.2. Summary Section
| Elemento |
Componente |
Especificacion |
| Date |
Subtitle1 |
"HOY" |
| Usage |
Body2 |
"X de Y medicamentos usados" |
4.3. PRN Medication Card
| Elemento |
Componente |
Especificacion |
| Container |
Card elevated |
Tap para detalle |
| Pill Icon |
Icon |
medication, 32dp |
| Med Name |
Headline6 |
Nombre + concentracion |
| Alert Badge |
Badge |
! (warning), X (blocked) |
| Usage Text |
Body1 |
"X de Y dosis hoy" |
| Progress Bar |
LinearProgress |
Porcentaje de uso |
| Last Take |
Caption |
"Ultima toma: HH:MM" |
| Next Available |
Caption |
"Prox. disponible: HH:MM" |
| Action |
TextButton |
"Registrar toma" |
4.4. Progress Bar Colors
| Estado |
Color |
Porcentaje |
| Normal |
Verde #4CAF50 |
0-50% |
| Caution |
Amarillo #FFC107 |
51-79% |
| Warning |
Naranja #FF9800 |
80-99% |
| Blocked |
Rojo #F44336 |
100% |
4.5. FAB
| Elemento |
Componente |
Especificacion |
| FAB |
ExtendedFAB |
"+ REGISTRAR TOMA" |
| Position |
Bottom center |
Safe area |
5. Comportamiento
5.1. Estados de Medicamento
| Estado |
Indicador |
Accion Permitida |
| Disponible |
Sin badge |
Registrar toma |
| Intervalo |
Timer |
Registrar cuando disponible |
| Warning |
Badge ! |
Registrar con advertencia |
| Bloqueado |
Badge X |
No permitido |
5.2. Intervalo Minimo
- Algunos PRN tienen intervalo minimo (ej: 6 horas)
- Se muestra countdown hasta proxima disponibilidad
- Boton deshabilitado hasta entonces
| Opcion |
Accion |
| Ver historial |
SCR-PRN-005 |
| Ver estadisticas |
SCR-PRN-006 |
| Configurar limites |
SCR-PRN-004 |
| Agregar PRN |
Agregar medicamento PRN |
6. Estados
6.1. Estado Vacio
+------------------------------------------+
| |
| [ilustracion PRN] |
| |
| No tienes medicamentos PRN |
| |
| Los medicamentos PRN son los que |
| tomas "segun necesidad", como |
| analgesicos o antiacidos. |
| |
| [+ Agregar medicamento PRN] |
| |
+------------------------------------------+
6.2. Estado Con Alertas
- Cards con warning/blocked en orden prioritario
- Banner superior si hay limite alcanzado
7. Accesibilidad
7.1. WCAG 2.1 AA
| Criterio |
Implementacion |
| 1.4.1 |
Colores + iconos + texto |
| 1.4.3 |
Contraste en progress |
| 2.4.6 |
Labels descriptivos |
7.2. Screen Reader
| Elemento |
Anuncio |
| Card normal |
"[Med], [X] de [Y] dosis hoy, [disponible]" |
| Card warning |
"[Med], advertencia, [X] de [Y] dosis, [estado]" |
| Card blocked |
"[Med], limite alcanzado, disponible [cuando]" |
8. Navegacion
8.1. Entradas
| Origen |
Accion |
Parametros |
| MTS-MED-001 |
Tab PRN |
- |
| Quick Action |
Widget/notif |
- |
8.2. Salidas
| Destino |
Accion |
Parametros |
| SCR-PRN-002 |
FAB o card action |
med_id (opcional) |
| SCR-PRN-004 |
Menu config |
- |
| SCR-PRN-005 |
Menu historial |
- |
| SCR-PRN-006 |
Menu stats |
- |
| Detalle PRN |
Tap card |
med_id |
9. Analytics
| Evento |
Trigger |
Datos |
prn_list_viewed |
Pantalla visible |
count, with_alerts |
prn_card_tapped |
Tap card |
med_id |
prn_register_started |
Tap registrar |
med_id, from |
Documento generado por MobileUxUiDrone (Eight of Eight)