feat(pacientes): sync de pacientes Firebird → WhatsApp Lab

- Nuevo servicio whatsapp_sync.py: mapeo de campos RIPS→lab_pacientes
  y cliente HTTP para /api/lab/ingest_paciente.php
- Nueva ruta /pacientes con sync masiva por rango de fechas o todos
- Hook en /terceros/send y /automation/run: sync silencioso a WhatsApp
  después de cada envío a TNS
- Config: campos whatsapp_url y whatsapp_api_key + botón probar conexión

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-09 10:49:00 -05:00
co-authored by Claude Sonnet 4.6
parent b4288ac899
commit e7c6bc794a
9 changed files with 525 additions and 1 deletions
+2 -1
View File
@@ -65,7 +65,7 @@ async def root():
return RedirectResponse(url="/dashboard")
from app.routes import auth, dashboard, config, queries, terceros, transaccion, logs, automation, test_rda, debug_fb
from app.routes import auth, dashboard, config, queries, terceros, transaccion, logs, automation, test_rda, debug_fb, pacientes
app.include_router(auth.router)
app.include_router(dashboard.router)
@@ -77,6 +77,7 @@ app.include_router(logs.router)
app.include_router(automation.router)
app.include_router(test_rda.router)
app.include_router(debug_fb.router)
app.include_router(pacientes.router)
if __name__ == "__main__":