Saltar a contenido

Pantalla: Historial de Medicamentos

Identificador: SCR-MED-008 Modulo: MTS-MED-001 - Gestion de Medicamentos Version: 1.0.0 Fecha: 2025-12-05 Autor: MobileUxUiDrone (Eight of Eight) Estado: Especificado


1. Informacion General

Atributo Valor
Nombre Historial de Medicamentos
Proposito Ver medicamentos pasados y estadisticas historicas
Tipo Full Screen
Acceso Lista Medicamentos > Menu > Historial
Prioridad Media

2. Wireframe ASCII

2.1. Vista Principal

+------------------------------------------+
|  [<]    Historial                 [...]  |
+------------------------------------------+
|                                           |
|  +--------+ +----------+ +--------+      |
|  |  Todo  | | Finalizados| |Pausados|    |  <- Tabs
|  +--------+ +----------+ +--------+      |
|                                           |
|  2025                                     |  <- Year header
|                                           |
|  +------------------------------------+   |
|  | [Pill] Metformina 850mg               ||
|  |        2x dia                         ||
|  |        Mar 2024 - Presente            ||  <- Activo
|  |        [Activo] 95% adherencia        ||
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Cap]  Omeprazol 20mg                 ||
|  |        1x dia                         ||
|  |        Ene 2025 - Nov 2025            ||  <- Finalizado
|  |        [Finalizado] 87% adherencia    ||
|  +------------------------------------+   |
|                                           |
|  2024                                     |  <- Year header
|                                           |
|  +------------------------------------+   |
|  | [Pill] Ibuprofeno 400mg               ||
|  |        Segun necesidad                ||
|  |        Jun 2024 - Sep 2024            ||
|  |        [Finalizado] --                ||
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Inj]  Insulina Glargina              ||
|  |        10 UI/dia                      ||
|  |        Feb 2024 - May 2024            ||
|  |        [Pausado] 78% adherencia       ||
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

2.2. Tab: Solo Finalizados

+------------------------------------------+
|  [<]    Historial                 [...]  |
+------------------------------------------+
|                                           |
|  +--------+ +----------+ +--------+      |
|  |  Todo  | |Finalizados| |Pausados|    |
|  +--------+ +----------+ +--------+      |
|            ^^ activo ^^                   |
|                                           |
|  3 medicamentos finalizados               |
|                                           |
|  +------------------------------------+   |
|  | [Cap]  Omeprazol 20mg                 ||
|  |        1x dia                         ||
|  |        Ene 2025 - Nov 2025            ||
|  |        Motivo: Tratamiento completo   ||
|  |        87% adherencia                 ||
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  | [Pill] Ibuprofeno 400mg               ||
|  |        Segun necesidad                ||
|  |        Jun 2024 - Sep 2024            ||
|  |        Motivo: Ya no lo necesito      ||
|  |        --                             ||
|  +------------------------------------+   |
|                                           |
|  ... mas items ...                        |
|                                           |
+------------------------------------------+

2.3. Detalle de Medicamento Historico

+------------------------------------------+
|  [<]    Omeprazol 20mg            [...]  |
+------------------------------------------+
|                                           |
|  +------------------------------------+   |
|  |  [Cap]  Omeprazol 20mg                ||
|  |         [Finalizado]                  ||
|  +------------------------------------+   |
|                                           |
|  PERIODO                                  |
|  +------------------------------------+   |
|  |  Inicio: 15 de Enero, 2025            ||
|  |  Fin: 20 de Noviembre, 2025           ||
|  |  Duracion: 10 meses                   ||
|  +------------------------------------+   |
|                                           |
|  CONFIGURACION                            |
|  +------------------------------------+   |
|  |  Dosis: 20mg                          ||
|  |  Frecuencia: 1 vez al dia             ||
|  |  Horario: 07:00 AM                    ||
|  |  Instrucciones: Antes del desayuno    ||
|  +------------------------------------+   |
|                                           |
|  ESTADISTICAS                             |
|  +------------------------------------+   |
|  |  Adherencia total: 87%                ||
|  |  Tomas registradas: 274 de 315        ||
|  |  Mejor racha: 45 dias                 ||
|  +------------------------------------+   |
|                                           |
|  MOTIVO DE FINALIZACION                   |
|  +------------------------------------+   |
|  |  Tratamiento completado               ||
|  |  Nota: Control de acidez logrado      ||
|  +------------------------------------+   |
|                                           |
|  +------------------------------------+   |
|  |    [Reactivar medicamento]           ||  <- Si aplica
|  +------------------------------------+   |
|                                           |
+------------------------------------------+

3. Componentes UI

3.1. Tab Bar

Propiedad Valor
Componente CMP-NAV-003
Variante fixed
Tabs Todo, Finalizados, Pausados

3.2. History Card

Elemento Especificacion
Icono CMP-DAT-006 (32x32dp)
Nombre Text lg, primary
Frecuencia Text sm, secondary
Periodo Text sm, secondary
Status chip CMP-DAT-003
Adherencia Text sm, con color segun %

3.3. Year Section Header

Propiedad Valor
Tipo Sticky header
Tipografia lg, bold
Background neutral.100

3.4. Adherence Indicator

Rango Color
>= 90% success.main
70-89% warning.main
< 70% error.main
N/A neutral.500

4. Datos Requeridos

4.1. Input Data

interface HistoryScreenData {
  medications: HistoricalMedication[];
  filters: {
    status: 'all' | 'completed' | 'paused';
    year?: number;
  };
}

interface HistoricalMedication {
  id: string;
  name: string;
  dosage: string;
  frequency: string;
  icon: MedicationIcon;
  startDate: Date;
  endDate?: Date;
  status: 'ACTIVE' | 'COMPLETED' | 'PAUSED';
  endReason?: string;
  endNote?: string;
  adherencePercentage?: number;
  totalDoses?: number;
  takenDoses?: number;
  longestStreak?: number;
}

4.2. Output Events

Evento Payload Destino
onMedicationTap medication_id SCR-MED-002 (read-only)
onTabChange tab_name Filter list
onReactivate medication_id Confirmation > API
onExport format Export flow

5. Funcionalidades

5.1. Exportar Historial

Menu overflow:

  • Exportar como PDF
  • Exportar como CSV
  • Compartir con medico (futuro)

5.2. Filtros Adicionales (Menu)

  • Por ano
  • Por rango de fechas
  • Por adherencia (alta/media/baja)

5.3. Reactivar Medicamento

  1. Tap en card de medicamento finalizado/pausado
  2. Ver detalles historicos
  3. Tap "Reactivar"
  4. Confirmar configuracion (o editar)
  5. Medicamento vuelve a lista activa

6. Accesibilidad

6.1. Labels

Elemento accessibilityLabel
Tab "{nombre}, {estado seleccion}, pestana {n} de 3"
Year header "Ano {year}"
History card "{nombre}, {frecuencia}, {periodo}, estado {status}, adherencia {%}"
Reactivate button "Reactivar {nombre}"

6.2. Orden de Foco

  1. Back button
  2. Menu button
  3. Tab bar (cada tab)
  4. Primera card del ano mas reciente
  5. ... cards siguientes
  6. Year headers son navegables pero no focuseables

7. Metricas

Evento Parametros
history_view tab_name, total_count
history_tab_change from_tab, to_tab
history_card_tap medication_id, status
history_reactivate medication_id
history_export format

8. Referencias


Documento generado por MobileUxUiDrone (Eight of Eight)