Skip to content

REC-233: Implementa verificación de recetas#2233

Merged
MCele merged 1 commit into
developerfrom
REC-233
May 14, 2026
Merged

REC-233: Implementa verificación de recetas#2233
MCele merged 1 commit into
developerfrom
REC-233

Conversation

@ma7payne
Copy link
Copy Markdown
Contributor

@ma7payne ma7payne commented May 4, 2026

Requerimiento

https://proyectos.andes.gob.ar/browse/REC-233

Funcionalidad desarrollada

  1. Se creó el endpoint GET /recetas/verificar que busca recetas existentes usando el DNI del paciente y el conceptId (SNOMED) del medicamento.
  2. Se implementó la función verificarRecetaExistente en el controlador de recetas. Esta función realiza lo siguiente:
    • Búsqueda por DNI: Utiliza el documento del paciente y el conceptId de SNOMED del medicamento para la verificación, asegurando la consistencia entre diferentes sistemas.
    • Estados Validados: Solo considera recetas en estado "vigente" o "pendiente".
    • Filtro de Dispensa: Excluye aquellas recetas que ya han sido "dispensadas" (finalizadas).
    • Rango Temporal:
      • Para recetas vigentes, verifica que no hayan superado el límite de 30 días desde su registro.
      • Para recetas pendientes, verifica aquellas con fecha de registro futura (hasta 10 días).

UserStories llegó a completarse

  • Si
  • No

Requiere actualizaciones en la base de datos

  • Si
  • No

Copy link
Copy Markdown
Contributor

@aldoEMatamala aldoEMatamala left a comment

Choose a reason for hiding this comment

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

Funcionamiento ok!

Image

Copy link
Copy Markdown
Contributor

@agustin1996ra agustin1996ra left a comment

Choose a reason for hiding this comment

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

Funcionamiento Ok!!

@ma7payne ma7payne changed the base branch from master to developer May 12, 2026 15:49
@ma7payne ma7payne force-pushed the REC-233 branch 3 times, most recently from a79270b to bff4c38 Compare May 13, 2026 17:02
@MCele MCele merged commit c2847fa into developer May 14, 2026
2 checks passed
@MCele MCele deleted the REC-233 branch May 14, 2026 17:59
@agustin1996ra agustin1996ra mentioned this pull request May 22, 2026
4 tasks
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.

4 participants