-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
import * as mongoose from 'mongoose'; | ||
import { PacienteSubSchema } from '../../../core-v2/mpi/paciente/paciente.schema'; | ||
|
||
const estadosSchema = new mongoose.Schema({ |
There was a problem hiding this comment.
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' ?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
modules/rup/schemas/receta-schema.ts
Outdated
cantEnvases: Number, | ||
dosisDiaria: { | ||
dosis: String, | ||
frecuencia: {}, |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hecho
modules/rup/schemas/receta-schema.ts
Outdated
notaMedica: String | ||
}, | ||
tratamientoProlongado: Boolean, | ||
tiempoTratamiento: {}, |
There was a problem hiding this comment.
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 "{ }"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hecho
795c306
to
ceb4267
Compare
Requerimiento
https://proyectos.andes.gob.ar/browse/RUP-423
Funcionalidad desarrollada
UserStories llegó a completarse
Requiere actualizaciones en la base de datos