Merge origin/rebuild into parity/T1-merge (WebApp)
rebuild's shell, auth and non-TEA pages; tea/parity's TEA pages on tea/parity's API. - Routes: rebuild's signed-in tree; the TEA risk page joins it (domainAllowed reads the route's data domain when the path has no :domain). - Indicadores: rebuild's header and its generic Resumen/Trazabilidad/Definiciones tabs (TEA as the reference page, fed by tea/parity's measures); TEA Seguimiento and Análisis de riesgo render tea/parity's tea-list inside rebuild's tab-seguimiento/tab-riesgos, which keep rebuild's CaCu/CaMa lists and patient search. rebuild's tab-riesgos-tea read rebuild's TEA Patient extensions, which are gone with its backend; tea-list already shows that list from tea/parity's FHIR search, so it is deleted rather than ported (its look is the base for T8/T9). - Paciente: rebuild's record for CaCu/CaMa; TEA delegates to tea/parity's TeaRecord. rebuild's inline TEA sections read its EEG detail endpoint and are removed. - Gobernanza: tea/parity's page (execution, models with checks/lineage, bundles, training, studies, preview) until T13; model headings use rebuild's model titles. figures.ts: rebuild's scenarios (drawn in the record) plus tea/parity's association forest. - plot.ts: rebuild's layout helpers on tea/parity's partial Plotly bundle. - Conectar: rebuild's KINDS/HELP with an entry for tea/parity's edf node. - Dead code removed: measures boxes/sankey (tea/parity's old TEA tab), eeg-labels headMap/byDeviation/LEVEL_NAMES/METRIC_NAMES (rebuild's TEA record), e2e/layout.ts. - e2e: tea/parity's TEA cases, signed in; rebuild's CaCu/CaMa/site cases need their hospitals loaded and come back with the page suite (T16). - openapi.json and src/app/api: regenerated in the next commit.
This commit is contained in:
+148
-13
@@ -9,7 +9,7 @@
|
||||
<p class="muted" role="alert">No se encontró la paciente.</p>
|
||||
} @else if (patient(); as p) {
|
||||
<h1>
|
||||
{{ identity().name ?? 'Paciente' }} <code class="muted">{{ p.id!.slice(0, 10) }}</code>
|
||||
{{ identity().name ?? 'Paciente' }} <code class="muted id">{{ p.id!.slice(0, 10) }}</code>
|
||||
</h1>
|
||||
<dl class="summary">
|
||||
<div>
|
||||
@@ -27,15 +27,40 @@
|
||||
<div>
|
||||
<dt>Sexo</dt>
|
||||
<dd>
|
||||
{{
|
||||
p.gender === 'female' ? 'Femenino' : p.gender === 'male' ? 'Masculino' : 'Sin dato'
|
||||
}}
|
||||
{{ p.gender === 'female' ? 'Femenino' : p.gender === 'male' ? 'Masculino' : 'Sin dato' }}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Estatus de seguimiento</dt>
|
||||
<dd>{{ status() }}</dd>
|
||||
</div>
|
||||
@if (cama(); as c) {
|
||||
<div>
|
||||
<dt>Grupo de edad</dt>
|
||||
<dd>{{ c.ageGroup || 'No disponible' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Escenario clínico</dt>
|
||||
<dd>{{ c.scenario }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Estatus de seguimiento</dt>
|
||||
<dd>
|
||||
{{ c.status ?? 'Fuera de la lista (' + c.window + ' meses al ' + c.cutoff + ')' }}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Prioridad</dt>
|
||||
<dd>{{ c.priority ?? 'No disponible' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Días de mastografía a diagnóstico</dt>
|
||||
<dd>{{ c.days ?? 'No disponible' }}</dd>
|
||||
</div>
|
||||
} @else {
|
||||
@if (status()) {
|
||||
<div>
|
||||
<dt>Estatus de seguimiento</dt>
|
||||
<dd>{{ status() }}</dd>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
@if (p.deceasedDateTime) {
|
||||
<div>
|
||||
<dt>Defunción</dt>
|
||||
@@ -45,6 +70,40 @@
|
||||
</dl>
|
||||
|
||||
<div class="cards">
|
||||
@if (cama(); as c) {
|
||||
<mat-card appearance="outlined" data-section="mastografia">
|
||||
<mat-card-header><mat-card-title>Mastografía</mat-card-title></mat-card-header>
|
||||
<mat-card-content>
|
||||
<h3>Última mastografía</h3>
|
||||
<dl class="facts">
|
||||
<div>
|
||||
<dt>Categoría BI-RADS</dt>
|
||||
<dd>{{ c.birads ?? 'No disponible' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Fecha</dt>
|
||||
<dd>{{ c.mammogram ?? 'No disponible' }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card appearance="outlined" data-section="histopatologia">
|
||||
<mat-card-header><mat-card-title>Histopatología</mat-card-title></mat-card-header>
|
||||
<mat-card-content>
|
||||
<h3>Resultado histopatológico</h3>
|
||||
<dl class="facts">
|
||||
<div>
|
||||
<dt>Resultado</dt>
|
||||
<dd>{{ c.histology ?? 'No disponible' }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Fecha de reporte de la biopsia</dt>
|
||||
<dd>{{ c.biopsy ?? 'No disponible' }}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
<mat-card appearance="outlined">
|
||||
<mat-card-header><mat-card-title>Historial médico</mat-card-title></mat-card-header>
|
||||
<mat-card-content>
|
||||
@@ -134,9 +193,7 @@
|
||||
<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'
|
||||
}}
|
||||
{{ p.low * 100 | number: '1.1-2' }}–{{ p.high! * 100 | number: '1.1-2' }}
|
||||
%
|
||||
} @else {
|
||||
—
|
||||
@@ -149,13 +206,91 @@
|
||||
</table>
|
||||
<app-plot [figure]="curve()" [height]="300" />
|
||||
} @else {
|
||||
<p class="muted">Ningún modelo vigente la ha evaluado.</p>
|
||||
<p class="muted">Sin evaluación de un modelo en producción.</p>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
|
||||
@if (recurrenceModel(); as rm) {
|
||||
<mat-card appearance="outlined" class="wide" data-section="recurrencia">
|
||||
<mat-card-header
|
||||
><mat-card-title>Pronóstico y recomendaciones</mat-card-title></mat-card-header
|
||||
>
|
||||
<mat-card-content>
|
||||
<h3>Análisis de recurrencia</h3>
|
||||
<table class="plain">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Horizonte</th>
|
||||
<th>Probabilidad de recurrencia</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (p of rm.predictions; track p.years) {
|
||||
<tr>
|
||||
<td>{{ p.years | number: '1.0-1' }} {{ p.years === 1 ? 'año' : 'años' }}</td>
|
||||
<td class="num">{{ p.p * 100 | number: '1.1-1' }} %</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
@if (recurrence.isLoading()) {
|
||||
<app-loading what="las curvas de recurrencia" [figure]="true" />
|
||||
} @else if (recurrence.value(); as s) {
|
||||
<h3>Escenario clínico de la paciente</h3>
|
||||
<ul class="scenarios">
|
||||
@for (name of s.scenarios; track name) {
|
||||
<li>{{ name }}</li>
|
||||
}
|
||||
</ul>
|
||||
@for (f of s.figures; track f.title) {
|
||||
<h4>{{ f.title }}</h4>
|
||||
<app-plot [figure]="f.figure" [height]="340" />
|
||||
} @empty {
|
||||
<p class="muted">
|
||||
Sus escenarios no tienen recaídas suficientes para trazar curvas.
|
||||
</p>
|
||||
}
|
||||
<app-factores [rows]="s.factors" />
|
||||
} @else if (recurrence.error()) {
|
||||
<p class="muted" role="alert">No se pudo leer el informe del modelo.</p>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
@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-content>
|
||||
<h3>Análisis de supervivencia</h3>
|
||||
@if (survival.isLoading()) {
|
||||
<app-loading what="las curvas de supervivencia" [figure]="true" />
|
||||
} @else if (survival.value(); as s) {
|
||||
<h3>Escenario clínico de la paciente</h3>
|
||||
<ul class="scenarios">
|
||||
@for (name of s.scenarios; track name) {
|
||||
<li>{{ name }}</li>
|
||||
}
|
||||
</ul>
|
||||
@for (f of s.figures; track f.title) {
|
||||
<h4>{{ f.title }}</h4>
|
||||
<app-plot [figure]="f.figure" [height]="340" />
|
||||
} @empty {
|
||||
<p class="muted">
|
||||
Sus escenarios no tienen fallecimientos suficientes para trazar curvas.
|
||||
</p>
|
||||
}
|
||||
<app-factores [rows]="s.factors" />
|
||||
} @else if (survival.error()) {
|
||||
<p class="muted" role="alert">No se pudo leer el informe del modelo.</p>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
</div>
|
||||
} @else if (loading()) {
|
||||
<p class="muted">Cargando…</p>
|
||||
<app-loading what="el expediente" />
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user