Commit Graph

16 Commits

Author SHA1 Message Date
rockdrigo e2ecaa027c CaMa: individual risk and population curves served, and the cycle estimates with any scenario in production
webapi/fhir/risk.py builds a patient's RiskAssessment for CaCu and CaMa; GET /cama/modelo/curvas serves the production
version's survival curves; the cycle's estimator is generic by scenario; silver persona carries the date of death for CaMa;
the import schema accepts it; the CaMa risk batches can be confirmed and voided.
2026-11-21 02:07:34 -06:00
edgar 26f2b35338 Retire GET /cacu/pacientes/<id>/riesgo: the record reads the FHIR RiskAssessment
The WebApp patient record now reads GET /cacu/fhir/RiskAssessment?subject=Patient/<pac_id> (WebApp
feature/cohorts-dbt-canonical), so the custom route, its blueprint and its tests go; the risk batches and the
follow-up list point to the FHIR search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 23:15:55 -06:00
Erick ivan 7101913fff revert(auth): remove the session login from the API
The API no longer authenticates: no /auth routes, no session cookie and no before_request lock. An external service that reads and writes data was hitting the 401, so the endpoint is open again.

The interface keeps its login and the per-account domains, now resolved in the browser. WEBAPI_USUARIO(S) and WEBAPI_SECRET_KEY are gone from the Dockerfile and .env.example.
2026-11-19 10:32:22 -06:00
Erick ivan 084fe2e8d3 feat(auth): session login with per-domain scope
Cookie session with /auth/login, /auth/logout and /auth/me. Four accounts come from WEBAPI_USUARIOS (admin plus one per domain) and a second before_request answers 403 when an account asks for another domain.

The data suites run with WEBAPI_AUTH_REQUIRED=0; test_auth.py turns the lock back on and covers both hooks. The Dockerfile normalises the entrypoint so a Windows checkout still starts the container.
2026-11-19 09:35:25 -06:00
Angel Capetillo Zavala b1bbbc25b4 Integrate CaMa follow-up, descriptive analysis and L3 with dev
Preserve dev risk batches and governance, individual patient selection, optional access and explicit cohort reader overrides. Register one CaMa implementation and retain legacy Python blueprint consumers. Validated with 681 WebApi tests on the integrated parent and submodules.
2026-11-17 10:44:07 -06:00
Roberto Treviño Cervantes 0571b5e6af wording fixes 2026-11-17 02:17:31 -06:00
edgar e224b8b2aa 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-13 15:14:46 -06:00
edgar 4fc822d5c7 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-13 15:14:29 -06:00
edgar 73b1db1121 English names: orchestration (cycle, context, runner, repositories), its steps, fields and CLI, recomputation, follow_up and reports 2026-11-13 15:13:52 -06:00
edgar ea228da7b4 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-13 15:13:27 -06:00
edgar 0cbe390b25 Follow-up list and patient risk routes are always registered; en_dev() is deprecated 2026-11-09 11:30:28 -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
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 f65d5f3f4d preliminary release 2026-10-29 12:12:28 -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
Roberto Treviño Cervantes c1444e2b8d initial commit 2026-09-21 10:23:40 -06:00