The tab held every figure and table in one long page. It now has three parts
under one set of controls (scenario, estimator, stratum and filters), each
answering one question.
How:
- Supervivencia: the cumulative incidence curves with their risk table, then
the comparison of the groups (log-rank with Holm pairs beside the RMST).
- Explorador de subgrupos: a new BI-RADS by age-group grid of the incidence
at the horizon (GET /<domain>/analisis/subgrupos, guarded by
analisisSubgrupos: no published cell under the threshold), drawn by
subgruposFigura with suppressed cells grey and named; and the Cox forest
plot of the chosen stratum. A cell click filters both dimensions and opens
its curves in Supervivencia (celdaDelClic reads only coloured cells).
- Diagnóstico de la cohorte: the cohort's statistical status (patients,
events, median follow-up, events per parameter, suppression threshold),
the C13 validation report and what the cohort cannot answer yet
(blocked analyses and strata).
- The parts are a keyboard tab list; the grid is requested only when its
part opens and again only when the scenario or estimator changes.
Implications:
- One more endpoint for the backend to implement, aggregate-only like the
others; until then the explorer shows its error with a retry.
- The stratum and filters stay hidden in the explorer, where the grid
ignores them; the forest plot follows the ones chosen in Supervivencia.
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.
Breast cancer gets a tab between Histórico and Seguimiento that answers "how
often, and how fast, does a BI-RADS 4+ patient reach the event", by a
pre-specified stratum, with every number computed by the server and labelled
as descriptive.
How:
- AnalisisService reads GET /<domain>/analisis (scenarios, estimators, strata,
filters, blocked analyses with their reasons) and
GET /<domain>/analisis/resultados (C9b curves, risk table, log-rank with
Holm pairs, RMST, C12 hazard ratios, C13 validation report).
- The guards accept demonstration data only, reject any key that only a
patient row would carry (at any depth), a suppressed group with counts, and
a published curve point with fewer at risk than the threshold.
- curvasFigura draws each published group as a step line with its 95 % band;
forestFigura draws the HRs on a log axis, with an open marker when the
proportional-hazards check fails. Both are pure functions of the answer.
- Clicking a curve keeps that group as a filter and stratifies by the other
dimension (pedidoAlElegir); it only changes the request.
- Too few events, a 404 catalog and blocked analyses (recurrence, survival by
stage, subtype and St. Gallen strata) are shown with their reason instead
of an empty chart.
- CON_ANALISIS lists the domains with the tab: cama only.
Implications:
- The backend has neither endpoint yet: the tab shows "Funcionalidad
pendiente de publicación" against the real WebApi. The contracts C9b, C12
and C13 are drafts and need grooming before the kit implements them.
- No row-level data reaches the browser; suppression is the server's job and
the client only double-checks it.
- Death as a competing event needs a vital status the schema doesn't have.
The rates figure lets the category labels size their own margin, shortens the
axis title, keeps few ticks and wraps «BI-RADS 4 sin subtipo» when the window is
600 px wide or less, and is redrawn when the window crosses that width. Values
and states are unchanged. The reading text keeps the capitals of a category
code inside a sentence («lesión de riesgo (B3)»).
CAM-01 and CAM-02 already had their KPI cards and history panels waiting for the
catalog; they are now covered with the answers WebApi gives for the synthetic
base, both visible (lowered suppression threshold) and suppressed (normal
threshold). Once published they draw only their KPI card in the summary, as the
mockup does, instead of an extra generic figure card; their evolution stays in
the history.
The stacked history figure now keeps a category the catalog announces even when
no row carries it, so a missing category is named under the figure instead of
silently disappearing. The integration specs also cover the summary and the
history with CAM-01, CAM-02 and CAM-03 published.
The card for cama_histopatologia_birads now shows rates with their Wilson
interval per BI-RADS category and a two-ring donut of the biopsy result, with
group and category selection, period navigation and the published values table.
A pure adapter turns the stratified C2 response into rows and figures; the view
only asks for the data and draws what the adapter returns.
BI-RADS 4 is a row of its own. The denominator is benign, B3, in situ and
invasive; no biopsy and no data are reported apart. A published zero is a zero,
a suppressed cell is suppressed, and a cell or stratum the response does not
carry is unavailable, never zero: no rate or donut total is drawn over an
incomplete matrix. The card keeps its place first in the summary and stays
pending while the catalog does not publish the indicator.
The `birads` stratum is added to the accepted dimensions of the data request.
The CaCu cytology confirmation view is not touched.
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.
GET /<dominio>/seguimiento with the window, page, size, cut-off date and the filters the list announces. Filters and columns come with the answer; only demonstration answers (simulado: true) are accepted and anything outside the contract is rejected before it reaches a view. The fixture is the synthetic answer of the reference prototype and is used by tests only.
The kit's notes are no longer appended to CaMa's opportunity cards (they stay in the figure footers, Histórico and Datos y definiciones). The four cards measure 308 x 220 px at 1366 px, like the reference. TEA keeps its notes and CaCu already hid them.
Confirmation, screening-to-diagnosis and exam-to-result cards leave the summary (they stay in Histórico and Datos y definiciones). The histopathological result by BI-RADS keeps its place and structure as a pending card, with no figure or number, until the catalog publishes its indicator. The patients KPI uses the reference's wording.
Tokens are set on body when the indicators header is present, so menus, selects and dialogs share them; the other routes keep Rajdhani and their shapes.
(cherry picked from commit f5103b483d9d7188b4feffe91beda38d997004d4)
The menu and its overlay were in the initial bundle of every route (+183 kB); they now load in their own chunk, with a same-size placeholder. On phones the title moves to a second row instead of being squeezed beside the selector.
(cherry picked from commit 2ccddf80dbbe41a328281fcdc1c95ebe421f4191)
The in-page domain buttons are removed, since the header selector replaces them. Also fixes a computed that, after a visit to CaMa, never became true again, so CaCu and TEA lost their search box when switched to from CaMa.
(cherry picked from commit 3678c3653b33fcb98ba2334ca8f03f838dc86440)
On /indicadores/<dominio> the header shows «Plataforma de Indicadores» and a menu button with the current domain (TEA, CaCu, Cáncer de mama) that links to the other two through the router. Institutional routes keep their breadcrumb header.
(cherry picked from commit 79a18fd7a8ed1a3a58201e7cc24c9692b53dbc47)
A Histórico tab between Resumen and Seguimiento, for CaMa only: monthly or semestral interval, how many periods to show, and a custom period dialog. Counts are stacked, rates draw their confidence band and medians their quartile band; suppressed periods are shaded and listed, and a rate over no denominator or a median over no observations is no value. Five charts use published indicators; the three whose indicator the catalog does not publish are drawn as pending panels.
(cherry picked from commit 268d7443e0a89da8d6bc67ecb2b5db2715236f93)
One card draws the exams by category as a donut and, per BI-RADS family, the patients next to the exams. Patients come from cama_birads_456_paciente (each patient once per period, in the category of the most severe exam), so its exclusive categories are added within that indicator only, for the verified version 0.2.0; other versions, suppressed or missing cells leave the figure unknown. No exams-per-patient ratio is computed and patients are never derived from exams. The patients' indicator has no card of its own while the exams' one is published.
(cherry picked from commit b7bafd178896cb2715049d5c8293185f31391c92)
CaMa's graphic section reads «Indicadores clínicos» and counts the indicators it draws. The search box, pins, floating navigation, representation selector and figure count are not drawn for CaMa; CaCu and TEA keep them.
(cherry picked from commit e54ee5a55aa3722f6895300fa7e8cefb28f12ebb)
CaMa reads «cáncer de mama» everywhere on the indicators page and uses the compact filter: interval, one period and Aplicar on one row, without the mode selector, the multiple selection or the editing summaries. The opportunity strip is the four cards only, and the biopsy distribution card is no longer drawn in the summary (it stays in Datos y definiciones). Other domains keep their filter and strip.
(cherry picked from commit 7c9dcf634e5870fec35ab96347b0863b2e3bb86e)
Cards: patients with BI-RADS 4, 5 and 6, histopathological detection rate, screening to result and result to diagnosis times. The detection rate and the result-to-diagnosis time are not published by the catalog yet, so they are drawn as explicit pending cards and are queried once the catalog lists them. cama_eu38a is added to the CaMa KPIs.
How: the catalog card gets a `fijable` input and shows its pin button only when
it is true; the page passes searchVisible(), so the button appears with the
search, from MIN_BUSQUEDA (5) indicators in Resumen. Below that, saved pins are
ignored when ordering the cards, so a pin from a longer catalog can't reorder
cards that offer no way to unpin.
Implications: cáncer de mama (three charts) has no pin buttons; CaCu and TEA
keep them. Pins stay saved and come back if the domain grows past the threshold.
How: the catalog card no longer shows "N figuras publicadas". CaCu's
interactive view, the confirmation view and the paired counts drop their
"Filtro general aplicado: …" line: their status line or figure titles already
name the period ("2025-S2, selección: …"). The plain figure panels and the
paired times keep it, as it is their only statement of the period.
Implications: applies to every domain. The applied filter is still shown under
the general filters bar.
How: in donaExpandible the outer ring's labels (result and share) use
textposition 'outside' with automargin, at 12px in the text colour, so they no
longer shrink to fit their slices; every result with patients is labelled,
including small ones. The figure is 440px tall with a 30px margin; automargin
widens the margins as the labels need and the three rings shrink together, so
they stay concentric. The group labels stay inside the inner ring.
Implications: on a narrow card the rings get smaller to leave room for the
labels. CaCu's confirmation donut (with buttons) is unchanged.
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>