How:
- The tab is now «Análisis epidemiológico». Its first section,
«Indicadores epidemiológicos», shows the cohort's figures at 24 months
(GET /<domain>/analisis/indicadores, guarded by analisisIndicadores):
cumulative incidence of cancer and of recurrence, follow-up adherence and
survival, each with its interval, counts and assumptions.
- Stages publish a list of variables (two or more) instead of a fixed pair.
The curves have their own menus: one variable and two or more of its
values (`grupos`; with all of them the request names none, with one the
page asks for another and sends nothing). Cox sits beside them, on the
same groups.
- The heatmap has its own menus for rows and columns, always two distinct
variables (cruceDeEtapa keeps a pair the stage owns); its answer adds the
log-rank of each variable, plain and stratified by the other.
- A curve click, its «Ver pacientes» button in the risk table, or a
coloured cell emits verPacientes with the scenario's population
(`filtro_seguimiento`) and the values (seleccionDeCurva,
seleccionDeCelda). The page opens Seguimiento with that selection.
- IndicadoresSeguimientoTabla takes the selection as an input: it asks the
whole cohort (`meses = 0`, «Toda la cohorte», now in MESES_VENTANA) with
those filters and says where the list comes from; «Quitar selección»
goes back to the 3-month window. A new id applies a repeated click.
Implications:
- Seguimiento's contract gains `meses = 0` (no time window); the backend
must accept it, or answer 400 until it does.
- The list behind a curve is patient-level: the drill-down needs the same
access rule as Seguimiento, and the figures it comes from stay suppressed.
- Two more endpoints for the backend (/analisis/indicadores, and the new
parameters grupos, filas and columnas).
dashboard-test is the base for every CaMa feature both branches built; this
branch's TEA and CaCu work (from the TEA mock) and its later CaMa views are
kept on top of it.
How:
- From dashboard-test: the opportunity strip with pending cards
(camaKpiCards, CAMA_OPORTUNIDAD_KPIS), the histopathology view drawn from
the published BI-RADS matrix, the pending histopathology card, the
follow-up table component (app-seguimiento-tabla), the paired BI-RADS
counts, the deferred domain selector in the header, the compact filter row
for CaMa, the quiet «Disponible» state and the stricter KPI rules (no rate
without a denominator, no median without observations).
- Kept from this branch: the single-period filters and the indicator
selector of every domain (instead of the side navigation and «Modalidad»),
TEA's Histórico grouping and summary paragraph, CaCu's views, the
catalog-driven scenario and confirmation pickers, the Análisis tab, no
pins or figure count below five indicators, and no representation
selector on the cards.
- Histórico: this branch's component, which serves TEA and CaMa, with
dashboard-test's fixed CaMa panel list (HISTORICO_CAMA) and pending
panels; figures merged (dashboard-test's stricter series rules plus the
shared scales, EEG colours and in-process chart of TEA).
- Specs: this branch's for shared components; dashboard-test's for its CaMa
components. Expectations that contradicted the kept design (TEA without
Histórico, «Modalidad», side navigation, four entries in
KPI_BY_DOMAIN.cama) now state the merged behaviour.
Implications:
- CaMa search and pins never show; its cards are what the summary draws.
- The four CaMa opportunity cards are pending until the catalog publishes
their indicator; the mock publishes all four.
- The histopathology view still has its label buttons and inner labels;
this branch's expandable donut for CaMa is no longer used.
The tab asks GET /cama/seguimiento when it is first opened and draws the form,
the table, the details and the pagination from what the answer announces, so a
later change of source behind the endpoint needs no change here. It shows the
demonstration notice when the answer is simulated, a clear pending state while
the endpoint is not published (404 on the first page), and error, empty and
retry states. Stale requests are cancelled.
The sections, CaCu and initial-integration specs now expect the CaMa request
when the tab opens.
Resumen
- Estado del caso (completo, en proceso, fuera del protocolo) al cierre del
periodo, en una figura y en el párrafo, separado de diagnóstico confirmado.
- Tiempos por paso: M-CHAT a ADOS-2, ADOS-2 a diagnóstico y total.
- Un solo formato: barras. M24 son barras apiladas por grupo de edad.
- «Descargar reporte» abre la impresión con el periodo y los indicadores
seleccionados.
Histórico
- Porcentaje de casos en proceso, tiempos por paso en la misma escala y
calidad de los EEG (indicador solo de esta pestaña, con `vistas`).
- Ejes con unidades y fechas como «mar 2025».
Seguimiento
- Columna y filtro de estado del caso, con lo que falta.
- Filtro por tipo de alteración y resumen de EEG que sigue los filtros.
- Módulo de ADOS-2 junto al puntaje.
- Tarjetas de alteraciones: al elegir una se apartan y aparece su mapa, sin
caja, con leyenda de colores. Referencia por grupo de edad.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Filtros por grupo de edad, rango de riesgo M-CHAT-R/F y nivel de CSS ADOS-2.
Se envían a la API como grupo_edad, mchat_min/max y css_min/max.
- Se quita «Ordenar por prioridad», también de CaCu, donde estaba deshabilitado.
- El grupo de edad menor pasa a 16-23 meses, igual que en los indicadores.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Evolución pasa a llamarse Histórico y añade «Periodos a mostrar»: los
últimos 5, 10, 15... meses o semestres, según el intervalo elegido.
- M21 y M22 usan un color por grupo de edad, sin verde ni rojo, también en
sus líneas de Histórico.
- Se quita el selector «Representación gráfica».
- Todas las filas de Seguimiento de TEA se despliegan en su lugar; se quita
la ventana propia de los pacientes impares.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Los pacientes con número impar abren su propia ventana, como la ficha de
cáncer cervicouterino (con «Regresar» y un resumen arriba); los pares
conservan el resumen desplegable en la fila. El encabezado de la ficha ya
nombra el dominio en lugar de decir siempre cáncer cervicouterino.
- Pestaña Seguimiento de TEA: tabla de pacientes con filtro de alteraciones EEG
y fila desplegable con ADOS-2 por reactivo, calidad del EEG y mapa topográfico
(GET /tea/seguimiento/<id>).
- Indicadores destacados: M21 y M22 (pacientes con TEA con y sin EEG).
- Con un solo periodo elegido, TEA muestra un párrafo de resumen en lugar de
las tarjetas.