10 Commits

Author SHA1 Message Date
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
b459e5aa86 Se agrega el parametro patient.identifier al iti67 2026-04-30 18:09:16 +00:00
3287b9cde9 Extraidos los llamados al servidor HAPI FHIR de los controladores 2026-04-30 15:25:46 +00:00
e3ed9c88b6 Ajustados los servicios 2026-04-30 12:00:38 +00:00
1a0f7b76b8 Normalizados los nombres de los metodos de bus-gateway 2026-04-30 04:41:23 +00:00
28acb2b130 Renombrado el metodo findDocumentReferneces por listDocumentReference 2026-04-30 03:39:16 +00:00
89fad9ab64 Primer commit 2026-04-27 04:25:52 +00:00