Mostrar supervivencia con su curva de combinación y métodos por estimación
This commit is contained in:
@@ -246,66 +246,68 @@
|
||||
</mat-card>
|
||||
}
|
||||
|
||||
<mat-card appearance="outlined" class="wide" data-section="riesgos">
|
||||
<mat-card-content>
|
||||
@if (riskExclusion(); as reason) {
|
||||
<p role="status">{{ reason }}</p>
|
||||
} @else {
|
||||
<app-risk-scales [groups]="groups()" />
|
||||
}
|
||||
@if (riskModels().length) {
|
||||
<details data-section="modelos">
|
||||
<summary>Modelos y valores</summary>
|
||||
<table class="plain">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Modelo</th>
|
||||
<th>Fecha índice</th>
|
||||
<th>Horizonte</th>
|
||||
<th>Probabilidad</th>
|
||||
<th>IC 95 %</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (m of riskModels(); track m.model) {
|
||||
@for (p of m.predictions; track p.years) {
|
||||
<tr>
|
||||
<td>{{ $first ? m.text : '' }}</td>
|
||||
<td>{{ $first ? m.index : '' }}</td>
|
||||
<td>{{ p.years }} {{ p.years === 1 ? 'año' : 'años' }}</td>
|
||||
<td>{{ p.p * 100 | number: '1.1-2' }} %</td>
|
||||
<td>
|
||||
@if (p.low !== undefined) {
|
||||
{{ p.low * 100 | number: '1.1-2' }}–{{
|
||||
p.high! * 100 | number: '1.1-2'
|
||||
}}
|
||||
%
|
||||
} @else {
|
||||
—
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
@if (riskExclusion() || groups().length || domain() !== 'cacu' || riskModels().length) {
|
||||
<mat-card appearance="outlined" class="wide" data-section="riesgos">
|
||||
<mat-card-content>
|
||||
@if (riskExclusion(); as reason) {
|
||||
<p role="status">{{ reason }}</p>
|
||||
} @else {
|
||||
<app-risk-scales [groups]="groups()" />
|
||||
}
|
||||
@if (riskModels().length) {
|
||||
<details data-section="modelos">
|
||||
<summary>Modelos y valores</summary>
|
||||
<table class="plain">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Modelo</th>
|
||||
<th>Fecha índice</th>
|
||||
<th>Horizonte</th>
|
||||
<th>Probabilidad</th>
|
||||
<th>IC 95 %</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (m of riskModels(); track m.model) {
|
||||
@for (p of m.predictions; track p.years) {
|
||||
<tr>
|
||||
<td>{{ $first ? m.text : '' }}</td>
|
||||
<td>{{ $first ? m.index : '' }}</td>
|
||||
<td>{{ p.years }} {{ p.years === 1 ? 'año' : 'años' }}</td>
|
||||
<td>{{ p.p * 100 | number: '1.1-2' }} %</td>
|
||||
<td>
|
||||
@if (p.low !== undefined) {
|
||||
{{ p.low * 100 | number: '1.1-2' }}–{{
|
||||
p.high! * 100 | number: '1.1-2'
|
||||
}}
|
||||
%
|
||||
} @else {
|
||||
—
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</details>
|
||||
}
|
||||
@if (!riskExclusion() && (riskModels().length || riskSeries.value()?.length)) {
|
||||
<details class="curves" open data-section="curvas">
|
||||
<summary>Curvas de probabilidad con su intervalo</summary>
|
||||
@if (riskSeries.value()?.length) {
|
||||
<app-risk-series [series]="riskSeries.value()!" />
|
||||
} @else {
|
||||
<app-plot [figure]="curve()" [height]="300" />
|
||||
}
|
||||
</details>
|
||||
}
|
||||
@if (!riskModels().length && !groups()[0]?.survival && !riskExclusion()) {
|
||||
<p class="muted">Sin evaluación de un modelo en producción.</p>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</tbody>
|
||||
</table>
|
||||
</details>
|
||||
}
|
||||
@if (!riskExclusion() && (riskModels().length || riskSeries.value()?.length)) {
|
||||
<details class="curves" open data-section="curvas">
|
||||
<summary>Curvas de probabilidad con su intervalo</summary>
|
||||
@if (riskSeries.value()?.length) {
|
||||
<app-risk-series [series]="riskSeries.value()!" />
|
||||
} @else {
|
||||
<app-plot [figure]="curve()" [height]="300" />
|
||||
}
|
||||
</details>
|
||||
}
|
||||
@if (!riskModels().length && !riskExclusion()) {
|
||||
<p class="muted">Sin evaluación de un modelo en producción.</p>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
@if (domain() === 'tea') {
|
||||
<mat-card appearance="outlined" class="wide" data-section="tea">
|
||||
<mat-card-header><mat-card-title>ADOS-2</mat-card-title></mat-card-header>
|
||||
@@ -561,15 +563,33 @@
|
||||
}}</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<h3>Análisis de supervivencia</h3>
|
||||
@if (survival.isLoading()) {
|
||||
@if (domain() !== 'cacu') {
|
||||
<h3>Análisis de supervivencia</h3>
|
||||
}
|
||||
@if (domain() === 'cacu') {
|
||||
<app-risk-scales [groups]="survivalScales()" />
|
||||
<h3>Curva de supervivencia</h3>
|
||||
@if (combination.isLoading()) {
|
||||
<app-loading what="la curva de supervivencia" [figure]="true" />
|
||||
} @else if (combination.error()) {
|
||||
<p class="muted" role="alert">No se pudo leer el informe del modelo.</p>
|
||||
} @else if (combination.value(); as c) {
|
||||
@if (c.figure) {
|
||||
<p class="muted">
|
||||
Kaplan-Meier de pacientes con sus mismos valores (IC 95 % Greenwood log-log; n =
|
||||
{{ c.n }}, fallecidos = {{ c.fallecidos }}).
|
||||
</p>
|
||||
<app-plot [figure]="c.figure" [height]="340" />
|
||||
} @else {
|
||||
<p class="muted">{{ c.missing }}</p>
|
||||
}
|
||||
} @else {
|
||||
<p class="muted">
|
||||
No disponible: la estimación no conserva los valores usados para elegir la curva.
|
||||
</p>
|
||||
}
|
||||
} @else if (survival.isLoading()) {
|
||||
<app-loading what="las curvas de supervivencia" [figure]="true" />
|
||||
} @else if (domain() === 'cacu') {
|
||||
<p class="muted">No disponible: el informe no contiene la curva para esta combinación.</p>
|
||||
<details>
|
||||
<summary>Métodos</summary>
|
||||
<p class="muted">No hay un método publicado para esta combinación.</p>
|
||||
</details>
|
||||
} @else if (survival.value(); as s) {
|
||||
<h3>Escenario clínico de la paciente</h3>
|
||||
<ul class="scenarios">
|
||||
@@ -609,14 +629,7 @@
|
||||
} @else if (survival.error()) {
|
||||
<p class="muted" role="alert">No se pudo leer el informe del modelo.</p>
|
||||
} @else {
|
||||
<p class="muted" data-state="sin-informe">
|
||||
@if (domain() === 'cacu') {
|
||||
No disponible: no hay un informe de supervivencia para los escenarios de la
|
||||
paciente.
|
||||
} @else {
|
||||
No disponible: datos insuficientes.
|
||||
}
|
||||
</p>
|
||||
<p class="muted" data-state="sin-informe">No disponible: datos insuficientes.</p>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
Reference in New Issue
Block a user