CaMa: present diagnostic pathway and biopsy results

This commit is contained in:
Angel Capetillo Zavala
2026-12-01 12:27:16 -06:00
parent fe4dd55452
commit 749afe765d
12 changed files with 762 additions and 72 deletions
+12
View File
@@ -8,6 +8,7 @@ import { MatSelectModule } from '@angular/material/select';
import type { Measure, MeasureReport } from 'fhir/r4';
import { Fhir, resources } from '../fhir';
import { Figure, Plot } from '../plot';
import { DurationRow, durationRows } from './durations';
import { LAYOUTS } from './layout';
import {
ageShare,
@@ -37,6 +38,7 @@ import {
strataBars,
} from './measures';
import { Loading } from '../loading';
import { RouteCard } from './route-card';
import { ReadingsSection, Source } from './section';
/** The period's indicators: the timeliness KPIs, the screening route, and a card per
@@ -53,6 +55,7 @@ import { ReadingsSection, Source } from './section';
MatSelectModule,
Plot,
ReadingsSection,
RouteCard,
],
templateUrl: './tab-indicadores.html',
styleUrl: './tab-indicadores.scss',
@@ -194,6 +197,15 @@ export class TabIndicadores {
}
protected readonly name = name;
protected stepRows(section: Section, mode: 'sample' | 'step'): DurationRow[] {
if (section.kind !== 'route') return [];
return durationRows(
section[mode],
(code) => this.rd(code),
(code) => this.byName().has(code),
);
}
/** A measure's reading in the applied period, by code. */
protected rd(code: string): Reading | undefined {
return this.loaded()?.get(code);