One shell with the current look: indicators, follow-up list and patient view from FHIR; /conectar canvas; /revision; Playwright page tests

This commit is contained in:
Roberto Treviño
2026-11-25 10:21:30 -06:00
parent 70b6d6c646
commit cd7bbaf11a
70 changed files with 5459 additions and 182 deletions
+47
View File
@@ -0,0 +1,47 @@
/** 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',
},
};