0914b8db23
Confirmation, screening-to-diagnosis and exam-to-result cards leave the summary (they stay in Histórico and Datos y definiciones). The histopathological result by BI-RADS keeps its place and structure as a pending card, with no figure or number, until the catalog publishes its indicator. The patients KPI uses the reference's wording.
49 lines
3.0 KiB
TypeScript
49 lines
3.0 KiB
TypeScript
import { Component, signal } from '@angular/core';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatCardModule } from '@angular/material/card';
|
|
|
|
/**
|
|
* CaMa's histopathological result by BI-RADS category, while the catalog does not publish its indicator
|
|
* (`cama_histopatologia_birads`). It keeps the card's place and structure, with no figure and no number.
|
|
*/
|
|
@Component({
|
|
selector: 'app-indicador-histopatologia-pendiente',
|
|
host: { class: 'dual-card' },
|
|
imports: [MatButtonModule, MatCardModule],
|
|
template: `
|
|
<mat-card>
|
|
<h2>Resultado histopatológico por categoría BI-RADS</h2>
|
|
<button mat-button type="button" class="methodology-toggle" [attr.aria-expanded]="ayuda()" (click)="ayuda.set(!ayuda())">Cómo leer</button>
|
|
@if (ayuda()) {
|
|
<div class="methodology">
|
|
<p>Cuando el catálogo publique el indicador, esta tarjeta mostrará, por categoría BI-RADS, el porcentaje de biopsias con resultado maligno y su intervalo de confianza, y la distribución del resultado de la biopsia en una dona que se puede recorrer por grupo y por resultado.</p>
|
|
</div>
|
|
}
|
|
<p class="estado" role="status"><strong>Integración pendiente.</strong> Este indicador aún no está publicado por el catálogo institucional.</p>
|
|
<div class="figures">
|
|
<section class="figure"><h3>Por categoría BI-RADS</h3><div class="vacio">Sin datos publicados</div></section>
|
|
<section class="figure"><h3>Resultado de la biopsia</h3><div class="vacio">Sin datos publicados</div></section>
|
|
</div>
|
|
</mat-card>
|
|
`,
|
|
styles: `
|
|
:host { display: flex; min-width: 0; margin: 0; grid-column: 1 / -1; }
|
|
mat-card { flex: 1; min-width: 0; padding: clamp(.75rem, 2vw, 1.5rem); background: var(--issste-surface); color: var(--issste-text);
|
|
border: 1px solid var(--issste-border); border-radius: var(--issste-radius); box-shadow: none; }
|
|
h2 { margin: 0; font-family: var(--issste-font-heading); font-weight: 500; font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; }
|
|
h3 { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.5; }
|
|
p { margin: var(--issste-space-3) 0 0; overflow-wrap: anywhere; }
|
|
.estado { color: var(--issste-text-secondary); }
|
|
.methodology { margin-top: var(--issste-space-3); padding: 1rem; border: 1px solid var(--issste-border); border-radius: var(--issste-radius); }
|
|
.methodology p { margin: 0; }
|
|
.figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--issste-space-6); margin-top: var(--issste-space-3); }
|
|
@media (min-width: 1100px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
.vacio { display: grid; place-items: center; min-height: 12rem; margin-top: var(--issste-space-3); color: var(--issste-text-secondary);
|
|
border: 1px dashed var(--issste-border); border-radius: var(--issste-radius); }
|
|
button:focus-visible { outline: 2px solid var(--issste-text); outline-offset: 3px; }
|
|
`,
|
|
})
|
|
export class IndicadorHistopatologiaPendiente {
|
|
readonly ayuda = signal(false);
|
|
}
|