How: the card shows the rate, its period and its one-line description, like
the other C1 cards. The `intervalo` option of KpiDefinition, the interval in
KpiResult and the card's line drawing are removed, since no card uses them.
Implications: the published ic_bajo/ic_alto are no longer read by any card;
the interval is still shown where it belongs, in the rate's Histórico chart
(the band) and in the BI-RADS confirmation rates.
How: without buttons the view uses CaCu's interactive donut rules. The selection
may have no group (the total, where the view opens). clicDona: a group narrows to
it (again: back to the total), a result is chosen inside its group (again: back
to the group), the centre steps back result -> group -> total. donaExpandible
gives the other group's slices zero, so the chosen group's results fill the
outer ring, fades a chosen result's siblings, and writes the count and the
choice in the centre ("Con biopsia" at the total). At the total the rates count
the base group, so they read as the detection rate.
Implications: only views with `botones: false` (cáncer de mama) change; CaCu's
confirmation keeps clicConfirmacion and donaConfirmacion. The previous commit's
centre label on donaConfirmacion is removed, as no view uses it now.
How: VistaConfirmacion gains `botones`. Without them (cáncer de mama), the
donut works like CaCu's interactive one: a click on the inner ring chooses a
group, on the outer ring a result, on the centre goes back to the base; the
centre names the choice under its count; the donut and the rates animate
between choices; a one-line hint says how. The buttons stay in the page for the
keyboard, visually hidden until one of them has the focus. CaCu keeps
`botones: true` and is unchanged.
Implications: on cáncer de mama the choice is made on the chart; a keyboard user
tabs into the hidden buttons, which then show. A view whose centre would
overflow with long labels needs shorter category names in the catalog.
How: PARES_CONTEOS pairs two C2 counts of the same finding, one per exam and one
per patient, with the map from exam category to patient category (BI-RADS 4A,
4B and 4C are a patient's BI-RADS 4). The exams' card
(cama_birads_456_mastografia) draws IndicadorConteosPareados: a donut of the
mammograms by category with their total in the centre, and grouped bars with
each patient BI-RADS next to its mammograms and "≈ n por paciente" at the end of
each pair. Both counts come from the same period request; a suppressed cell
leaves its sum, ratio and the donut undrawn instead of using zero. The patients'
indicator has no card of its own in Resumen (esSocioConteos); it still feeds its
opportunity card and Histórico.
Implications: the view depends on the exams' and patients' category ids
(B4A..B6, BIRADS_4..BIRADS_6) matching grupoDe; a renamed category makes the view
reject the answer as incompatible. The real API already publishes both
indicators with these ids.
How: CaCu's confirmation view (rates per row with their horizontal Wilson
interval, and a donut of biopsy results whose buttons choose what the rates
count) takes a VistaConfirmacion: indicator id, stratum, fixed rows (most severe
on top), the grade whose group is the base view, the grade read as a false
positive, and its words. CONFIRMACION_CACU reproduces the previous behaviour
exactly; CONFIRMACION_CAMA reads cama_histopatologia_birads by BI-RADS 6, 5,
4C, 4B and 4A, with "Maligno" (the group of INVASOR) as the base, so the base
rate is the cancer detection rate, and "Benigno" alone reads as false positives.
The catalog card chooses the view with vistaConfirmacion(dominio, indicador).
Implications: the backend must publish cama_histopatologia_birads stratified by
`birads`, with exactly two groups of results (plus SIN_DATO/SIN_BIOPSIA kept
apart), as cacu_confirmacion_citologia is. The EU7-style view stays available
through the catalog's `escenario` field but no CaMa indicator uses it now.
How: the grid rows were already equal (grid-auto-rows: 1fr), but the card kept
its content height inside the stretched panel: mat-card's height: 100% had no
definite parent height to resolve against. The KPI panel and the KPI card host
are now flex columns, and the card and mat-card grow (flex: 1 1 auto) to fill
them, so every card is as tall as its row.
Implications: applies to every domain's cards. A panel showing "Reintentar
consulta" keeps the button under its card, and the card takes the remaining
height.
How: cáncer de mama's card grid no longer auto-fits 18rem columns (which could
leave three cards and one below); it has two equal columns from 600px of
dashboard width and four from 1100px. With grid-auto-rows: 1fr every card is
as tall as the tallest one (the detection rate with its interval line).
Implications: CaCu keeps its auto-fit grid for its five cards. On a narrow
dashboard the cards stack in one column, still of one height per row.
How: reverts e5ff342 entirely: indicadores-relato.ts and its spec are removed,
Resumen goes back to the opportunity cards followed by the clinical charts for
every domain, and the specs read cáncer de mama's cards in KPI order again.
Implications: no domain has a questions layout; RELATO_BY_DOMAIN is gone, so
nothing outside the KPI list and the catalog orders Resumen. The search
threshold and the equal card heights stay.
How: the opportunity card grid gets grid-auto-rows: 1fr, so every row is as
tall as its tallest card and all cards share that height (they already share
the column width).
Implications: CaCu and TEA cards no longer differ in height when one has a
longer line; a card with much more text makes every row taller. Domains with a
story size their cards in the story layout instead.
How: indicadores-relato.ts holds, per domain, the questions Resumen answers in
order, each with the opportunity cards and charts that answer it, a one-line
reading and, optionally, a button to the tab that continues it. Cáncer de mama
follows the patient's route: 1 ¿Cuántas pacientes tienen un hallazgo
sospechoso? (patients and mammograms with BI-RADS 4-6), 2 ¿Qué tan pronto llega
el diagnóstico? (the two time cards, then Histórico), 3 ¿Cuántos cánceres
confirma la biopsia, y en qué categorías? (detection rate and the BI-RADS
histopathology view), 4 ¿Quiénes siguen pendientes? (to Seguimiento). Each
answer leads to the next question. Indicators no question claims go to «Otros
indicadores». All opportunity cards have one size (17rem by at least 12.5rem):
beside charts they stack in a column, alone they sit in a row; charts take
equal halves and an interactive card the full width. Domains without a story
keep the opportunity and clinical sections.
Implications: the story is WebApp configuration, keyed by indicator ids; when
the catalog or KPI ids change, RELATO_BY_DOMAIN must follow (or come from the
API's metadata later, as a `pregunta` field per indicator). Cards render in
question order, so specs that read cáncer de mama's cards in DOM order expect
patients, times, then detection rate. The charts' search and the TEA print
report stay with the default layout.
How: searchVisible compares the indicators shown in Resumen with MIN_BUSQUEDA
(5) instead of 2. Below it every card is in view and the selector and its
"Mostrando n de m" line are not rendered.
Implications: cáncer de mama (three charts in Resumen) loses the selector; CaCu
(five) and TEA keep it. Pinning still works without it. If a domain grows past
the threshold the selector comes back with no other change.
How: the KPI card renders its state line only when the state is not
"Disponible"; a card with a value shows the value, unit, period and its one-line
description. Every other state ("Dato oculto por tamaño", "Selección no
consolidable", "Indicador no disponible"...) still shows, as a status message.
Implications: applies to every domain's cards. kpiResult still returns
"Disponible", so TEA's summary paragraph and any logic reading the state are
unchanged; only the card's text changes.
How: KPI_BY_DOMAIN.cama keeps Pacientes evaluadas con BI-RADS 4, 5 y 6, Tasa de
detección histopatológica (with its Wilson interval), Tiempo de tamizaje a
resultado and Tiempo de resultado a diagnóstico. Tasa de confirmación and
Tiempo de tamizaje a diagnóstico (the sum of the two halves) are no longer
cards; both stay in Histórico.
Implications: the initial-period anchor is unchanged (the patients card). The
integration specs pin the first three cards (C2, C1, C3r); the real-data spec
builds a definition for the two answers that are no longer cards, so the C1 and
C3r rules keep being checked on real WebApi data.
How: --issste-radius is 4px instead of Material's medium corner (12px), and
the Material shape tokens are overridden after mat.theme (corner-full 4px, so
buttons stop being pills; medium and large 4px; extra-large 6px). The
indicators feature's 999px pills (legend buttons, EEG badges) use the shared
radius. Headings use Roboto at weight 500 instead of Rajdhani at 700, a step
smaller: page title 1.75rem, section titles 1.25rem, card titles 1.125rem,
KPI titles 1rem and KPI values 1.75rem; the header title is 1.25rem.
Implications: the corner tokens are global, so Conectar and Gobernanza (dialogs,
panels, buttons) also get square corners; their own 999px chips are unchanged.
Circles drawn with 50% (dots, swatches) stay round. Rajdhani is no longer used
anywhere, so it can be dropped from the font assets. No behaviour changes.
How: the parametrized domain names (domainLabels and domainTitles of the page,
domainNames of Datos y definiciones, and the header menu) say "cáncer de mama" /
"Cáncer de mama". Every non-TEA domain now uses CaCu's wording: "Indicadores de
oportunidad" and "Indicadores clínicos" as section titles, and cards that show
only their own line (the kit notes stay in the figure footers). The C2 card line
comes from a per-domain C2_INFO; CaMa's says what it counts in one sentence.
Implications: any text built from domainLabels changes with it (titles, aria
labels, "Seguimiento de cáncer de mama"); the route and API keep the `cama` id.
The header names CaMa in full while TEA and CaCu keep their short labels. The
Conectar workspace still lists "CaMa"; it has its own label table.
How: the period editor puts Intervalo de análisis, Periodo seleccionado,
Aplicar and the "Hay cambios sin aplicar" notice on one row, with Material
density -4 (mat.theme((density: -4)) scoped to the component), and folds the
applied filter and the availability hint into one small line under it. The
"Selección en edición" and "Sin cambios pendientes" lines are gone: the
selectors already show the draft, and the notice only appears when there is
something pending. The section has less padding, a smaller title and a
one-line description per domain.
Implications: purely presentational; the filter state, the apply rules and the
requests don't change, and every spec passes unchanged. The density applies
only inside the period editor, so other form fields keep the global density.
How: KPI_BY_DOMAIN.cama gains cama_tasa_deteccion_histopatologica (C1),
cama_eu38a (screening to result) and cama_dias_resultado_diagnostico (result to
diagnosis), titled like CaCu's time cards. A KpiDefinition can ask for
`intervalo`: kpiResult then passes the row's published ic_bajo/ic_alto, and the
card draws them as a horizontal line on a 0-100 % scale with the value marked
and the bounds written out. Bounds that are missing or don't contain the value
are not drawn. CaMa uses CaCu's auto-fit card grid.
Implications: the backend must publish these three indicators (the ids are the
contract; cama_eu38a already exists in the kit) and, for the detection rate, the
Wilson bounds in ic_bajo/ic_alto, as every C1 already does; the WebApp never
computes an interval. Six CaMa cards request their data in two batches. The
period-integration specs stay pinned to the first three CaMa cards; the panel
spec covers all six.
How: on /indicadores/<domain> routes the App header shows the platform title
and a mat-menu button named after the current domain, listing the other two
(the same markup and styles as the deployed WebApp's app.html). Other routes
(Conectar, Gobernanza) keep the "Análisis de información" breadcrumb. The
indicators page drops its own TEA/CaCu/CaMa links, so there is one switcher.
Implications: domain switching now depends on the App shell; a page embedded
elsewhere has no way to change domain by itself. Specs that asserted the
in-page links now assert their absence, and app.spec covers the menu.
«Personalizado…» en «Periodos a mostrar» abre un diálogo con los periodos del
intervalo elegido, por año. Las figuras muestran solo los elegidos, sin volver
a consultar, y cada intervalo recuerda su propia selección.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Al desplegar un paciente se abre su primera alteración, o la primera métrica
si no tiene alteraciones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- La calificación general es una palabra (Bueno, Aceptable o Malo), como en
Automagic, y es la peor de sus criterios.
- Los criterios son lo que busca PREP, con números: canales afectados de 19 y
ruido de línea en dB.
- Se quitan impedancia, artefactos, canales rechazados, segmentos útiles y el
puntaje de 100.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sin grupos de categorías (M23), la dona de TEA se dibuja como la de M21: un
anillo con rótulos, el total al centro y un botón por categoría.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M23 ya no cuenta los diagnósticos descartados: el párrafo dice ahora «evaluados
por psicología [...] diagnóstico confirmado o en proceso».
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>
- Pestaña Evolución (solo TEA), entre Resumen y Seguimiento: una figura por
indicador con todos los periodos publicados, mensual o semestral. Barras
apiladas para C2, línea con intervalo de confianza para C1 y mediana con
cuartiles para C3r. Los periodos suprimidos se sombrean, no se dibujan
como cero.
- Paleta: verde #A8C243 y rojo ladrillo #B8433A, comprobados para
daltonismo. Las líneas usan un verde más oscuro sobre fondo claro.
- «Sin EEG» conserva su color en M21 y M22.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Leyenda con botones, como la distribución de resultados citológicos de
cáncer cervicouterino: el grupo o la categoría elegida conserva su color,
el resto se atenúa, «Volver» retrocede y un clic en la figura equivale al
botón (indicadores-highlight.ts).
- M21, M22 y M24 con botones por grupo de edad; el centro de las donas
muestra la selección.
- En TEA, la dona C2 de un periodo (M23) se dibuja con ambos anillos y
botones, y sus barras también los tienen.
- La ficha propia del paciente reparte los paneles en tres columnas
(dos o una en pantallas más estrechas), con los puntajes por reactivo
abiertos y un mapa más grande.
- La dona de M21 muestra solo a los pacientes con EEG por grupo de edad;
el centro conserva el porcentaje total con EEG.
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.
- M21 (fig_c1_dona_edad): solo el anillo por grupo de edad, con el porcentaje
total con EEG al centro.
- M22 (fig_c1_barras_edad): una barra por grupo de edad con el porcentaje de
pacientes sin EEG.
- M24 conserva la dona de dos anillos.
Figura fig_c1_donas para indicadores C1 de un semestre: el anillo interior
divide la población entre con y sin el evento, y el exterior cada parte por
grupo de edad, con el mismo dibujo que la distribución de resultados
citológicos de cáncer cervicouterino. Se construye con los datos
estratificados por grupo de edad.
- Se quita el botón flotante de navegación por indicadores.
- Cada opción de «Buscar indicadores» tiene un enlace «Ir» que lleva a su
tarjeta (y la muestra si estaba oculta por la selección).
- Resumen del paciente en Seguimiento más compacto; «Puntajes por reactivo»
plegado por defecto, con un triángulo para desplegarlo.
- Filtro general: «Intervalo de análisis» (Semestral/Mensual) en lugar de
«Modalidad»; al cambiar de intervalo se elige el periodo más reciente.
- Resumen de TEA: evaluaciones con o sin diagnóstico y diagnóstico positivo
de TEA explícito.
- Seguimiento: panel «Alteraciones del EEG» (exponente aperiódico, husos del
sueño, entropía multiescala) con posibles efectos asociados. Datos de
ejemplo, pendientes de validación médica.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- El filtro general admite un único periodo (Elegir periodo); agregar otro lo reemplaza.
- Buscar indicadores pasa a ser una lista desplegable con casillas; solo los
indicadores marcados se muestran en Indicadores gráficos, con Mostrar todos.
- 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.
Las tablas desplegables decían «Valores publicados y celdas suprimidas» o «… y cajas no disponibles», que confundía: ahora dicen «Valores publicados». La tabla de contingencia de citología y biopsia estaba siempre a la vista; ahora va plegada bajo «Valores publicados», como las demás. Registrado en docs/bitacora-textos.md.
CSO5.5