Skip to content

Commit

Permalink
feat(CIT): queries en prestacion de agenda
Browse files Browse the repository at this point in the history
  • Loading branch information
plammel committed Jan 5, 2022
1 parent 5414eb1 commit fa94113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions auth/permisos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default [
{ key: 'puedeBorrar', title: 'Borrar agenda', comment: 'Borra agendas en planificación', type: 'boolean' },
{ key: 'puedeRevision', title: 'Revisar agenda', comment: 'Revisión de agendas', type: 'boolean' },
{ key: 'puedeNota', title: 'Agregar nota', comment: 'Agregar nota', type: 'boolean' },
{ key: 'asignacionMasiva', title: 'Asignación masiva', comment: 'Asignar pacientes de agenda por lote', type: 'boolean' }
]
},
{
Expand Down
6 changes: 4 additions & 2 deletions core/tm/schemas/tipoPrestacion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Document, Model, model, Schema } from 'mongoose';
import { Document, Model, model, Schema, Types } from 'mongoose';

export interface ITipoPrestacion extends Document {
nombre?: string;
Expand All @@ -14,6 +14,7 @@ export interface ITipoPrestacion extends Document {
fsn: string;
semanticTag: String;
}[];
queries: [Types.ObjectId];
}


Expand All @@ -39,7 +40,8 @@ export const tipoPrestacionSchema = new Schema({
fsn: String,
semanticTag: String,
}]
}
},
queries: [Types.ObjectId]
});

/* Se definen los campos virtuals */
Expand Down

0 comments on commit fa94113

Please sign in to comment.