feat(cama): «Análisis» tab with exploratory outcomes of the BI-RADS 4+ cohort
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.
This commit is contained in:
@@ -30,8 +30,9 @@ import { IndicadoresInitialPeriod } from './indicadores-initial-period';
|
||||
import { IndicadoresDefinitions } from './indicadores-definitions';
|
||||
import { IndicadoresTracking } from './indicadores-tracking';
|
||||
import { IndicadoresHistorico } from './indicadores-historico';
|
||||
import { IndicadoresAnalisis } from './indicadores-analisis';
|
||||
|
||||
type DashboardSection = 'resumen' | 'historico' | 'seguimiento' | 'datos';
|
||||
type DashboardSection = 'resumen' | 'historico' | 'analisis' | 'seguimiento' | 'datos';
|
||||
const SECTIONS: readonly { id: DashboardSection; label: string }[] = [
|
||||
{ id: 'resumen', label: 'Resumen' },
|
||||
{ id: 'seguimiento', label: 'Seguimiento' },
|
||||
@@ -41,16 +42,20 @@ const SECTIONS: readonly { id: DashboardSection; label: string }[] = [
|
||||
const CON_HISTORICO: readonly Dominio[] = ['tea', 'cama'];
|
||||
const MIN_BUSQUEDA = 5;
|
||||
const HISTORICO_SECTIONS: readonly { id: DashboardSection; label: string }[] = [SECTIONS[0], { id: 'historico', label: 'Histórico' }, SECTIONS[1], SECTIONS[2]];
|
||||
// Domains whose cohort has an exploratory outcomes analysis.
|
||||
const CON_ANALISIS: readonly Dominio[] = ['cama'];
|
||||
const ANALISIS_SECTIONS: readonly { id: DashboardSection; label: string }[] = [...HISTORICO_SECTIONS.slice(0, 2), { id: 'analisis', label: 'Análisis' }, ...HISTORICO_SECTIONS.slice(2)];
|
||||
|
||||
@Component({
|
||||
selector: 'app-indicadores-page',
|
||||
imports: [FormsModule, MatButtonModule, MatCardModule, MatFormFieldModule, MatInputModule, MatIconModule, MatSelectModule, MatProgressBarModule, IndicadorCatalogCard, IndicadorKpiPanel, IndicadorKpiCard, IndicadorPeriodFilters, IndicadoresDefinitions, IndicadoresTracking, IndicadoresHistorico, TeaResumenPeriodo],
|
||||
imports: [FormsModule, MatButtonModule, MatCardModule, MatFormFieldModule, MatInputModule, MatIconModule, MatSelectModule, MatProgressBarModule, IndicadorCatalogCard, IndicadorKpiPanel, IndicadorKpiCard, IndicadorPeriodFilters, IndicadoresDefinitions, IndicadoresTracking, IndicadoresHistorico, IndicadoresAnalisis, TeaResumenPeriodo],
|
||||
templateUrl: './indicadores-page.html',
|
||||
styleUrl: './indicadores-page.scss',
|
||||
})
|
||||
export class IndicadoresPage {
|
||||
get sections() { return this.conHistorico ? HISTORICO_SECTIONS : SECTIONS; }
|
||||
get sections() { return this.conAnalisis ? ANALISIS_SECTIONS : this.conHistorico ? HISTORICO_SECTIONS : SECTIONS; }
|
||||
get conHistorico() { return CON_HISTORICO.includes(this.dominio); }
|
||||
get conAnalisis() { return CON_ANALISIS.includes(this.dominio); }
|
||||
readonly activeSection = signal<DashboardSection>('resumen');
|
||||
readonly fichaPacienteAbierta = signal(false);
|
||||
setFichaPacienteAbierta(open: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user