From 471ed3a18c68ddfb3c0876f445d7efcd85fb7435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Trevi=C3=B1o?= Date: Thu, 26 Nov 2026 07:06:52 -0600 Subject: [PATCH] TEA indicators, EEG section in governance --- e2e/pages.spec.ts | 2 +- openapi.json | 334 ++++++++++++++++++++++++++++- src/app/api/fn/eeg/studies.ts | 30 +++ src/app/api/fn/eeg/study.ts | 32 +++ src/app/api/fn/models/analyze.ts | 36 ++++ src/app/api/fn/review/conflicts.ts | 2 +- src/app/api/fn/review/held.ts | 2 +- src/app/api/functions.ts | 6 + src/app/api/models.ts | 3 + src/app/api/models/analysis.ts | 11 + src/app/api/models/extract.ts | 2 +- src/app/api/models/fhir.ts | 2 +- src/app/api/models/map.ts | 3 + src/app/api/models/metric.ts | 10 + src/app/api/models/rejection.ts | 2 +- src/app/api/models/study.ts | 12 ++ src/app/api/models/target.ts | 2 +- src/app/api/models/training.ts | 1 + src/app/gobernanza/gobernanza.html | 63 ++++++ src/app/gobernanza/gobernanza.ts | 42 +++- src/app/indicadores/layout.ts | 24 +++ src/app/indicadores/measures.ts | 10 + src/app/revision/revision.ts | 3 + 23 files changed, 614 insertions(+), 20 deletions(-) create mode 100644 src/app/api/fn/eeg/studies.ts create mode 100644 src/app/api/fn/eeg/study.ts create mode 100644 src/app/api/fn/models/analyze.ts create mode 100644 src/app/api/models/analysis.ts create mode 100644 src/app/api/models/metric.ts create mode 100644 src/app/api/models/study.ts diff --git a/e2e/pages.spec.ts b/e2e/pages.spec.ts index 6634d5f..f4953c6 100644 --- a/e2e/pages.spec.ts +++ b/e2e/pages.spec.ts @@ -60,7 +60,7 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie const camaRows = page.locator('table.worklist tbody tr'); await expect(camaRows.first()).toContainText('BI-RADS'); await page.goto('/indicadores/tea'); - await expect(page.getByText('todavía no tiene indicadores')).toBeVisible(); + await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible(); expect(problems).toEqual([]); }); diff --git a/openapi.json b/openapi.json index 2d1b587..fb42ba6 100644 --- a/openapi.json +++ b/openapi.json @@ -1,6 +1,63 @@ { "components": { "schemas": { + "Analysis": { + "properties": { + "age_months": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Age Months" + }, + "id": { + "title": "Id", + "type": "string" + }, + "level": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Level" + }, + "metrics": { + "items": { + "$ref": "#/components/schemas/Metric" + }, + "title": "Metrics", + "type": "array" + }, + "valid": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Valid" + } + }, + "required": [ + "id", + "valid", + "level", + "age_months", + "metrics" + ], + "title": "Analysis", + "type": "object" + }, "Body_add_clinical_validation": { "properties": { "file": { @@ -127,7 +184,10 @@ "mammography", "breast_biopsy", "clinical_note", - "death" + "death", + "mchat", + "ados2", + "eeg" ], "title": "Entity", "type": "string" @@ -239,7 +299,10 @@ "mammography", "breast_biopsy", "clinical_note", - "death" + "death", + "mchat", + "ados2", + "eeg" ], "title": "Entity", "type": "string" @@ -523,6 +586,14 @@ "type": "null" } ] + }, + "values": { + "additionalProperties": { + "type": "string" + }, + "default": {}, + "title": "Values", + "type": "object" } }, "required": [ @@ -532,6 +603,60 @@ "title": "Map", "type": "object" }, + "Metric": { + "properties": { + "code": { + "title": "Code", + "type": "string" + }, + "model": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Model" + }, + "outside": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Outside" + }, + "value": { + "title": "Value", + "type": "number" + }, + "z": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Z" + } + }, + "required": [ + "code", + "value", + "z", + "outside", + "model" + ], + "title": "Metric", + "type": "object" + }, "PersonDecision": { "properties": { "candidate": { @@ -694,7 +819,10 @@ "mammography", "breast_biopsy", "clinical_note", - "death" + "death", + "mchat", + "ados2", + "eeg" ], "title": "Entity", "type": "string" @@ -917,6 +1045,70 @@ "title": "SourceRef", "type": "object" }, + "Study": { + "properties": { + "analysed": { + "title": "Analysed", + "type": "boolean" + }, + "id": { + "title": "Id", + "type": "string" + }, + "lab_record_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Lab Record Id" + }, + "level": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Level" + }, + "person_id": { + "title": "Person Id", + "type": "string" + }, + "study_date": { + "title": "Study Date", + "type": "string" + }, + "valid": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Valid" + } + }, + "required": [ + "id", + "person_id", + "study_date", + "lab_record_id", + "analysed", + "valid", + "level" + ], + "title": "Study", + "type": "object" + }, "Target": { "additionalProperties": false, "description": "Rows of platform fields into one platform entity, each row given its person by the\none `link` node among the inputs. Rule breaks are held for review.", @@ -929,7 +1121,10 @@ "mammography", "breast_biopsy", "clinical_note", - "death" + "death", + "mchat", + "ados2", + "eeg" ], "title": "Entity", "type": "string" @@ -992,6 +1187,14 @@ } ], "title": "As Of" + }, + "models": { + "default": [], + "items": { + "type": "string" + }, + "title": "Models", + "type": "array" } }, "title": "Training", @@ -1770,6 +1973,52 @@ ] } }, + "/models/{domain}/analyze": { + "post": { + "description": "Starts analysing the studies the domain's models read whole (TEA: its EEGs); follow\nit at /runs.", + "operationId": "analyze", + "parameters": [ + { + "in": "path", + "name": "domain", + "required": true, + "schema": { + "$ref": "#/components/schemas/Domain" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "additionalProperties": { + "type": "string" + }, + "title": "Response Analyze", + "type": "object" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Analyze", + "tags": [ + "models" + ] + } + }, "/models/{domain}/score": { "post": { "description": "Starts a risk batch from each model's champion; follow it at /runs.", @@ -2143,7 +2392,10 @@ "mammography", "breast_biopsy", "clinical_note", - "death" + "death", + "mchat", + "ados2", + "eeg" ], "title": "Entity", "type": "string" @@ -2246,7 +2498,10 @@ "mammography", "breast_biopsy", "clinical_note", - "death" + "death", + "mchat", + "ados2", + "eeg" ], "title": "Entity", "type": "string" @@ -2486,6 +2741,73 @@ ] } }, + "/tea/eegs": { + "get": { + "operationId": "studies", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/Study" + }, + "title": "Response Studies", + "type": "array" + } + } + }, + "description": "Successful Response" + } + }, + "summary": "Studies", + "tags": [ + "eeg" + ] + } + }, + "/tea/eegs/{eeg_id}": { + "get": { + "operationId": "study", + "parameters": [ + { + "in": "path", + "name": "eeg_id", + "required": true, + "schema": { + "title": "Eeg Id", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Analysis" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Study", + "tags": [ + "eeg" + ] + } + }, "/{domain}/fhir": { "post": { "description": "A standard hospital's Bundle: checked as FHIR, kept as sent in the sender's inbox,\nand placed by the sender's pipeline (a run starts; follow it at the Location).", diff --git a/src/app/api/fn/eeg/studies.ts b/src/app/api/fn/eeg/studies.ts new file mode 100644 index 0000000..5d64f1e --- /dev/null +++ b/src/app/api/fn/eeg/studies.ts @@ -0,0 +1,30 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Study } from '../../models/study'; + +export interface Studies$Params { +} + +export function studies(http: HttpClient, rootUrl: string, params?: Studies$Params, context?: HttpContext): Observable>> { + const rb = new RequestBuilder(rootUrl, studies.PATH, 'get'); + if (params) { + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse>; + }) + ); +} + +studies.PATH = '/tea/eegs'; diff --git a/src/app/api/fn/eeg/study.ts b/src/app/api/fn/eeg/study.ts new file mode 100644 index 0000000..b1b2d78 --- /dev/null +++ b/src/app/api/fn/eeg/study.ts @@ -0,0 +1,32 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Analysis } from '../../models/analysis'; + +export interface Study$Params { + eeg_id: string; +} + +export function study(http: HttpClient, rootUrl: string, params: Study$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, study.PATH, 'get'); + if (params) { + rb.path('eeg_id', params.eeg_id, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +study.PATH = '/tea/eegs/{eeg_id}'; diff --git a/src/app/api/fn/models/analyze.ts b/src/app/api/fn/models/analyze.ts new file mode 100644 index 0000000..9dc92b8 --- /dev/null +++ b/src/app/api/fn/models/analyze.ts @@ -0,0 +1,36 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Domain } from '../../models/domain'; + +export interface Analyze$Params { + domain: Domain; +} + +export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post'); + if (params) { + rb.path('domain', params.domain, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse<{ + [key: string]: string; + }>; + }) + ); +} + +analyze.PATH = '/models/{domain}/analyze'; diff --git a/src/app/api/fn/review/conflicts.ts b/src/app/api/fn/review/conflicts.ts index feccf16..af1408c 100644 --- a/src/app/api/fn/review/conflicts.ts +++ b/src/app/api/fn/review/conflicts.ts @@ -9,7 +9,7 @@ import { RequestBuilder } from '../../request-builder'; export interface Conflicts$Params { - entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death'; + entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; } export function conflicts(http: HttpClient, rootUrl: string, params: Conflicts$Params, context?: HttpContext): Observable; + valid: (boolean | null); +} diff --git a/src/app/api/models/extract.ts b/src/app/api/models/extract.ts index 882a2a7..8ec15f2 100644 --- a/src/app/api/models/extract.ts +++ b/src/app/api/models/extract.ts @@ -14,7 +14,7 @@ import { Position } from '../models/position'; export interface Extract { column: string; concept_map?: (string | null); - entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death'; + entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; formats?: { [key: string]: string; }; diff --git a/src/app/api/models/fhir.ts b/src/app/api/models/fhir.ts index a5c9459..68e05de 100644 --- a/src/app/api/models/fhir.ts +++ b/src/app/api/models/fhir.ts @@ -11,7 +11,7 @@ import { Position } from '../models/position'; export interface Fhir { column?: string; concept_map?: (string | null); - entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death'; + entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; id: string; inputs?: Array; kind?: 'fhir'; diff --git a/src/app/api/models/map.ts b/src/app/api/models/map.ts index 0e0d5a0..5eb663a 100644 --- a/src/app/api/models/map.ts +++ b/src/app/api/models/map.ts @@ -20,4 +20,7 @@ export interface Map { kind?: 'map'; label?: string; position?: (Position | null); + values?: { +[key: string]: string; +}; } diff --git a/src/app/api/models/metric.ts b/src/app/api/models/metric.ts new file mode 100644 index 0000000..476a4bc --- /dev/null +++ b/src/app/api/models/metric.ts @@ -0,0 +1,10 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +export interface Metric { + code: string; + model: (string | null); + outside: (number | null); + value: number; + z: (number | null); +} diff --git a/src/app/api/models/rejection.ts b/src/app/api/models/rejection.ts index 08644d1..4cfd27b 100644 --- a/src/app/api/models/rejection.ts +++ b/src/app/api/models/rejection.ts @@ -2,7 +2,7 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ export interface Rejection { - entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death'; + entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; reason: string; record: string; } diff --git a/src/app/api/models/study.ts b/src/app/api/models/study.ts new file mode 100644 index 0000000..2fc4d54 --- /dev/null +++ b/src/app/api/models/study.ts @@ -0,0 +1,12 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +export interface Study { + analysed: boolean; + id: string; + lab_record_id: (string | null); + level: (string | null); + person_id: string; + study_date: string; + valid: (boolean | null); +} diff --git a/src/app/api/models/target.ts b/src/app/api/models/target.ts index 7f70839..98be101 100644 --- a/src/app/api/models/target.ts +++ b/src/app/api/models/target.ts @@ -8,7 +8,7 @@ import { Position } from '../models/position'; * one `link` node among the inputs. Rule breaks are held for review. */ export interface Target { - entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death'; + entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; id: string; inputs?: Array; kind?: 'target'; diff --git a/src/app/api/models/training.ts b/src/app/api/models/training.ts index 3d96957..f3f0626 100644 --- a/src/app/api/models/training.ts +++ b/src/app/api/models/training.ts @@ -3,4 +3,5 @@ export interface Training { as_of?: (string | null); + models?: Array; } diff --git a/src/app/gobernanza/gobernanza.html b/src/app/gobernanza/gobernanza.html index f96a5d1..fcd4cd7 100644 --- a/src/app/gobernanza/gobernanza.html +++ b/src/app/gobernanza/gobernanza.html @@ -19,6 +19,9 @@ + @if (domain() === 'tea') { + + } @if (run(); as r) { {{ r.kind }}: {{ r.status }} } @@ -113,4 +116,64 @@ } } + + @if (domain() === 'tea') { +
+

Electroencefalogramas

+ + + + + + + + + + @for (e of eegs.value() ?? []; track e.id) { + + + + + + } @empty { + + + + } + +
FechaRegistroAnálisis
+ + {{ e.lab_record_id ?? '—' }} + {{ !e.analysed ? 'Sin analizar' : e.valid ? 'Válido' : 'No válido' }} + {{ e.level ? '(' + e.level + ')' : '' }} +
Sin EEG cargados.
+ @if (eegMetrics.value(); as m) { +

EEG {{ m.id }} · {{ m.age_months ?? '—' }} meses

+ + + + + + + + + + + @for (x of m.metrics; track x.code) { + + + + + + + } @empty { + + + + } + +
MétricaValorzCurva
{{ metricNames[x.code] ?? x.code }}{{ x.value | number: '1.2-2' }}{{ x.z === null ? '—' : (x.z | number: '1.2-2') }}{{ x.model ?? 'sin curva en producción' }}
Sin métricas (EEG no válido).
+ } +
+ } diff --git a/src/app/gobernanza/gobernanza.ts b/src/app/gobernanza/gobernanza.ts index 6ceadff..3e0289f 100644 --- a/src/app/gobernanza/gobernanza.ts +++ b/src/app/gobernanza/gobernanza.ts @@ -9,6 +9,7 @@ import { RouterLink } from '@angular/router'; import { Api } from '../api/api'; import { ApiConfiguration } from '../api/api-configuration'; import { addClinicalValidation } from '../api/fn/models/add-clinical-validation'; +import { analyze } from '../api/fn/models/analyze'; import { models } from '../api/fn/models/models'; import { promote } from '../api/fn/models/promote'; import { readReport$Json } from '../api/fn/models/read-report-json'; @@ -16,6 +17,8 @@ import { score } from '../api/fn/models/score'; import { train } from '../api/fn/models/train'; import { versions } from '../api/fn/models/versions'; import { domains } from '../api/fn/operations/domains'; +import { studies } from '../api/fn/eeg/studies'; +import { study } from '../api/fn/eeg/study'; import { runStatus } from '../api/fn/runs/run-status'; import type { Domain } from '../api/models/domain'; import type { Version } from '../api/models/version'; @@ -78,6 +81,23 @@ export class Gobernanza { const found = this.report.value(); return found ? interpretabilityFigures(found as Record) : []; }); + /** TEA: its EEGs and their analysis. */ + protected readonly eegs = resource({ + params: () => (this.domain() === 'tea' ? this.refreshed() + 1 : undefined), + loader: () => this.api.invoke(studies), + }); + protected readonly eeg = signal(undefined); + protected readonly eegMetrics = resource({ + params: () => this.eeg(), + loader: ({ params }) => this.api.invoke(study, { eeg_id: params }), + }); + protected readonly metricNames: Record = { + posterior_rhythm: 'Ritmo posterior (Hz)', + spindles_n2: 'Husos de sueño N2 (por min)', + spindles_n3: 'Husos de sueño N3 (por min)', + paroxysmal_spikes: 'Picos paroxísticos (por min)', + anteroposterior_gradient: 'Gradiente anteroposterior', + }; protected readonly asOf = signal(''); protected readonly run = signal<{ kind: string; status: string } | undefined>(undefined); protected readonly message = signal(''); @@ -115,13 +135,12 @@ export class Gobernanza { } } - protected async start(kind: 'train' | 'score'): Promise { - const domain = this.domain() as Domain; - const { run_id } = - kind === 'train' - ? await this.api.invoke(train, { domain, body: this.asOf() ? { as_of: this.asOf() } : {} }) - : await this.api.invoke(score, { domain }); - const label = kind === 'train' ? 'Entrenamiento' : 'Cálculo de riesgos'; + protected async analyzeEegs(): Promise { + const { run_id } = await this.api.invoke(analyze, { domain: this.domain() as Domain }); + await this.follow(run_id, 'Análisis de EEG'); + } + + private async follow(run_id: string, label: string): Promise { for (;;) { const status = (await this.api.invoke(runStatus, { run_id }))['status'] as string; this.run.set({ kind: label, status }); @@ -130,4 +149,13 @@ export class Gobernanza { } this.refreshed.update((n) => n + 1); } + + protected async start(kind: 'train' | 'score'): Promise { + const domain = this.domain() as Domain; + const { run_id } = + kind === 'train' + ? await this.api.invoke(train, { domain, body: this.asOf() ? { as_of: this.asOf() } : {} }) + : await this.api.invoke(score, { domain }); + await this.follow(run_id, kind === 'train' ? 'Entrenamiento' : 'Cálculo de riesgos'); + } } diff --git a/src/app/indicadores/layout.ts b/src/app/indicadores/layout.ts index 1daad6f..33aafc3 100644 --- a/src/app/indicadores/layout.ts +++ b/src/app/indicadores/layout.ts @@ -68,4 +68,28 @@ export const LAYOUTS: Record = { ], anchor: 'CAMA_BIRADS', }, + tea: { + kpis: [ + 'M23_PACIENTES_EVALUADOS', + 'M24_CONFIRMACION_DIAGNOSTICO', + 'M25_DIAS_MCHAT_DIAGNOSTICO', + 'M21_DIAGNOSTICADOS_CON_EEG', + 'M29_CALIDAD_EEG', + ], + route: [ + { + label: 'ADOS-2', + step: 'Del M-CHAT al ADOS-2', + fromSample: 'M26_DIAS_MCHAT_ADOS2', + fromStep: 'M26_DIAS_MCHAT_ADOS2', + }, + { + label: 'Valoración neuropediátrica', + step: 'Del ADOS-2 a la valoración neuropediátrica', + fromSample: 'M25_DIAS_MCHAT_DIAGNOSTICO', + fromStep: 'M27_DIAS_ADOS2_DIAGNOSTICO', + }, + ], + anchor: 'M23_PACIENTES_EVALUADOS', + }, }; diff --git a/src/app/indicadores/measures.ts b/src/app/indicadores/measures.ts index 46db106..3c87e87 100644 --- a/src/app/indicadores/measures.ts +++ b/src/app/indicadores/measures.ts @@ -106,6 +106,16 @@ const LABELS: Record = { pending_biopsy: 'Pendiente de biopsia', biopsy_no_result: 'Biopsia sin resultado', benign_biopsy: 'Biopsia benigna', + confirmed: 'Diagnóstico confirmado', + in_process: 'En proceso', + not_confirmed: 'Sin TEA', + mchat_only: 'Solo M-CHAT', + psychology: 'Psicología (ADOS-2)', + neuropediatrics: 'Neuropediatría', + eeg: 'EEG', + good: 'Bueno', + bad: 'Malo', + not_analyzed: 'Sin analizar', ...Object.fromEntries( ['0', '1', '2', '3', '4', '4A', '4B', '4C', '5', '6'].map((c) => [c, `BI-RADS ${c}`]), ), diff --git a/src/app/revision/revision.ts b/src/app/revision/revision.ts index a177dde..1933221 100644 --- a/src/app/revision/revision.ts +++ b/src/app/revision/revision.ts @@ -32,6 +32,9 @@ const ENTITIES: Record = { identity: 'Identidad', mammography: 'Mastografía', breast_biopsy: 'Biopsia de mama', + mchat: 'M-CHAT', + ados2: 'ADOS-2', + eeg: 'Electroencefalograma', }; const IDENTITY_FIELDS: Correction['field'][] = [ 'record_number',