feat(cama): «Análisis epidemiológico»: epidemiological figures, chosen comparisons, and curves and cells that open their patients
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).
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div [hidden]="pacienteDetalle.estado().tipo !== 'cerrado'">
|
||||
<h2>Seguimiento de {{ domainLabel }}</h2>
|
||||
@if (dominio === 'cama') {
|
||||
<app-seguimiento-tabla [dominio]="dominio" [active]="active" />
|
||||
<app-seguimiento-tabla [dominio]="dominio" [active]="active" [seleccion]="seleccion" />
|
||||
} @else {
|
||||
<form (ngSubmit)="apply()">
|
||||
<label>Fecha de corte <input name="corte" type="date" [(ngModel)]="draft.corte" /></label>
|
||||
|
||||
Reference in New Issue
Block a user