CaCu record: grouped NCI comparison, Spanish outcome names, survival texts and risk-only scales

The NCI comparison shows the reference once per horizon and one block per model, saying the
reasons that every incompatible comparison shares only once. Outcome names are translated for
display only (the API identifiers stay), and the reference outcome is read from the answer.
The CaCu survival card is titled as survival and states that its curves estimate the clinical
scenario's group, not an individual. Survival and recurrence estimates no longer feed the risk
scales, curves, probability table or PDF.
This commit is contained in:
Angel Capetillo Zavala
2026-12-02 17:48:03 -06:00
parent f119ba048a
commit 09e5f4dd34
7 changed files with 833 additions and 105 deletions
+14 -3
View File
@@ -266,7 +266,7 @@
<app-reference-risk [view]="ref" />
}
}
@if (models().length) {
@if (riskModels().length) {
<table class="plain">
<thead>
<tr>
@@ -278,7 +278,7 @@
</tr>
</thead>
<tbody>
@for (m of models(); track m.model) {
@for (m of riskModels(); track m.model) {
@for (p of m.predictions; track p.years) {
<tr>
<td>{{ $first ? m.text : '' }}</td>
@@ -562,9 +562,20 @@
}
@if (models().some((m) => m.model.endsWith('.survival') && m.scenarios.length)) {
<mat-card appearance="outlined" class="wide" data-section="supervivencia">
<mat-card-header><mat-card-title>Riesgo de muerte</mat-card-title></mat-card-header>
<mat-card-header>
<mat-card-title>{{
domain() === 'cacu' ? 'Supervivencia por escenario clínico' : 'Riesgo de muerte'
}}</mat-card-title>
</mat-card-header>
<mat-card-content>
<h3>Análisis de supervivencia</h3>
@if (domain() === 'cacu') {
<p class="muted" data-note="grupo">
Las curvas son estimaciones del grupo de pacientes del escenario clínico
correspondiente (S(t), probabilidad de supervivencia); no son predicciones
individuales.
</p>
}
@if (survival.isLoading()) {
<app-loading what="las curvas de supervivencia" [figure]="true" />
} @else if (survival.value(); as s) {