feat(indicadores): CaMa's four opportunity cards, pending where the catalog lacks the indicator

Cards: patients with BI-RADS 4, 5 and 6, histopathological detection rate, screening to result and result to diagnosis times. The detection rate and the result-to-diagnosis time are not published by the catalog yet, so they are drawn as explicit pending cards and are queried once the catalog lists them. cama_eu38a is added to the CaMa KPIs.
This commit is contained in:
Angel Capetillo Zavala
2026-11-11 21:57:45 -06:00
parent f4d2a3e85f
commit bc75c058e1
11 changed files with 307 additions and 24 deletions
@@ -73,14 +73,19 @@
} @else if (initialPeriodState() === 'manual') {
<p role="status">La búsqueda inicial se detuvo para conservar tu selección. Pulsa Aplicar para consultar.</p>
}
@let kpis = opportunityKpis;
@let kpis = kpiCards;
@if (kpis.length && !initialPeriodBlocked) {
<section class="kpi-section" aria-labelledby="kpi-section-title" [attr.data-domain]="dominio">
<h2 id="kpi-section-title" class="section-title">{{ dominio === 'cacu' ? 'Indicadores de oportunidad' : 'Indicadores destacados' }}</h2>
<div class="kpi-grid" [style.--kpi-count]="kpis.length + (dominio === 'cacu' ? 2 : 0)">
@for (definition of kpis; track dominio + ':' + definition.id) {
<app-indicador-kpi-panel [dominio]="dominio" [definition]="definition" [indicador]="kpiIndicator(definition.id)"
[applied]="filters?.applied" [availability]="availability()" [initialPresentation]="false" />
@for (card of kpis; track dominio + ':' + card.definition.id) {
@if (card.pending) {
<app-indicador-kpi-card [title]="card.definition.title" state="Integración pendiente"
additionalInfo="Este indicador aún no está publicado por el catálogo institucional." />
} @else {
<app-indicador-kpi-panel [dominio]="dominio" [definition]="card.definition" [indicador]="kpiIndicator(card.definition.id)"
[applied]="filters?.applied" [availability]="availability()" [initialPresentation]="false" />
}
}
@if (dominio === 'cacu') {
<app-indicador-kpi-card title="Tiempo de tamizaje a tratamiento" state="Indicador no disponible" />