Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapa-camas - Marcar una internación como censable aunque la cama no lo sea #1440

Merged
merged 2 commits into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/rup/internacion/censo.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function realizarConteo(internaciones, unidadOrganizativa, timestampStart,
}
}

if (!ultimoMovimiento.esCensable) {
if (!ultimoMovimiento.esCensable && !(prestacion as any).ejecucion.registros[0].esCensable) {
return;
}
if (fechaEgreso) {
Expand Down
1 change: 0 additions & 1 deletion modules/rup/routes/prestacion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ router.patch('/prestaciones/:id', (req: Request, res, next) => {
if (req.body.solicitud) {
data.solicitud = req.body.solicitud;
}

if (req.body.paciente) {
data.paciente = req.body.paciente;
}
Expand Down
5 changes: 4 additions & 1 deletion modules/rup/schemas/prestacion.registro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ schema.add({
// Indica los id de otros registros dentro array 'registros' de la prestación
// O un conceptId si el registro está relacionado con un concepto (ej: un registro de "caries" con concepto "diente 18")
relacionadoCon: [mongoose.Schema.Types.Mixed],

esCensable: {
type: Boolean,
required: false
},
/**
* ID del ElementoRUP utilizado
*/
Expand Down