Commit Graph
620 Commits
Author SHA1 Message Date
Lizandro Guarnizo 62c4e7a18c up 2026-06-16 16:05:04 -05:00
Lizandro Guarnizo 9e79b8ff56 Update display_global.php 2026-06-16 15:59:38 -05:00
Lizandro Guarnizo f13a06b63a Update display_global.php 2026-06-16 15:53:49 -05:00
Lizandro Guarnizo acbc1d0714 up 2026-06-16 15:37:34 -05:00
Lizandro Guarnizo 7f84c7f3ae Update display_global.php 2026-06-16 15:16:23 -05:00
Lizandro Guarnizo 6be28ae5af up 2026-06-16 15:03:40 -05:00
Lizandro Guarnizo eaa8a23af6 UP 2026-06-16 14:51:46 -05:00
Lizandro Guarnizo 56489a1557 Update lugar.php 2026-06-16 14:12:22 -05:00
Lizandro Guarnizo f51cc2029c Update lugar.php 2026-06-16 14:03:47 -05:00
Lizandro Guarnizo 8b64b77c0e Update lugar.php 2026-06-16 13:55:20 -05:00
Lizandro Guarnizo fc14360e2e up 2026-06-16 13:35:03 -05:00
Lizandro Guarnizo 1b9c8efaad Update lugar.php 2026-06-16 13:28:14 -05:00
Lizandro Guarnizo b11a7f5f98 up 2026-06-16 13:20:13 -05:00
Lizandro Guarnizo 5af94e50e5 up 2026-06-16 13:04:59 -05:00
Lizandro Guarnizo e7a068243c up 2026-06-16 12:55:39 -05:00
Lizandro Guarnizo b66f52864d Update recepcion.php 2026-06-16 12:47:39 -05:00
Lizandro Guarnizo 047583604d Update recepcion.php 2026-06-16 12:14:26 -05:00
Lizandro Guarnizo 415ea3ef56 up 2026-06-16 12:06:26 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 275170f9d5 fix: show all signature fields in print, canvas only once
- All firma/firma_profesional positions render with shared signature image
- Canvas widget for nurse appears only once (no duplicate inputs)
- Signed image replicates to every position of the same type

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:44:02 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 d7b1aea5a4 fix: signature fields deduplicate and share across same-type fields
- PHP pre-computes one shared SVG per type (firma/firma_profesional)
- Schema loop skips duplicate firma fields of same type already rendered
- Patient signature from turnero widget propagates to all 'firma' schema fields
- firmar_profesional.php saves nurse signature to ALL firma_profesional fields

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:41:20 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 8a5b4eef1e fix: ensure turnoActivo.estado is en_recepcion after guardarSolicitud
Guarantees that the turno state is correct in memory before pasarALugar()
attempts the transition to en_espera_lugar, preventing 'espera' → 'en_espera_lugar'
errors.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:30:44 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 9872f50104 fix: onLugarChange no longer hides desk consents
The sel-lugar dropdown is only for selecting the patient's next destination.
Desk consents are loaded by cargarConsentimientosDesk() on turno open
and must not be affected by destination lugar changes.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:24:02 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 d8a6581fe5 fix: load desk consents automatically when a turno is opened
- cargarConsentimientosDesk() called from abrirFicha using DESK_ID
- First checks existing DB records (get_consentimientos), falls back to desk config
- abrirFormularioLugar shows proper errors if no patient or no turno
- Starts polling on open to detect patient signature in real time
- Fix creado_at column error in create_consent_token INSERT

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:20:22 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 5b02be6686 fix: correct API response path for lugar formularios in recepcion
- API returns json.formularios, not json.data.formularios
- Now consents will properly display when selecting a lugar
- Fixes issue where configured consents were not appearing in recepcion

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:15:15 -05:00
Lizandro GuarnizoandClaude Haiku 4.5 8a5e57cebe fix: retrieve full consent data with token from create_solicitud
- Include id, token, estado, and turno_id in consent response
- Allows renderConsentimientos to display all consent information correctly
- Ensures consents created for lugar are properly shown with all fields

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-16 11:11:22 -05:00
Lizandro Guarnizo ea40cf8dae up 2026-06-16 11:07:24 -05:00
Lizandro Guarnizo 6a8a8e0826 up 2026-06-16 11:00:15 -05:00
Lizandro Guarnizo 67d45b8910 up 2026-06-16 09:32:41 -05:00
Lizandro Guarnizo 7ce29f3f14 Update recepcion.php 2026-06-16 09:11:58 -05:00
Lizandro Guarnizo 632c98cae8 Update recepcion.php 2026-06-16 08:58:14 -05:00
Lizandro Guarnizo cef40a7a43 up 2026-06-16 08:53:28 -05:00
Lizandro Guarnizo 42ccb1d436 up 2026-06-16 08:02:30 -05:00
Lizandro Guarnizo 35b13468b6 up 2026-06-16 07:02:04 -05:00
Lizandro Guarnizo 64f21b083a up 2026-06-13 13:24:49 -05:00
Lizandro Guarnizo f34d19b3df up 2026-06-13 13:19:02 -05:00
Lizandro Guarnizo 0e51165108 Update create_turno.php 2026-06-13 13:11:42 -05:00
Lizandro Guarnizo 3b70cf2ae8 Update conversations.php 2026-06-13 08:22:25 -05:00
Lizandro Guarnizo 8df97829e2 Update display_global.php 2026-06-11 23:42:18 -05:00
Lizandro Guarnizo 7be3d1601b Update display_global.php 2026-06-11 23:39:17 -05:00
Lizandro Guarnizo 41b1078723 Update display_global.php 2026-06-11 23:35:17 -05:00
Lizandro Guarnizo 3cc0ce83c3 Update display_global.php 2026-06-11 23:29:58 -05:00
Lizandro Guarnizo d93cf0ab0d Update display_global.php 2026-06-11 23:25:59 -05:00
Lizandro Guarnizo 255944e677 Update display_global.php 2026-06-11 23:22:16 -05:00
Lizandro Guarnizo c286d7b374 Update display_global.php 2026-06-11 23:20:40 -05:00
Lizandro Guarnizo 8f16bdd1a8 Update display_global.php 2026-06-11 23:17:31 -05:00
Lizandro Guarnizo 98d81c3ebb Update display_global.php 2026-06-11 23:14:43 -05:00
Lizandro Guarnizo 375cba86eb up 2026-06-11 23:11:32 -05:00
Lizandro Guarnizo ca964c76a3 up 2026-06-11 22:52:45 -05:00
Lizandro Guarnizo 23a21d02fb Update display_global.php 2026-06-11 22:36:11 -05:00
Lizandro Guarnizo 06caa0270c Update display_global.php 2026-06-11 22:25:00 -05:00