CaMa: la tasa de confirmación histopatológica vuelve al catálogo
cama_confirmacion_birads45 deja de estar oculto (usuario, 2026-10-16): se ve su tarjeta destacada con el filtro por omisión y su gráfica de tendencia (fig_c1_puntos). Así WebApp no necesita un caso especial para un destacado oculto del catálogo: se revierte ese mecanismo y las pruebas del colaborador quedan como estaban. CSO5.5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ import { IndicadoresService } from './indicadores.service';
|
||||
import { applyGlobal, domainTypes, GlobalFilterState, IndicadoresMemory, validDraft } from './indicadores-memory';
|
||||
import { IndicadorPeriodFilters } from './indicador-period-filters';
|
||||
import { IndicadorCatalogCard } from './indicador-catalog-card';
|
||||
import { KPI_BY_DOMAIN, KpiDefinition, hiddenKpiIndicators } from './indicadores-kpi';
|
||||
import { KPI_BY_DOMAIN } from './indicadores-kpi';
|
||||
import { IndicadorKpiPanel } from './indicador-kpi-panel';
|
||||
import { indicatorIdentity } from './indicadores-identities';
|
||||
import { emptyAvailability, IndicadoresPeriodos } from './indicadores-periodos';
|
||||
@@ -169,9 +169,7 @@ export class IndicadoresPage {
|
||||
dominio: Dominio = 'tea';
|
||||
readonly domainLabels: Record<Dominio, string> = { tea: 'TEA', cacu: 'CaCu', cama: 'CaMa' };
|
||||
readonly kpisByDomain = KPI_BY_DOMAIN;
|
||||
/** The catalog plus the KPIs it hides: what the KPI cards and the period availability read. */
|
||||
kpiSources() { return [...this.catalog(), ...hiddenKpiIndicators(this.catalog(), this.kpisByDomain[this.dominio])]; }
|
||||
kpiIndicator(definition: KpiDefinition) { return this.kpiSources().find(item => item.id === definition.id); }
|
||||
kpiIndicator(id: string) { return this.catalog().find(item => item.id === id); }
|
||||
get availableKpis() { return this.kpisByDomain[this.dominio]; }
|
||||
get initialKpiPresentation() { return !!this.availableKpis.length && this.memory.initialKpiPresentation(this.dominio); }
|
||||
private readonly catalogRequests = new Subject<void>();
|
||||
@@ -237,7 +235,7 @@ export class IndicadoresPage {
|
||||
this.tema = this.memory.theme(this.dominio);
|
||||
this.availabilityRequests.pipe(switchMap(() => {
|
||||
this.availability.set(emptyAvailability());
|
||||
return this.periodService.dominio(this.dominio, this.kpiSources());
|
||||
return this.periodService.dominio(this.dominio, this.catalog());
|
||||
}), takeUntilDestroyed(this.destroyRef)).subscribe(state => this.availability.set(state));
|
||||
this.catalogRequests.pipe(startWith(undefined), switchMap(() => {
|
||||
this.clearVisibility();
|
||||
|
||||
Reference in New Issue
Block a user