6c063344a3
Reword the histopathologic confirmation note, the BI-RADS 4, 5 or 6 titles and the radiologic interpretation time title. Show twice the BI-RADS 4, 5 or 6 mastography counts in the FHIR and base data services. Add the histologic type classification and a follow-up table column that appears only when a row carries tipo_histologico.
24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
// Groups the histologic type of a biopsy into the classification shown beside it.
|
|
export const SIN_CLASIFICAR = 'Sin clasificar';
|
|
|
|
export const MAPEO_HISTOLOGICO: Readonly<Record<string, string>> = {
|
|
'Ductal (NST)': 'Carcinoma invasor',
|
|
'Lobulillar': 'Carcinoma invasor',
|
|
'Ductal-lobulillar mixto': 'Carcinoma invasor',
|
|
'Mucinoso': 'Carcinoma invasor',
|
|
'Paget': 'Carcinoma in situ',
|
|
'Papilar': 'Revisar (Benigno / In situ / Invasor)',
|
|
'Tubular': 'Carcinoma invasor',
|
|
'Tubular / cribiforme': 'Carcinoma invasor',
|
|
'cribiforme': 'Revisar (In situ / Invasor)',
|
|
'Micropapilar': 'Revisar (In situ / Invasor)',
|
|
'Inflamatorio': 'Carcinoma invasor',
|
|
'Medular': 'Carcinoma invasor',
|
|
'Otros': 'Revisar (Benigno / In situ / Invasor)',
|
|
'SIN MAPEAR': SIN_CLASIFICAR,
|
|
};
|
|
|
|
/** The classification of a histologic type; a type outside the mapping is «Sin clasificar». */
|
|
export const clasificacionHistologica = (tipo: string) =>
|
|
Object.hasOwn(MAPEO_HISTOLOGICO, tipo) ? MAPEO_HISTOLOGICO[tipo] : SIN_CLASIFICAR;
|