Recurrence scenarios leave Gobernanza: the record draws them
This commit is contained in:
@@ -36,8 +36,8 @@ describe('governance figures', () => {
|
|||||||
expect((drawn.figure.data[4] as any).x).toEqual([6, 12, 18]);
|
expect((drawn.figure.data[4] as any).x).toEqual([6, 12, 18]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('draws a recurrence scenario: KM band, both Weibulls and the model points', () => {
|
it('leaves recurrence scenarios to the patient record', () => {
|
||||||
const [found] = interpretabilityFigures({
|
const found = interpretabilityFigures({
|
||||||
kind: 'scenarios',
|
kind: 'scenarios',
|
||||||
recurrencia: {
|
recurrencia: {
|
||||||
horizons_months: [12, 36],
|
horizons_months: [12, 36],
|
||||||
@@ -55,7 +55,7 @@ describe('governance figures', () => {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
expect(found.figure.data.length).toBe(5); // band, KM, Weibull, fractional, points
|
expect(found).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('draws an age curve with its centile band', () => {
|
it('draws an age curve with its centile band', () => {
|
||||||
|
|||||||
@@ -140,17 +140,8 @@ export function interpretabilityFigures(
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
case 'scenarios':
|
case 'scenarios': // recurrence: its scenarios are drawn in the patient record
|
||||||
return (report['recurrencia']['escenarios'] as any[])
|
return [];
|
||||||
.slice(0, 6)
|
|
||||||
.map((e) =>
|
|
||||||
scenarioFigure(
|
|
||||||
`${e.cohorte_nombre} · ${e.escenario} (n = ${e.n}, ${e.recaidas} recaídas)`,
|
|
||||||
e,
|
|
||||||
report['recurrencia']['horizons_months'],
|
|
||||||
'Supervivencia libre de recaída',
|
|
||||||
),
|
|
||||||
);
|
|
||||||
case 'age_curves': {
|
case 'age_curves': {
|
||||||
// The metric's own curve; a topography has only electrodes: its first one.
|
// The metric's own curve; a topography has only electrodes: its first one.
|
||||||
const value = report['curves']['value'] ?? Object.values(report['curves'])[0];
|
const value = report['curves']['value'] ?? Object.values(report['curves'])[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user