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
+4 -8
View File
@@ -8,12 +8,13 @@ import { Position } from '../models/position';
*
* `auto` asks the LLM when one is configured and answering, else applies `patterns`;
* with neither, the row is held. Patterns are regexes with one group, per field (the
* LLM can propose them from sample documents); their values go through `values` and
* `formats` as in `map`.
* LLM can propose them from sample documents); their values go through the ConceptMap
* and `formats` as in `map`.
*/
export interface Extract {
column: string;
entity: 'identity' | 'death' | 'clinical_note' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy';
concept_map?: (string | null);
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death';
formats?: {
[key: string]: string;
};
@@ -27,9 +28,4 @@ export interface Extract {
[key: string]: string;
};
position?: (Position | null);
values?: {
[key: string]: {
[key: string]: string;
};
};
}