From a52d4ff411fd55b4ed0538e72f0ca3f1a43596ea Mon Sep 17 00:00:00 2001 From: Fabio-Ramirez Date: Mon, 18 May 2026 10:06:34 -0300 Subject: [PATCH] AM - Error al escanear paciente desde perfil profesional --- core-v2/mpi/paciente/paciente.controller.ts | 1 + core-v2/mpi/paciente/paciente.schema.ts | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/core-v2/mpi/paciente/paciente.controller.ts b/core-v2/mpi/paciente/paciente.controller.ts index 6a75a82e35..384617e55c 100644 --- a/core-v2/mpi/paciente/paciente.controller.ts +++ b/core-v2/mpi/paciente/paciente.controller.ts @@ -19,6 +19,7 @@ import { PacienteCtr } from './paciente.routes'; import { Paciente, replaceChars } from './paciente.schema'; import { Prestacion } from '../../../modules/rup/schemas/prestacion'; import { EventCore } from '@andes/event-bus/index'; +import { Console } from 'console'; /** * Crea un objeto paciente diff --git a/core-v2/mpi/paciente/paciente.schema.ts b/core-v2/mpi/paciente/paciente.schema.ts index 9d135df71d..66d1db16b6 100644 --- a/core-v2/mpi/paciente/paciente.schema.ts +++ b/core-v2/mpi/paciente/paciente.schema.ts @@ -71,7 +71,8 @@ export const PacienteSchema: mongoose.Schema = new mongoose.Schema({ id: mongoose.Schema.Types.ObjectId, nombre: String, apellido: String, - documento: Number }, + documento: Number + }, registradoEn: Date }, estadoCivil: ESTADOCIVIL, @@ -117,6 +118,11 @@ export const PacienteSchema: mongoose.Schema = new mongoose.Schema({ organizacion: NombreSchema, nroCarpeta: String }], + posibleDuplicado: [{ + id: mongoose.Schema.Types.ObjectId, + score: Number, + fecha: Date + }], notas: [{ fecha: Date, titulo: String, @@ -172,6 +178,11 @@ export const PacienteSubSchema: mongoose.Schema = new mongoose.Schema({ organizacion: nombreSchema, nroCarpeta: String }], + posibleDuplicado: [{ + id: mongoose.Schema.Types.ObjectId, + score: Number, + fecha: Date + }], obraSocial: { type: obraSocialSchema }, localidad: NombreSchemaV2, zona: NombreSchemaV2,