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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user