CaMa indicators and follow-up list, model governance page

This commit is contained in:
Roberto Treviño
2026-11-25 23:20:52 -06:00
parent 9b02641804
commit 53a6393cb2
19 changed files with 974 additions and 19 deletions
+13
View File
@@ -99,12 +99,25 @@ const LABELS: Record<string, string> = {
high: 'Alto',
satisfactory: 'satisfactoria',
unsatisfactory: 'insatisfactoria',
benign: 'Benigno',
in_situ: 'Carcinoma in situ',
invasive: 'Carcinoma invasor',
cancer: 'Diagnóstico confirmado',
pending_biopsy: 'Pendiente de biopsia',
biopsy_no_result: 'Biopsia sin resultado',
benign_biopsy: 'Biopsia benigna',
...Object.fromEntries(
['0', '1', '2', '3', '4', '4A', '4B', '4C', '5', '6'].map((c) => [c, `BI-RADS ${c}`]),
),
};
/** A follow-up priority's label. */
export const PRIORITY: Record<string, string> = { high: 'Alta', medium: 'Media', low: 'Baja' };
export const STRATA: Record<string, string> = {
category: 'Categoría',
age_group: 'Grupo de edad',
follow_up_status: 'Estatus de seguimiento',
result: 'Citología de alto grado',
birads: 'BI-RADS de la mastografía',
};
export const name = (value: string) => LABELS[value] ?? value;