CaMa: present diagnostic pathway and biopsy results
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user