72 lines
2.1 KiB
TypeScript
72 lines
2.1 KiB
TypeScript
/** Where each measure goes on a domain's indicator page (today's layout); measures not
|
|
* named here are clinical cards. Measures are named by their code (`Measure.name`). */
|
|
export interface Layout {
|
|
kpis: string[];
|
|
route: { label: string; fromSample: string; fromStep: string; step: string }[];
|
|
/** The measure whose data decides the default period. */
|
|
anchor: string;
|
|
}
|
|
|
|
export const LAYOUTS: Record<string, Layout> = {
|
|
cacu: {
|
|
kpis: [
|
|
'CACU_EU7',
|
|
'CACU_EU_TIEMPO_REPORTE',
|
|
'CACU_DIAS_TOMA_DIAGNOSTICO',
|
|
'CACU_DIAS_TOMA_TRATAMIENTO',
|
|
'CACU_DIAS_DIAGNOSTICO_TRATAMIENTO',
|
|
],
|
|
route: [
|
|
{
|
|
label: 'Resultado de citología',
|
|
step: 'Toma a resultado de citología',
|
|
fromSample: 'CACU_EU_TIEMPO_REPORTE',
|
|
fromStep: 'CACU_EU_TIEMPO_REPORTE',
|
|
},
|
|
{
|
|
label: 'Colposcopía',
|
|
step: 'Del resultado de citología a la colposcopía',
|
|
fromSample: 'CACU_DIAS_TOMA_COLPOSCOPIA',
|
|
fromStep: 'CACU_DIAS_RESULTADO_COLPOSCOPIA',
|
|
},
|
|
{
|
|
label: 'Resultado de biopsia',
|
|
step: 'De la colposcopía al resultado de biopsia',
|
|
fromSample: 'CACU_DIAS_TOMA_BIOPSIA',
|
|
fromStep: 'CACU_DIAS_COLPOSCOPIA_BIOPSIA',
|
|
},
|
|
{
|
|
label: 'Diagnóstico',
|
|
step: 'Del resultado de biopsia al diagnóstico',
|
|
fromSample: 'CACU_DIAS_TOMA_DIAGNOSTICO',
|
|
fromStep: 'CACU_DIAS_BIOPSIA_DIAGNOSTICO',
|
|
},
|
|
],
|
|
anchor: 'IND1',
|
|
},
|
|
cama: {
|
|
kpis: [
|
|
'CAMA_BIRADS',
|
|
'CAMA_EU38A',
|
|
'CAMA_DIAS_TOMA_DIAGNOSTICO',
|
|
'CAMA_CONFIRMACION_BIRADS45',
|
|
'CAMA_TASA_DETECCION_HISTOPATOLOGICA',
|
|
],
|
|
route: [
|
|
{
|
|
label: 'Resultado de mastografía',
|
|
step: 'Toma a resultado de mastografía',
|
|
fromSample: 'CAMA_EU38A',
|
|
fromStep: 'CAMA_EU38A',
|
|
},
|
|
{
|
|
label: 'Diagnóstico',
|
|
step: 'Del resultado de mastografía al diagnóstico',
|
|
fromSample: 'CAMA_DIAS_TOMA_DIAGNOSTICO',
|
|
fromStep: 'CAMA_DIAS_RESULTADO_DIAGNOSTICO',
|
|
},
|
|
],
|
|
anchor: 'CAMA_BIRADS',
|
|
},
|
|
};
|