fix(PACS): modifica Dicom Accession Number#2227
Merged
Conversation
97a2ef0 to
748cb0a
Compare
silviroa
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requerimiento
Corrección de inconsistencias en la generación de datos DICOM para integración PACS, y unificación del criterio de identificación de pacientes entre PACS y HL7v2.
Funcionalidad desarrollada
Accession Number determinista: reemplaza
Date.now()porbase64url(ObjectId de la prestación)— mismo accession para la misma prestación, cabe exactamente en VR SH (16 chars), reversible.Other Patient ID (
00101002) corregido: cuando el paciente tiene documento, el ID alternativo es siempre el "otro" identificador — DNI siusoIdDNI=false, sufijo del ObjectId siusoIdDNI=true. Antes siempre se enviaba el sufijo del ObjectId independientemente del flag.ID sintético para pacientes sin DNI: cuando
usoIdDNI=truey el paciente no tiene documento, se genera un ID con el mismo patrón que HL7v2:E{numeroIdentificacion}o sufijo del ObjectId, más sexo y primeras 5 letras del apellido. Cabe en hl7v2(15 chars). El sufijo completo del ObjectId queda enotherPatientId(00101002) para reconciliación.Guardado del identificador PACS en el paciente: al sincronizar el worklist, se persiste el ID PACS generado en
paciente.identificadorescon entidadANDESPACS, siguiendo el mismo patrón que HL7v2. Permite lookup cruzado y auditoría del ID asignado.Informe PDF linkea por Accession Number con el worklist:
00080050en el informe ahora usa el valor guardado en metadata (pacs-accessionNumber) en lugar del conceptId del tipo de prestación, permitiendo correlación correcta entre worklist y estudio.Nombre del profesional en informe en formato DICOM estándar:
DICOMInformeusabuildDicomName(APELLIDO^NOMBRE) consistente con el worklist. Antes usabaapellido, nombrecon coma.fix(HL7v2): normalización de entidad en comparación de identificadores: se agrega
normalizeIdentifierEntitypara ignorar espacios en blanco al buscar identificadores existentes enpaciente.identificadores, evitando duplicados por diferencias de formato (absorbe el PR fix(hl7v2): remove empty char in hl7v2 id #2229).UserStories llegó a completarse
Requiere actualizaciones en la base de datos