Skip to content

feat(oms): endpoint CID10 - #843

Merged
lucianopf merged 3 commits into
mainfrom
feat/cid10-oms
Aug 8, 2026
Merged

lucianopf merged 3 commits into
mainfrom
feat/cid10-oms

Conversation

@lucianopf

Copy link
Copy Markdown
Member

Sobre

Substitui o #289 (autoria preservada — @a21ns1g4ts). Consulta a classificação CID10 da OMS:

  • GET /api/oms/cid10/v1 — lista completa
  • GET /api/oms/cid10/v1/{codigo} — busca por código (404 se não existir)

Mudança sobre o #289

  • Fix: import do NotFoundError (o arquivo era @/errors/not-found, que não existe — build quebrava)
  • Mudança fora de escopo descartada (teste de cptec)

Validação

  • Build completo ✓
  • Endpoint testado: A90 → Dengue (200), código inexistente → 404, lista → 200

- GET /api/oms/cid10/v1 (lista) e /api/oms/cid10/v1/{codigo}
- Dados completos da CID10 (JSON da OMS)
- Fix: import do NotFoundError (o arquivo não existia com esse nome)

Co-authored-by: Hermes Agent <[email protected]>
Ai-tool: hermes
Ai-model: deepseek-v4-flash
Ai-os: wsl
@vercel

vercel Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
brasilapi Ready Ready Preview Aug 8, 2026 10:46am

Request Review

Com o health check do FIPE (PR #806), os testes não falham mais rápido
quando o upstream está fora — a suíte roda completa e demora >5min,
estourando o timeout_minutes: 5 do nick-fields/retry (SIGTERM em toda
tentativa, job sempre vermelho). Timeout 15min + 1 tentativa.

Co-authored-by: Hermes Agent <[email protected]>
Ai-tool: hermes
Ai-model: deepseek-v4-flash
Ai-os: wsl
Co-authored-by: Hermes Agent <[email protected]>
Ai-tool: hermes
Ai-model: deepseek-v4-flash
Ai-os: wsl
@sonarqubecloud

sonarqubecloud Bot commented Aug 8, 2026

Copy link
Copy Markdown

@lucianopf
lucianopf merged commit a725dea into main Aug 8, 2026
3 checks passed
@lucianopf
lucianopf deleted the feat/cid10-oms branch August 8, 2026 10:50

This branch was successfully deployed

1 active deployment
Preview — 72e48451 Deployed Aug 8, 2026 by vercel[bot]
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.

1 participant