Pantalla: Perfil Medico Compartible
Identificador: SCR-USR-010
Nombre: Perfil Medico Compartible
Modulo: MTS-USR-001 - Gestion de Usuarios
Version: 1.0.0
Fecha: 2025-12-05
Autor: MobileUxUiDrone (Eight of Eight)
| Atributo |
Valor |
| Tipo |
Configuracion + Generacion |
| Acceso |
SCR-USR-001 > Perfil Medico Compartible |
| Roles |
PI, CR (para dependientes) |
| Tiers |
Pro, Perfect |
| Prioridad |
Alta |
2. Proposito
Permite generar un perfil medico resumido para compartir con profesionales de salud de forma temporal y controlada. El paciente selecciona que informacion incluir y el formato de comparticion.
3. Wireframe
+--------------------------------------------------+
| [<] Perfil Medico Compartible |
+--------------------------------------------------+
| |
| Comparte informacion medica relevante con |
| profesionales de salud de forma segura. |
| |
+--------------------------------------------------+
| INFORMACION A INCLUIR |
+--------------------------------------------------+
| |
| OBLIGATORIO |
| |
| [x] Identificacion basica |
| Nombre, edad, genero, tipo de sangre |
| |
| [x] Alergias |
| Lista completa de alergias conocidas |
| |
| [x] Medicamentos activos |
| Medicamentos actuales con dosis |
| |
+--------------------------------------------------+
| OPCIONAL |
| |
| [ ] Condiciones cronicas |
| Diabetes, hipertension, etc. |
| |
| [ ] Adherencia al tratamiento |
| Estadisticas de los ultimos 30 dias |
| |
| [ ] Ultimos resultados de analisis |
| Valores de lab mas recientes |
| |
| [ ] Historial de interacciones |
| Alertas de interacciones generadas |
| |
| [ ] Medidas corporales |
| Peso, altura, IMC |
| |
+--------------------------------------------------+
| GENERAR PERFIL |
+--------------------------------------------------+
| |
| [QR icon] Generar QR |
| Valido por 15 minutos |
| |
| [PDF icon] Generar PDF |
| Descargar o compartir |
| |
| [Link icon] Generar enlace |
| Valido por 24 horas |
| |
+--------------------------------------------------+
| HISTORIAL DE COMPARTICIONES |
+--------------------------------------------------+
| |
| Hoy - 14:30 |
| QR generado - Visualizado 1 vez |
| |
| Ayer - 09:15 |
| PDF descargado |
| |
| [Ver historial completo] |
| |
+--------------------------------------------------+
4. Elementos de UI
4.1. Componentes
| ID |
Componente |
Tipo |
Requerido |
| header |
Top App Bar |
CMP-NAV-002 |
Si |
| intro_text |
Info Text |
- |
Si |
| section_required |
Section Header |
Text |
Si |
| checkboxes_required |
Checkbox List (disabled) |
CMP-INP-007 |
Si |
| section_optional |
Section Header |
Text |
Si |
| checkboxes_optional |
Checkbox List |
CMP-INP-007 |
Si |
| section_generate |
Section Header |
Text |
Si |
| btn_qr |
Action Row |
Custom |
Si |
| btn_pdf |
Action Row |
Custom |
Si |
| btn_link |
Action Row |
Custom |
Si |
| section_history |
Section Header |
Text |
Si |
| history_list |
Recent History |
Custom |
Si |
| Seccion |
Obligatorio |
Justificacion |
| Identificacion |
Si |
Necesaria para cualquier atencion |
| Alergias |
Si |
Critico para seguridad del paciente |
| Medicamentos |
Si |
Evitar interacciones |
| Condiciones |
No |
Contexto medico |
| Adherencia |
No |
Para medico tratante |
| Analisis |
No |
Resultados recientes |
| Interacciones |
No |
Historial de alertas |
| Medidas |
No |
Info complementaria |
5. Flujos de Generacion
5.1. Generar QR
flowchart TD
A[Tap Generar QR] --> B[Verificar selecciones]
B --> C{Al menos 1 opcional?}
C -->|No| D[Warning: Solo info basica]
C -->|Si| E[Continuar]
D --> E
E --> F[Re-autenticacion]
F --> G{Auth OK?}
G -->|Si| H[Generar QR token]
G -->|No| I[Cancelar]
H --> J[SCR-USR-011 con QR]
J --> K[Timer 15 min visible]
K --> L{Tiempo agotado?}
L -->|Si| M[QR expira]
L -->|No| N[QR activo]
5.2. Generar PDF
flowchart TD
A[Tap Generar PDF] --> B[Verificar selecciones]
B --> C[Re-autenticacion]
C --> D[Generar PDF]
D --> E[Share Sheet]
E --> F{Accion?}
F -->|Guardar| G[Guardar en Files]
F -->|Compartir| H[Enviar via app]
F -->|Imprimir| I[Dialogo impresion]
5.3. Generar Enlace
flowchart TD
A[Tap Generar Enlace] --> B[Verificar selecciones]
B --> C[Re-autenticacion]
C --> D[Crear enlace temporal]
D --> E[Mostrar enlace]
E --> F[Opciones]
F --> G[Copiar]
F --> H[Compartir]
F --> I[Cancelar enlace]
6. Estados
6.1. Estado Vacio (Sin datos medicos)
+--------------------------------------------------+
| ALERGIAS |
+--------------------------------------------------+
| |
| [!] No has registrado alergias |
| |
| Es importante registrar tus alergias antes |
| de compartir tu perfil medico. |
| |
| [Agregar alergias] |
+--------------------------------------------------+
6.2. Tier Free
+--------------------------------------------------+
| [lock] FUNCION PRO |
+--------------------------------------------------+
| |
| El perfil medico compartible esta disponible |
| en los planes Pro y Perfect. |
| |
| Incluye: |
| - QR temporal para consultas |
| - PDF descargable |
| - Enlaces seguros con expiracion |
| |
| [Ver planes] |
| |
+--------------------------------------------------+
7. Preview del Perfil
Antes de generar, el usuario puede ver preview:
+--------------------------------------------------+
| Vista previa del perfil |
+--------------------------------------------------+
| PERFIL MEDICO |
| |
| Nombre: Maria Garcia Lopez |
| Edad: 45 anos |
| Tipo sangre: O+ |
| |
| ALERGIAS |
| - Penicilina (Severa) |
| - Sulfas (Moderada) |
| |
| MEDICAMENTOS |
| - Metformina 850mg (2x dia) |
| - Lisinopril 10mg (1x dia) |
| |
| [condiciones, adherencia, etc. si seleccionados] |
| |
| [Volver] [Generar] |
+--------------------------------------------------+
8. Historial de Comparticiones
Cada comparticion se registra en audit log:
| Campo |
Valor |
| Fecha/hora |
Timestamp |
| Tipo |
QR / PDF / Link |
| Contenido incluido |
Lista de secciones |
| Vistas (QR/Link) |
Contador |
| Estado |
Activo / Expirado / Cancelado |
9. Accesibilidad
9.1. Screen Reader
| Elemento |
Label |
Hint |
| checkbox_required |
"[Nombre], obligatorio, marcado" |
"Este campo es obligatorio" |
| checkbox_optional |
"[Nombre], [estado]" |
"Toca para incluir o excluir" |
| btn_qr |
"Generar codigo QR" |
"Valido por 15 minutos" |
| btn_pdf |
"Generar PDF" |
"Descargar o compartir" |
| history_item |
"QR generado [fecha]" |
"Visualizado [n] veces" |
9.2. Consideraciones
- Checkboxes obligatorios visualmente distintos pero anunciados como tales
- Preview legible por screen reader
- QR tiene alternativa de texto/link
10. Eventos de Analytics
| Evento |
Trigger |
Parametros |
| share_profile_viewed |
Abrir pantalla |
tier |
| share_option_toggled |
Cambiar checkbox |
option, value |
| qr_generated |
Generar QR |
sections_count |
| pdf_generated |
Generar PDF |
sections_count |
| link_generated |
Generar enlace |
sections_count |
| share_viewed |
QR/Link visualizado |
type |
| share_expired |
QR/Link expira |
type |
11. Seguridad
| Aspecto |
Implementacion |
| Re-autenticacion |
Requerida antes de generar |
| Expiracion QR |
15 minutos hard limit |
| Expiracion Link |
24 horas, cancelable |
| Encriptacion |
HTTPS + token firmado |
| Single use option |
Disponible en Perfect |
| Audit trail |
Todas las comparticiones registradas |
12. Casos de Prueba
| ID |
Caso |
Resultado Esperado |
| TC-001 |
Usuario Free |
Mostrar upsell |
| TC-002 |
Generar QR |
QR visible con timer |
| TC-003 |
QR expira |
Mensaje + opcion regenerar |
| TC-004 |
Generar PDF |
Share sheet aparece |
| TC-005 |
Ver historial |
Lista de comparticiones |
| TC-006 |
Sin alergias |
Warning antes de generar |
13. Referencias
Documento generado por MobileUxUiDrone (Eight of Eight)