Merge origin/rebuild into parity/T1-merge (WebApp)
rebuild's shell, auth and non-TEA pages; tea/parity's TEA pages on tea/parity's API. - Routes: rebuild's signed-in tree; the TEA risk page joins it (domainAllowed reads the route's data domain when the path has no :domain). - Indicadores: rebuild's header and its generic Resumen/Trazabilidad/Definiciones tabs (TEA as the reference page, fed by tea/parity's measures); TEA Seguimiento and Análisis de riesgo render tea/parity's tea-list inside rebuild's tab-seguimiento/tab-riesgos, which keep rebuild's CaCu/CaMa lists and patient search. rebuild's tab-riesgos-tea read rebuild's TEA Patient extensions, which are gone with its backend; tea-list already shows that list from tea/parity's FHIR search, so it is deleted rather than ported (its look is the base for T8/T9). - Paciente: rebuild's record for CaCu/CaMa; TEA delegates to tea/parity's TeaRecord. rebuild's inline TEA sections read its EEG detail endpoint and are removed. - Gobernanza: tea/parity's page (execution, models with checks/lineage, bundles, training, studies, preview) until T13; model headings use rebuild's model titles. figures.ts: rebuild's scenarios (drawn in the record) plus tea/parity's association forest. - plot.ts: rebuild's layout helpers on tea/parity's partial Plotly bundle. - Conectar: rebuild's KINDS/HELP with an entry for tea/parity's edf node. - Dead code removed: measures boxes/sankey (tea/parity's old TEA tab), eeg-labels headMap/byDeviation/LEVEL_NAMES/METRIC_NAMES (rebuild's TEA record), e2e/layout.ts. - e2e: tea/parity's TEA cases, signed in; rebuild's CaCu/CaMa/site cases need their hospitals loaded and come back with the page suite (T16). - openapi.json and src/app/api: regenerated in the next commit.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { interpretabilityFigures, studyPoints } from './figures';
|
||||
import { interpretabilityFigures, scenarioFigure, studyPoints } from './figures';
|
||||
|
||||
describe('governance figures', () => {
|
||||
it('draws a survival report as curves with bands and the model points', () => {
|
||||
@@ -13,7 +13,7 @@ describe('governance figures', () => {
|
||||
expect((found.figure.data[2] as any).error_y.array[0]).toBeCloseTo(0.05);
|
||||
});
|
||||
|
||||
it("draws each survival scenario after the cohort's curves, titled with its deaths", () => {
|
||||
it('leaves the survival scenarios to the patient record, which draws them whole', () => {
|
||||
const scenario = {
|
||||
escenario: 'HER2+ · ≥60 años · estadio III–IV (Alto)',
|
||||
n: 1142,
|
||||
@@ -30,14 +30,14 @@ describe('governance figures', () => {
|
||||
predicted: { name: 'Modelo', months: [6], survival: [0.9], low: [0.8], high: [0.95] },
|
||||
escenarios: [scenario],
|
||||
});
|
||||
expect(found.length).toBe(2);
|
||||
expect(found[1].title).toContain('fallecidos = 308');
|
||||
expect(found[1].figure.data.length).toBe(5);
|
||||
expect((found[1].figure.data[4] as any).x).toEqual([6, 12, 18]);
|
||||
expect(found.length).toBe(1);
|
||||
const drawn = scenarioFigure(scenario.escenario, scenario, scenario.horizons_months, 'S(t)');
|
||||
expect(drawn.figure.data.length).toBe(5);
|
||||
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', () => {
|
||||
const [found] = interpretabilityFigures({
|
||||
it('leaves recurrence scenarios to the patient record', () => {
|
||||
const found = interpretabilityFigures({
|
||||
kind: 'scenarios',
|
||||
recurrencia: {
|
||||
horizons_months: [12, 36],
|
||||
@@ -55,7 +55,7 @@ describe('governance figures', () => {
|
||||
],
|
||||
},
|
||||
});
|
||||
expect(found.figure.data.length).toBe(5);
|
||||
expect(found).toEqual([]);
|
||||
});
|
||||
|
||||
it('draws an age curve with its centile band', () => {
|
||||
|
||||
Reference in New Issue
Block a user