Skip to content

Commit bd1b4cb

Browse files
committed
REC-136: Efectores y cuil paciente
1 parent ae9971f commit bd1b4cb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

core-v2/mpi/paciente/paciente.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export const PacienteSubSchema: mongoose.Schema = new mongoose.Schema({
147147
nombre: String,
148148
apellido: String,
149149
documento: String,
150+
cuil: String,
150151
fechaNacimiento: Date,
151152
sexo: SEXO,
152153
genero: String,
@@ -165,8 +166,7 @@ export const PacienteSubSchema: mongoose.Schema = new mongoose.Schema({
165166
localidad: NombreSchemaV2,
166167
zona: NombreSchemaV2,
167168
areaPrograma: NombreSchemaV2,
168-
addAt: Date
169-
169+
addAt: Date,
170170

171171
}, { _id: false });
172172

modules/recetas/receta-schema.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ const profesionalSubschema = new mongoose.Schema({
9595
profesion: String,
9696
matricula: Number,
9797
especialidad: String,
98+
efector: {
99+
id: String,
100+
nombre: String,
101+
direccion: String
102+
}
98103
});
99104

100105
const medicamentoSubschema = new mongoose.Schema({

modules/recetas/recetasController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ export async function create(req) {
601601
documento: profAndes.documento,
602602
profesion: profesionGrado,
603603
especialidad: especialidades,
604-
matricula: matriculaGrado
604+
matricula: matriculaGrado,
605+
efector: profRecetar.efector || null
605606
};
606607
}
607608
return await crearReceta(dataReceta, req);

0 commit comments

Comments
 (0)