feat: queries reales Firebird y generadores JSON para API ERP

- json_generator: nuevas funciones generar_tercero_api y generar_rda_paciente
  mapeando PACIENTE/RECEPCION/RELACION al formato de los endpoints
  Tercero/Crear y RdaPaciente/Insertar
- queries: reemplaza placeholders por consultas reales sobre PACIENTE,
  RECEPCION, RELACION, MEDICO y CIUDAD
- config: agrega api_version y api_sucursal; actualiza url y credenciales Firebird
- terceros/transaccion routes: usan nuevos generadores y endpoints correctos

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-25 17:27:00 -05:00
co-authored by Claude Sonnet 4.6
parent 26243aa2bc
commit 774ce7d728
6 changed files with 260 additions and 93 deletions
+3 -1
View File
@@ -11,10 +11,12 @@ DEFAULT_KEYS = [
("firebird_database", "/path/to/database.fdb"),
("firebird_user", "SYSDBA"),
("firebird_password", "masterkey"),
("api_url", "https://api.example.com/rips"),
("api_url", "http://192.168.0.125"),
("api_method", "POST"),
("api_key", ""),
("api_timeout", "30"),
("api_version", "1"),
("api_sucursal", ""),
("num_documento_obligado", ""),
("cod_prestador", ""),
]