25 Commits

Author SHA1 Message Date
Alejandro Gomez Auad
6fab08b12b Agrega proxy GET /fhir/Bundle/:id/$icvp hacia el nodo nacional
Sigue el mismo patrón que $ddcc, $dvc, $icvp2 y $meow: obtiene el
Bundle del HAPI FHIR local y delega la transformación al nodo
nacional, que ahora soporta POST /Bundle/$icvp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-23 14:59:06 +00:00
Alejandro Gomez Auad
d32c802c48 Revert ITI-67 patient subject back to fullUrl reference
DocumentReference.subject must be a literal reference (min=1 on
.reference per the DocumentReferenceOrigenAR profile), not an
identifier token: the Bus rejects subject.identifier. Go back to
using the Patient entry's fullUrl as the reference in both ITI-65 and
ITI-67 (ITI-65 was never committed with the identifier-based version,
so only ITI-67 needed the revert here), dropping the now-unused
extractNationalIdentifier helper.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-16 23:32:44 +00:00
Alejandro Gomez Auad
b2bc5549ff Fix ITI-67 patient national ID resolution to use the Federador identifier
listDocumentReference was using the Patient entry's fullUrl as the
national ID passed to the document registry search. It now extracts
the Patient identifier whose system is the Federador national-id
system and builds a system|value token, wiring in the previously
unused extractNationalIdentifier helper.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-16 22:28:22 +00:00
Alejandro Gomez Auad
c5b0d1c480 Corregido el parametro type de ITI-67 para que sea un token FHIR real
Se saca el mapeo de etiquetas propias (IPS/MeOW/IT) a codigo LOINC:
'type' ahora se pasa tal cual al Bus como token FHIR (system|code),
consistente con la semantica estandar de busqueda por token en FHIR,
en vez de una convencion propia que solo este gateway entendia.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-15 16:52:08 +00:00
Alejandro Gomez Auad
7e1b0585e7 Agregado filtro por tipo de documento en ITI-67
Find Document References ahora acepta un parametro opcional 'type'
(IPS, MeOW, IT, o un token FHIR system|code) para buscar solo el
tipo de documento pedido. Se extrae el mapa de tipos de documento a
constants/documentTypes.js para compartirlo entre ITI-65 e ITI-67.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-15 15:58:32 +00:00
Alejandro Gomez Auad
df87fc5ee7 Agregadas variantes de ITI-65 para MeOW e IT ademas de IPS
Se generaliza el controller para recibir el tipo de documento (LOINC)
en vez de hardcodear el de IPS, y se agregan las rutas y mapeos de
nginx para /fhir/MeOWTransaction, /fhir/MeOWDocument, /fhir/ITTransaction
y /fhir/ITDocument, siguiendo la misma logica que las rutas IPS existentes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-15 03:14:32 +00:00
Alejandro Gomez Auad
1fbc308d66 Agregar proxy de transformaciones IPS hacia el nodo nacional (bundle-signer)
Nuevas rutas GET /fhir/Bundle/:id/$ddcc, $dvc, $icvp2 y $meow: obtienen el
Bundle del HAPI FHIR local y delegan la transformación al nodo nacional
(bundle-signer), que es quien tiene las claves de firma, devolviendo la
respuesta tal cual. Se agrega BUNDLE_SIGNER_URL como variable de entorno
requerida para configurar la URL del nodo nacional.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 03:16:43 +00:00
ca4db597cc Eliminados serviciso de VHL redundantes 2026-04-30 20:48:40 +00:00
b459e5aa86 Se agrega el parametro patient.identifier al iti67 2026-04-30 18:09:16 +00:00
a40f5744c9 Ajustadas las rutas de los servicios 2026-04-30 16:24:13 +00:00
a7cce12679 Actualizado el manejo de errores para el iti68 2026-04-30 16:02:38 +00:00
9be8780edf Ajustadas las rutas de los servicios 2026-04-30 16:01:16 +00:00
3287b9cde9 Extraidos los llamados al servidor HAPI FHIR de los controladores 2026-04-30 15:25:46 +00:00
3a776835b1 Actualizado iti65 2026-04-30 12:07:59 +00:00
e3ed9c88b6 Ajustados los servicios 2026-04-30 12:00:38 +00:00
9f5dac1a30 Corregido errores en llamada de servicios de Patient y DocumentRefernece en el bus 2026-04-30 11:14:55 +00:00
1a0f7b76b8 Normalizados los nombres de los metodos de bus-gateway 2026-04-30 04:41:23 +00:00
a873231843 Renombrados metodos del controlador de Patient para mayor claridad 2026-04-30 03:41:57 +00:00
d2a6132f11 Renombrado el metodo download de iti68.js por getBundleById 2026-04-30 03:40:33 +00:00
28acb2b130 Renombrado el metodo findDocumentReferneces por listDocumentReference 2026-04-30 03:39:16 +00:00
4a6e3f8889 Cambiado el valor estatico de la fecha por la fecha actual en la generación del DocumentReference del Indice de documentos 2026-04-28 20:31:34 +00:00
b939be580e Corregido erorres de tipeo en iti65 2026-04-28 12:50:13 +00:00
28e3cc8ea6 Se agrega el campo use al campo masterIdentifier del busDocumentReference en createBusDocumentReference 2026-04-28 12:18:55 +00:00
ba84a97fb5 Acgregado uuid para la genearción del masterIdentifier 2026-04-28 12:13:38 +00:00
89fad9ab64 Primer commit 2026-04-27 04:25:52 +00:00