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

RUP - Nuevo esquema Receta #1978

Merged
merged 1 commit into from
Dec 18, 2024
Merged

RUP - Nuevo esquema Receta #1978

merged 1 commit into from
Dec 18, 2024

Conversation

JuanIRamirez
Copy link
Contributor

@JuanIRamirez JuanIRamirez commented Oct 17, 2024

Requerimiento

https://proyectos.andes.gob.ar/browse/RUP-423

Funcionalidad desarrollada

  1. Nuevo esquema receta-schema.ts en modules/rup/schemas
  2. Nuevo controlador rup.events.ts en modules/rup/controllers
  3. Nuevo log rup.event.log.ts en modules/rup/controllers
  4. Modific. index.ts en modules/rup

UserStories llegó a completarse

  • Si
  • No

Requiere actualizaciones en la base de datos

  • Si
  • No

import * as mongoose from 'mongoose';
import { PacienteSubSchema } from '../../../core-v2/mpi/paciente/paciente.schema';

const estadosSchema = new mongoose.Schema({
Copy link
Contributor

Choose a reason for hiding this comment

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

Se podría considerar el estado 'anulada'/'cancelada' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Son los estados que vimos hasta ahora no es definitivo

especialidad: String,
matricula: Number
},
fechaRegistro: Date,
Copy link
Contributor

Choose a reason for hiding this comment

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

fechaRegistro y fechaPrestacion no serían siempre las mismas?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fecha registro puede variar si se rompe validación y se vuelve a prescribir la receta.

cantEnvases: Number,
dosisDiaria: {
dosis: String,
frecuencia: {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Si esta frecuencia se va a levantar de la coleccion constantes debería ser de tipo SchemaTypes.Mixed (de mongoose).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hecho

notaMedica: String
},
tratamientoProlongado: Boolean,
tiempoTratamiento: {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Idem a 'frecuencia'. Pero no debería quedar como objeto vacío "{ }"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hecho

@JuanIRamirez JuanIRamirez force-pushed the RUP-423 branch 2 times, most recently from 795c306 to ceb4267 Compare December 17, 2024 18:56
@negro89 negro89 merged commit eb1bec3 into master Dec 18, 2024
2 checks passed
@negro89 negro89 deleted the RUP-423 branch December 18, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants