CaCu Indicadores as the old page: its cards and words, the route, cytology and biopsy donuts, results by clinical scenario, confirmation rates; the page test compares with the capture; the guard injects before it waits

This commit is contained in:
Roberto Treviño
2026-11-28 10:03:31 -06:00
parent 198aae59da
commit 9a15ac6fcb
8 changed files with 720 additions and 67 deletions
+8 -2
View File
@@ -66,9 +66,15 @@ export function reading(report: MeasureReport | undefined): Reading | undefined
const score = group.measureScore;
const strata: Reading['strata'] = {};
for (const s of group.stratifier ?? []) {
const name = code(s.code?.[0]) ?? s.code?.[0]?.text ?? '';
// A crossed stratifier (several codes) is keyed `a-b`, its strata `valueA|valueB`.
const name = (s.code ?? []).map((c) => code(c) ?? c.text ?? '').join('-');
strata[name] = Object.fromEntries(
(s.stratum ?? []).map((x) => [x.value?.text ?? '', counts(x)]),
(s.stratum ?? []).map((x) => [
x.component?.length
? x.component.map((c) => c.value?.text ?? '').join('|')
: (x.value?.text ?? ''),
counts(x),
]),
);
}
return {