Agrupar las tarjetas de CaMa y elegir el periodo en Trazabilidad
This commit is contained in:
+5
-9
@@ -226,12 +226,7 @@ for (const domain of ['cama', 'tea']) {
|
||||
(i) => i.kind === 'h3' && i.text === 'Tiempo de tamizaje a diagnóstico',
|
||||
);
|
||||
const clinical = all.findIndex((i) => i.text === 'Indicadores clínicos');
|
||||
// Lote 2: the detection rate has its own title, and the histopathology figures are two
|
||||
// cards (the result by BI-RADS; the confirmation in two readings).
|
||||
const detection = (i: { text?: string }) =>
|
||||
i.text === 'Tasa de confirmación histopatológica'
|
||||
? { ...i, text: 'Tasa de detección histopatológica' }
|
||||
: i;
|
||||
// The histopathology figures are two cards: the result by BI-RADS and the confirmation.
|
||||
const results = all.findIndex(
|
||||
(i) => i.text === 'Resultado histopatológico por categoría BI-RADS',
|
||||
);
|
||||
@@ -241,7 +236,7 @@ for (const domain of ['cama', 'tea']) {
|
||||
];
|
||||
const old =
|
||||
domain === 'cama'
|
||||
? [...all.slice(0, route + 1).map(detection), ...all.slice(clinical, results), ...cards]
|
||||
? [...all.slice(0, route + 1), ...all.slice(clinical, results), ...cards]
|
||||
: all;
|
||||
await page.goto(`/indicadores/${domain}`);
|
||||
const tab = page.locator('app-tab-indicadores');
|
||||
@@ -255,12 +250,13 @@ for (const domain of ['cama', 'tea']) {
|
||||
const ordered = [
|
||||
'Tiempo de toma de mastografía a interpretación radiológica',
|
||||
'Tiempo de interpretación radiológica a diagnóstico',
|
||||
'Tiempo de interpretación radiológica a resultado de biopsia',
|
||||
'Tiempo de diagnóstico a tratamiento',
|
||||
'Tiempo 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',
|
||||
'Porcentaje de mastografías con resultado BI-RADS 4, 5 ó 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) {
|
||||
|
||||
Reference in New Issue
Block a user