Commit Graph

86 Commits

Author SHA1 Message Date
edgar 4a30d64193 models and WebApi: the CIN2+ prototype, risk batches stored and served, report eda, cohorts list and show 2026-11-06 08:29:05 -06:00
edgar a31d987548 Persistance: a patient's membership in a cohort's latest build and risks in the current confirmed batch 2026-11-06 08:21:52 -06:00
angel c6c8bdf3f8 Merge pull request 'chore: update WebApi submodule to latest dev' (#9) from fix/webapi-lock-gitlink into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/9
2026-11-06 06:23:25 +00:00
Angel Capetillo Zavala 6ff683ad80 chore: update WebApi submodule to latest dev 2026-11-06 00:21:10 -06:00
edgar a43f41727e Merge pull request 'Feature/model proto' (#8) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/8
2026-11-06 05:38:58 +00:00
edgar af7ed4495a Persistance reads dbt's timeline view and compiled queries; Transformation: the CaCu surveillance cohort as one query per rule 2026-11-05 16:12:23 -06:00
edgar a377ed0eaf Submodules: models and WebApi at their merged dev 2026-11-04 13:38:25 -06:00
edgar 4e7b5701e5 Merge pull request 'Core: docstring points to models.io.registry' (#7) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/7
2026-11-04 19:13:40 +00:00
edgar ef1fd82a42 Core: docstring points to models.io.registry 2026-11-04 12:48:41 -06:00
edgar 92c46e4f78 Merge pull request 'Feature/model proto' (#6) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/6
2026-11-04 18:15:22 +00:00
edgar 9b9b4b7f8b Submodules: models and WebApi at their merged dev 2026-11-04 12:12:20 -06:00
edgar 924c5f17a3 Merge pull request 'Feature/model proto' (#5) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/5
2026-11-04 17:36:58 +00:00
edgar 3b024f5314 Persistance: CohorteRepository.builds lists the builds, newest first 2026-11-04 09:23:37 -06:00
edgar 90c083e305 Transformation: the timeline as a view from each domain's declared sources, equal to the kit's in the three domains 2026-11-04 02:03:49 +00:00
edgar 55ee3cfba7 Transformation: one silver source shared by the three domains; dbt_utils no longer used 2026-11-04 02:03:49 +00:00
edgar 2f210c4797 Transformation: renamed from Transformacion; models per project in silver and gold, one folder per indicator family 2026-11-04 01:42:28 +00:00
edgar 0d12c73d15 Transformacion: SQL Server through the mssql-python driver, without system ODBC libraries 2026-11-04 01:31:29 +00:00
edgar 5370805886 Transformacion: date_literal, as_text and as_integer, MySQL's datediff, typed output of tiempo_reporte and a unit test of datediff 2026-11-04 01:31:29 +00:00
edgar 01d0f11dfb Transformacion: the CIE lists as variables instead of seeds; dbt creates only views 2026-11-04 01:23:47 +00:00
edgar db2a7804d0 Transformacion: intermediates compiled as CTEs over silver's tables; only the timeline and the marts are created 2026-11-04 01:22:51 +00:00
edgar 69896d641a Transformacion: datediff arguments in order, biopsies linked to their cytology through the order, cytology id as procedimiento_id 2026-11-04 01:11:21 +00:00
edgar 5b6e701310 Transformacion: SQLite variants of generate_schema_name and datediff 2026-11-04 01:11:21 +00:00
edgar 29c9963e5d Transformacion: the intermediates read silver's procedimiento and observacion_clinica; the staging views over bronze are removed 2026-11-04 01:11:21 +00:00
edgar f5819efa7a Transformacion: dbt-core in one group per engine (sqlite, sqlserver, postgres on 1.12; mysql on 1.7) and one profile per domain 2026-11-04 01:02:20 +00:00
Klingsor0 b5a53c587f feat(Transformacion): marts CaCu IND1, TIEMPO_REPORTE, DIAS_TOMA_DIAGNOSTICO y schema_marts
- int_cacu_notas: pivot columnar desde int_cacu_procedimiento/observacion (silver, no bronze)
- mart_cacu_ind1: C1 tamizadas con resultado anómalo
- mart_cacu_tiempo_reporte: C3r días toma→reporte con horizonte y pendiente
- mart_cacu_dias_toma_diagnostico: C3r días toma→nota diagnóstico, join-based (workaround SQLite 3.40)
- stg_cacu_nota_medica_{proc,obs}: refactor; clasificacion de tipo_nota via seeds (no CASE hardcodeado)
- seeds cacu: seed_cacu_nota_cie (es_diagnostico, es_antecedente), seed_cacu_nota_especialidad (prioridad)
- dbt_project.yml: vars citologia_anomala, especialidades_diagnostico, horizontes; marts → view; seeds schema
- schema_marts.yml: meta FHIR (measure_url, contrato, parametros, poblaciones) para los seis marts CaCu

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-04 01:00:01 +00:00
Klingsor0 f68babec98 feat(Transformacion): marts CaCu EU7, EU13 y CONFIRMACION_CITOLOGIA
Tres modelos gold para CaCu, traducidos del SQLAlchemy de indicadores_kit
a SQL puro sobre la capa plata:

- mart_cacu_eu7: distribución de resultados citológicos; último resultado
  válido por paciente en el periodo (mismo criterio de validez que EU7).
- mart_cacu_eu13: detección histopatológica; denominador = tamizadas,
  numerador = con biopsia confirmada (deteccion_grados) ligada por toma_id.
- mart_cacu_confirmacion_citologia: colposcopia → biopsia; población =
  alto grado, categoría = grado más grave de biopsia (orden catalogo_biopsia).

Los tres leen únicamente de int_cacu_citologias e int_cacu_biopsias (plata);
ninguno toca bronze. Parámetros de corrida y catálogo declarados en
dbt_project.yml como vars con valores por defecto sobreescribibles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-04 01:00:01 +00:00
Klingsor0 b20cd02709 feat(Transformacion): directorio dbt para la capa de transformación CaCu
Staging e intermedio de CaCu movidos desde indicadores_kit/dbt (feature/dbt-trial).
Los modelos de staging mapean las tablas bronce (citologia_cervical, biopsia_cervical,
nota_medica, ordenes_estudio) a filas de observacion/procedimiento genéricos; los
intermedios las consolidan en int_cacu_observacion, int_cacu_procedimiento y
int_cacu_linea_de_tiempo.

marts/cacu/ queda vacío: siguiente paso es mover cacu_eu8.sql como primer modelo gold.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-04 01:00:01 +00:00
edgar 6a0007c372 Persistance tests: say why each asset, timeline and cohort-read test exists
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:22:53 +00:00
edgar 257ef9bef1 Merge pull request 'feature/model-proto: asset vocabulary, TimelineRepository, cohort-build reads' (#4) from feature/model-proto into dev
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/4
tests could be more expressive next time, they are the majority of line of code additions
2026-11-03 18:22:42 +00:00
edgar 03d0d6388e Persistance: timeline_repository per domain, query bound with with_query (#21) 2026-11-03 17:46:46 +00:00
edgar e524041b70 Persistance: cohort-build reads in CohorteRepository (#124) 2026-11-03 17:21:36 +00:00
edgar 01e80eaefb Persistance: TimelineRepository with an injected query (#21) 2026-11-03 17:06:30 +00:00
edgar 9a7a4f45b1 Persistance: asset vocabulary for Hamilton graphs (#9) 2026-11-03 17:06:30 +00:00
Roberto Treviño Cervantes 7ae5ecc0fc reorganization 2026-10-31 12:59:45 -06:00
Roberto Treviño Cervantes c1d8fd727d reorganization 2026-10-31 12:59:17 -06:00
Roberto Treviño Cervantes e687f59672 reorganization 2026-10-31 12:48:20 -06:00
Roberto Treviño Cervantes 700ce42787 fold Orquestacion into the WebApi submodule as webapi.orquestacion
Single consumer (webapi.indicadores_vivos), already shipped as the same
Docker image/venv as WebApi — the separate package boundary wasn't
earning its keep. See WebApi@ae1ee46 for the actual move; this commit
removes the now-empty source tree, bumps the submodule pointer, and
updates the docs that pointed at it (README.md, LEEME.md, Persistance).
2026-10-31 00:51:55 -06:00
Roberto Treviño Cervantes 471df3c3ce package ISSSTELEON as an installable release: dist/ scripts, Hamilton-based Orquestacion, governance cohort cleanup, sanitized gitignore comments 2026-10-30 11:19:43 -06:00
Roberto Treviño Cervantes c159a69284 preliminary release 2026-10-29 12:16:56 -06:00
Roberto Treviño Cervantes 87a02938a9 integrating latest dashboard changes 2026-10-26 01:42:38 -06:00
Roberto Treviño Cervantes 8572e90e06 bump WebApp submodule pointer (fix flex-sizing bug and --issste-* variable aliases for the vendored indicadores module) 2026-10-23 08:07:16 -06:00
Roberto Treviño Cervantes 5840de1163 bump WebApi/WebApp submodule pointers to the amended dashboard history 2026-10-23 01:13:34 -06:00
Roberto Treviño Cervantes 73238205ba bump WebApi submodule pointer (Dockerfile + column matcher + duration coercion fixes) 2026-10-23 00:42:05 -06:00
Roberto Treviño Cervantes 4a18656dd2 add ClasificacionEeg/EstadoSegmentoEeg/FuenteSegmentoEeg enums (fork dev, additive alongside existing narrative EEG enums) 2026-10-23 00:41:54 -06:00
Roberto Treviño Cervantes 6efa4c6151 fold raw hospital BIRADS subcategory values (B4A/B4B/B4C) into B4 2026-10-23 00:25:19 -06:00
Roberto Treviño Cervantes 84144b03db integration layer; merge work on indicators from forks with existing ingestion pipeline 2026-10-23 00:06:24 -06:00
alberto 45124f95b3 Merge pull request 'revert 3b04ccd9bbf8ddbe863510ca76fc27599a9fcf5d' (#2) from dev into main
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/2
2026-10-09 00:09:59 +00:00
alberto c8d94c429d revert 3b04ccd9bb
revert Merge pull request 'Version/v0.4.0' (#1) from edgar/ISSSTELEON:version/v0.4.0 into main

Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/1
2026-10-09 00:07:41 +00:00
alberto 3b04ccd9bb Merge pull request 'Version/v0.4.0' (#1) from edgar/ISSSTELEON:version/v0.4.0 into main
pruebas / core (push) Successful in 17s
pruebas / persistance (push) Successful in 15s
pruebas / indicadores_kit (push) Successful in 1m7s
Reviewed-on: http://10.0.10.41:3000/ISSSTELEON/ISSSTELEON/pulls/1
2026-10-08 23:58:16 +00:00
alberto c9aa09414c Merge pull request 'TEA: eeg_estudio desde el archivo .edf y tabla nueva eeg_segmento (Enmienda 01)' (#1) from v0.3.0 into version/v0.4.0
pruebas / core (pull_request) Successful in 11s
pruebas / persistance (pull_request) Successful in 19s
pruebas / indicadores_kit (pull_request) Successful in 1m14s
Reviewed-on: http://10.0.10.41:3000/edgar/ISSSTELEON/pulls/1
2026-10-08 23:54:53 +00:00