Commit Graph

151 Commits

Author SHA1 Message Date
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
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
AlbertoPMDM a67eaa0646 models: the TEA EEG analysis takes the age from the EDF header 2026-11-19 19:20:29 -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 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
Angel Capetillo Zavala cc5738d036 chore(submodules): update WebApp for CaMa BI-RADS donut 2026-11-18 15:13:27 -06:00
Angel Capetillo Zavala 3cd094a8c5 chore: actualizar WebApp con ajustes de CaMa 2026-11-18 14:29:34 -06:00
Angel Capetillo Zavala 9ace5da517 chore: actualizar WebApp con ajustes de CaMa 2026-11-18 09:25:45 -06:00
Angel Capetillo Zavala 0017b0ca4c Update WebApp CaMa indicator labels 2026-11-17 12:44:43 -06:00
Angel Capetillo Zavala 9903e22c2a Add CaMa cohort and L3 measures with integrated API and dashboard
Publish deterministic cohort candidates and detection, result-to-diagnosis and BI-RADS histopathology measures. Pin locally prepared WebApi and WebApp commits based on current dev; retain models and shared persistence changes from upstream. Document compatibility, required views and stored-report behavior.
2026-11-17 10:44:08 -06:00
Roberto Treviño Cervantes 8885162147 wording fixes 2026-11-17 02:20:15 -06:00
Roberto Treviño Cervantes 20f244c014 wording fixes 2026-11-17 02:18:05 -06:00
roberto 9baeeb7ff0 Merge pull request 'Kit exit: retire indicadores_kit, converge TEA/CaMa work onto dev' (#11) from feature/kit-exit-integration into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/11
2026-11-16 21:09:40 -06:00
Roberto Treviño Cervantes 28d80ad7e3 Submodule pointers: the WebApi with live estimators and pac_id follow-up, the WebApp with the CaMa dashboard over FHIR 2026-11-15 05:40:28 -06:00
Roberto Treviño Cervantes 80e0677b3a Compose profile that trains the CaCu model on the loaded data; the manual explains the measures, the model and the risk batches 2026-11-15 05:39:26 -06:00
Roberto Treviño Cervantes a6a05febfd TEA: one migration head again, joining the source-terminology and order-PDF revisions 2026-11-15 00:48:48 -06:00
Roberto Treviño Cervantes 1405208c3e Merge remote-tracking branch 'origin/feature/163-tea-redesign' into feature/kit-exit-integration
# Conflicts:
#	Core/core/tea/models.py
#	Core/spec/tablas_TEA.md
#	Persistance/persistance/cacu/__init__.py
#	Persistance/persistance/cama/__init__.py
#	Persistance/persistance/edges/silver/__init__.py
#	Persistance/persistance/tea/__init__.py
#	README.md
#	Transformation/.gitignore
#	Transformation/dbt_project.yml
#	WebApi
#	WebApp
#	indicadores_kit
#	models
2026-11-15 00:47:16 -06:00
Roberto Treviño Cervantes 64abc56989 Retire the indicadores_kit submodule: its jobs live in Transformation, the WebApi and models 2026-11-15 00:40:13 -06:00
alberto 918fe01ea1 WebApp submodule pointer: history chart and KPI card with measures that publish more groups 2026-11-13 21:15:48 -06:00
alberto 130ef28a16 WebApp submodule pointer: the EEG result measure draws one bar per alteration 2026-11-13 19:38:47 -06:00
rockdrigo 983b702488 WebApi and WebApp submodule pointers: indicators over FHIR and the TEA views; dbt's local database ignored 2026-11-13 17:03:23 -06:00
rockdrigo 72d092d0f3 Submodule pointers: the WebApi with the source mappings and the import path off the kit; the kit without add_resultado's tests
How: WebApi at 73cbf0c (catalog matching and commit on the WebApi's own modules, source_mapping, seeding and validated writes); indicadores_kit at f79e8d2.

Implications: on this branch the five repositories sit on dev's latest; WebApi 510 tests pass, models 179, Persistance 51, Core 19, failing only where tesseract or pymssql aren't installed.
2026-11-13 15:41:47 -06:00
rockdrigo d6e2c68dbf dbt: silver's source mappings declared, and a test that no form maps to two targets while both are in force
How: `cat_sistema_fuente` and `cat_mapeo` are silver sources in every domain; the generic test
`vigencias_sin_traslape` self-joins the rows of the same form (compared null-safe) and fails on each pair
with a different target and overlapping validity, in portable SQL (`date_literal` for the open end). Its
arguments stay at the test's top level, which dbt-core 1.7 (the MySQL group) reads.

Implications: a mapping written past the application's check (by hand, by a script, by a restore) shows up
in `dbt test`. Checked on the three domains' seeded databases (pass) and with a planted clash (1 failure).
2026-11-13 15:35:01 -06:00
alberto 1dbde8b830 The webapi image builds its own dbt manifest: a local Transformation/target stays out of the build context; submodule pointer 2026-11-13 15:31:29 -06:00
rockdrigo 14dff24f85 Persistance: a repository of each domain's source systems and mappings
How: `SourceMappingRepository` (`source_mapping_repository` in cacu, cama and tea) lists systems and mappings,
adds a missing system, seeds only the forms with no row yet, adds one mapping after running the caller's check
against the stored rows of the same form in the same session, and closes a row's validity once.

Implications: a deploy never changes a stored mapping; the rule that the mapping is a function stays with the
caller, which runs it on every write.
2026-11-13 15:29:36 -06:00
rockdrigo 74eb5a4a4c Persistance: a revision per domain creating cat_sistema_fuente and cat_mapeo
How: cacu f89e1f081998, cama f82b64f43abd and tea 6d772e9a342f, on each chain's head; plain types, check
constraints, foreign keys and a unique key that every engine accepts. Verified upgrade, `alembic check`,
downgrade and upgrade again on SQLite.

Implications: both tables start empty; the catalog step seeds the TOML's own mappings.
2026-11-13 15:29:07 -06:00
rockdrigo 66c4ba5c5f Core: cat_sistema_fuente and cat_mapeo, how each source writes the catalog's codes, in the three domains
How: `CatSistemaFuenteBase` (who sends the data, its staging table and validity) and `CatMapeoBase` (a study
code, caption or spelling of a source, mapped to `estudio_id`, `resultado_id` or a `cat_valor`, with its
validity, author and reason), with their constraints in `reglas_de_mapeo` and `vigencia_ordenada`: a known
class and the target it needs, the value's foreign key to `cat_valor`, and one row per form and start date.

Implications: the codes stay in the TOML; how a provider writes them becomes data, edited without a deploy.
Overlapping validities aren't a portable constraint and are checked by the writer and by dbt.
2026-11-13 15:29:07 -06:00
rockdrigo 86b8da08bf CaMa: tumour stratifiers derived in dbt, and the BI-RADS of invasive cancers broken down by them
How: `cama_estratificadores` turns the timeline's lines read from reports into timeline facts: the clinical stage's
group, early or advanced stage, the surrogate molecular subtype from one pathology report, and T by the lesion's
size, by the rules in `vars.cama.estratos`. `cama_cancer_invasor` has one row per biopsy report with an invasive
cancer (`vars.cama.grados_invasor`) and the BI-RADS of the mammogram that led to it. CAMA_BIRADS_CANCER_INVASOR
counts those patients by BI-RADS, stratified by age group, stage, early or advanced, subtype and size. Bumps WebApi
to the stratum read by the event cut-off.

Implications: the analysis' stratifiers exist as data and reach FHIR as stratifiers. Their rules (stage groups,
Ki-67 and progesterone thresholds, T bounds) are provisional placeholders in dbt's vars. BRCA has no source yet.
2026-11-13 15:19:19 -06:00
rockdrigo 7842170a0e CaMa: provisional catalog results read from reports, with their captions and spellings, on the timeline
How: `cama.toml` declares density and lesion size (mammography), histological type, Nottingham grade, estrogen
and progesterone receptors with their percentages, HER2 and Ki-67 (pathology), and the clinical stage (note),
each with `etiquetas_fuente`, value aliases and `provisional = true`. `cama_linea_de_tiempo.yml` gives each one a
timeline line. The catalog's README documents the keys. Bumps WebApi to the load that reads them.

Implications: the analysis' stratifiers (molecular classification, stage, early or advanced, size) can be derived
in dbt from these lines. A new caption or spelling from the laboratory is one line in the catalog, applied on the
next load. BRCA, recurrence and vital status still have no source.
2026-11-13 15:19:19 -06:00
alberto 087168044e Ignore graphify's output 2026-11-13 15:19:19 -06:00
alberto 0f3b5851eb TEA: one version of each child per load that brought its facts, and a neuropediatrics note counts from the psychology step on; submodule pointer 2026-11-13 15:19:19 -06:00
edgar cb5a56de15 TEA staging by study (eight tables and a new revision), its catalog, and dbt's TEA models and measures; submodule pointers 2026-11-13 15:19:19 -06:00
edgar 865412ea7a SQL Server 2016: dbt's sources in the target's schema, one type per timeline value, LTRIM(RTRIM()) for TRIM, stratum values added to their catalog 2026-11-13 15:19:19 -06:00
edgar 47caff4034 The indicator kit's code lives in its owners now: the WebApi, models and Transformation 2026-11-13 15:19:19 -06:00
edgar cef2c62c3c English names: Persistance's edges (bronze, silver, gold), the materializer and their repositories 2026-11-13 15:19:19 -06:00
edgar ef872f6b12 CaCu and CaMa measures from dbt's semantic layer over the generic tables: follow-up status from inferred procedures, one timeline for every reader 2026-11-13 15:19:18 -06:00
alberto 5aa90c230a Merge remote-tracking branch 'origin/feature/163-tea-redesign' into feature/163-tea-redesign 2026-11-13 15:13:42 -06:00
alberto 92cf95e1af TEA: ordenes_estudio.ord_pdf_blob holds the study's report as a PDF (new revision); submodule pointer 2026-11-13 15:03:02 -06:00
Angel Capetillo Zavala 532338cdea Update TEA web application 2026-11-13 14:28:10 -06:00
Roberto Treviño Cervantes 5d2d5ea4cb updating nlp policies; more robust recognition beyond rules 2026-11-13 11:53:07 -06:00
Roberto Treviño Cervantes 0b8ba5c43a fix governance reqs; allow for sandboxed jupyter notebooks for testing 2026-11-13 11:53:07 -06:00
Roberto Treviño Cervantes 4ce7f21017 improve ingestion system to match isssteleon setup 2026-11-13 11:53:06 -06:00
alberto 11dabc4714 Ignore graphify's output 2026-11-12 19:47:50 -06:00
alberto c67b52b828 TEA: one version of each child per load that brought its facts, and a neuropediatrics note counts from the psychology step on; submodule pointer 2026-11-12 19:47:19 -06:00
edgar 3aec97a8b7 TEA staging by study (eight tables and a new revision), its catalog, and dbt's TEA models and measures; submodule pointers 2026-11-12 15:21:26 -06:00
Roberto Treviño Cervantes 5d80c480ef Let structured source fields key and override extracted document records 2026-11-12 01:13:34 -06:00