25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
// Presentation labels for representations confirmed in the published catalog.
|
|
// Exact IDs remain the option values and HTTP identities; never infer a type
|
|
// from a prefix. Unknown options keep a neutral label in publication order.
|
|
export const TITULO_MASTOGRAFIAS_CAMA = 'Porcentaje de mastografías con resultado en la clasificación de BI-RADS 4, 5 o 6';
|
|
|
|
const FIGURE_LABELS: Readonly<Record<string, string>> = {
|
|
fig_c1_barras_alteracion: 'Barras por alteración',
|
|
fig_c1_barras_apiladas_edad: 'Barras apiladas por grupo de edad',
|
|
fig_c1_barras_edad: 'Barras por grupo de edad',
|
|
fig_c1_dona_edad: 'Dona por grupo de edad',
|
|
fig_c1_donas: 'Dona de dos anillos',
|
|
fig_c1_grupos: 'Grupos',
|
|
fig_c1_puntos: 'Puntos',
|
|
fig_c2_apiladas: 'Barras apiladas',
|
|
fig_c2_barras: 'Barras',
|
|
fig_c2_donas: 'Donas',
|
|
fig_c3r_caja: 'Caja de cuartiles',
|
|
};
|
|
|
|
export function figureDisplayName(figureId: string, publishedFigures: readonly string[]): string {
|
|
if (Object.hasOwn(FIGURE_LABELS, figureId)) return FIGURE_LABELS[figureId];
|
|
const index = publishedFigures.indexOf(figureId);
|
|
return index >= 0 ? `Representación ${index + 1}` : 'Representación adicional';
|
|
}
|