-
Notifications
You must be signed in to change notification settings - Fork 5
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 - Concepto Receta Autorización #3071
base: master
Are you sure you want to change the base?
Conversation
758c84d
to
79dfb10
Compare
79dfb10
to
d28cd27
Compare
let permiso = false; | ||
if (concepto.conceptId === '16076005') {// receta | ||
if (this.auth.profesional) { | ||
this.profesionalService.get({ documento: this.auth.usuario.documento }).subscribe(profesional => { |
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.
la búsqueda por documento no siempre es conveniente en este caso, ya que si fuera un profesional duplicado puede no coinicidir el profesional vinculado al usuario con el primero profesional encontrado en la base, en este caso la búsqueda debería realizarse por el id del profesional vinculado al usuario. La sugerencia de cambio quedaría:
this.profesionalService.getByID(this.auth.profesional).subscribe(profesional => {
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.
corregido!
if (profesional.length) { | ||
const codigosPermitidos = [1, 2, 23]; // medico, odontologo, obstetra | ||
let motivoRechazo = null; | ||
permiso = (profesional[0].formacionGrado.find(item => { |
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.
falta un control en formacionGrado, porque puede ser null
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.
corregido!
@@ -414,6 +416,55 @@ export class BuscadorComponent implements OnInit, OnChanges { | |||
* | |||
* @param {any} concepto Concepto SNOMED | |||
*/ | |||
public verificarProfesional(concepto, index) { | |||
let permiso = false; | |||
if (concepto.conceptId === '16076005') {// receta |
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.
Aldito lo veo muy bien, te voy dejando detalles a mejorar que noté.
Acá veo que está perfecto el control por concepto, pero también controlar que no sea una solicitud
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.
d28cd27
to
58b81dd
Compare
4bd1927
to
9ec2c89
Compare
9ec2c89
to
b2004fc
Compare
Esperando PR de la tarea https://proyectos.andes.gob.ar/browse/RUP-423 |
2053774
to
d07f2f5
Compare
ya está mergeado andes/api#1978, por lo que creo que no tiene dependencias |
Requerimiento
https://proyectos.andes.gob.ar/browse/RUP-415
Funcionalidad desarrollada
UserStory llegó a completarse
Requiere actualizaciones en la base de datos
Requiere actualizaciones en la API
Requiere actualizaciones en andes-test-integracion