T17: sweep of the WebApp after the feature-parity work

Removed the legacy indicator layout, unused chart helpers, styles and
exports, the card-actions component, fetch-all and explanatory comments;
one pager shared by the four worklists, shared filter-row styles, one
FHIR name and CURP reader, downloads through export/, the concept-map
editor on Material controls.
This commit is contained in:
2026-12-01 06:48:57 -06:00
parent 8237e9f483
commit 7c98566579
61 changed files with 338 additions and 1166 deletions
+33 -20
View File
@@ -2,23 +2,30 @@ import { HttpErrorResponse } from '@angular/common/http';
import { Component, inject, input, output, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { Api } from '../api/api';
import { getConceptMap } from '../api/fn/ingest/get-concept-map';
import { saveConceptMap } from '../api/fn/ingest/save-concept-map';
/** One translation: a site's code onto a platform code of one target system. */
interface Row {
target: string;
code: string;
platform: string;
}
/** A site's codes in platform terms (a FHIR ConceptMap), edited as a table: a new
* laboratory spelling is one more row. The API refuses a code no platform field allows. */
@Component({
selector: 'app-concept-map-editor',
imports: [FormsModule, MatButtonModule, MatIconModule],
imports: [
FormsModule,
MatButtonModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatSelectModule,
],
template: `
<h3>
Códigos del sitio · <span class="muted">{{ id() }}</span>
@@ -36,20 +43,31 @@ interface Row {
@for (row of rows(); track $index) {
<tr>
<td>
<select [(ngModel)]="row.target" [attr.aria-label]="'Sistema destino ' + $index">
@for (t of targets(); track t) {
<option [value]="t">{{ short(t) }}</option>
}
</select>
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-select [(ngModel)]="row.target" [aria-label]="'Sistema destino ' + $index">
@for (t of targets(); track t) {
<mat-option [value]="t">{{ short(t) }}</mat-option>
}
</mat-select>
</mat-form-field>
</td>
<td>
<input [(ngModel)]="row.code" [attr.aria-label]="'Código del sitio ' + $index" />
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<input
matInput
[(ngModel)]="row.code"
[attr.aria-label]="'Código del sitio ' + $index"
/>
</mat-form-field>
</td>
<td>
<input
[(ngModel)]="row.platform"
[attr.aria-label]="'Código de la plataforma ' + $index"
/>
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<input
matInput
[(ngModel)]="row.platform"
[attr.aria-label]="'Código de la plataforma ' + $index"
/>
</mat-form-field>
</td>
<td>
<button mat-icon-button (click)="remove($index)" aria-label="Quitar fila">
@@ -72,12 +90,8 @@ interface Row {
font-weight: 500;
margin: 16px 0 8px;
}
input,
select {
mat-form-field {
width: 100%;
box-sizing: border-box;
font: inherit;
padding: 4px;
}
.actions {
display: flex;
@@ -134,7 +148,6 @@ export class ConceptMapEditor {
this.rows.update((r) => r.filter((_, j) => j !== i));
}
/** The rows as a ConceptMap: one group per target system. */
protected async save(): Promise<void> {
const groups = new Map<string, Row[]>();
for (const r of this.rows().filter((r) => r.target && r.code && r.platform)) {