CaCu indicators: HPV genotype, biopsy results, diagnosis timing by ICD-10 and referral PPV cards

The HPV genotype and biopsy distributions, the biopsy request confirmation and the
timing by ICD-10 code are placed beside cytology. The referral PPV cards are titled as
registered procedures and say that a colposcopy may be inferred from notes and that the
preceding cytology is a date association, not a confirmed referral. The new strata and
their values have Spanish labels.
This commit is contained in:
Angel Capetillo Zavala
2026-11-27 18:42:41 -06:00
parent 07212a2083
commit 31400c77b1
8 changed files with 441 additions and 13 deletions
+5 -3
View File
@@ -19,19 +19,21 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie
r.url().includes('measure=cacu-eu7') &&
!r.url().includes('%2C'),
);
const catalog = page.waitForResponse((r) => r.url().endsWith('/cacu/fhir/Measure'));
await page.goto('/indicadores/cacu');
const measures = await (await catalog).json();
const eu7 = await (await report).json();
const count = eu7.entry[0].resource.group[0].population.find(
(p: any) => p.code.coding[0].code === 'initial-population',
).count;
await expect(page.locator('[data-measure="CACU_EU7"] .kpi-value')).toHaveText(String(count));
await expect(page.locator('[data-measure="CACU_EU7"] mat-card-subtitle')).toContainText(String(count));
await expect(page.locator('app-tab-indicadores app-plot').first()).toBeVisible();
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
await expect(page.locator('app-tab-trazabilidad mat-card')).toHaveCount(14);
await expect(page.locator('app-tab-trazabilidad mat-card')).toHaveCount(measures.total);
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
await expect(page.locator('app-tab-definiciones tbody tr')).toHaveCount(14);
await expect(page.locator('app-tab-definiciones tbody tr')).toHaveCount(measures.total);
const list = page.waitForResponse((r) => r.url().includes('/fhir/Patient?'));
await page.getByRole('tab', { name: 'Análisis de riesgos' }).click();