Commit Graph

192 Commits

Author SHA1 Message Date
rockdrigo 50decaf915 Merge origin/feature/163-cama-risk-curves
# Conflicts:
#	Core/core/catalogos/cama.toml
#	Transformation/dbt_project.yml
#	Transformation/models/cama/silver/cama_linea_de_tiempo.sql
#	WebApi
#	WebApp
2026-11-21 02:52:01 -06:00
rockdrigo 10d30d18c4 Merge remote-tracking branch 'origin/feature/cohorts-dbt-canonical' into feature/cama-roundtrip 2026-11-21 02:51:35 -06:00
rockdrigo eefefed966 CaMa: the patient's date of death, the total cohort, and the heads of the CaMa migration chain joined
The date of death (paciente.pac_fecha_defuncion, persona.fecha_defuncion) arrives on the timeline as the persona's
birth and death. cama/cohorte_total is every patient with a clinical event, for the scenarios that index and filter in
their own pipeline; its window and cut-off are one dbt var. A merge revision joins the date-of-death and risk-index-date
revisions.
2026-11-21 02:07:34 -06:00
rockdrigo 87977b4ca5 CaMa scenarios: post-treatment from its evidence and every other patient under observation, without screening or control levels; submodule pointers 2026-11-21 01:55:05 -06:00
rockdrigo 06839a6f35 CaMa: clinical stage and tumour size of invasive cancers are no longer served as measures 2026-11-20 23:28:34 -06:00
edgar 8ec77fc4f8 Pin models, WebApi and WebApp to feature/cohorts-dbt-canonical
The three submodules move to their branches of this change, so this branch holds all of it: models (the scenarios'
index and rules in their pipelines, dbt as the only cohort definition, the risk's index date), WebApi (the cycle
builds dbt's cohorts, CaCu's FHIR RiskAssessment, the old risk route retired) and WebApp (the patient record reads the
RiskAssessment). They change together: the risk's shape and the record's endpoint changed in all four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 23:23:35 -06:00
edgar 1f144a5cec Merge dev into feature/cohorts-dbt-canonical
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 23:23:24 -06:00
edgar 3f1925b775 Each risk keeps the model's index date for its patient
evaluacion_riesgo.fecha_indice: the decision point the model scored the patient from, which the horizons count from
(the model defines it, not the cohort member). Migrations for CaCu, CaMa and TEA add it, fill existing risks with their
member's index date in the batch's build, and make it required. save_batch takes (pac_id, fecha_indice, horizonte,
probabilidad, ic_bajo, ic_alto) and refuses a risk with no date or two dates for one patient; change_state keeps it;
current_risk returns it and the batch's outcome. The risk-band measure dates each row by the estimate's index date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 23:02:45 -06:00
edgar 650b3fdf7b Merge dev into feature/cohorts-dbt-canonical
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 22:10:04 -06:00
Angel Capetillo Zavala f01dcbbde5 Update WebApp with the TEA EEG follow-up fixes 2026-11-20 21:57:47 -06:00
edgar 9b4e18c345 CaCu cohorts share one recruitment window and cut-off
`cacu_window` in dbt_project.yml (a YAML anchor, merged into each cohort's vars): the post-colposcopy and total
cohorts recruit as the surveillance cohort does, and the total cohort carries the window in its parameters for the
scenarios indexed in their pipelines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 21:54:48 -06:00
edgar 697702d497 CaCu cohorts in dbt only: post-colposcopy per visit, post-treatment and a total cohort
Post-colposcopy (Cheung et al. 2020, doi:10.1097/LGT.0000000000000528): one cohort per visit k, indexed at the first
colposcopy's result (k = 0) or at its k-th surveillance visit, with a cotest, before any later colposcopy; the rules are
macros (macros/cacu_post_colposcopy.sql), so a visit is a folder. PROVISIONAL: a colposcopy without a biopsy order is
taken as below CIN2, which assumes the colposcopic impression misses no CIN2+. The timeline adds `orden_biopsia`.
Post-treatment: the first cytology after the first treatment. cacu/cohorte_total: everyone with an event, for models
whose rules don't fit SQL. dbt is the only definition of a cohort: each population meta carries its `version`, and the
surveillance cohort a `variables` query (pap_0, hpv_0) that the WebApi cycle stores with its build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 20:17:48 -06:00
edgar 8fc3dda18a CaCu glandular cytology result: catalog, timeline, extraction vocabulary and the surveillance rule
The glandular result (`citologia.celulas_glandulares`) is a closed result with the codes AGC and ADENOCARCINOMA, one of
KPNC's six cytology categories. The timeline carries it as `glandular`; the surveillance cohort's `no_index_result`
counts it; the extractor maps the Bethesda wordings to its codes. Known gap: "adenocarcinoma in situ" is still read as
ADENOCARCINOMA (no AIS code in the catalog).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmQxVJVNR5FYkPAregGEQ7
2026-11-20 20:17:48 -06:00
Angel Capetillo Zavala 4b363b9c97 Pin WebApp with the full domain names and CaMa's summary layout shared by CaCu and TEA 2026-11-20 19:54:46 -06:00
rockdrigo 5105059c0c Submodule pointer: the WebApi with the date of death in silver persona 2026-11-20 18:46:41 -06:00
rockdrigo ddeabab640 CaMa survival cohort: no exclusions, the surgery as its procedure of interest and only the patients in post-treatment 2026-11-20 18:40:54 -06:00
rockdrigo 1937834b25 CaMa survival cohort in dbt: indexed at the first surgery, excluding a prior radiotherapy or chemotherapy and no invasive cancer by the surgical report 2026-11-20 18:29:03 -06:00
rockdrigo 655067e47d CaMa timeline: the surgical report, staging, the mammogram's findings, BRCA, marital status, treatments, and birth and death from persona 2026-11-20 18:29:03 -06:00
rockdrigo 27caa1173e CaMa catalog: the registry's breast morphologies the WHO list leaves out, the mass's margin and marital status as an observation 2026-11-20 18:24:57 -06:00
rockdrigo f106a3e09d CaCu: the patient's date of death, in staging and in silver's persona (new revision) 2026-11-20 17:04:16 -06:00
rockdrigo 6ca7f7f368 CaMa: the patient's date of death, in staging and in silver's persona (new revision) 2026-11-20 17:04:15 -06:00
rockdrigo 75a114df94 CaMa: clinical scenarios as a hierarchy (screening, control, post-treatment), each level from its first evidence; submodule pointer 2026-11-20 17:04:15 -06:00
rockdrigo 97b68cc316 Submodule pointers: the WebApi with CaMa's scenario and stage tests and coded results with a code system, the WebApp with the stratum sidebar 2026-11-20 17:04:10 -06:00
rockdrigo 6bb7b1d5e9 CaMa catalog: the NOM-041-SSA2-2011 minimum by procedure, with treatment, risk factors and the BRCA test as studies; a coded result may name its code system 2026-11-20 17:04:04 -06:00
rockdrigo 0b6384097a CaMa: each patient's scenario (follow-up, post-diagnosis, post-treatment) inferred from configurable evidence onto her timeline 2026-11-20 17:04:04 -06:00
rockdrigo 8ecef0bb03 CaMa: stage and size of invasive cancers as their own measures, without a molecular subtype; the prior mammogram's BI-RADS without strata 2026-11-20 17:04:04 -06:00
Angel Capetillo Zavala ab82a4c805 Pin WebApi with the tea library declared as its own dependency 2026-11-20 16:56:55 -06:00
Angel Capetillo Zavala 9a3f9f2813 Merge feature/tea-eeg-analysis into dev (TEA candidate composition) 2026-11-20 14:45:03 -06:00
angel 315ad3b269 Merge pull request 'Pin WebApp with the CaMa selective rollback' (#16) from chore/pin-webapp-cama-reversion into dev 2026-11-20 10:04:42 -06:00
Angel Capetillo Zavala 1bbf5d4877 Pin WebApp with the CaMa selective rollback 2026-11-20 10:02:50 -06:00
AlbertoPMDM 65e153aae8 Merge feature/tea-eeg-analysis into feature/tea-eeg-baseline-bundles 2026-11-20 09:40:20 -06:00
AlbertoPMDM ea316a6d59 models: TEA EEG baselines trained on a local cohort and moved as a bundle 2026-11-20 09:36:41 -06:00
AlbertoPMDM ea4b8ef235 models: loading a TEA EEG baseline leaves sys.path as it was 2026-11-20 09:33:21 -06:00
angel 13e8c4fd87 Merge pull request 'Pin WebApp with final CaMa demo changes' (#15) from feature/cama-clasificacion-histologica-webapp-pin into dev 2026-11-20 00:53:52 -06:00
Angel Capetillo Zavala 70f10e57d1 Pin WebApp with final CaMa demo changes 2026-11-20 00:52:04 -06:00
AlbertoPMDM 752495bbc8 models: TEA EEG baselines keep their artifacts under MLFLOW_ARTIFACT_ROOT 2026-11-19 23:17:42 -06:00
AlbertoPMDM 59de353672 WebApi: lock the tea library at 0.2.0 2026-11-19 20:34:09 -06:00
angel ef0cdff393 Merge pull request 'Pin WebApp with the CaMa BI-RADS and histopathology updates' (#14) from feature/cama-histopathology-webapp-pin into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/14
2026-11-19 19:48:36 -06:00
Angel Capetillo Zavala 746ad93c4e Pin WebApp with the CaMa BI-RADS and histopathology updates 2026-11-19 19:45:33 -06:00
AlbertoPMDM a67eaa0646 models: the TEA EEG analysis takes the age from the EDF header 2026-11-19 19:20:29 -06:00
angel 1a8bad2815 Merge pull request 'Pin WebApp with the CaMa diagnosis-to-treatment card' (#13) from feature/cama-diagnosis-treatment-webapp-pin into dev 2026-11-19 17:52:06 -06:00
Angel Capetillo Zavala 8e43dccfe0 Pin WebApp with the CaMa diagnosis-to-treatment card 2026-11-19 17:50:26 -06:00
Angel Capetillo Zavala b8f58585ad Update WebApp pin for CaMa BI-RADS charts 2026-11-19 16:07:01 -06:00
AlbertoPMDM 2144d60d06 feat(tea): tables and dbt models for the EEG analysis's output; submodules on the TEA EEG analysis 2026-11-19 15:43:27 -06:00
Angel Capetillo Zavala 6bd3f40a6c Pin WebApp with visual login test fixes 2026-11-19 11:44:47 -06:00
Erick ivan 87cfae3969 chore(submodules): bump WebApi and WebApp with the front-only login
WebApi drops the session login and stays open for the data service; WebApp keeps the login and the per-account domains in the browser. .env.example no longer documents the session variables.
2026-11-19 10:32:44 -06:00
Erick ivan 47046eaea7 chore(submodules): bump WebApi and WebApp with the session login
WebApi brings /auth and the per-domain scope; WebApp brings the sign-in screen, the route guard and the domain filtering in the import workspace and governance. .env.example documents WEBAPI_USUARIOS and the session key.
2026-11-19 09:37:30 -06:00
angel b81c626013 Merge pull request 'chore(submodules): update WebApp with the CI spec fixes' (#12) from fix/ci-spec-contracts into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/12
2026-11-19 00:11:39 -06:00
Angel Capetillo Zavala aa840b9f31 chore(submodules): update WebApp with the CI spec fixes 2026-11-18 23:41:47 -06:00
Angel Capetillo Zavala d2f597cec8 chore(submodules): update WebApp dev color fixes 2026-11-18 15:30:00 -06:00