Patient lists have a search box; TEA alterations by their Spanish names

This commit is contained in:
Roberto Treviño
2026-11-29 12:39:07 -06:00
parent 55c4e0b173
commit 2216186d26
8 changed files with 137 additions and 6 deletions
+5
View File
@@ -9,6 +9,7 @@ import { RouterLink } from '@angular/router';
import type { Bundle } from 'fhir/r4';
import { Fhir } from '../fhir';
import { Row, rows, windowStart } from './follow-up';
import { PatientSearch, patientSearch } from './patient-search';
import { Loading } from '../loading';
import { name } from './measures';
@@ -19,6 +20,7 @@ const STATUSES = ['case', 'pre_colposcopy', 'post_colposcopy', 'post_treatment']
@Component({
selector: 'app-tab-riesgos',
imports: [
PatientSearch,
DecimalPipe,
FormsModule,
Loading,
@@ -41,6 +43,8 @@ export class TabRiesgos {
protected readonly horizon = signal(5);
protected readonly sort = signal('-recent');
protected readonly size = signal(20);
/** "Buscar paciente": her name, CURP or record number, as applied. */
protected readonly search = signal('');
/** A page the user moved to (`next`/`previous`), else the first. */
private readonly moved = signal<Bundle | undefined>(undefined);
@@ -51,6 +55,7 @@ export class TabRiesgos {
params: () => ({
domain: this.domain(),
'follow-up-window': this.window(),
...patientSearch(this.search()),
'follow-up-cutoff': this.cutoff() || undefined,
'follow-up-status': this.status() || undefined,
'risk-horizon': this.horizon(),