Usar barras comunes en confirmación y renombrar la serie de ingreso del NCI

This commit is contained in:
2026-12-03 00:06:32 -06:00
parent 8e16de33b7
commit 9c17a383d1
6 changed files with 29 additions and 39 deletions
+2
View File
@@ -31,6 +31,8 @@ const OUTCOME_TEXT: Record<string, string> = {
export const seriesName = (s: Series) => {
const outcome = OUTCOME_TEXT[s.outcome] ?? s.outcome;
if (s.source === 'NCI (tabla de ingreso)')
return `NCI, ingreso a ${outcome.replace(' (CIN2+)', '').replace(/^Cáncer$/, 'cáncer')}`;
// the platform's own models are the hospital's: its name, and the outcome without its synonym
return s.source === 'Institucional'
? `ISSSTELEON, ${outcome.replace(' (CIN2+)', '')}`