74 Commits

Author SHA1 Message Date
edgar c57e444a27 Merge pull request 'CaCu synthetic route: carcinomas are treated, and nearly every high-grade lesion' (#9) from integration/cacu-197-conciliacion into dev
pruebas / pytest (push) Failing after 3s
Reviewed-on: #9
2026-11-22 23:26:58 -06:00
alberto e6829463cf Merge pull request 'TEA: ADOS-2 module, algorithm and items come from the PDF' (#8) from feature/tea-eeg-analysis into dev
pruebas / pytest (push) Failing after 5s
Reviewed-on: #8
2026-11-22 22:19:26 -06:00
ulises aa153e2af2 Merge dev into the TEA branch; uv.lock regenerated
pruebas / pytest (push) Failing after 4s
pruebas / pytest (pull_request) Failing after 5s
2026-11-22 22:18:37 -06:00
ulises c7b066c080 TEA: the hospital sends no ADOS-2 module, algorithm, score or classification; the load reads module and algorithm from the PDF
pruebas / pytest (push) Failing after 5s
pruebas / pytest (pull_request) Failing after 5s
2026-11-22 22:01:54 -06:00
edgar e510ad75e2 CaCu route: carcinomas are treated, and nearly every high-grade lesion
pruebas / pytest (push) Failing after 4s
pruebas / pytest (pull_request) Failing after 4s
The treatment note after a reported biopsy now comes for 95 % of CIS and carcinomas and 85 % of LIEAG (LIEBG stays at
15 %): carcinomas were never treated and the times to treatment had almost no patients.
2026-11-22 19:33:32 -06:00
edgar 1c68fe106f Merge pull request 'CaCu: cancer cases, the screening route, and the KPNC-like hospital generator' (#7) from integration/cacu-197-conciliacion into dev
pruebas / pytest (push) Failing after 3s
Reviewed-on: #7
2026-11-22 13:45:33 -06:00
ulises 937a37be88 TEA: the hospital's ADOS-2 rows carry no items; the load reads them from the evaluation PDF through a document source declared by the project 2026-11-22 12:10:28 -06:00
edgar 312e232978 CaCu: the KPNC-like hospital with the route, deaths and a few cancer cases
pruebas / pytest (push) Failing after 4s
pruebas / pytest (pull_request) Failing after 3s
`con_cancer` takes the histories it adds to (`base`), so `--generador kpnc` goes through it like the simple
generator: each woman gets her route notes (valuation, colposcopy and treatment, which dbt reads colposcopies and
treatments from), some a death date, and 1 % more women are cancer cases with an invasive biopsy, for the survival
model. A biopsy is requested at least a day after its cytology's report, so the valuation visit fits between them.
2026-11-22 09:34:20 -06:00
edgar 243aa2cc07 CaCu: the KPNC-like hospital as poblar cacu --generador kpnc
pruebas / pytest (push) Failing after 5s
The option (or `DEV_DATA_GENERADOR=kpnc`) replaces the fixed proportions with bayes-pim's KPNC-like hospital
(`bayes_pim.hospital`): women cotested over the 14 years before the reference under KPNC's protocol, several visits
each, colposcopies and CIN2+ biopsies from KPNC's published tables, turned into the hospital's cytologies, biopsies
and notes. bayes-pim is the `kpnc` extra, pinned to a commit of its Gitea repository; the Docker image doesn't
install it yet.
2026-11-22 07:58:18 -06:00
edgar 9b968849ea CaCu: a cytology can carry its glandular result
pruebas / pytest (push) Failing after 5s
`Citologia.glandulares` goes to `cit_celulas_glandulares` (an AGC result), empty unless a generator gives it; the
simple generator doesn't.
2026-11-22 07:53:38 -06:00
edgar ae440e074d CaCu: the valuation visit, the colposcopy and the treatment as medical notes (S-D20)
pruebas / pytest (push) Failing after 4s
After an anomalous cytology, poblar and documentos add, in clinical order, the valuation visit, the colposcopy (the day
its biopsy is requested, with the kit's reason as its note) and, for some biopsies, the treatment. The notes follow the
kit's lists and do not resolve any sample, so what was already generated stays the same.
2026-11-22 02:31:40 -06:00
edgar 4d086ba7b3 CaCu: cancer cases and death dates for the survival scenario (S-D19)
poblar and documentos add the cancer cases (4 % of n, from CACU-9001, each with its carcinoma biopsy from 6 months to 6.5
years back) to the n usual women, and a third of the cases and 1.5 % of the others get a death date. The usual histories
do not change.
2026-11-22 02:10:08 -06:00
ulises 084a627159 TEA: invented ADOS-2 item rows for the association 2026-11-21 23:18:39 -06:00
angel 1d085b1f97 Merge pull request 'Integration/tea eeg analysis into dev' (#5) from integration/tea-eeg-analysis-into-dev into dev
pruebas / pytest (push) Failing after 4s
Reviewed-on: #5
2026-11-21 12:37:10 -06:00
Angel Capetillo Zavala dc9ee53e46 Merge feature/tea-eeg-analysis into dev (TEA ADOS-2 association model)
pruebas / pytest (push) Failing after 4s
pruebas / pytest (pull_request) Failing after 4s
2026-11-21 12:23:29 -06:00
alberto baa3f5949f Lock follows the tea library at 0.2.0
pruebas / pytest (push) Failing after 4s
2026-11-21 11:17:59 -06:00
alberto 6b7b21d595 TEA: poblar tea generates the ADOS-2 association model and its per-patient values, loaded through the import API 2026-11-21 11:17:59 -06:00
Angel Capetillo Zavala c85e702bce Lock against the tea library 0.2.0 and the WebApi's direct dependency on it
pruebas / pytest (push) Failing after 10s
2026-11-20 16:56:54 -06:00
AlbertoPMDM 7319fbc753 TEA: poblar tea --edf with files gives only the children of those files, keys from N-0001, --n ignored
pruebas / pytest (push) Failing after 10s
2026-11-20 13:22:40 -06:00
AlbertoPMDM 27d4c7e570 TEA: poblar tea --edf adds one confirmed autism child per real EDF file, keeping its age and rewriting its header
pruebas / pytest (push) Failing after 6s
2026-11-19 19:20:29 -06:00
AlbertoPMDM 83176d7e13 TEA: the hospital gives each EEG's EDF and nothing of its analysis, drawn so the platform's analysis finds what each story asks
pruebas / pytest (push) Failing after 19s
2026-11-19 15:43:27 -06:00
alberto 3dea0ad641 TEA: every EEG carries a synthetic EDF into the hospital, and more children have an EEG, sleep and altered metrics
pruebas / pytest (push) Failing after 6s
2026-11-13 19:12:44 -06:00
alberto ff31c010cc TEA: the ADOS-2 order carries the psychological evaluation's PDF into the hospital
pruebas / pytest (push) Failing after 7s
2026-11-13 15:03:02 -06:00
alberto 389e1b3d3c Documents: CaCu records as clean and scanned PDFs with ground truth, and TEA's ADOS-2 score summary as text PDFs
pruebas / pytest (push) Failing after 13s
2026-11-13 13:29:49 -06:00
alberto 9dce8c2dac TEA data follows the redesigned schema: M-CHAT, ADOS-2, notes and EEG analysis columns; the old aspect tables are gone
pruebas / pytest (push) Failing after 11s
2026-11-13 11:58:03 -06:00
edgar 57023b6cfb Load the hospital into the platform through its import API; no indicadores_kit dependency; hospital published on the server's address
pruebas / pytest (push) Failing after 8s
2026-11-09 11:30:56 -06:00
edgar d5fe1a46a7 Merge pull request 'Feature/medallon' (#3) from feature/medallon into dev
pruebas / pytest (push) Successful in 30s
Reviewed-on: #3
2026-10-20 07:35:27 +00:00
edgar c71d13c421 I-3a: indicadores_kit 0.8.0
pruebas / pytest (push) Failing after 16s
pruebas / pytest (pull_request) Failing after 16s
CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 07:08:42 +00:00
edgar 2f1d7f14ba Merge pull request 'Feature/cama birads45' (#2) from feature/cama-birads45 into dev
pruebas / pytest (push) Failing after 17s
Reviewed-on: #2
2026-10-20 07:07:54 +00:00
rodrigo e1fa3604a2 MD-16: dev-data solo genera y puebla el hospital
pruebas / pytest (push) Successful in 29s
El despliegue (sembrar, calcular, WebApi y WebApp) es de ISSSTELEON con Orquestacion.
- __main__: solo `poblar <proyecto>`; poblar_proyecto pasa a hospital.py.
- Fuera montar.py, ingesta.py, repositorio.py, */esperado.py y el espejo dias_toma_diagnostico de notas.py (reimplementaban indicadores del kit).
- Fuera los notebooks, montura.yml, despliegue.yml, compose.despliegue.yml, alimentar.sh, comprobar.sh y los servicios sembrar*, webapi y webapp; el hospital queda con restart: unless-stopped.
- Pruebas: fuera las que montaban o comparaban con lo esperado.

CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 04:06:35 +00:00
rodrigo 0b87966a2c Pruebas al día con el kit 0.5.8 y WebApi 0.1.6
pruebas / pytest (push) Successful in 6m27s
pruebas / pytest (pull_request) Failing after 18s
Las 10 pruebas que fallaban en dev sin ningún cambio (I-D15, I-D17):
- test_montar y test_webapi leen del kit los indicadores, los visibles y las
  figuras de cada uno, en lugar de 18 indicadores, 108 reportes y la figura
  de barras apiladas para todo C2.
- test_cama pide el número exacto de resultados de la montura:
  mastografías + biopsias reportadas + notas médicas.

CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 06:57:43 +00:00
rodrigo c9e5d1937e Merge feature/dias-toma-diagnostico en feature/cama-birads45
Junta las subcategorías de BI-RADS con las notas médicas de CaCu y CaMa.
Los conflictos fueron solo de _docs (supuestos S-D14 y S-D15, hallazgos
I-D15 e I-D16): se conservan las dos entradas.

CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 06:48:08 +00:00
rodrigo 60ae4c6125 CaCu y CaMa: días de la toma al diagnóstico por nota médica
- Siembra de notas médicas de CaCu y CaMa (staging `notamedica`): a lo más
  una nota por toma con resultado, con el CIE-10 de su resultado o del grado
  de su biopsia y la especialidad que la escribe (20 % medicina familiar,
  que no resuelve la toma). Las notas salen de azares derivados: el resto de
  la historia no cambia.
- `notas.de_resolucion` y `notas.dias_toma_diagnostico`, el espejo sin base
  de CACU_DIAS_TOMA_DIAGNOSTICO y CAMA_DIAS_TOMA_DIAGNOSTICO; lee las reglas
  `<proyecto>.diagnostico.*` del kit.
- tests/test_notas_cacu_cama.py: los códigos y las especialidades generados
  son los del kit, y lo esperado coincide con el kit montado.
- _docs: S-D15 y I-D16 (la tabla de staging sí existe: `notamedica`).

CSO5.5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 06:42:37 +00:00
rodrigo deecb843cc CaMa: BI-RADS 4 a 6 con subcategorías 4A, 4B y 4C
- El generador escribe 4A, 4B o 4C (55/25/20 %) en lugar de B4 y un 2 % de
  B6, con azares derivados: el resto de la historia no cambia (S-D14).
- PESOS_GRADO por subcategoría; un B6 no pide biopsia.
- `esperado.birads_456_paciente` y `birads_456_mastografia`, y su comparación
  contra el kit montado.
- I-D15: la cota resultados <= hechos de la montura de CaMa ya fallaba con el
  kit de dev, sin este cambio.

CSO5.5
2026-10-16 05:35:47 +00:00
alberto cba79967cc Merge pull request 'Generate M-CHAT and nota medica data for TEA so M23/M24/M25 show real values' (#1) from feature/m21-m22-tea into dev
pruebas / pytest (push) Has been cancelled
Reviewed-on: #1
2026-10-16 05:24:30 +00:00
edgar b9ea6760d5 Generate M-CHAT and nota medica data for TEA so M23/M24/M25 show real values
pruebas / pytest (push) Failing after 16s
pruebas / pytest (pull_request) Failing after 16s
M24 and M25 were empty because dev-data never generated nota_medica rows,
  and M25's M-CHAT fields lived on a different table under a different code
  than what the indicator reads. Adds a shared CIE-10 enum/generator
  (notas.py) and wires it into TEA's historias/filas/proyecto. CaCu/CaMa are
  not wired in yet -- their Persistance migration for nota_medica doesn't
  exist (documented in M23_M24_M25_NOTA_MEDICA.md).
2026-10-16 04:35:08 +00:00
alberto fa32adfc0e Update montura/comprobar.sh
pruebas / pytest (push) Failing after 5m34s
2026-10-15 23:03:47 +00:00
edgar a78748a445 Update montura/comprobar.sh
pruebas / pytest (push) Has been cancelled
2026-10-14 18:47:19 +00:00
rodrigo 1aa8730c02 Repoblar el hospital construye antes la imagen del generador (I-D14)
pruebas / pytest (push) Successful in 2m31s
poblar.sh corría cada poblar con compose run, que no reconstruye: usaba
la imagen de la última construcción y los cambios del generador no
llegaban al hospital del servidor. Ahora construye las tres imágenes
antes de correrlas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:14:01 +00:00
rodrigo 9b715e80ec CaCu y CaMa con resultados y biopsias en los datos simulados (C-6)
pruebas / pytest (push) Successful in 2m10s
Las citologías traen resultado de células escamosas, VPH y genotipos 16
y 18; una citología anómala puede originar una biopsia, y un BI-RADS 4 o
5, una biopsia de mama, con solicitud y, si ya llegó, reporte y grado.
Vocabulario de los enums de Core; azares derivados con nombre propio, así
que las fechas, calidades y BI-RADS que ya se generaban no cambian.
esperado calcula desde las historias ind1, ind2b, cacu_eu7, cacu_eu13 y
la distribución de BI-RADS, y coincide con el kit v0.5.2. Las
proporciones son inventadas (S-D13). Cierra parte de G-D6: faltan las
órdenes y los datos de la paciente.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 19:21:31 +00:00
rodrigo bd3fe66625 La siembra carga resultados y calcula los periodos que publica el kit (C-5)
pruebas / pytest (push) Successful in 3m2s
montar llama al paso cargar_resultados después de cargar, si el kit lo
tiene y el proyecto declara resultados (CaCu y CaMa, desde la 0.5.0), y
calcula cada indicador en todos los tipos de periodo de su definición:
semestres en Montura.reportes y lo demás en otros_periodos. Con el kit
v0.5.2, la distribución de BI-RADS y los tiempos de reporte salen con
números. tests/test_webapi.py toma las figuras de TEA de donde las
tenga el kit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 18:38:28 +00:00
rodrigo 32954b3d4d Despliegue: entradas version y webapi_version para elegir qué versión se despliega
pruebas / pytest (push) Successful in 1m58s
version es una etiqueta o rama de edgar/ISSSTELEON (v0.5.2): sus punteros
fijan indicadores_kit, WebApi, models y WebApp. Vacía, sale la rama del
mismo nombre o main, como antes. webapi_version cambia solo WebApi, que
lleva su propia numeración; vacía, la que fija ISSSTELEON. webapp_rama
sigue igual. Una versión que no existe detiene el trabajo con su mensaje.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 18:23:18 +00:00
rodrigo cf5bdbfc58 Despliegue: paso provisional que apunta el proxy de WebApp a webapi:5000
pruebas / pytest (push) Successful in 2m2s
Una rama de WebApp puede traer su proxy de ng serve hacia 127.0.0.1:5000,
que dentro del contenedor es la propia WebApp. El paso lo cambia en la
copia del trabajo antes de construir la imagen; el repositorio de WebApp
no se modifica. Se quita cuando la rama lea la dirección del entorno.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 02:17:27 +00:00
rodrigo 6222c8cc6a Despliegue: entrada webapp_rama para elegir la rama de WebApp al disparar
pruebas / pytest (push) Successful in 2m7s
Vacía, WebApp sale del puntero de ISSSTELEON, como antes. Con una rama de
ISSSTELEON/WebApp se despliega su último commit; el puntero no se mueve.
La cabecera dice de qué rama sale cada módulo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 16:29:33 +00:00
rodrigo 882b832946 Exploratorio: riesgos de CaCu desde un pyfunc de MLflow, y el diseño que sale de ahí
pruebas / pytest (push) Successful in 2m16s
Dos scripts sueltos (sin dependencias nuevas) y _docs/prototipo_riesgos.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 07:32:36 +00:00
rodrigo 0d5a9392bf H-6: poblar el hospital y alimentar las bases, en dos pasos (sin probar en el runner)
Comando poblar y opción --sin-poblar; servicios poblar* bajo el perfil
hospital; hospital.yml y despliegue.yml como paso 1 y paso 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 07:28:50 +00:00
rodrigo 897d15bd68 C-2 a C-4: datos simulados de CaCu y CaMa, en el comando, WebApi y la montura
pruebas / pytest (push) Successful in 2m13s
Un paquete por proyecto (historias, filas, esperado, proyecto); cacu_eu8 y
cama_eu8 del kit coinciden con lo esperado. La montura siembra los tres
pasando por MySQL, cada uno en su base de datos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 07:16:14 +00:00
rodrigo 11e0b96ddf C-1: unidad del proyecto y copia del hospital creable en MySQL; tareas C-1 a C-4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 07:05:47 +00:00
rodrigo de601c4030 M-3 hecha: despliegue persistente con resembrar (ejecución 548)
pruebas / pytest (push) Successful in 2m1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 06:58:48 +00:00
rodrigo e38c4aea36 M-3: resembrar como lista (no/si); el booleano llegaba false
pruebas / pytest (push) Successful in 2m4s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 06:50:54 +00:00