Commit Graph

73 Commits

Author SHA1 Message Date
alberto 0f9433949f TEA: an answer as of a knowledge cut-off reads each child's version known then, and the measures waiting for a validation stay hidden outside FHIR too 2026-11-12 19:47:19 -06:00
edgar a0407e41d6 TEA on its new staging: silver load, ten measures answered on request with the status at the period's end, several groups and column strata, and FHIR R4 endpoints for measures, follow-up and patient summary 2026-11-12 15:21:25 -06:00
edgar c430a5bd11 Every stratum value an answer writes is in the stratum-value catalog 2026-11-08 17:28:24 -06:00
edgar 270e229a51 The kit's silver load, reference tables, table maps and follow-up list move into the WebApi; the kit is no longer a dependency 2026-11-08 17:28:24 -06:00
edgar 82504bd0bf English names: orchestration (cycle, context, runner, repositories), its steps, fields and CLI, recomputation, follow_up and reports 2026-11-08 17:28:24 -06:00
edgar 2296598896 CaCu's and CaMa's measures answered on request from dbt's semantic layer as FHIR MeasureReports, with the period and both cut-offs in the question; the route is /<domain>/indicadores 2026-11-08 17:28:24 -06:00
edgar f74ccf5496 uv.lock records the dependencies models adds: pandas, pandera, pyarrow and scikit-learn 2026-11-06 08:29:05 -06:00
edgar 72a8e76108 GET /cacu/pacientes/<pac_id>/riesgo, only in DEV: the patient's cohort membership and risks in the current batch, in the WebApp's contract 2026-11-06 08:21:38 -06:00
edgar 01ac568c22 Merge pull request 'Models round-trip test imports resolve_repository from models.io.storage' (#9) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/9
2026-11-06 05:38:03 +00:00
angel 429275547b Merge pull request 'fix: synchronize locked dependency metadata' (#8) from fix/134-uv-lock into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/8
2026-11-06 04:58:43 +00:00
Angel Capetillo Zavala 28eba44e9c fix: synchronize locked dependency metadata 2026-11-05 22:47:37 -06:00
edgar fad503ef56 Models round-trip test imports resolve_repository from models.io.storage 2026-11-05 16:12:23 -06:00
edgar b452a35759 Merge pull request 'Imports follow the models package's new layout' (#7) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/7
2026-11-04 19:11:50 +00:00
edgar 1dcbb74247 Imports follow the models package's new layout 2026-11-04 12:48:41 -06:00
edgar c7c4e01006 Merge pull request 'tests: say why each timeline orchestration test exists' (#6) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/6
2026-11-04 17:33:14 +00:00
edgar 8499427650 tests: say why each timeline orchestration test exists
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:22:52 +00:00
edgar 70a018a8fb Merge pull request 'feature/model-proto: timeline repository bound to the kit's query (#21)' (#5) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/5
2026-11-03 18:23:06 +00:00
edgar fe9ba433ec orquestacion: timeline repository bound to the kit's query, equal to the kit on the demo data (#21) 2026-11-03 17:53:40 +00:00
Roberto Treviño Cervantes fce6ccd40a reorganization 2026-10-31 12:47:59 -06:00
Roberto Treviño Cervantes ae1ee4633f absorb Orquestacion into webapi.orquestacion
Orquestacion was a separate uv package with exactly one consumer
(webapi.indicadores_vivos) and no independent deployment: the Dockerfile
already copied it straight into this image and ran one uv sync for
everything. Folding it in removes a redundant pyproject.toml/uv.lock/venv
without losing the standalone CLI (python -m webapi.orquestacion ciclo/
confirmar-riesgos) or its test suite, which now runs as part of this
project's own pytest run.

417 tests pass (416 unchanged + the merged orquestacion suite); verified
live in a built image, where the indicadores worker completed a full
cacu/cama/tea cycle against webapi.orquestacion.ejecutor.
2026-10-31 00:51:41 -06:00
Roberto Treviño Cervantes 2b2c290f58 add import audit trail, live indicator recompute, reportes endpoints; production hardening 2026-10-30 11:19:30 -06:00
Roberto Treviño Cervantes 168edb30f5 preliminary release 2026-10-29 12:14:45 -06:00
Roberto Treviño Cervantes f65d5f3f4d preliminary release 2026-10-29 12:12:28 -06:00
angel f0133e4f90 Merge pull request 'Feature/ajustes indicadores cacu' (#4) from feature/ajustes-indicadores-cacu into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/4
2026-10-28 16:12:07 +00:00
Roberto Treviño Cervantes be9b528c5f integrating latest dashboard changes 2026-10-26 01:42:27 -06:00
edgar 329e93bec3 Los ocultos de la prueba de catálogo salen del TOML
test_los_ocultos_no_salen_en_el_catalogo_pero_responden tenía cacu_riesgo_banda
escrito a mano; ahora toma los que el kit marca con publicacion.oculto (también
cacu_eu_tiempo_reporte, oculto desde el kit 9595a46).

CSO5.5
2026-10-24 21:04:57 +00:00
Roberto Treviño Cervantes 83c7c7f1d3 fix column matcher false-positive on shared table prefixes; round float durations for int columns 2026-10-23 01:12:47 -06:00
Roberto Treviño Cervantes c799e2ad90 copy indicadores_kit into the webapi image (path dependency, missing from the build context) 2026-10-23 01:12:47 -06:00
Roberto Treviño Cervantes 043f7635f4 integration layer; merge work on indicators from forks with existing ingestion pipeline 2026-10-23 01:12:43 -06:00
edgar e97ed1a5a0 T-24f: /indicadores publica los filtros de cada indicador con sus valores
Cada renglón del catálogo agrega `filtros` (filtros_de del kit), con las etiquetas
del estrato y de cada valor; vacía si el indicador no declara filtros. WebApi 151.

CSO5.5
2026-10-23 02:57:37 +00:00
edgar 460a5039f1 T-24f: EU7 por estrato y filtro; EU7_ANORMAL retirado
Pruebas: EU7 por estatus de seguimiento trae categoría por valor, etiquetas y
totales; se filtra por grupo de edad. cacu_eu7_anormal ya no es un oculto: está
retirado (404). WebApi 150 passed.

CSO5.5
2026-10-23 02:42:15 +00:00
edgar 10964e9e45 MD-24: junta la ficha técnica con la lista de seguimiento en una rama
Colapsa feature/ficha-tecnica (T-24e) en feature/seguimiento-datos (T-24d) a pedido
del usuario (2026-10-23). Sin conflictos.

CSO5.5
2026-10-23 00:04:23 +00:00
edgar 8c582347f9 T-24d: GET /cacu/seguimiento, solo en DEV y con datos simulados
La lista de seguimiento por paciente (contrato §2 de T-24a), armada por el kit
(`indicadores_kit.serving.seguimiento`). Es dato individual: el blueprint se
registra solo con `DEV_REVISION` (la define el despliegue de deploy/dev), y la
respuesta lleva siempre `simulado: true`. 400 por un pedido mal escrito o fuera de
rango; 404 por una página de más, o fuera de DEV. La sal del seudónimo, de
`SEGUIMIENTO_SAL` (por omisión, la de DEV). README: la ruta, sus códigos y las
variables. Pruebas: tests/test_seguimiento.py (11).

CSO5.5
2026-10-22 23:36:44 +00:00
edgar 8984c901c8 T-24e: /metadatos trae figuras_detalle (qué muestra cada figura y cómo leerla)
CSO5.5
2026-10-22 22:26:45 +00:00
edgar df7f529e39 T-24e: pruebas de la ficha técnica en /metadatos (referencias y poblaciones)
Cada indicador de CaCu conserva las llaves de antes en /metadatos y agrega
`referencias` y `poblaciones`; EU7 cita el lineamiento europeo (indicador 7).
README: lo que trae /metadatos.

CSO5.5
2026-10-22 20:35:22 +00:00
edgar fff2765810 README: lo que sirve hoy la WebApi (vistas MD-19, figuras, /datos, deploy/dev)
- El flujo de figura lee v_measure_report_vigente y v_c1/v_c2/v_c3r, no measure_report;
  las vistas las crea la arista `vistas`, no la migración.
- Tabla de figuras por contrato y ficha; CaCu y CaMa ya tienen C2 y C3r con ficha.
- Llaves completas de /datos; ?estrato= y ?filtro= dan 400 hoy (ningún TOML los declara).
- Ejemplos con indicadores vigentes (M21, ind1, cacu_eu7); los de K01 y cacu_eu8 están retirados.
- deploy/dev y su dataset fijado; «tablas fuente» en lugar de «staging».

CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 02:07:56 +00:00
edgar 9852e397da Integra T-19f en WebApi: ?filtro=estrato:valor en /datos y /figuras
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 05:27:01 +00:00
edgar 615f63cb7c T-19f: README documenta ?filtro=
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 05:26:46 +00:00
rodrigo dcdcc34c46 WIP T-19f: ?filtro=estrato:valor en /datos y /figuras, 400 si mal escrito o no declarado; pruebas
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 05:12:52 +00:00
rodrigo 0ee2916e1c Merge origin/dev en feature/plata-generica (lo que el remoto tenía adelante)
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 04:52:10 +00:00
rodrigo 72c4b38593 Integra T-22d (F6) en WebApi
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:28:22 +00:00
rodrigo 37a7a102f2 T-22d (F6): pruebas sin fig_c2_apiladas; README
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:25:01 +00:00
rodrigo 2d0bb8eed3 Integra T-21h en WebApi
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:55:13 +00:00
rodrigo b8253dda56 T-21h: cama_riesgo_banda ya no se sirve (propuesta)
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:55:13 +00:00
rodrigo 0f10a36f0d Integra T-22a en WebApi: pruebas sin los retirados; un retirado da 404
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:29:21 +00:00
edgar 0d74f3a513 T-22a: retirar los 21 indicadores ocultos por tipo (retired, sin servir, sin migración)
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:09:29 +00:00
rodrigo 5b1dd30356 T-21g: cama_riesgo_banda es oculto en el catálogo
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 13:55:48 +00:00
rodrigo 50d53c86fd T-21d: cacu_riesgo_banda es oculto en el catálogo
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 11:58:36 +00:00
edgar 73fcccea80 Merge pull request 'README: la base del dominio la monta Orquestacion (MD-16)' (#3) from feature/medallon into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/3
2026-10-20 07:44:27 +00:00
edgar ba583b6391 Merge pull request 'Feature/cama birads45' (#2) from feature/cama-birads45 into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/WebApi/pulls/2
2026-10-20 07:03:06 +00:00