ConceptMap editor, names and CURP shown, catalog codes read

This commit is contained in:
Roberto Treviño
2026-11-25 16:17:23 -06:00
parent 9fc0666d66
commit 9b02641804
27 changed files with 901 additions and 87 deletions
+7
View File
@@ -22,6 +22,7 @@ import { startRun } from '../api/fn/ingest/start-run';
import { runStatus } from '../api/fn/runs/run-status';
import type { Pipeline } from '../api/models/pipeline';
import type { Source } from '../api/models/source';
import { ConceptMapEditor } from './concept-map-editor';
import { FORMLY_TYPES, nodeSchema } from './schema-form';
type Doc = Pipeline['nodes'][number];
@@ -52,6 +53,7 @@ export const KINDS: Record<Kind, string> = {
route: 'Filtrar',
map: 'Mapear',
extract: 'Extraer',
fhir: 'FHIR',
join: 'Unir',
link: 'Vincular',
target: 'Destino',
@@ -73,6 +75,7 @@ const ID = /^[a-z][a-z0-9_]*$/;
MatListModule,
MatTableModule,
Vflow,
ConceptMapEditor,
],
// Forms are this page's only: Formly loads with it, not with the app.
providers: [provideFormlyCore([...withFormlyMaterial(), FORMLY_TYPES])],
@@ -304,6 +307,10 @@ export class Conectar {
const run = this.run();
return run ? `${location.protocol}//${location.hostname}:5712/runs/${run.id}` : '';
});
/** The ConceptMap a node names, if its kind takes one. */
protected conceptMap(d: Doc): string | undefined {
return 'concept_map' in d ? (d.concept_map ?? undefined) : undefined;
}
protected kindLabel(kind: Doc['kind']): string {
return KINDS[kind ?? 'source'];
}