Indicadores TEA: Resumen, Trazabilidad, Seguimiento, Análisis de riesgo, periodicities

This commit is contained in:
2026-11-30 14:19:03 -06:00
parent 56d1ef2e8a
commit adff5bac5c
16 changed files with 1876 additions and 361 deletions
+14 -9
View File
@@ -9,6 +9,7 @@ import { RouterLink } from '@angular/router';
import type { Bundle } from 'fhir/r4';
import { Fhir } from '../fhir';
import { rows, windowStart } from './follow-up';
import { TeaList } from './tea-list';
import { name } from './measures';
const STATUSES = ['case', 'pre_colposcopy', 'post_colposcopy', 'post_treatment'];
@@ -25,6 +26,7 @@ const STATUSES = ['case', 'pre_colposcopy', 'post_colposcopy', 'post_treatment']
MatInputModule,
MatSelectModule,
RouterLink,
TeaList,
],
templateUrl: './tab-riesgos.html',
styleUrl: './tab-riesgos.scss',
@@ -46,15 +48,18 @@ export class TabRiesgos {
protected readonly name = name;
private readonly first = resource({
params: () => ({
domain: this.domain(),
'follow-up-window': this.window(),
'follow-up-cutoff': this.cutoff() || undefined,
'follow-up-status': this.status() || undefined,
'risk-horizon': this.horizon(),
_sort: this.sort(),
_count: this.size(),
}),
params: () =>
this.domain() === 'tea'
? undefined
: {
domain: this.domain(),
'follow-up-window': this.window(),
'follow-up-cutoff': this.cutoff() || undefined,
'follow-up-status': this.status() || undefined,
'risk-horizon': this.horizon(),
_sort: this.sort(),
_count: this.size(),
},
loader: ({ params: { domain, ...params } }) => {
this.moved.set(undefined);
return this.fhir.search(domain, 'Patient', {