File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
100105const medicamentoSubschema = new mongoose . Schema ( {
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments