Skip to content

IN - sacar formulario estadístico de colección 'prestaciones' - #2133

Open
nicolasarana wants to merge 15 commits into
nueva-capa-estadisticafrom
IN-658
Open

nicolasarana wants to merge 15 commits into
nueva-capa-estadisticafrom
IN-658

Conversation

@nicolasarana

@nicolasarana nicolasarana commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Requerimiento

IN-658
IN-665 Modificar listado de internacion
IN-666 Corregir test de capa estadística
IN-667 Modificar censos diario y mensual
IN-671 Cambiar visualización de huds de la internación estadística
IN-675 Bugs en movimientos de camas

Funcionalidad desarrollada

  1. Crear api para la nueva colección usando resourceBase.
  2. Modificar el registro de ingreso en base al nuevo esquema utilizando las rutas definidas anteriormente.

UserStories llegó a completarse

  • Si
  • No

Requiere actualizaciones en la base de datos

  • Si
  • No

@nicolasarana
nicolasarana requested review from a team as code owners October 24, 2025 13:40
@nicolasarana
nicolasarana requested review from MCele and negro89 and removed request for a team October 24, 2025 13:40
@nicolasarana
nicolasarana force-pushed the IN-658 branch 5 times, most recently from 771d702 to c43153e Compare November 4, 2025 12:31
Comment thread core/tm/controller/localidad.ts Outdated
@@ -1,5 +1,6 @@

import { MatchingAndes } from '@andes/match/lib/matchingAndes.class';
// import { MatchingAndes } from '@andes/match/lib/matchingAndes.class';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Borrar comentario.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corregido

import { schema as procQuirurgicosSchema } from '../../../core/tm/schemas/procedimientoQuirurgico';
import { schema as Cie10 } from '../../../core/term/schemas/cie10';
import { model as OcupacionSchema } from '../../../core/tm/schemas/ocupacion';
// import { model as OcupacionSchema } from '../../../core/tm/schemas/ocupacion';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Borrar comentarios

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corregido

Comment on lines +36 to +37
// situacionLaboral: { type: String, required: false },
// nivelInstruccion: { type: String, required: false },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Borrar comentarios

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corregido

Comment on lines +184 to +186
} else {
await Prestacion.update(
{ _id: req.body.idInternacion },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me queda la duda de este else por que se modifica la prestacion? Que ocurre si viene una capa medica donde no se trabajan prestaciones?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El else mantiene el comportamiento original del sistema. Antes de este cambio siempre se ejecutaba Prestacion.update sin distinguir capa.
Ahora solo se agregó el caso para capa estadistica, que guarda en InformeEstadistica.
Para el resto (capa médica), se sigue usando la lógica anterior.
Si existiera un caso donde no hay prestaciones, el update simplemente no matchea ningún documento, que es lo mismo que ya pasaba antes.

@MarianoCampetella MarianoCampetella added the changes requested Se solicitaron cambios label Nov 17, 2025
@nicolasarana
nicolasarana force-pushed the IN-658 branch 7 times, most recently from 61003de to a475230 Compare November 25, 2025 01:57
@nicolasarana
nicolasarana force-pushed the IN-658 branch 3 times, most recently from 203ed08 to 53b56c2 Compare December 22, 2025 18:42
@nicolasarana nicolasarana changed the title IN-658: sacar formulario estadístico de colección 'prestaciones' IN - sacar formulario estadístico de colección 'prestaciones' Mar 5, 2026
@github-actions github-actions Bot added the script Necesidad de aplicar un scripts label May 20, 2026
@nicolasarana
nicolasarana force-pushed the IN-658 branch 2 times, most recently from 9a4df59 to 1a632ac Compare September 25, 2026 12:56
@nicolasarana
nicolasarana force-pushed the IN-658 branch 7 times, most recently from ec097cc to 49f44dc Compare October 8, 2026 13:50
@github-actions github-actions Bot added the has_conflicts Tiene conlfictos label Nov 24, 2026
@github-actions github-actions Bot removed the has_conflicts Tiene conlfictos label Nov 24, 2026
@nicolasarana
nicolasarana force-pushed the IN-658 branch 2 times, most recently from 4b9c24f to 49f44dc Compare December 3, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes requested Se solicitaron cambios script Necesidad de aplicar un scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants