Merge dashboard-test: the CaMa dashboard's presentation over the FHIR measures, with TEA's history and summary kept
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { KPI_BY_DOMAIN, KpiDefinition, kpiResult } from './indicadores-kpi';
|
||||
import { CAMA_TAMIZAJE_RESULTADO_KPI, CAMA_TASA_DETECCION_KPI, KPI_BY_DOMAIN, KpiDefinition, kpiResult } from './indicadores-kpi';
|
||||
import { GlobalApplied } from './indicadores-memory';
|
||||
import { Dominio, IndicadorDatos } from './indicadores.models';
|
||||
const applied: GlobalApplied = { tipo: 'semestre', selection: { mode: 'explicit', periodos: ['2025-S1'] }, revision: 0 };
|
||||
const total = { periodo: '2025-S1', grupo: 'TOTAL', estrato: null, suprimido: 0 };
|
||||
// Keep C1 numerical-contract coverage even though CaCu no longer presents a C1 KPI.
|
||||
// CaMa's C1 and C3r cards are the opportunity ones the catalog may not publish yet; the contract rules are the same.
|
||||
const definitions = { ...KPI_BY_DOMAIN, cacu: [KPI_BY_DOMAIN.cacu[0],
|
||||
{ id: 'cacu_eu13', title: 'Confirmación', contrato: 'C1', unit: '%' } as KpiDefinition, KPI_BY_DOMAIN.cacu[1]] };
|
||||
{ id: 'cacu_eu13', title: 'Confirmación', contrato: 'C1', unit: '%' } as KpiDefinition, KPI_BY_DOMAIN.cacu[1]],
|
||||
cama: [KPI_BY_DOMAIN.cama[0], CAMA_TASA_DETECCION_KPI, CAMA_TAMIZAJE_RESULTADO_KPI] };
|
||||
function data(domain: Dominio, index: number, filas: Record<string, unknown>[]): IndicadorDatos {
|
||||
const d = definitions[domain][index]; return { id: d.id, contrato: d.contrato, tipo_periodo: 'semestre', periodos: ['2025-S1'], categorias: Object.fromEntries(filas.filter(row => typeof row['categoria'] === 'string').map(row => [row['categoria'], {}])), filas };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user