Features/tea historico #1

Merged
alberto merged 19 commits from features/tea-historico into master 2026-11-06 16:38:58 -06:00
Owner
No description provided.
alberto added 19 commits 2026-11-06 16:38:54 -06:00
The ISSSTELEON submodule now tracks ISSSTELEON/ISSSTELEON.git, on
features/tea-mock (dev plus the TEA follow-up, period summary, single
period filter and indicator selector).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- generar_tea_mensual.py splits each semester into monthly datos@periodos
  variants and adds 'mes' to the TEA catalog and periodos.json.
- generar_tea_detalle.py adds eeg.alteraciones (aperiodic exponent, sleep
  spindles, multiscale entropy) with placeholder associated effects.
- GUIDE.md documents both; ISSSTELEON bumped to the matching WebApp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- generar_tea_donas.py writes datos@estrato=grupo_edad.json for M21, M22
  and M24, switches their figure to fig_c1_donas and adds its «Cómo leer».
- GUIDE.md documents the new figure; ISSSTELEON bumped to the matching WebApp.
generar_tea_donas.py sets one figure per indicator (fig_c1_dona_edad,
fig_c1_barras_edad, fig_c1_donas) and their «Cómo leer» texts; GUIDE.md
documents the three figures; ISSSTELEON bumped to the matching WebApp.
- generar_tea_historia.py adds 2023 and 2024 for the Evolución tab; 2025 keeps
  its values and Resumen its initial period.
- server.py joins datos@periodos=<p>.json files for multi-period requests,
  like the real API.
- Remove the 37+ age group: M24 strata and three Seguimiento patients.
- M23: drop the bar figure and use the new palette.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- generar_tea_historia.py writes fig_c3r_caja@periodos=<period>.json, because
  figure files aren't filtered by ?periodos=.
- Docs: Evolución is now Histórico.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
N2 keeps each patient's previous value. N3 is drawn last, so nothing else in
the patient's file changes; its reference range is a placeholder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- server.py applies grupo_edad, mchat_min/max, css_min/max, page and page_size.
  A page size below the row count used to break the table.
- Seguimiento's youngest group is now 16-23 meses, matching the indicators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- M23 keeps Diagnóstico confirmado and En proceso, with their values, so its
  totals drop (2025-S2: 409 to 380). The generators still spend the removed
  category's random draws so the remaining values don't move.
- Without category groups, the donut has one ring.
- The 2023-02 demo suppression moves to En proceso.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
server.py now applies corte and meses to ultimo_eeg, with the same window rule
as CaCu's list, and returns the window it used. Patients without an EEG can't
be dated, so they stay in the list.

Note that server.py has to be restarted after a change to its code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list is now Ritmo posterior, Husos de sueño N2 and N3, Picos paroxísticos
and Gradiente anteroposterior. Units, reference ranges and effect texts are
placeholders pending medical review. ADOS-2, EEG quality and the map keep their
values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Criteria report bad channels and line noise in dB; the overall rating is the
worst of them. Values and thresholds (RANGOS_CALIDAD) are placeholders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- generar_tea_casos.py adds M26 and M27 (screening steps), M28 (cases by status
  at the end of each period) and M29 (EEG quality, Histórico only).
- Patients get case status, what's missing, ADOS-2 module, age-specific
  references and one map per alteration. The provisional rule: complete with
  M-CHAT, ADOS-2, neuropediatrics note and an EEG within 30 days after the ADOS-2.
- server.py filters by estado_caso and alteracion and returns resumen_eeg, so it
  must be restarted.
- Resumen figures are bars.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alberto merged commit 2536b76c06 into master 2026-11-06 16:38:58 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alberto/mock#1