Ajustar indicadores, fecha de corte y ficha de CaMa y CaCu
This commit is contained in:
+22
-3
@@ -251,9 +251,28 @@ for (const domain of ['cama', 'tea']) {
|
||||
.locator('h2, h3')
|
||||
.evaluateAll((els) => els.map((e) => (e as HTMLElement).innerText.trim()));
|
||||
const from = headings.indexOf('Indicadores de oportunidad');
|
||||
expect(headings.slice(from).map(period)).toEqual(
|
||||
old.filter((i) => i.kind !== 'plot').map((i) => period(domain === 'cama' ? i.text.replace(/^Tiempo de /, 'Días de ') : i.text)),
|
||||
);
|
||||
if (domain === 'cama') {
|
||||
const ordered = [
|
||||
'Días de toma de mastografía a interpretación radiológica',
|
||||
'Días de interpretación radiológica a diagnóstico',
|
||||
'Días de tamizaje a diagnóstico',
|
||||
'Porcentaje de mastografías con resultado BI-RADS 4, 5 ó 6',
|
||||
'Pacientes evaluadas con BI-RADS 4, 5 o 6',
|
||||
'Resultado histopatológico por categoría BI-RADS',
|
||||
'Confirmación histopatológica',
|
||||
'Tasa de detección histopatológica',
|
||||
];
|
||||
let last = -1;
|
||||
for (const title of ordered) {
|
||||
const next = headings.findIndex((h, index) => index > last && h.startsWith(title));
|
||||
expect(next, title).toBeGreaterThan(last);
|
||||
last = next;
|
||||
}
|
||||
} else {
|
||||
expect(headings.slice(from).map(period)).toEqual(
|
||||
old.filter((i) => i.kind !== 'plot').map((i) => period(i.text)),
|
||||
);
|
||||
}
|
||||
// Each figure drawn is one of the old kinds (a figure with no data in the period is named).
|
||||
const drawn = await tab
|
||||
.locator('.js-plotly-plot')
|
||||
|
||||
Reference in New Issue
Block a user